chenjj hai 5 meses
pai
achega
9b3c6594c9
Modificáronse 6 ficheiros con 15 adicións e 17 borrados
  1. 1 1
      config.js
  2. 1 1
      manifest.json
  3. 1 1
      pages/Client/new_file.vue
  4. 3 8
      pages/classify.vue
  5. 8 5
      pages/index.vue
  6. 1 1
      pages/mine.vue

+ 1 - 1
config.js

@@ -3,7 +3,7 @@ const config = {
 	// baseUrl: 'https://vue.ruoyi.vip/prod-api',
 	//cloud后台网关地址
 	// baseUrl: 'http://192.168.10.3:8080',
-	baseUrl: 'http://192.168.85.114:9527',
+	baseUrl: 'http://192.168.100.85:9527',
 	// 应用信息
 	appInfo: {
 		// 应用名称

+ 1 - 1
manifest.json

@@ -50,7 +50,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wxed3f482559db6196",
+        "appid" : "wxf8cc1f7fffc41354",
         "setting" : {
             "urlCheck" : false,
             "postcss" : true,

+ 1 - 1
pages/Client/new_file.vue

@@ -17,7 +17,7 @@
 				<up-toast ref="uToastRef" />
 			</view>
 		</template>
-
+	
 		<template v-else-if="userType == 2">
 			<view class="Wrapper-grid">
 				<up-grid :border="false" col="4" @click="handleGridClick">

+ 3 - 8
pages/classify.vue

@@ -63,8 +63,7 @@ const column = [
 ]
 
 
-async function getList(parmas) {
-	console.log('getList', parmas);
+async function getList() {
 	try {
 		uni.hideLoading();
 		uni.showLoading({
@@ -112,22 +111,18 @@ function onChange(tabItem) {
 
 
 
-// onMounted(init)
+onMounted(getList)
 
-onLoad((options) => {
-	console.log('options',options);
-	tab.value = options.status;
-})
 
 onShow(() => {
 	const params = getApp().globalData.switchTabParams; 
+	if(!params.tabKey) return;
 	tabKey.value = params.tabKey;
 	console.log(params);  // { id: 123, type: "test" }
 	onChange(column[tabKey.value])
 	// 使用后建议清除参数,避免重复读取 
 	getApp().globalData.switchTabParams  = null;
 
-	// init();
 })
 </script>
 

+ 8 - 5
pages/index.vue

@@ -22,11 +22,13 @@
 			<!-- 瀑布流 -->
 			<volunteerSide ></volunteerSide>
 
-			<view class="font-title index-title">月度排名</view>
-			<List :data="data" @refresh="getList" v-if="data.length > 0" :type="'ranking'"/>
-			<view v-else class="empty-null">
-				<img src="/static/empty/订单为空.png" alt="">
-			</view>
+			<view v-if="userType == 2">
+				<view class="font-title index-title">月度排名</view>
+				<List :data="data" @refresh="getList" v-if="data.length > 0" :type="'ranking'"/>
+				<view v-else class="empty-null">
+					<img src="/static/empty/订单为空.png" alt="">
+				</view>
+				</view>
 		</view>
 	</view>
 
@@ -45,6 +47,7 @@
 	import List from './order/list/index.vue';
 	
 	const value = ref(''); //搜索
+	const userType = uni.getStorageSync('userType') //读取本地存储
 
 
 	const list3 = ref([

+ 1 - 1
pages/mine.vue

@@ -88,7 +88,7 @@ const serviceList = ref([
 	{
 		name: '差评申述',
 		iconName: 'edit-pen',
-		page: '/pages/myCenter/bad'
+		// page: '/pages/myCenter/bad'
 	},
 	{
 		name: '钱包',