Browse Source

修改内容

ext.liuqiwen3 1 month ago
parent
commit
e4b425a5cb
1 changed files with 8 additions and 4 deletions
  1. 8 4
      pages/user/index.vue

+ 8 - 4
pages/user/index.vue

@@ -1,6 +1,9 @@
 <template>
   <view class="container">
-    <up-navbar class="inde-nav-bar" :bgColor="navBgColor">
+    <up-navbar
+        class="inde-nav-bar"
+        :bgColor="navBgColor"
+    >
       <template #left>
         <view></view>
       </template>
@@ -190,7 +193,7 @@
 
       <view class="functions">
         <template v-for="func in commonFunctions" :key="func.name">
-          <view class="function-item" @click="handleFunctionClick(func.pageUrl)" v-if="func.show">
+          <view class="function-item" @click="handleFunctionClick(func)" v-if="func.show">
             <view class="function-icon">
               <image class="img" :src="func.src" mode="widthFix"></image>
             </view>
@@ -527,8 +530,8 @@ function handleLogOut() {
 }
 // 功能点击
 const handleFunctionClick = (item) => {
-  const url = item.url;
-  // console.log(url);
+  const url = item.pageUrl;
+  console.log(url);
   if (item.name === "平台客服") return (showCallList.value = true);
   if (!url) return;
   // 买料、卖料、消费需要通过webview跳转
@@ -568,6 +571,7 @@ const handleFunctionClick = (item) => {
   } else if (url === "logout") {
     handleLogOut();
   } else {
+    console.log(url)
     uni.navigateTo({ url });
   }
 };