Commit 0a255dda3a3a110c360d9aba3aeb3b76cdbe847b
1 parent
b97cbc50
把礼包详情复制一个到助力目录下
Showing
5 changed files
with
743 additions
and
2 deletions
app.json
1 | { | 1 | { |
2 | "pages": [ | 2 | "pages": [ |
3 | "pages/index/index/index", | 3 | "pages/index/index/index", |
4 | + "pages/user/assistance/giftpacklist", | ||
5 | + "pages/user/assistance/task_assistance", | ||
6 | + "pages/user/share/share", | ||
4 | "pages/giftpack/birthdaygift/birthdaygift", | 7 | "pages/giftpack/birthdaygift/birthdaygift", |
5 | "pages/user/comment/comment", | 8 | "pages/user/comment/comment", |
6 | "pages/giftpack/evaluategift/evaluategift", | 9 | "pages/giftpack/evaluategift/evaluategift", |
@@ -85,8 +88,7 @@ | @@ -85,8 +88,7 @@ | ||
85 | "pages/user/my_service/tment_order_list", | 88 | "pages/user/my_service/tment_order_list", |
86 | "pages/user/my_service/beauty_deta", | 89 | "pages/user/my_service/beauty_deta", |
87 | "pages/user/labels/labels", | 90 | "pages/user/labels/labels", |
88 | - "pages/user/view_comment/view_comment", | ||
89 | - "pages/user/assistance/assistance", | 91 | + "pages/user/view_comment/view_comment" |
90 | ], | 92 | ], |
91 | "permission": { | 93 | "permission": { |
92 | "scope.userLocation": { | 94 | "scope.userLocation": { |
pages/user/assistance/giftpacklist.js
0 → 100644
1 | +var e = getApp(), | ||
2 | + a = e.globalData.setting, | ||
3 | + os = a, | ||
4 | + t = e.request, | ||
5 | + d = e.globalData; | ||
6 | +var ut = require("../../../utils/util.js"); | ||
7 | + | ||
8 | +Page({ | ||
9 | + data: { | ||
10 | + url: a.url, //接口网址 | ||
11 | + iurl: a.imghost, //图片前缀网址 | ||
12 | + isBuy: 0, | ||
13 | + getGiftID: '', //礼包id | ||
14 | + giftImage: '', | ||
15 | + giftTitle: '', | ||
16 | + giftDate: '', | ||
17 | + giftPrice: '', | ||
18 | + giftIntegral: '', | ||
19 | + giftPosPrice: '', | ||
20 | + giftQty: '', | ||
21 | + giftRemark: '', | ||
22 | + giftType: '', | ||
23 | + actTitle: '', | ||
24 | + getUrl: '', | ||
25 | + wareCard: [], | ||
26 | + orderSn: "", //订单编号 | ||
27 | + lbId: "", | ||
28 | + code: "", //核销码 | ||
29 | + c_state: "0", //判断是否已经使用, 0正常 1已使用 2已过期 | ||
30 | + is_lb: 0, //是否有礼包 | ||
31 | + }, | ||
32 | + onLoad: function (options) { | ||
33 | + var th = this; | ||
34 | + th.setData({ | ||
35 | + isBuy: options.isBuy, | ||
36 | + getStorageID: a.stoid, | ||
37 | + getUserID: d.user_id, | ||
38 | + getGiftID: options.lbId, | ||
39 | + orderSn: options.orderSn | ||
40 | + }) | ||
41 | + if (options.isBuy == 0) { | ||
42 | + th.GetMyGiftList(); | ||
43 | + } else { | ||
44 | + th.GetBuyGiftList(); | ||
45 | + } | ||
46 | + th.setData({ | ||
47 | + giftRemark: th.data.giftRemark.replace(/<p><img/gi, "<p class='img'><img") | ||
48 | + }) | ||
49 | + th.close(); | ||
50 | + }, | ||
51 | + onShow: function () { | ||
52 | + | ||
53 | + }, | ||
54 | + GetBuyPrice: function (e) { | ||
55 | + var that = this.data; | ||
56 | + var th = this; | ||
57 | + // var id = e.currentTarget.dataset.id;//活动id | ||
58 | + var my_confirm = th.selectComponent("#my_confirm"); //组件的id | ||
59 | + my_confirm.open( | ||
60 | + "是否确定购买该礼包", | ||
61 | + "取消", | ||
62 | + "确定", | ||
63 | + function () { | ||
64 | + my_confirm.open_cancel(0); | ||
65 | + }, | ||
66 | + function () { | ||
67 | + my_confirm.open_cancel(0); | ||
68 | + var json = { | ||
69 | + "actId": '', //活动Id | ||
70 | + "actType": '', //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销 | ||
71 | + "buyType": '2', //1=积分兑换 2=余额购买 | ||
72 | + "lbId": that.getGiftID, //礼包Id | ||
73 | + "storeId": that.getStorageID, //商家Id | ||
74 | + "userId": that.getUserID, //用户ID | ||
75 | + "buyFrom": 2 | ||
76 | + }; | ||
77 | + var data = JSON.stringify(json); | ||
78 | + var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; | ||
79 | + wx.request({ | ||
80 | + url: url, | ||
81 | + data: data, | ||
82 | + method: 'post', | ||
83 | + header: { | ||
84 | + 'content-type': 'application/json' | ||
85 | + }, // 设置请求的 header | ||
86 | + success: function (res) { | ||
87 | + if (res.data.code == 0) { | ||
88 | + res = res.data.data; | ||
89 | + wx.requestPayment({ | ||
90 | + timeStamp: String(res.timeStamp), | ||
91 | + nonceStr: res.nonceStr, | ||
92 | + package: res.packageValue, | ||
93 | + signType: res.signType, | ||
94 | + paySign: res.paySign, | ||
95 | + success: function (n) { | ||
96 | + | ||
97 | + }, | ||
98 | + fail: function (n) { | ||
99 | + | ||
100 | + } | ||
101 | + }); | ||
102 | + } else { | ||
103 | + getApp().my_warnning(res.data.msg, 0, th); | ||
104 | + } | ||
105 | + } | ||
106 | + }) | ||
107 | + | ||
108 | + } | ||
109 | + | ||
110 | + | ||
111 | + ) | ||
112 | + | ||
113 | + | ||
114 | + }, | ||
115 | + GetBuyIntegral: function (e) { | ||
116 | + var that = this.data; | ||
117 | + var th = this; | ||
118 | + // var id = e.currentTarget.dataset.id;//活动id | ||
119 | + var my_confirm = th.selectComponent("#my_confirm"); //组件的id | ||
120 | + my_confirm.open( | ||
121 | + "是否确定兑换该礼包", | ||
122 | + "取消", | ||
123 | + "确定", | ||
124 | + function () { | ||
125 | + my_confirm.open_cancel(0); | ||
126 | + }, | ||
127 | + function () { | ||
128 | + my_confirm.open_cancel(0); | ||
129 | + var json = { | ||
130 | + "actId": '', //活动Id | ||
131 | + "actType": '', //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销 | ||
132 | + "buyType": '1', //1=积分兑换 2=余额购买 | ||
133 | + "lbId": that.getGiftID, //礼包Id | ||
134 | + "storeId": that.getStorageID, //商家Id | ||
135 | + "userId": that.getUserID //用户ID | ||
136 | + }; | ||
137 | + var data = JSON.stringify(json); | ||
138 | + var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; | ||
139 | + wx.request({ | ||
140 | + url: url, | ||
141 | + data: data, | ||
142 | + method: 'post', | ||
143 | + header: { | ||
144 | + 'content-type': 'application/json' | ||
145 | + }, // 设置请求的 header | ||
146 | + success: function (res) { | ||
147 | + if (res.data.code == 0) { | ||
148 | + getApp().my_warnning("兑换成功!", 1, th); | ||
149 | + } else { | ||
150 | + getApp().my_warnning(res.data.msg, 0, th); | ||
151 | + } | ||
152 | + } | ||
153 | + }) | ||
154 | + | ||
155 | + }) | ||
156 | + | ||
157 | + | ||
158 | + }, | ||
159 | + GetMyGiftList: function () { | ||
160 | + var _this = this; | ||
161 | + var th = this; | ||
162 | + getApp().request.get('/api/weshop/marketing/my/giftbag/detail/get', { | ||
163 | + data: { | ||
164 | + "storeId": th.data.getStorageID, //商家ID | ||
165 | + "userId": th.data.getUserID, //用户ID | ||
166 | + "orderSn": th.data.orderSn | ||
167 | + }, | ||
168 | + success: function success(res) { | ||
169 | + if (res.data.code == 0) { | ||
170 | + th.setData({ | ||
171 | + giftImage: th.data.iurl + res.data.data.lbUrl, | ||
172 | + giftTitle: res.data.data.giftTitle | ||
173 | + }) | ||
174 | + if (res.data.data.giftRemark == '') { | ||
175 | + th.setData({ | ||
176 | + giftRemark: '暂无详情......' | ||
177 | + }) | ||
178 | + } else { | ||
179 | + th.setData({ | ||
180 | + giftRemark: res.data.data.giftRemark | ||
181 | + }) | ||
182 | + } | ||
183 | + | ||
184 | + //---获取日期的时间戳--- | ||
185 | + var t_endtime = res.data.data.endTime; | ||
186 | + t_endtime = t_endtime.replace(/-/g, '/'); | ||
187 | + var t_date = new Date(t_endtime) / 1000; | ||
188 | + var t_now = ut.gettimestamp(); | ||
189 | + | ||
190 | + if (res.data.data.goodsUseState) th.setData({ | ||
191 | + c_state: 1 | ||
192 | + }) | ||
193 | + else if (t_date <= t_now) | ||
194 | + th.setData({ | ||
195 | + c_state: 2 | ||
196 | + }) | ||
197 | + | ||
198 | + th.setData({ | ||
199 | + giftDate: res.data.data.endTime, | ||
200 | + giftPosPrice: res.data.data.giftPosPrice, | ||
201 | + giftQty: res.data.data.giftQty, | ||
202 | + giftIntegral: res.data.data.payIntegral, | ||
203 | + giftPrice: res.data.data.payMoney, | ||
204 | + giftType: res.data.data.actType, | ||
205 | + actTitle: res.data.data.actTitle, | ||
206 | + wareCard: res.data.data.wareCard, | ||
207 | + lbId: res.data.data.lbId | ||
208 | + }) | ||
209 | + //判断是否有礼包 | ||
210 | + for (var i = 0; i < res.data.data.wareCard.length; i++) { | ||
211 | + if (res.data.data.wareCard[i].lbType == 1) { | ||
212 | + th.setData({ | ||
213 | + is_lb: 1 | ||
214 | + }) | ||
215 | + break; | ||
216 | + } | ||
217 | + } | ||
218 | + } else { | ||
219 | + getApp().my_warnning("系统繁忙,请稍后再试", 0, th); | ||
220 | + return false; | ||
221 | + } | ||
222 | + } | ||
223 | + }); | ||
224 | + | ||
225 | + }, | ||
226 | + GetBuyGiftList: function () { | ||
227 | + var _this2 = this; | ||
228 | + var th = this.data; | ||
229 | + getApp().request.get('/api/weshop/marketing/giftbag/detail/get', { | ||
230 | + data: { | ||
231 | + "storeId": th.getStorageID, //商家ID | ||
232 | + "userId": th.getUserID, //用户ID | ||
233 | + "giftBagId": th.getGiftID | ||
234 | + }, | ||
235 | + success: function success(res) { | ||
236 | + if (res.data.code == 0) { | ||
237 | + _this2.setData({ | ||
238 | + giftImage: th.iurl + res.data.data.lbUrl, | ||
239 | + giftTitle: res.data.data.giftTitle | ||
240 | + }) | ||
241 | + if (res.data.data.giftRemark == '') { | ||
242 | + | ||
243 | + _this2.setData({ | ||
244 | + giftRemark: '暂无详情......' | ||
245 | + }) | ||
246 | + } else { | ||
247 | + _this2.setData({ | ||
248 | + giftRemark: res.data.data.giftRemark | ||
249 | + }) | ||
250 | + } | ||
251 | + | ||
252 | + _this2.setData({ | ||
253 | + giftDate: res.data.data.endTime, | ||
254 | + giftPosPrice: res.data.data.giftPosPrice, | ||
255 | + giftQty: res.data.data.giftQty, | ||
256 | + giftIntegral: res.data.data.payIntegral, | ||
257 | + giftPrice: res.data.data.payMoney, | ||
258 | + giftType: res.data.data.actType, | ||
259 | + actTitle: res.data.data.actTitle, | ||
260 | + wareCard: res.data.data.wareCard | ||
261 | + }) | ||
262 | + } else { | ||
263 | + getApp().my_warnning("系统繁忙,请稍后再试", 0, _this2); | ||
264 | + return false; | ||
265 | + } | ||
266 | + } | ||
267 | + }); | ||
268 | + | ||
269 | + }, | ||
270 | + //显示核销码 | ||
271 | + code_show: function (e) { | ||
272 | + var th = this; | ||
273 | + //--获取成功的时候-- | ||
274 | + var no = th.data.code; | ||
275 | + var qc_com = th.selectComponent("#qc_com"); //组件的id | ||
276 | + var obj = { | ||
277 | + val: no, | ||
278 | + content: "请将二维码展示给核销员,收货更快捷" | ||
279 | + }; | ||
280 | + qc_com.open(obj) | ||
281 | + }, | ||
282 | + //获取核销码 | ||
283 | + getcode: function () { | ||
284 | + var th = this; | ||
285 | + var orderSn = th.data.orderSn; //订单号 | ||
286 | + var json = { | ||
287 | + "storeId": a.stoid, | ||
288 | + "orderSn": orderSn | ||
289 | + }; | ||
290 | + var data = JSON.stringify(json); | ||
291 | + var url = th.data.url + "/api/weshop/marketing/gift/goods/verify/code/get"; //预约接口地址 | ||
292 | + wx.request({ | ||
293 | + url: url, | ||
294 | + data: data, | ||
295 | + method: 'put', | ||
296 | + header: { | ||
297 | + 'content-type': 'application/json' | ||
298 | + }, // 设置请求的 header | ||
299 | + success: function (res) { | ||
300 | + if (res.data.code == 0) { | ||
301 | + th.setData({ | ||
302 | + code: res.data.data | ||
303 | + }) | ||
304 | + th.code_show(); | ||
305 | + } else { | ||
306 | + getApp().my_warnning(res.data.msg, 0, th); | ||
307 | + } | ||
308 | + } | ||
309 | + }) | ||
310 | + }, | ||
311 | + //界面跳转 | ||
312 | + goto: function (e) { | ||
313 | + var th = this; | ||
314 | + var url = e.currentTarget.dataset.url; | ||
315 | + getApp().goto(url); | ||
316 | + }, | ||
317 | + //图片失败,默认图片 | ||
318 | + bind_bnerr2: function (e) { | ||
319 | + var _errImg = e.target.dataset.errorimg; | ||
320 | + var _errObj = {}; | ||
321 | + _errObj[_errImg] = "/public/images/empty.jpg"; | ||
322 | + this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; | ||
323 | + | ||
324 | + }, | ||
325 | + //关闭导航 | ||
326 | + close: function () { | ||
327 | + var th = this; | ||
328 | + var nav_b = th.selectComponent("#nav_b"); //组件的id | ||
329 | + nav_b.close_box(); | ||
330 | + nav_b.set_name("礼包", "/pages/giftpack/buygiftpack/giftpackbuy"); | ||
331 | + } | ||
332 | +}); | ||
0 | \ No newline at end of file | 333 | \ No newline at end of file |
pages/user/assistance/giftpacklist.json
0 → 100644
1 | +{ | ||
2 | + "navigationBarTitleText": "助力详情", | ||
3 | + "usingComponents": { | ||
4 | + "warn": "/components/long_warn/long_warn", | ||
5 | + "my_confirm": "/components/my_confirm/my_confirm", | ||
6 | + "qr_code": "/components/qr_code/qr_code", | ||
7 | + "nav_b": "/components/nav_b/nav_b" | ||
8 | + } | ||
9 | +} | ||
0 | \ No newline at end of file | 10 | \ No newline at end of file |
pages/user/assistance/giftpacklist.wxml
0 → 100644
1 | +<view class="box data-v-3a5b7e36"> | ||
2 | + <view class="box_top data-v-3a5b7e36"> | ||
3 | + <image src="{{giftImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="giftImage"></image> | ||
4 | + </view> | ||
5 | + <view class="box_title data-v-3a5b7e36"> | ||
6 | + <view class="top_title data-v-3a5b7e36"> | ||
7 | + <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text> | ||
8 | + </view> | ||
9 | + <view class="top_time data-v-3a5b7e36"> | ||
10 | + <text class="data-v-3a5b7e36">{{"兑换截至时间:"+giftDate}}</text> | ||
11 | + </view> | ||
12 | + <view class="top_price data-v-3a5b7e36"> | ||
13 | + <block wx:if="{{giftPrice>0}}"> | ||
14 | + <text class="data-v-3a5b7e36">{{"¥"+giftPrice}}</text> | ||
15 | + </block> | ||
16 | + <block wx:if="{{giftPrice>0 && giftIntegral>0}}"> | ||
17 | + <text class="data-v-3a5b7e36">/</text> | ||
18 | + </block> | ||
19 | + <block wx:if="{{giftIntegral>0}}"> | ||
20 | + <text class="data-v-3a5b7e36">{{giftIntegral+"积分"}}</text> | ||
21 | + </block> | ||
22 | + <block wx:if="{{giftType>0}}"> | ||
23 | + <text class="data-v-3a5b7e36">{{actTitle}}</text> | ||
24 | + </block> | ||
25 | + </view> | ||
26 | + <view class="top_foot data-v-3a5b7e36"> | ||
27 | + <view class="top_foot_price data-v-3a5b7e36"> | ||
28 | + <text class="data-v-3a5b7e36">{{"原价:"+giftPosPrice+"元"}}</text> | ||
29 | + </view> | ||
30 | + <view class="top_foot_qty data-v-3a5b7e36"> | ||
31 | + <text class="data-v-3a5b7e36">{{"已售:"+giftQty+"件"}}</text> | ||
32 | + </view> | ||
33 | + </view> | ||
34 | + </view> | ||
35 | + <view class="box_ware data-v-3a5b7e36"> | ||
36 | + <view class="box_ware_title data-v-3a5b7e36"> | ||
37 | + <text class="data-v-3a5b7e36">礼包内容</text> | ||
38 | + </view> | ||
39 | + <block wx:for="{{wareCard}}" wx:for-item="item" wx:for-index="index" wx:key="index"> | ||
40 | + <view class="box_ware_box data-v-3a5b7e36"> | ||
41 | + <view class="box_ware_img data-v-3a5b7e36"> | ||
42 | + <block wx:if="{{item.lbType==1}}"> | ||
43 | + <image src="{{item.wareImage==''?iurl+'/miniapp/images/giftbag/gift01.png':iurl+item.wareImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image> | ||
44 | + </block> | ||
45 | + <block wx:if="{{item.lbType==2}}"> | ||
46 | + <image src="{{iurl+'/miniapp/images/giftbag/gift05.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image> | ||
47 | + </block> | ||
48 | + <block wx:if="{{item.lbType==3}}"> | ||
49 | + <image src="{{iurl+'/miniapp/images/giftbag/gift02.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image> | ||
50 | + </block> | ||
51 | + <block wx:if="{{item.lbType==4}}"> | ||
52 | + <image src="{{iurl+'/miniapp/images/giftbag/gift03.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image> | ||
53 | + </block> | ||
54 | + <block wx:if="{{item.lbType==5}}"> | ||
55 | + <image src="{{iurl+'/miniapp/images/giftbag/gift04.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image> | ||
56 | + </block> | ||
57 | + </view> | ||
58 | + <view class="box_ware_item data-v-3a5b7e36"> | ||
59 | + <view class="box_ware_item_title data-v-3a5b7e36"> | ||
60 | + <text class="data-v-3a5b7e36">{{item.couponName}}</text> | ||
61 | + </view> | ||
62 | + <view class="box_ware_item_price data-v-3a5b7e36"> | ||
63 | + <text class="data-v-3a5b7e36"></text> | ||
64 | + </view> | ||
65 | + <view class="box_ware_item_qty data-v-3a5b7e36"> | ||
66 | + <text class="data-v-3a5b7e36 ellipsis-1">{{"数量:"+item.num}}</text> | ||
67 | + </view> | ||
68 | + <view class="box_ware_code data-v-3a5b7e36"> | ||
69 | + <block wx:if="{{c_state==0}}"> | ||
70 | + <block wx:if="{{isBuy==0&item.lbType==1}}"> | ||
71 | + <image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" lazy-load="true" bindtap="getcode" class="data-v-3a5b7e36"></image> | ||
72 | + </block> | ||
73 | + </block> | ||
74 | + <block wx:else> | ||
75 | + <block wx:if="{{isBuy==0&item.lbType==1}}"> | ||
76 | + <image src="{{iurl+'/miniapp/images/giftbag/gift08.png'}}" lazy-load="true" class="data-v-3a5b7e36"></image> | ||
77 | + </block> | ||
78 | + </block> | ||
79 | + <block wx:if="{{isBuy==0&item.lbType==2}}"> | ||
80 | + <image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" class="data-v-3a5b7e36" lazy-load="true" data-url="/pages/user/coupons/coupons" bindtap="goto"></image> | ||
81 | + </block> | ||
82 | + <block wx:if="{{isBuy==0&item.lbType==3}}"> | ||
83 | + <image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" class="data-v-3a5b7e36" lazy-load="true" data-url="/pages/user/my_service/i_service" bindtap="goto"></image> | ||
84 | + </block> | ||
85 | + <block wx:if="{{isBuy==0&item.lbType>3}}"> | ||
86 | + <text class="data-v-3a5b7e36">奖励已发放</text> | ||
87 | + </block> | ||
88 | + </view> | ||
89 | + </view> | ||
90 | + </view> | ||
91 | + </block> | ||
92 | + </view> | ||
93 | + <view class="foot_box data-v-3a5b7e36"> | ||
94 | + <view class="foot_box_title data-v-3a5b7e36"> | ||
95 | + <text class="data-v-3a5b7e36">活动说明</text> | ||
96 | + </view> | ||
97 | + <view class="foot_box_remark data-v-3a5b7e36"> | ||
98 | + <rich-text nodes="{{giftRemark}}"></rich-text> | ||
99 | + </view> | ||
100 | + </view> | ||
101 | + <view class="foot_empty data-v-3a5b7e36"></view> | ||
102 | + <block wx:if="{{isBuy==1}}"> | ||
103 | + <view class="foot_button data-v-3a5b7e36"> | ||
104 | + <block wx:if="{{giftPrice>0&&giftIntegral>0}}"> | ||
105 | + <view class="foot_button_left data-v-3a5b7e36" data-id="{{lbId}}" bindtap="GetBuyPrice"> | ||
106 | + <text class="data-v-3a5b7e36">立即购买</text> | ||
107 | + </view> | ||
108 | + </block> | ||
109 | + <block wx:if="{{giftPrice>0 && giftIntegral>0}}"> | ||
110 | + <view class="foot_button_right data-v-3a5b7e36" bindtap="GetBuyIntegral" data-id="{{lbId}}"> | ||
111 | + <text class="data-v-3a5b7e36">立即兑换</text> | ||
112 | + </view> | ||
113 | + </block> | ||
114 | + <block wx:if="{{giftPrice>0 && giftIntegral<=0}}"> | ||
115 | + <view class="foot_button_buy data-v-3a5b7e36" bindtap="GetBuyPrice" data-id="{{lbId}}"> | ||
116 | + <text class="data-v-3a5b7e36">立即购买</text> | ||
117 | + </view> | ||
118 | + </block> | ||
119 | + <block wx:if="{{giftPrice<=0 && giftIntegral>0}}"> | ||
120 | + <view class="foot_button_intalge data-v-3a5b7e36" bindtap="GetBuyIntegral" data-id="{{lbId}}"> | ||
121 | + <text class="data-v-3a5b7e36">立即兑换</text> | ||
122 | + </view> | ||
123 | + </block> | ||
124 | + </view> | ||
125 | + </block> | ||
126 | + <block wx:if="{{isBuy==0}}"> | ||
127 | + <view class="foot_button data-v-3a5b7e36"> | ||
128 | + <block wx:if="{{is_lb!=1}}"> | ||
129 | + <view class="foot_button_buy data-v-3a5b7e36 overdue"> | ||
130 | + <text class="data-v-3a5b7e36">无核销商品</text> | ||
131 | + </view> | ||
132 | + </block> | ||
133 | + <block wx:else> | ||
134 | + <view wx:if="{{c_state==0}}" class="foot_button_buy data-v-3a5b7e36" bindtap="getcode"> | ||
135 | + <text class="data-v-3a5b7e36">立即使用</text> | ||
136 | + </view> | ||
137 | + <view wx:if="{{c_state==1}}" class="foot_button_buy data-v-3a5b7e36 overdue"> | ||
138 | + <text class="data-v-3a5b7e36">商品已核销</text> | ||
139 | + </view> | ||
140 | + <view wx:if="{{c_state==2}}" class="foot_button_buy data-v-3a5b7e36 overdue"> | ||
141 | + <text class="data-v-3a5b7e36">商品兑换时间已过</text> | ||
142 | + </view> | ||
143 | + | ||
144 | + </block> | ||
145 | + </view> | ||
146 | + </block> | ||
147 | +</view> | ||
148 | +<!-- 引入提示组件 --> | ||
149 | +<warn id="warn"></warn> | ||
150 | +<my_confirm id="my_confirm"></my_confirm> | ||
151 | +<!-- 弹出框扫描 --> | ||
152 | +<qr_code id="qc_com"></qr_code> | ||
153 | +<!-- 制作一个圆球导航 --> | ||
154 | +<nav_b id="nav_b"></nav_b> | ||
0 | \ No newline at end of file | 155 | \ No newline at end of file |
pages/user/assistance/giftpacklist.wxss
0 → 100644
1 | +@charset "UTF-8"; | ||
2 | + | ||
3 | +/* Author XGQ | ||
4 | + * 2019-12-12 | ||
5 | + */ | ||
6 | + | ||
7 | +.box.data-v-3a5b7e36 { | ||
8 | + -webkit-align-content: center; | ||
9 | + align-content: center; | ||
10 | + background-color: #e85f93; | ||
11 | +} | ||
12 | + | ||
13 | +.box_top.data-v-3a5b7e36 { | ||
14 | + width: 100%; | ||
15 | +} | ||
16 | + | ||
17 | +.box_top image.data-v-3a5b7e36 { | ||
18 | + width: 100%; | ||
19 | + max-height: 540rpx; | ||
20 | +} | ||
21 | + | ||
22 | +.box_title.data-v-3a5b7e36 { | ||
23 | + margin: 10rpx 20rpx 20rpx 20rpx; | ||
24 | + padding: 35rpx; | ||
25 | + background-color: #fff; | ||
26 | + border-radius: 40rpx; | ||
27 | +} | ||
28 | + | ||
29 | +.top_title.data-v-3a5b7e36 { | ||
30 | + font-size: 30rpx; | ||
31 | + margin-bottom: 10rpx; | ||
32 | +} | ||
33 | + | ||
34 | +.top_time.data-v-3a5b7e36 { | ||
35 | + font-size: 27rpx; | ||
36 | + color: #b9b5b5; | ||
37 | +} | ||
38 | + | ||
39 | +.top_price.data-v-3a5b7e36 { | ||
40 | + font-size: 35rpx; | ||
41 | + color: #d61b30; | ||
42 | + margin-top: 30rpx; | ||
43 | + margin-bottom: 5rpx; | ||
44 | +} | ||
45 | + | ||
46 | +.top_foot.data-v-3a5b7e36 { | ||
47 | + display: -webkit-box; | ||
48 | + display: -webkit-flex; | ||
49 | + display: flex; | ||
50 | +} | ||
51 | + | ||
52 | +.top_foot_price.data-v-3a5b7e36 { | ||
53 | + font-size: 22rpx; | ||
54 | + color: #b9b5b5; | ||
55 | + width: 50%; | ||
56 | + text-decoration: line-through; | ||
57 | +} | ||
58 | + | ||
59 | +.top_foot_qty.data-v-3a5b7e36 { | ||
60 | + font-size: 22rpx; | ||
61 | + color: #b9b5b5; | ||
62 | + width: 50%; | ||
63 | + -webkit-align-content: flex-end; | ||
64 | + align-content: flex-end; | ||
65 | + text-align: right; | ||
66 | +} | ||
67 | + | ||
68 | +.box_ware.data-v-3a5b7e36 { | ||
69 | + margin: 10rpx 20rpx 20rpx 20rpx; | ||
70 | + padding: 35rpx; | ||
71 | + background-color: #fff; | ||
72 | + border-radius: 40rpx; | ||
73 | +} | ||
74 | + | ||
75 | +.box_ware_title.data-v-3a5b7e36 { | ||
76 | + font-size: 35rpx; | ||
77 | + margin: 5rpx 0rpx 30rpx 0rpx; | ||
78 | +} | ||
79 | + | ||
80 | +.box_ware_box.data-v-3a5b7e36 { | ||
81 | + display: -webkit-box; | ||
82 | + display: -webkit-flex; | ||
83 | + display: flex; | ||
84 | + margin: 10rpx 0rpx 25rpx 0rpx; | ||
85 | +} | ||
86 | + | ||
87 | +/* .box_ware_img.data-v-3a5b7e36 { | ||
88 | + width: 30%; | ||
89 | + height: 180rpx; | ||
90 | + border: #999999 solid 1rpx; | ||
91 | +} */ | ||
92 | + | ||
93 | +.box_ware_img image.data-v-3a5b7e36 { | ||
94 | + /* width: 185rpx; | ||
95 | + height: 190rpx; *//* background-color: rgba(138, 138, 138, 0.63); */ | ||
96 | + border: 2rpx solid #999; | ||
97 | + width: 120rpx; | ||
98 | + height: 120rpx; | ||
99 | +} | ||
100 | + | ||
101 | +.box_ware_item.data-v-3a5b7e36 { | ||
102 | + width: 70%; | ||
103 | + margin-left: 25rpx; | ||
104 | + position: relative; | ||
105 | +} | ||
106 | + | ||
107 | +.box_ware_item_title.data-v-3a5b7e36 { | ||
108 | + font-size: 24rpx; | ||
109 | + word-break: break-all; | ||
110 | + text-overflow: ellipsis; | ||
111 | + display: -webkit-box; | ||
112 | + -webkit-box-orient: vertical; | ||
113 | + -webkit-line-clamp: 2; | ||
114 | + overflow: hidden; | ||
115 | +} | ||
116 | + | ||
117 | +.box_ware_count.data-v-3a5b7e36 { | ||
118 | + display: -webkit-box; | ||
119 | + display: -webkit-flex; | ||
120 | + display: flex; | ||
121 | +} | ||
122 | + | ||
123 | +.box_ware_item_price.data-v-3a5b7e36 { | ||
124 | + font-size: 25rpx; | ||
125 | + color: #b9b5b5; | ||
126 | + position: absolute; | ||
127 | + bottom: 60rpx; | ||
128 | + left: 0; | ||
129 | +} | ||
130 | + | ||
131 | +.box_ware_item_qty.data-v-3a5b7e36 { | ||
132 | + font-size: 22rpx; | ||
133 | + position: absolute; | ||
134 | + bottom: 15rpx; | ||
135 | + left: 0; | ||
136 | +} | ||
137 | + | ||
138 | +.box_ware_code.data-v-3a5b7e36 { | ||
139 | + position: absolute; | ||
140 | + right: 10rpx; | ||
141 | + bottom: 10rpx; | ||
142 | +} | ||
143 | + | ||
144 | +.box_ware_code image.data-v-3a5b7e36 { | ||
145 | + width: 50rpx; | ||
146 | + height: 50rpx; | ||
147 | +} | ||
148 | + | ||
149 | +.box_ware_code text.data-v-3a5b7e36 { | ||
150 | + font-size: 20rpx; | ||
151 | +} | ||
152 | + | ||
153 | +.foot_box.data-v-3a5b7e36 { | ||
154 | + margin: 10rpx 20rpx 50rpx 20rpx; | ||
155 | + padding: 35rpx; | ||
156 | + background-color: #fff; | ||
157 | + border-radius: 40rpx; | ||
158 | +} | ||
159 | + | ||
160 | +.foot_box_title.data-v-3a5b7e36 { | ||
161 | + font-size: 35rpx; | ||
162 | + margin-bottom: 30rpx; | ||
163 | +} | ||
164 | + | ||
165 | +.foot_box_remark.data-v-3a5b7e36 { | ||
166 | + font-size: 27rpx; | ||
167 | + line-height: 40rpx; | ||
168 | +} | ||
169 | + | ||
170 | +.foot_empty.data-v-3a5b7e36 { | ||
171 | + height: 90rpx; | ||
172 | +} | ||
173 | + | ||
174 | +.foot_button.data-v-3a5b7e36 { | ||
175 | + display: -webkit-box; | ||
176 | + display: -webkit-flex; | ||
177 | + display: flex; | ||
178 | + margin: 20rpx 0rpx 0rpx 0rpx; | ||
179 | + padding: 25rpx 0rpx; | ||
180 | + background: #fff; | ||
181 | + text-align: center; | ||
182 | + -webkit-box-pack: center; | ||
183 | + -webkit-justify-content: center; | ||
184 | + justify-content: center; | ||
185 | + position: fixed; | ||
186 | + bottom: 0; | ||
187 | + left: 0; | ||
188 | + width: 100%; | ||
189 | +} | ||
190 | + | ||
191 | +.foot_button_left.data-v-3a5b7e36 { | ||
192 | + background: #e4010c; | ||
193 | + color: #fff; | ||
194 | + width: 250rpx; | ||
195 | + height: 70rpx; | ||
196 | + font-size: 28rpx; | ||
197 | + line-height: 70rpx; | ||
198 | + border-radius: 40rpx; | ||
199 | +} | ||
200 | + | ||
201 | +.foot_button_right.data-v-3a5b7e36 { | ||
202 | + background: #ffbb42; | ||
203 | + color: #fff; | ||
204 | + width: 250rpx; | ||
205 | + height: 70rpx; | ||
206 | + font-size: 28rpx; | ||
207 | + line-height: 70rpx; | ||
208 | + border-radius: 40rpx; | ||
209 | +} | ||
210 | + | ||
211 | +.foot_button_buy.data-v-3a5b7e36 { | ||
212 | + background: #e4010c; | ||
213 | + color: #fff; | ||
214 | + width: 400rpx; | ||
215 | + height: 70rpx; | ||
216 | + font-size: 28rpx; | ||
217 | + line-height: 70rpx; | ||
218 | + border-radius: 40rpx; | ||
219 | +} | ||
220 | + | ||
221 | +.foot_button_intalge.data-v-3a5b7e36 { | ||
222 | + background: #ffbb42; | ||
223 | + color: #fff; | ||
224 | + width: 400rpx; | ||
225 | + height: 70rpx; | ||
226 | + font-size: 28rpx; | ||
227 | + line-height: 70rpx; | ||
228 | + border-radius: 40rpx; | ||
229 | +} | ||
230 | + | ||
231 | +page.data-v-3a5b7e36 { | ||
232 | + background-color: #e85f93; | ||
233 | +} | ||
234 | + | ||
235 | +.foot_box_remark.data-v-3a5b7e36 ._img { | ||
236 | + width: 100%; | ||
237 | +} | ||
238 | + | ||
239 | +.foot_box_remark.data-v-3a5b7e36 .img { | ||
240 | + line-height: 0; | ||
241 | +} | ||
242 | +.overdue.data-v-3a5b7e36{ | ||
243 | + background-color: rgb(153,153,153); | ||
244 | +} | ||
0 | \ No newline at end of file | 245 | \ No newline at end of file |