Browse Source

个人中心优惠券列表样式调整

kk.shi 3 years ago
parent
commit
f8ae557484
3 changed files with 23 additions and 25 deletions
  1. 20 19
      app.json
  2. 2 5
      pages/luckDraw/profile.js
  3. 1 1
      pages/luckDraw/profile.wxml

+ 20 - 19
app.json

@@ -1,21 +1,22 @@
 {
-    "pages": [
-        "pages/activityList/activityList",
-        "pages/activityInfo/activityInfo",
-        "pages/myCoupons/myCoupons",
-        "pages/index/index",
-        "pages/receiveCoupon/receiveCoupon",
-        "pages/logs/logs",
-        "pages/luckDraw/detail",
-        "pages/luckDraw/index",
-        "pages/luckDraw/profile"
-    ],
-    "window": {
-        "backgroundTextStyle": "light",
-        "navigationBarBackgroundColor": "#fff",
-        "navigationBarTitleText": "Weixin",
-        "navigationBarTextStyle": "black"
-    },
-    "style": "v2",
-    "sitemapLocation": "sitemap.json"
+  "pages": [
+    "pages/activityList/activityList",
+    "pages/activityInfo/activityInfo",
+    "pages/myCoupons/myCoupons",
+    "pages/index/index",
+    "pages/receiveCoupon/receiveCoupon",
+    "pages/logs/logs",
+    "pages/luckDraw/detail",
+    "pages/luckDraw/index",
+    "pages/luckDraw/profile",
+    "pages/luckDraw/prize"
+  ],
+  "window": {
+    "backgroundTextStyle": "light",
+    "navigationBarBackgroundColor": "#fff",
+    "navigationBarTitleText": "Weixin",
+    "navigationBarTextStyle": "black"
+  },
+  "style": "v2",
+  "sitemapLocation": "sitemap.json"
 }

+ 2 - 5
pages/luckDraw/profile.js

@@ -101,9 +101,6 @@ Page({
             let endTime = v.couponEndTimestamp
             v.couponBeginTimestamp = parseTime(beginTime, "{y}.{m}.{d}")
             v.couponEndTimestamp = parseTime(endTime, "{y}.{m}.{d}")
-            if(v.couponTitle.search("元") != -1){
-
-            }
         })
 
         this.data.goodsItemList = this.data.goodsItemList.concat(...data.goodsItemList)
@@ -126,8 +123,8 @@ Page({
         this.getUserPrizeList()
     },
 
-    toDetail(e) {
-        const url = "detail?id=" + e.currentTarget.dataset.id
+    toPrize(e) {
+        const url = "prize?id=" + e.currentTarget.dataset.id
         wx.redirectTo({
             url
         })

+ 1 - 1
pages/luckDraw/profile.wxml

@@ -14,7 +14,7 @@
         <view class="luck-draw-cjh"><view class="luck-draw-cj"></view></view>
       </view>
       <!-- 奖品 -->
-      <view class="luck-draw-prize" catchtap="toDetail">
+      <view class="luck-draw-prize" catchtap="toPrize">
         <view class="luck-draw-pn">{{productNum}}</view>
         <view class="luck-draw-pz">奖品</view>
       </view>