Procházet zdrojové kódy

1.系统设置隐藏、农机设备取消跳转;2.更换客户电话;

jiuling před 3 měsíci
rodič
revize
4ce1423f52
2 změnil soubory, kde provedl 8 přidání a 16 odebrání
  1. 4 3
      pages/device/index.vue
  2. 4 13
      pages/user/index.vue

+ 4 - 3
pages/device/index.vue

@@ -182,9 +182,10 @@ const navigateToDeviceList = (type) => {
   })
   
   if (type === 'tractor') {
-    uni.navigateTo({
-      url: `/pages/device/device-list/agricultural/index?type=${type}&typeOnline=${typeOnline.value}&typeOffline=${typeOffline.value}`
-    })
+    // TODO 鸿蒙目前不展示农机设备
+    // uni.navigateTo({
+    //   url: `/pages/device/device-list/agricultural/index?type=${type}&typeOnline=${typeOnline.value}&typeOffline=${typeOffline.value}`
+    // })
   } else {
     uni.navigateTo({
       url: `/pages/device/device-list/index?type=${type}&typeOnline=${typeOnline.value}&typeOffline=${typeOffline.value}`

+ 4 - 13
pages/user/index.vue

@@ -67,12 +67,12 @@
           </view>
           <text class="arrow">></text>
         </view>
-        <view class="function-item" @click="navigateToSettings">
+<!--        <view class="function-item" @click="navigateToSettings">
           <view class="left">
             <text>系统设置</text>
           </view>
           <text class="arrow">></text>
-        </view>
+        </view> -->
 				<view v-if="isLogin" class="function-item" @click="handleLogout">
 					<view class="left">
 						<!-- <text class="function-icon">退</text> -->
@@ -191,7 +191,7 @@ const navigateToService = (item) => {
 
 const handleContact = () => {
 	uni.makePhoneCall({
-		phoneNumber: '400-888-8888' // 替换为实际的客服电话
+		phoneNumber: '13379508760' // 替换为实际的客服电话
 	})
 }
 
@@ -214,7 +214,7 @@ const handleLogout = () => {
 		content: '确认退出登录?',
 		success: (res) => {
 			if (res.confirm) {
-				// #ifdef H5
+				
 				webLogout().then(res => {
 					console.log("tuichu", res)
 					storage.setAccessToken("")
@@ -230,16 +230,7 @@ const handleLogout = () => {
 					plotInfo.active = 0
 					plotInfo.idle = 0
 				})
-				// #endif
 				
-				// #ifdef APP-PLUS || MP-HARMONY
-				logout().then(() => {
-					isLogin.value = false
-					userInfo.nickname = '游客'
-					userInfo.id = ''
-					userInfo.avatar = '/static/icons/user_icon'
-				})
-				// #endif
 			}
 		}
 	})