Forráskód Böngészése

历史订单跳转

kk.shi 3 éve
szülő
commit
be71fbcebb

+ 7 - 0
pages/welfareMall/personal/personal.js

@@ -31,6 +31,13 @@ Page({
     })
 },
 
+getHistorical(e) {
+    const url = "../historical/historical?id=" + e.currentTarget.dataset.id
+    wx.redirectTo({
+        url
+    })
+  },
+
   /**
    * 生命周期函数--监听页面初次渲染完成
    */

+ 1 - 1
pages/welfareMall/personal/personal.wxml

@@ -56,7 +56,7 @@
       </view>
       <view class="content-lower"></view>
       <!-- 历史订单 -->
-      <view class="historical-order content-style flex-row">
+      <view class="historical-order content-style flex-row" catchtap="getHistorical">
         <view class="content-img-text flex-row">
           <image class="content-img" src="/images/welfareMall/historical-order.png" />
           <view class="content-text">历史订单</view>