Browse Source

小程序:个人中心

panyong 2 years ago
parent
commit
3f611dfada

+ 7 - 0
htmldev/wxMini/pages/businessHome/businessHome.js

@@ -65,6 +65,13 @@ Page({
    */
   onUnload() {
 
+  },
+  jump(e) {
+    const { path, tabvalue = '' } = e.currentTarget.dataset
+
+    wx.navigateTo({
+      url: `/pages/${path}/${path}?tabvalue=${tabvalue}`
+    })
   },
   handleNav(e) {
     const { item } = e.currentTarget.dataset

+ 13 - 3
htmldev/wxMini/pages/businessHome/businessHome.wxml

@@ -12,7 +12,10 @@
 
     <view
       class="dashboard"
-      style="background-image: url('../../image/businessHome/bg.png')">
+      style="background-image: url('../../image/businessHome/bg.png')"
+      data-path="businessGoodsManage"
+      data-tabvalue="1"
+      bind:tap="jump">
       <view class="data">
         <view class="label">已发布产品</view>
         <view class="value">{{shopInfo.product_total}}</view>
@@ -22,7 +25,10 @@
         <text class="check">查看详情</text>
       </view>
     </view>
-    <view class="excellent-goods-title">
+    <view
+      class="excellent-goods-title"
+      data-path="businessGoodsManage"
+      bind:tap="jump">
       <text>管理</text>
       <image src="../../image/businessHome/arrow.png"></image>
     </view>
@@ -36,7 +42,11 @@
         <text>{{item.name}}</text>
       </view>
     </view>
-    <view class="excellent-goods-title">
+    <view
+      class="excellent-goods-title"
+      data-path="businessGoodsManage"
+      data-tabvalue="1"
+      bind:tap="jump">
       <text>我的发布</text>
       <image src="../../image/businessHome/arrow.png"></image>
     </view>