Commit b5d851227d194e542c39fe66e9e4c7eac3437276
1 parent
899f36a4
跳转的优化
Showing
11 changed files
with
4496 additions
and
4458 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
@@ -5038,14 +5038,14 @@ Page({ | @@ -5038,14 +5038,14 @@ Page({ | ||
5038 | 5038 | ||
5039 | } else { | 5039 | } else { |
5040 | wx.navigateTo({ | 5040 | wx.navigateTo({ |
5041 | - url: "/pages/team/team_show/team_show?tg_id=" + id, | 5041 | + url: "/packageG/pages/team/team_show/team_show?tg_id=" + id, |
5042 | }); | 5042 | }); |
5043 | } | 5043 | } |
5044 | } | 5044 | } |
5045 | //--跳转到参团-- | 5045 | //--跳转到参团-- |
5046 | else { | 5046 | else { |
5047 | wx.navigateTo({ | 5047 | wx.navigateTo({ |
5048 | - url: "/pages/team/team_show/team_show?tg_id=" + id, | 5048 | + url: "/packageG/pages/team/team_show/team_show?tg_id=" + id, |
5049 | }); | 5049 | }); |
5050 | } | 5050 | } |
5051 | } | 5051 | } |
packageF/pages/team/team_more/team_more.js
@@ -204,7 +204,7 @@ Page({ | @@ -204,7 +204,7 @@ Page({ | ||
204 | //--跳转到参团-- | 204 | //--跳转到参团-- |
205 | else if(e.data.code == 0){ | 205 | else if(e.data.code == 0){ |
206 | wx.navigateTo({ | 206 | wx.navigateTo({ |
207 | - url: "/pages/team/team_show/team_show?tg_id="+tid+"&goods_id="+th.data.pt_act.goods_id, | 207 | + url: "/packageG/pages/team/team_show/team_show?tg_id="+tid+"&goods_id="+th.data.pt_act.goods_id, |
208 | }); | 208 | }); |
209 | } | 209 | } |
210 | 210 |
packageG/pages/team/team_show/team_show.js
0 → 100644
1 | +var t = require("../../../../utils/util.js"), | ||
2 | + ut = t, | ||
3 | + e = require("../../../../utils/common.js"), | ||
4 | + a = require("../../../../utils/wxParse/wxParse.js"), | ||
5 | + s = getApp(), | ||
6 | + i = s.request, | ||
7 | + rq = i, | ||
8 | + oo = s.globalData, | ||
9 | + o = s.globalData.setting, | ||
10 | + os = o; | ||
11 | +var regeneratorRuntime = require('../../../../utils/runtime.js'); | ||
12 | + | ||
13 | + | ||
14 | +Page({ | ||
15 | + data: { | ||
16 | + | ||
17 | + num: 1, //输入框值 加减之间的值 | ||
18 | + minusStatus: 'disable', //禁用按钮 | ||
19 | + ii_endname: 'disable', //吐司的禁用按钮 | ||
20 | + pd_xx: false, //弹框 | ||
21 | + buy_start_date: null, //转换完的时间 | ||
22 | + ssl: null, | ||
23 | + yijian: false, //一键参加按钮显示隐藏 | ||
24 | + | ||
25 | + //选择门店 | ||
26 | + qh: true, //取货 | ||
27 | + xz: false, //选择 | ||
28 | + one: false, //第一层显示隐藏 | ||
29 | + se: false, //已选择的值 | ||
30 | + list: false, //第二层显示隐藏 | ||
31 | + ssl_child: null, //第二层的值 | ||
32 | + sele_dl_name: "", //选择的值 | ||
33 | + end_name: "", //最后显示的值 | ||
34 | + | ||
35 | + ii: 0, //选择门店显示隐藏 | ||
36 | + zk: true, //展开列表显示隐藏 | ||
37 | + stoid: o.stoid, | ||
38 | + hiddenName: false, //收起列表显示隐藏 | ||
39 | + teamlist: null, //活动主表 | ||
40 | + teamgroup: null, //活动从表 | ||
41 | + goods: null, //商品数据 | ||
42 | + pindGoods: null, //拼单数据 | ||
43 | + imageurl: os.imghost, //有礼派图片地址 | ||
44 | + team_id: 0, //支付是否成功 | ||
45 | + listno: "", //订单编号 | ||
46 | + | ||
47 | + //选择的门店id | ||
48 | + pick_id:0, | ||
49 | + //会员团满团时的判断 | ||
50 | + tg_arr:null, | ||
51 | + //是否显示 | ||
52 | + is_show:0, | ||
53 | + //是不是团结束 | ||
54 | + is_group_end:0, | ||
55 | + //团结束的提示语句 | ||
56 | + end_text:"", | ||
57 | + //是开团或者参团,0参团,1开团(但是,商家团还是参团) | ||
58 | + is_kt_or_ct:0, | ||
59 | + //判断redis的数组 | ||
60 | + redis_arr:null, | ||
61 | + | ||
62 | + iurl:os.imghost, | ||
63 | + | ||
64 | + | ||
65 | + openSpecModal: !1, | ||
66 | + openSpecModal_pt: !1, //拼单的弹起, | ||
67 | + | ||
68 | + | ||
69 | + //门店相关 | ||
70 | + ismend: 0, | ||
71 | + is_sec_mend: 0, | ||
72 | + sto_sele_name: "", //选中的门店名称 | ||
73 | + sto_sele_id: "", //选中的门店id | ||
74 | + sto_sele_distr: "", //选择的门店的配送方式 | ||
75 | + is_show_sto_cat: 1, //是否显示门店分类 | ||
76 | + only_pk: null, | ||
77 | + all_sto: null, | ||
78 | + sec_sto: null, //选择了的门店分类 | ||
79 | + pickpu_list: null, //读出的所有门店list | ||
80 | + def_pickpu_list: null, //一开始5个门店list | ||
81 | + sec_pick_index: 0, //第二级门店选择ID | ||
82 | + fir_pick_index: 0, //第一级门店选择ID | ||
83 | + all_pick_list:null,//所有的门店先记录起来 | ||
84 | + bconfig:null, | ||
85 | + def_pick_store: null, // 默认的门店 | ||
86 | + fir_def_store:null, //客户默认的门店的 | ||
87 | + lat: null, //维度 | ||
88 | + lon: null, //经度 | ||
89 | + | ||
90 | + is_get_local_ok: 0, //获取坐标是否完成 | ||
91 | + | ||
92 | + sort_store: 0, //门店分类 | ||
93 | + choice_sort_store: 0, //选择分类门店 | ||
94 | + template_id:[],//订阅消息id | ||
95 | + }, | ||
96 | + onLoad: async function(options) { | ||
97 | + wx.setNavigationBarTitle({ title: "拼团订单",}) | ||
98 | + //var postdata=getApp().globalData.to_group; | ||
99 | + | ||
100 | + if(options.transfer){ | ||
101 | + let obj=getApp().globalData.ts_trans_data; | ||
102 | + options=ut.deep_cp(obj); | ||
103 | + getApp().globalData.ts_trans_data=null; | ||
104 | + } | ||
105 | + | ||
106 | + var postdata=options; | ||
107 | + | ||
108 | + | ||
109 | + var tg_id = postdata.tg_id, first_leader=options.first_leader,goods_id=options.goods_id; | ||
110 | + //如果tg_id是空的话 | ||
111 | + if(tg_id==null ||goods_id==null){ | ||
112 | + var tg_id_str=decodeURIComponent(postdata.scene); | ||
113 | + tg_id_str=tg_id_str.split("_"); | ||
114 | + console.log(tg_id_str.length); | ||
115 | + //tg_id_str[0] teamgroup.id tg_id_str[1] user_id tg_id_str[2] goods_id | ||
116 | + switch(tg_id_str.length){ | ||
117 | + case 1: | ||
118 | + tg_id=tg_id_str[0]; | ||
119 | + break; | ||
120 | + case 2: | ||
121 | + tg_id=tg_id_str[0]; | ||
122 | + first_leader=tg_id_str[1]; | ||
123 | + break; | ||
124 | + case 3: | ||
125 | + tg_id=tg_id_str[0]; | ||
126 | + first_leader=tg_id_str[1]; | ||
127 | + goods_id=tg_id_str[2]; | ||
128 | + break; | ||
129 | + } | ||
130 | + } | ||
131 | + //--判断一下是不是导购-- | ||
132 | + if(first_leader){ | ||
133 | + getApp().globalData.first_leader=first_leader; | ||
134 | + //调用接口判断是不是会员 | ||
135 | + getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ | ||
136 | + if(res.data.code==0){ | ||
137 | + getApp().globalData.guide_id=res.data.data.id; | ||
138 | + getApp().globalData.guide_pick_id= res.data.data.pickup_id | ||
139 | + } | ||
140 | + }) | ||
141 | + } | ||
142 | + this.setData({tg_id: tg_id,goods_id}); | ||
143 | + getApp().globalData.to_group=null; | ||
144 | + | ||
145 | + var th=this; | ||
146 | + getApp().getConfig2(function(e) { | ||
147 | + var json_d = JSON.parse(e.switch_list); | ||
148 | + th.setData({ bconfig: e,sys_switch:json_d}); | ||
149 | + th.wait_for_store_config(); //获取默认的门店 | ||
150 | + }) | ||
151 | + try { | ||
152 | + let template_id =await getApp().get_template_id('1023') | ||
153 | + this.setData({ | ||
154 | + template_id | ||
155 | + }) | ||
156 | + } catch (error) {} | ||
157 | + | ||
158 | + }, | ||
159 | + | ||
160 | + //显示加载 | ||
161 | + onShow:function(){ | ||
162 | + //-- 看一下隐私政策要不要显示 -- | ||
163 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
164 | + if (privacy_pop) { | ||
165 | + privacy_pop.check_pri_show(); | ||
166 | + } | ||
167 | + | ||
168 | + getApp().check_can_share(); | ||
169 | + var tg_id = this.data.tg_id,th=this; | ||
170 | + this.init(tg_id); | ||
171 | + }, | ||
172 | + | ||
173 | + //c点击打开拼团弹窗 | ||
174 | + cpd: function() { | ||
175 | + this.setData({ pd_xx: true,}) | ||
176 | + }, | ||
177 | + | ||
178 | + //点击关闭拼团弹窗 | ||
179 | + close_pt_xx: function() { | ||
180 | + this.setData({ pd_xx: false, }) | ||
181 | + }, | ||
182 | + //天天拼团订阅消息提醒 | ||
183 | + sendsm: function (ee) { | ||
184 | + let th = this; | ||
185 | + var template_id = this.data.template_id; | ||
186 | + // //授权订阅 | ||
187 | + wx.requestSubscribeMessage({ | ||
188 | + tmplIds: template_id, | ||
189 | + success(res) { | ||
190 | + th.cyijian(ee); | ||
191 | + }, | ||
192 | + fail(res) { | ||
193 | + th.cyijian(ee); | ||
194 | + } | ||
195 | + }) | ||
196 | + }, | ||
197 | + //按钮点击一键参加团按钮 | ||
198 | + cyijian: function(e) { | ||
199 | + //--先判断会员状态-- | ||
200 | + var user_info=getApp().globalData.userInfo; | ||
201 | + if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){ | ||
202 | + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | ||
203 | + return false; | ||
204 | + } | ||
205 | + | ||
206 | + var is_kt_or_ct=e.currentTarget.dataset.isct; | ||
207 | + this.setData({ | ||
208 | + yijian: true,is_kt_or_ct:is_kt_or_ct, | ||
209 | + }) | ||
210 | + }, | ||
211 | + //关闭展开列表 | ||
212 | + click: function(e) { | ||
213 | + this.setData({ | ||
214 | + hiddenName: !this.data.hiddenName, | ||
215 | + zk: !this.data.zk, | ||
216 | + }) | ||
217 | + }, | ||
218 | + //打开收起拼团列表 | ||
219 | + czk: function(e) { | ||
220 | + this.setData({ | ||
221 | + zk: !this.data.zk, | ||
222 | + hiddenName: !this.data.hiddenName, | ||
223 | + }) | ||
224 | + }, | ||
225 | + //关闭购买页面 | ||
226 | + cbcou: function(e) { | ||
227 | + this.setData({ | ||
228 | + yijian: false, | ||
229 | + }) | ||
230 | + | ||
231 | + }, | ||
232 | + //qh点击取货 | ||
233 | + cqh: function(e) { | ||
234 | + if(this.data.ssl) { | ||
235 | + this.setData({ | ||
236 | + qh: false, | ||
237 | + xz: true, | ||
238 | + one: true, | ||
239 | + }) | ||
240 | + }else{ | ||
241 | + this.setData({ | ||
242 | + qh: false, | ||
243 | + xz: true, | ||
244 | + one: false, | ||
245 | + list:1, | ||
246 | + }) | ||
247 | + } | ||
248 | + | ||
249 | + }, | ||
250 | + | ||
251 | + //cxz点击选择门店 | ||
252 | + cxz: function(e) { | ||
253 | + this.setData({ | ||
254 | + qh: true, | ||
255 | + xz: false, | ||
256 | + one: false, | ||
257 | + }) | ||
258 | + }, | ||
259 | + //ccc点击选择的 | ||
260 | + sel: function(e) { | ||
261 | + this.setData({ | ||
262 | + list: false, | ||
263 | + se: false, | ||
264 | + one: true, | ||
265 | + xz: true, | ||
266 | + }) | ||
267 | + }, | ||
268 | + //list点击底二层 | ||
269 | + clist: function(e) { | ||
270 | + var i = e.currentTarget.dataset.end; | ||
271 | + var pick_id = e.currentTarget.dataset.pick_id; | ||
272 | + var pick_dis = e.currentTarget.dataset.pick_dis; | ||
273 | + | ||
274 | + this.setData({ | ||
275 | + end_name: i, | ||
276 | + pick_id: pick_id, | ||
277 | + ii: 1, | ||
278 | + qh: true, | ||
279 | + se: false, | ||
280 | + list: false, | ||
281 | + pick_dis: pick_dis | ||
282 | + }) | ||
283 | + }, | ||
284 | + | ||
285 | + //点击第一层 | ||
286 | + setchild: function(e) { | ||
287 | + var ind = e.currentTarget.dataset.bindex; | ||
288 | + var nn = e.currentTarget.dataset.bname; | ||
289 | + console.log(nn); | ||
290 | + var list = this.data.ssl[ind].s_arr; | ||
291 | + this.setData({ | ||
292 | + ssl_child: list, | ||
293 | + sele_dl_name: nn, | ||
294 | + xz: false, | ||
295 | + one: false, | ||
296 | + list: true, | ||
297 | + se: true | ||
298 | + }); | ||
299 | + }, | ||
300 | + | ||
301 | + //事件处理函数 | ||
302 | + /*点击减号*/ | ||
303 | + bindMinus: function() { | ||
304 | + var num = this.data.num; | ||
305 | + if (num > 1) { | ||
306 | + num--; | ||
307 | + } | ||
308 | + var minusStatus = num > 1 ? 'normal' : 'disable'; | ||
309 | + this.setData({ | ||
310 | + num: num, | ||
311 | + minusStatus: minusStatus, | ||
312 | + }) | ||
313 | + }, | ||
314 | + | ||
315 | + /*点击加号*/ | ||
316 | + bindPlus: function() { | ||
317 | + var th=this; | ||
318 | + var num = this.data.num; | ||
319 | + var ii = this.data.ii; | ||
320 | + var minusStatus = num > 1 ? 'normal' : 'disable'; | ||
321 | + | ||
322 | + num++; | ||
323 | + //要判断库存数量,限购数量 | ||
324 | + th.check_num(num,minusStatus); | ||
325 | + | ||
326 | + }, | ||
327 | + | ||
328 | + async check_num(num,minusStatus){ | ||
329 | + | ||
330 | + var gd=this.data.goods; | ||
331 | + var th=this; | ||
332 | + var user_id=getApp().globalData.user_id; | ||
333 | + var promgoodsbuynum=0; | ||
334 | + var goodsbuynum=0; | ||
335 | + getApp().request.promiseGet("/api/weshop/ordergoods/getUserBuyGoodsNum", { | ||
336 | + data: { | ||
337 | + store_id: os.stoid, | ||
338 | + user_id: user_id, | ||
339 | + goods_id: gd.goods_id, | ||
340 | + prom_type: gd.prom_type, | ||
341 | + prom_id: gd.prom_id, isnew:1 | ||
342 | + | ||
343 | + }, | ||
344 | + }).then(res=>{ | ||
345 | + var buy_num_data=res.data.data; | ||
346 | + if(buy_num_data.promgoodsbuynum) promgoodsbuynum=buy_num_data.promgoodsbuynum; | ||
347 | + goodsbuynum=buy_num_data.goodsbuynum; | ||
348 | + }) | ||
349 | + | ||
350 | + //先判断限购 | ||
351 | + if (num+goodsbuynum>gd.viplimited && gd.viplimited>0) { | ||
352 | + getApp().confirmBox("超出商品限购"); | ||
353 | + return false; | ||
354 | + } | ||
355 | + if (num+promgoodsbuynum>th.data.teamlist.buy_limit && th.data.teamlist.buy_limit>0) { | ||
356 | + getApp().confirmBox("超出活动限购"); | ||
357 | + return false; | ||
358 | + } | ||
359 | + //判断库存 | ||
360 | + if ( num>gd.store_count) { | ||
361 | + getApp().confirmBox("超出商品库存"); | ||
362 | + return false; | ||
363 | + } | ||
364 | + var r_num=0; | ||
365 | + await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/6/" + th.data.teamlist.id, { | ||
366 | + 1: 1 | ||
367 | + }).then(res => { | ||
368 | + var em = res; | ||
369 | + if (em.data.code == 0) { | ||
370 | + r_num=em.data.data; | ||
371 | + } | ||
372 | + }) | ||
373 | + //--判断库存--- | ||
374 | + if ( num>r_num) { | ||
375 | + getApp().confirmBox("超出商品库存"); | ||
376 | + return false; | ||
377 | + } | ||
378 | + | ||
379 | + this.setData({ | ||
380 | + num: num, | ||
381 | + minusStatus: minusStatus, | ||
382 | + }) | ||
383 | + | ||
384 | + }, | ||
385 | + | ||
386 | + /*输入框事件*/ | ||
387 | + bindManual: function(e) { | ||
388 | + var num = e.detail.value; | ||
389 | + var minusStatus = num > 1 ? 'normal' : 'disable'; | ||
390 | + this.setData({ | ||
391 | + num: num, | ||
392 | + minusStatus: minusStatus | ||
393 | + }) | ||
394 | + }, | ||
395 | + | ||
396 | + //---------------初始化代码---------------- | ||
397 | + async init(tg_id) { | ||
398 | + var goods_id = 0, //商品ID, | ||
399 | + pageteam = null, // | ||
400 | + original_img = null, //商品图片 | ||
401 | + ee = this, | ||
402 | + ordertx = [], | ||
403 | + teamlist = null, //活动表 | ||
404 | + goods = null, //商品 | ||
405 | + teamgroup = null, //活動从表 | ||
406 | + max_num = 0, | ||
407 | + min_price = 0, | ||
408 | + th=this, | ||
409 | + that=th, | ||
410 | + flag=null; | ||
411 | + await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/2",{ | ||
412 | + data:{ | ||
413 | + store_id: os.stoid, | ||
414 | + is_end: 0, | ||
415 | + is_show: 1, | ||
416 | + user_id: getApp().globalData.user_id, | ||
417 | + pageSize:1000 | ||
418 | + } | ||
419 | + }).then(res=>{ | ||
420 | + let pd_list=res.data.data.pageData; | ||
421 | + if(res.data.code==0 && pd_list.length>0){ | ||
422 | + flag =pd_list.some(pd=>{ | ||
423 | + // if(th.data.goods_id){ | ||
424 | + return pd.goods_id==th.data.goods_id; | ||
425 | + // } | ||
426 | + }) | ||
427 | + } | ||
428 | + }) | ||
429 | + if(!flag){ | ||
430 | + wx.showToast({title: "当前会员身份不符,无法参与", icon: 'none', duration: 3000}); | ||
431 | + setTimeout(function () { | ||
432 | + ut.wx_back(); | ||
433 | + }, 1000) | ||
434 | + return false; | ||
435 | + } | ||
436 | + | ||
437 | + //获取活动从表信息team_id,listno团编号(券号) | ||
438 | + await getApp().request.promiseGet("/api/weshop/teamgroup/get/"+os.stoid+"/"+tg_id, { | ||
439 | + }).then(res => { | ||
440 | + | ||
441 | + if(res.data.code !=0 ){ | ||
442 | + getApp().showWarning(res.data.msg); | ||
443 | + th.go_back(); | ||
444 | + return false; | ||
445 | + } | ||
446 | + | ||
447 | + if(res.data && res.data.data ) { | ||
448 | + | ||
449 | + teamgroup = res.data.data; | ||
450 | + //获取当前时间,并且判断剩余时间 | ||
451 | + var nt = ut.gettimestamp(); | ||
452 | + var buy_start_date = ut.formatTime(teamgroup.buy_start_date, "yyyy-MM-dd hh:mm:ss"); | ||
453 | + ee.setData({ | ||
454 | + pindGoods: teamgroup, | ||
455 | + buy_start_date: buy_start_date | ||
456 | + }); | ||
457 | + | ||
458 | + if(nt>teamgroup.kt_end_time) { | ||
459 | + th.setData({is_group_end:1,end_text:"团期已经结束"}) | ||
460 | + } | ||
461 | + if(teamgroup.state==1) { | ||
462 | + th.setData({is_group_end:1,end_text:"团期已经结束"}) | ||
463 | + } | ||
464 | + if(teamgroup.state==3 || teamgroup.state==4 || teamgroup.state==5 ) { | ||
465 | + th.setData({is_group_end:2,end_text:"团期已满"}) | ||
466 | + } | ||
467 | + | ||
468 | + } | ||
469 | + }) | ||
470 | + | ||
471 | + if(!teamgroup || !teamgroup.listno){ | ||
472 | + ut.m_toast('未找到团号'); | ||
473 | + th.go_back(); | ||
474 | + return false; | ||
475 | + } | ||
476 | + | ||
477 | + //判断是不是要继续的开关 | ||
478 | + var is_ok=1; | ||
479 | + | ||
480 | + //要先读取订单,看自己有没有买过该团的商品 | ||
481 | + await getApp().request.promiseGet("/api/weshop/order/page", { | ||
482 | + data: { | ||
483 | + pt_prom_id:teamgroup.team_id, | ||
484 | + user_id: oo.user_id, | ||
485 | + store_id: os.stoid, | ||
486 | + pageSize: 1, | ||
487 | + page: 1 | ||
488 | + } | ||
489 | + }).then(res => { | ||
490 | + var e=res; | ||
491 | + if (e.data.code != 0) { | ||
492 | + getApp().showWarning("读取订单失败"); | ||
493 | + th.go_back(); | ||
494 | + is_ok=0; | ||
495 | + return fasle; | ||
496 | + } | ||
497 | + //--跳转到已经购买的情况-- | ||
498 | + if (e.data.data.pageData.length > 0) { | ||
499 | + var odr = e.data.data.pageData[0]; | ||
500 | + //还未支付 | ||
501 | + if (odr.pt_status == 0 && odr.order_status == 1) { | ||
502 | + wx.navigateTo({ | ||
503 | + url: "/pages/user/order_detail/order_detail?order_id=" + odr.order_id, | ||
504 | + }); | ||
505 | + is_ok=0; | ||
506 | + }else if (odr.pt_status == 1 && odr.order_status == 1){ | ||
507 | + wx.navigateTo({ | ||
508 | + url: "/packageG/pages/team/team_success/team_success?ordersn=" + odr.order_sn, | ||
509 | + }); | ||
510 | + is_ok=0; | ||
511 | + } | ||
512 | + } | ||
513 | + }) | ||
514 | + if(!is_ok) return false; | ||
515 | + | ||
516 | + //获取活动表的信息根据活动team_id | ||
517 | + await getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + teamgroup.team_id, { | ||
518 | + data: {} | ||
519 | + }).then(res => { | ||
520 | + if (res.data.code == 0) { | ||
521 | + teamlist = res.data.data; | ||
522 | + goods_id = res.data.data.goods_id; | ||
523 | + //----------查看阶梯团------------ | ||
524 | + if (teamlist.ct_rylist != "" && teamlist.ct_rylist != null && teamlist.ct_rylist != undefined) { | ||
525 | + var ct_rylist = JSON.parse(teamlist.ct_rylist); | ||
526 | + var max = 0; var pri = 0; | ||
527 | + ct_rylist.forEach(function (val, ind) { | ||
528 | + if (val.rynum > max) { | ||
529 | + max = val.rynum; | ||
530 | + pri = val.price; | ||
531 | + } | ||
532 | + }) | ||
533 | + max_num = max; | ||
534 | + min_price = pri; | ||
535 | + } | ||
536 | + | ||
537 | + } | ||
538 | + }) | ||
539 | + | ||
540 | + if(!teamlist){ | ||
541 | + getApp().showWarning("未找到活动"); | ||
542 | + is_ok=0; | ||
543 | + }else{ | ||
544 | + if(teamlist.is_end==1){ | ||
545 | + getApp().showWarning("拼单活动已经结束"); is_ok=0; | ||
546 | + } | ||
547 | + var now=ut.gettimestamp(); | ||
548 | + if(teamlist.end_time<now && is_ok){ | ||
549 | + getApp().showWarning("拼单活动已经结束"); is_ok=0; | ||
550 | + } | ||
551 | + } | ||
552 | + if(!is_ok) { | ||
553 | + th.go_back(); | ||
554 | + return false; | ||
555 | + } | ||
556 | + | ||
557 | + //多少人参团头像 | ||
558 | + await getApp().request.promiseGet("/api/weshop/order/pagePtList", { | ||
559 | + data: { | ||
560 | + store_id: o.stoid, | ||
561 | + pt_listno: teamgroup.listno, | ||
562 | + } | ||
563 | + }).then(res => { | ||
564 | + ordertx = res.data.data.pageData; | ||
565 | + }) | ||
566 | + | ||
567 | + //获取商品信息 | ||
568 | + await getApp().request.promiseGet("/api/weshop/goods/get/" + os.stoid + "/" + goods_id, { | ||
569 | + }).then(res => { | ||
570 | + //商品地址 | ||
571 | + original_img = ee.data.imageurl + res.data.data.original_img, | ||
572 | + goods = res.data.data | ||
573 | + }) | ||
574 | + | ||
575 | + //显示商品规格 | ||
576 | + var gg = ""; | ||
577 | + if(goods.goods_spec=="null" || goods.goods_spec==null ) goods.goods_spec=""; | ||
578 | + if(goods.goods_color=="null" || goods.goods_color==null) goods.goods_color=""; | ||
579 | + | ||
580 | + if (goods.goods_spec != "" && goods.goods_color != "") { | ||
581 | + gg = goods.goods_spec + "/" + goods.goods_color; | ||
582 | + } else if (goods.goods_spec != "" || goods.goods_color != "") { | ||
583 | + gg = goods.goods_spec + goods.goods_color; | ||
584 | + } else { | ||
585 | + gg = "规格1"; | ||
586 | + } | ||
587 | + goods.gg = gg; | ||
588 | + | ||
589 | + //只装5个 | ||
590 | + var ordertx2 = [], sf_num = 0, ct_nun = teamlist.ct_num; | ||
591 | + if (max_num) { | ||
592 | + ct_nun = parseInt(max_num); | ||
593 | + if (ct_nun < ordertx.length) ct_nun = ordertx.length; | ||
594 | + } | ||
595 | + | ||
596 | + if (ct_nun > 5) ct_nun = 5; | ||
597 | + for (var i = 0; i < ct_nun; i++) { | ||
598 | + if (i >= ordertx.length) sf_num++ | ||
599 | + else | ||
600 | + ordertx2.push(ordertx[i]); | ||
601 | + } | ||
602 | + | ||
603 | + var sf_arr = []; | ||
604 | + for (var i = 0; i < sf_num; i++) { | ||
605 | + sf_arr.push(i); | ||
606 | + } | ||
607 | + | ||
608 | + | ||
609 | + | ||
610 | + if(th.data.is_group_end==1 || th.data.is_group_end==2 ){ | ||
611 | + getApp().confirmBox(th.data.end_text); | ||
612 | + wx.redirectTo({ | ||
613 | + url: "/pages/goods/goodsInfo/goodsInfo?goods_id=" + goods.goods_id, | ||
614 | + }); | ||
615 | + return false; | ||
616 | + } | ||
617 | + | ||
618 | + //--当是会员团的时候才显示倒计时多久可以参团-- | ||
619 | + if(teamlist.kttype==2) { | ||
620 | + //显示判断多久才能购买商品,获取没有支付的会员 | ||
621 | + await getApp().request.promiseGet("/api/weshop/teamgroup/getTeamUser/" + os.stoid + "/" + teamgroup.id, { | ||
622 | + 1: 1 | ||
623 | + }).then(res => { | ||
624 | + var em = res; | ||
625 | + if (em.data.code == 0) { | ||
626 | + var tg_list = em.data.data.split("|"); | ||
627 | + var t_obj = {}; | ||
628 | + t_obj.order_id = tg_list[0]; | ||
629 | + t_obj.time = parseFloat(tg_list[1]) + 5 * 60; //五分钟后 | ||
630 | + t_obj.user_name = tg_list[2]; | ||
631 | + th.setData({tg_arr: t_obj}) | ||
632 | + } | ||
633 | + }) | ||
634 | + } | ||
635 | + | ||
636 | + //获取大家都在团信息 | ||
637 | + await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/"+os.stoid, { | ||
638 | + data: { | ||
639 | + pageSize: 2, | ||
640 | + page: 1, | ||
641 | + store_id: 1, | ||
642 | + is_end: 0, | ||
643 | + is_show: 1 | ||
644 | + } | ||
645 | + }).then(res => { | ||
646 | + if(ut.ajax_ok(res)){ | ||
647 | + pageteam = res.data.data.pageData; | ||
648 | + } | ||
649 | + }); | ||
650 | + | ||
651 | + //-- 获取用户的默认门店 -- | ||
652 | + getApp().get_user_store(function(ee) { | ||
653 | + if(!ee) { | ||
654 | + th.data.fir_def_store={}; //赋值空对象 | ||
655 | + return false; | ||
656 | + } | ||
657 | + | ||
658 | + if(getApp().globalData.is_dj_pk) th.setData({has_def:1}) | ||
659 | + //--定时器推迟一下-- | ||
660 | + | ||
661 | + var appd=getApp().globalData; | ||
662 | + var w_time = setInterval(function() { | ||
663 | + if (that.data.is_get_local_ok == 0) return false; | ||
664 | + if(!th.data.goods) return false; | ||
665 | + var g_distr_type=th.data.goods.distr_type; | ||
666 | + //--如果默认门店的配送方式不对,就不能被选择-- | ||
667 | + if(ee.distr_type!=0 && g_distr_type!=0 && ee.distr_type!=g_distr_type ){ | ||
668 | + //th.data.fir_def_store={}; //赋值空对象 | ||
669 | + //return false; | ||
670 | + ee.is_no_dis=1; | ||
671 | + } | ||
672 | + | ||
673 | + clearInterval(w_time); | ||
674 | + | ||
675 | + var distance = null; | ||
676 | + var e=JSON.parse(JSON.stringify(ee)); | ||
677 | + | ||
678 | + //如果有开启近距离的话,同时距离优不一样了 | ||
679 | + if (that.data.lat != null) { | ||
680 | + //如果经纬度有变化的话 | ||
681 | + if( appd.lat==that.data.lat && appd.lon==that.data.lon && e.distance>0 ){ | ||
682 | + that.data.fir_def_store=e; | ||
683 | + that.setData({ | ||
684 | + def_pick_store: e, | ||
685 | + sto_sele_name: e.pickup_name, | ||
686 | + sto_sele_id: e.pickup_id, | ||
687 | + sto_sele_distr: e.distr_type | ||
688 | + }) | ||
689 | + }else{ | ||
690 | + //要用接口是获取距离,js的计算不准 | ||
691 | + getApp().request.promiseGet("/api/weshop/pickup/list",{ | ||
692 | + data:{store_id:os.stoid,pickup_id:e.pickup_id,lat:th.data.lat,lon: th.data.lon,is_pos: 1}, | ||
693 | + }).then(res=>{ | ||
694 | + if(ut.ajax_ok(res)){ | ||
695 | + e=res.data.data.pageData[0]; | ||
696 | + if (e){ | ||
697 | + appd.pk_store=e; | ||
698 | + that.data.fir_def_store=e; | ||
699 | + that.setData({ | ||
700 | + def_pick_store: e, | ||
701 | + sto_sele_name: e.pickup_name, | ||
702 | + sto_sele_id: e.pickup_id, | ||
703 | + sto_sele_distr: e.distr_type | ||
704 | + }) | ||
705 | + } | ||
706 | + | ||
707 | + } | ||
708 | + }) | ||
709 | + } | ||
710 | + | ||
711 | + //e.distance = distance; | ||
712 | + appd.lat=that.data.lat; | ||
713 | + appd.lon=that.data.lon; | ||
714 | + | ||
715 | + }else{ | ||
716 | + if (e) { | ||
717 | + e.distance = null; | ||
718 | + that.data.fir_def_store=e; | ||
719 | + that.setData({ | ||
720 | + def_pick_store: e, | ||
721 | + sto_sele_name: e.pickup_name, | ||
722 | + sto_sele_id: e.pickup_id, | ||
723 | + sto_sele_distr: e.distr_type | ||
724 | + }) | ||
725 | + } | ||
726 | + } | ||
727 | + | ||
728 | + }, 500) | ||
729 | + | ||
730 | + }); | ||
731 | + | ||
732 | + //获取下redis长度,如果团已经弄完,或者拼单已经卖完 | ||
733 | + //设置值 | ||
734 | + ee.setData({ | ||
735 | + ordertx2: ordertx2, | ||
736 | + ordertx: ordertx, | ||
737 | + teamlist: teamlist, | ||
738 | + teamgroup: teamgroup, | ||
739 | + goods: goods, | ||
740 | + pageteam: pageteam, | ||
741 | + image: original_img, | ||
742 | + is_show:1, | ||
743 | + sf_arr: sf_arr | ||
744 | + }); | ||
745 | + ee.countDown2(); | ||
746 | + //---设置门店--- | ||
747 | + ee.get_sto(); | ||
748 | + //---定时设置一下待支付的订单--- | ||
749 | + ee.time_out(); | ||
750 | + }, | ||
751 | + | ||
752 | + onHide:function(){ | ||
753 | + this.setData({is_show:0,}); | ||
754 | + }, | ||
755 | + go_back:function(){ | ||
756 | + if(getCurrentPages()>1) | ||
757 | + wx.navigateBack({delta: 1}) | ||
758 | + else | ||
759 | + wx.navigateTo({ | ||
760 | + url: "/pages/index/index/index" | ||
761 | + }); | ||
762 | + }, | ||
763 | + //---小于10的格式化函数---- | ||
764 | + timeFormat(param) { | ||
765 | + return param < 10 ? '0' + param : param; | ||
766 | + }, | ||
767 | + countDown2() { | ||
768 | + var th = this; | ||
769 | + // 获取当前时间,同时得到活动结束时间数组 | ||
770 | + var newTime = ut.gettimestamp(); | ||
771 | + var o = this.data.pindGoods; | ||
772 | + var endTime = o.kt_end_time; | ||
773 | + | ||
774 | + let obj = null; | ||
775 | + // 如果活动未结束,对时间进行处理 | ||
776 | + if (endTime - newTime > 0) { | ||
777 | + let time = (endTime - newTime); | ||
778 | + // 获取天、时、分、秒 | ||
779 | + let day = parseInt(time / (60 * 60 * 24)); | ||
780 | + let hou = parseInt(time % (60 * 60 * 24) / 3600); | ||
781 | + let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); | ||
782 | + let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); | ||
783 | + obj = { | ||
784 | + day: this.timeFormat(day), | ||
785 | + hou: this.timeFormat(hou), | ||
786 | + min: this.timeFormat(min), | ||
787 | + sec: this.timeFormat(sec) | ||
788 | + } | ||
789 | + } else { | ||
790 | + //活动已结束,全部设置为'00' | ||
791 | + obj = { | ||
792 | + day: '00', | ||
793 | + hou: '00', | ||
794 | + min: '00', | ||
795 | + sec: '00' | ||
796 | + } | ||
797 | + } | ||
798 | + var txt = "pindGoods.djs"; | ||
799 | + th.setData({ | ||
800 | + obj: obj | ||
801 | + }); | ||
802 | + setTimeout(th.countDown2, 1000); | ||
803 | + }, | ||
804 | + | ||
805 | + //------去支付,购买------- | ||
806 | + go_pay:function () { | ||
807 | + var th=this; | ||
808 | + var def_pick_store=this.data.def_pick_store; | ||
809 | + if(def_pick_store && def_pick_store.pickup_id) { | ||
810 | + th.data.pick_id=def_pick_store.pickup_id; //选择门店 | ||
811 | + th.data.end_name=def_pick_store.pickup_name; | ||
812 | + } | ||
813 | + if (!th.data.pick_id) return s.my_warnning("请选择门店", 0, th); | ||
814 | + if (th.data.pick_id==0) return s.my_warnning("请选择门店", 0, th); | ||
815 | + | ||
816 | + //----判断起购数---- | ||
817 | + var qnum=parseFloat(th.data.teamlist.minbuynum); | ||
818 | + if(qnum>0 && qnum>th.data.num ){ | ||
819 | + getApp().confirmBox("拼团商品至少要买"+qnum+"件!"); | ||
820 | + return false; | ||
821 | + } | ||
822 | + //先判断团的redis数量 | ||
823 | + this.buy_check_redis(function () { | ||
824 | + var arr=th.data.redis_arr; | ||
825 | + if(th.data.num>arr[0]){ | ||
826 | + if(arr[0]>0){ | ||
827 | + getApp().showWarning("超出活动库存"); | ||
828 | + }else{ | ||
829 | + getApp().showWarning("拼单已经抢光"); | ||
830 | + } | ||
831 | + return false; | ||
832 | + } | ||
833 | + if(th.data.teamlist.kttype==2 && 1>arr[1]){ | ||
834 | + getApp().showWarning("拼团已满"); | ||
835 | + return false; | ||
836 | + } | ||
837 | + | ||
838 | + //--------------此时操作的数据------------ | ||
839 | + var newd = { | ||
840 | + goods_id: th.data.goods.goods_id, | ||
841 | + goods_num: th.data.num, | ||
842 | + pick_id: th.data.pick_id, | ||
843 | + user_id: oo.user_id, | ||
844 | + store_id: th.data.stoid, | ||
845 | + goods_name: th.data.goods.goods_name, | ||
846 | + goods_sn: th.data.goods.goods_sn, | ||
847 | + }; | ||
848 | + | ||
849 | + //---是不是从收藏夹出来的--- | ||
850 | + if(th.data.c_guide_id){ | ||
851 | + newd['guide_id'] = th.data.c_guide_id; | ||
852 | + newd['guide_type']=2; | ||
853 | + | ||
854 | + }else{ | ||
855 | + if(getApp().globalData.guide_id){ | ||
856 | + newd['guide_id'] = getApp().globalData.guide_id; | ||
857 | + newd['guide_type']=0; | ||
858 | + | ||
859 | + } | ||
860 | + } | ||
861 | + | ||
862 | + //-----拼团----- | ||
863 | + newd.goods_price = th.data.teamlist.price; | ||
864 | + newd.prom_type = 6; | ||
865 | + newd.prom_id = th.data.teamlist.id; | ||
866 | + newd.kt_type = th.data.teamlist.kttype; //开团类型 | ||
867 | + newd.is_pt_tz = 0; | ||
868 | + newd.pick_name = th.data.end_name; | ||
869 | + newd.pick_dis = 1; | ||
870 | + newd.is_normal = 0; | ||
871 | + //判断开团还是参团 | ||
872 | + switch (th.data.is_kt_or_ct) { | ||
873 | + case "0": | ||
874 | + //如果不是商家团,就要带团期号 | ||
875 | + if(th.data.teamlist.kttype>1){ | ||
876 | + newd.qh=th.data.teamgroup.listno; | ||
877 | + } | ||
878 | + break; | ||
879 | + case "1": | ||
880 | + //阶梯团和会员团都要设置is_pt_tz | ||
881 | + if (newd.kt_type > 1) { | ||
882 | + newd.is_pt_tz = 1; //开团类型 | ||
883 | + } | ||
884 | + break; | ||
885 | + } | ||
886 | + newd['pick_dis'] = th.data.pick_dis; | ||
887 | + | ||
888 | + if(getApp().globalData.guide_id){ | ||
889 | + newd['guide_id'] = getApp().globalData.guide_id; | ||
890 | + newd['guide_type']=0; | ||
891 | + } | ||
892 | + | ||
893 | + s.set_b_now(newd); | ||
894 | + wx.navigateTo({ | ||
895 | + url: "/packageE/pages/cart/cart2_pt/cart2_pt?is_bnow=1&goods_id=" + th.data.goods.goods_id, | ||
896 | + }); | ||
897 | + }); | ||
898 | + }, | ||
899 | + | ||
900 | + //购买前的判断redis | ||
901 | + async buy_check_redis(func){ | ||
902 | + //获取redis中的数量 | ||
903 | + var r_num=0,prom_type=6,prom_id=this.data.teamlist.id; | ||
904 | + await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/" + prom_type + "/" + prom_id, { | ||
905 | + 1: 1 | ||
906 | + }).then(res => { | ||
907 | + var em = res; | ||
908 | + if (em.data.code == 0) { | ||
909 | + r_num=em.data.data; | ||
910 | + } | ||
911 | + }) | ||
912 | + | ||
913 | + //只有会员团要判断团的人数 | ||
914 | + var gr_num=0,grp_id=this.data.teamgroup.id; | ||
915 | + if(this.data.teamlist.kttype==2){ | ||
916 | + await getApp().request.promiseGet("/api/weshop/activitylist/getActTuanLen/" + os.stoid + "/" + grp_id, { | ||
917 | + 1: 1 | ||
918 | + }).then(res => { | ||
919 | + var em = res; | ||
920 | + if (em.data.code == 0) { | ||
921 | + gr_num=em.data.data; | ||
922 | + } | ||
923 | + }) | ||
924 | + } | ||
925 | + var arr=[];arr.push(r_num);arr.push(gr_num); | ||
926 | + this.data.redis_arr=arr; | ||
927 | + func(); | ||
928 | + }, | ||
929 | + | ||
930 | + //定时设置一下待支付的订单 | ||
931 | + time_out:function () { | ||
932 | + var list=this.data.tg_arr,th=this; | ||
933 | + if(!list) return false; | ||
934 | + // 获取当前时间,同时得到活动结束时间数组 | ||
935 | + var newTime = ut.gettimestamp(); | ||
936 | + var endTime = list.time; | ||
937 | + | ||
938 | + let obj = null; | ||
939 | + // 如果活动未结束,对时间进行处理 | ||
940 | + if (endTime - newTime > 0) { | ||
941 | + let time = (endTime - newTime); | ||
942 | + // 获取天、时、分、秒 | ||
943 | + let day = parseInt(time / (60 * 60 * 24)); | ||
944 | + let hou = parseInt(time % (60 * 60 * 24) / 3600); | ||
945 | + let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); | ||
946 | + let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); | ||
947 | + obj = { | ||
948 | + day: th.timeFormat(day), | ||
949 | + hou: th.timeFormat(hou), | ||
950 | + min: th.timeFormat(min), | ||
951 | + sec: th.timeFormat(sec) | ||
952 | + } | ||
953 | + } else { | ||
954 | + //活动已结束,全部设置为'00' | ||
955 | + obj = { | ||
956 | + day: '00', | ||
957 | + hou: '00', | ||
958 | + min: '00', | ||
959 | + sec: '00' | ||
960 | + } | ||
961 | + | ||
962 | + //调用接口清理订单,并且返回redis数量 | ||
963 | + th.back_order(function () { | ||
964 | + th.setData({ tg_arr: null}); | ||
965 | + }); | ||
966 | + return false; | ||
967 | + } | ||
968 | + var txt = "pindGoods.djs"; | ||
969 | + th.setData({ | ||
970 | + r_obj: obj | ||
971 | + }); | ||
972 | + setTimeout(th.time_out, 1000); | ||
973 | + }, | ||
974 | + | ||
975 | + //清理订单,并且返回redis数量ss | ||
976 | + back_order:function (func) { | ||
977 | + var th=this; | ||
978 | + //---取消订单--- | ||
979 | + getApp().request.delete("/api/weshop/order/cancelTeamOrder/"+th.data.stoid+"/"+th.data.tg_arr.order_id,{ | ||
980 | + data:{}, | ||
981 | + success: function(t) { | ||
982 | + if(t.data.code==0){ | ||
983 | + th.setData({tg_arr:null}) | ||
984 | + } | ||
985 | + }, | ||
986 | + }) | ||
987 | + }, | ||
988 | + | ||
989 | + go_goodsinfo:function (e) { | ||
990 | + var gid=e.currentTarget.dataset.gid; | ||
991 | + var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+gid; | ||
992 | + wx.navigateTo({ url: url, }) //跳到非tabbar页 | ||
993 | + }, | ||
994 | + | ||
995 | + gohome:function(){ | ||
996 | + getApp().goto("/pages/index/index/index"); | ||
997 | + }, | ||
998 | + | ||
999 | + //-----图片失败,默认图片----- | ||
1000 | + bind_bnerr: function (e) { | ||
1001 | + var _errImg = e.target.dataset.errorimg; | ||
1002 | + var _errObj = {}; | ||
1003 | + _errObj[_errImg] = this.data.iurl + "/miniapp/images/default_g_img.gif"; | ||
1004 | + this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; | ||
1005 | + }, | ||
1006 | + | ||
1007 | + //------ 分享配置 -------- | ||
1008 | + onShareAppMessage: function (e) { | ||
1009 | + getApp().globalData.no_clear=1; | ||
1010 | + var curPage=this; | ||
1011 | + var pagePath = curPage.route; //当前页面url | ||
1012 | + if (pagePath.indexOf('/') != 0) { | ||
1013 | + pagePath = '/' + pagePath; | ||
1014 | + } | ||
1015 | + var url=pagePath; | ||
1016 | + | ||
1017 | + //--分享图片-- | ||
1018 | + img=th.data.iurl+th.data.teamlist.share_imgurl; | ||
1019 | + //--把会员分享出去-- | ||
1020 | + if(getApp().globalData.user_id){ | ||
1021 | + if(url.indexOf("?")>0) | ||
1022 | + url+="&first_leader="+getApp().globalData.user_id; | ||
1023 | + else | ||
1024 | + url+="?first_leader="+getApp().globalData.user_id; | ||
1025 | + } | ||
1026 | + | ||
1027 | + if(url.indexOf('goods_id')==-1){ | ||
1028 | + url+="&goods_id="+this.data.goods.goods_id; | ||
1029 | + } | ||
1030 | + if(url.indexOf('tg_id')==-1){ | ||
1031 | + url+="&tg_id="+this.data.teamgroup.id; | ||
1032 | + } | ||
1033 | + | ||
1034 | + | ||
1035 | + return { | ||
1036 | + path:url, | ||
1037 | + title: "商品分类", | ||
1038 | + imageUrl: img, | ||
1039 | + } | ||
1040 | + }, | ||
1041 | + | ||
1042 | + | ||
1043 | + | ||
1044 | + | ||
1045 | + | ||
1046 | + closeSpecModal: function() { | ||
1047 | + this.setData({ | ||
1048 | + yijian: false | ||
1049 | + }); | ||
1050 | + }, | ||
1051 | + | ||
1052 | + close_popup: function() { | ||
1053 | + this.setData({ | ||
1054 | + showStore: true | ||
1055 | + }); | ||
1056 | + }, | ||
1057 | + | ||
1058 | + | ||
1059 | + | ||
1060 | + //-- 选择门店。此时的门店选择与门店有关系 -- | ||
1061 | + choice_store: function(ee) { | ||
1062 | + | ||
1063 | + //--先判断会员状态-- | ||
1064 | + var user_info = getApp().globalData.userInfo; | ||
1065 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
1066 | + wx.navigateTo({ | ||
1067 | + url: '/packageE/pages/togoin/togoin', | ||
1068 | + }) | ||
1069 | + return false; | ||
1070 | + } | ||
1071 | + | ||
1072 | + var th = this; | ||
1073 | + var bconfig = th.data.bconfig; | ||
1074 | + | ||
1075 | + //如果开启了,则不在选择门店 | ||
1076 | + if(this.data.sys_switch.is_pricing_open_store && getApp().globalData.pk_store){ | ||
1077 | + return false; | ||
1078 | + } | ||
1079 | + | ||
1080 | + if(!th.data.only_pk && !th.data.def_pickpu_list){ | ||
1081 | + getApp().confirmBox("门店库存不足", null, 25000, !1); | ||
1082 | + return false; | ||
1083 | + } | ||
1084 | + if(th.data.only_pk && !th.data.only_pk.length){ | ||
1085 | + getApp().confirmBox("门店库存不足", null, 25000, !1); | ||
1086 | + return false; | ||
1087 | + } | ||
1088 | + if(th.data.def_pickpu_list && !th.data.def_pickpu_list.length){ | ||
1089 | + getApp().confirmBox("门店库存不足", null, 25000, !1); | ||
1090 | + return false; | ||
1091 | + } | ||
1092 | + | ||
1093 | + if ( bconfig && bconfig.is_sort_storage) { | ||
1094 | + wx.getLocation({ | ||
1095 | + type: 'gcj02', | ||
1096 | + success: function(res) { | ||
1097 | + | ||
1098 | + th.data.lat = res.latitude; | ||
1099 | + th.data.lon = res.longitude; | ||
1100 | + th.data.is_get_local_ok = 1; | ||
1101 | + th.setData({ | ||
1102 | + is_gps: 1 | ||
1103 | + }); | ||
1104 | + //th.onShow(); | ||
1105 | + th.get_sto(); | ||
1106 | + }, | ||
1107 | + fail: function(res) { | ||
1108 | + //th.onShow(); | ||
1109 | + th.data.is_get_local_ok = 1; | ||
1110 | + th.get_sto(); | ||
1111 | + if (res.errCode == 2) { | ||
1112 | + th.setData({ | ||
1113 | + is_gps: 0 | ||
1114 | + }); | ||
1115 | + if (th.data.is_gps == 0) { | ||
1116 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
1117 | + } | ||
1118 | + } else { | ||
1119 | + th.setData({ | ||
1120 | + is_gps: "3" | ||
1121 | + }); | ||
1122 | + } | ||
1123 | + | ||
1124 | + } | ||
1125 | + }) | ||
1126 | + }else{ | ||
1127 | + th.data.is_get_local_ok = 1; | ||
1128 | + th.get_sto(); | ||
1129 | + } | ||
1130 | + | ||
1131 | + this.setData({ | ||
1132 | + store: 1, | ||
1133 | + yijian: false, | ||
1134 | + choice_sort_store:0 | ||
1135 | + }) | ||
1136 | + | ||
1137 | + }, | ||
1138 | + | ||
1139 | + | ||
1140 | + //选择更多门店 | ||
1141 | + more_store: function() { | ||
1142 | + this.setData({ sort_store: 1}); | ||
1143 | + }, | ||
1144 | + | ||
1145 | + // 返回按钮 | ||
1146 | + returns: function() { | ||
1147 | + this.setData({ | ||
1148 | + sort_store: 0,choice_sort_store: 0 | ||
1149 | + }); | ||
1150 | + }, | ||
1151 | + | ||
1152 | + | ||
1153 | + //-- 等待获取定位系统 -- | ||
1154 | + wait_for_store_config: function() { | ||
1155 | + var th = this; | ||
1156 | + var t_time = setInterval(function() { | ||
1157 | + if (th.data.bconfig == null) false; | ||
1158 | + var e = th.data.bconfig; | ||
1159 | + if (e && e.is_sort_storage) { | ||
1160 | + wx.getLocation({ | ||
1161 | + type: 'gcj02', | ||
1162 | + success: function(res) { | ||
1163 | + th.data.lat = res.latitude; | ||
1164 | + th.data.lon = res.longitude; | ||
1165 | + th.data.is_get_local_ok = 1; | ||
1166 | + }, | ||
1167 | + fail: function(res) { | ||
1168 | + if (res.errCode == 2) { | ||
1169 | + th.setData({ | ||
1170 | + is_gps: 0 | ||
1171 | + }); | ||
1172 | + if (th.data.is_gps == 0) { | ||
1173 | + getApp().confirmBox("请开启GPS定位", null, 10000, !1); | ||
1174 | + } | ||
1175 | + | ||
1176 | + } else { | ||
1177 | + th.setData({ | ||
1178 | + is_gps: "3" | ||
1179 | + }); | ||
1180 | + } | ||
1181 | + | ||
1182 | + th.data.is_get_local_ok = 1; | ||
1183 | + } | ||
1184 | + }) | ||
1185 | + } else { | ||
1186 | + th.data.is_get_local_ok = 1; | ||
1187 | + } | ||
1188 | + clearInterval(t_time); | ||
1189 | + }, 500) | ||
1190 | + }, | ||
1191 | + | ||
1192 | + | ||
1193 | + //---------拿出门店分类和门店------------ | ||
1194 | + get_sto(e) { | ||
1195 | + var th = this,that=this; | ||
1196 | + var timer_get = setInterval(function() { | ||
1197 | + if (th.data.is_get_local_ok == 0) return false; | ||
1198 | + if (!th.data.goods) return false; | ||
1199 | + var dd = null, | ||
1200 | + i = getApp().request; | ||
1201 | + var g_distr_type = th.data.goods.distr_type; | ||
1202 | + if (g_distr_type != 0) { | ||
1203 | + dd = { | ||
1204 | + store_id: o.stoid, | ||
1205 | + distr_type: g_distr_type, | ||
1206 | + isstop: 0, | ||
1207 | + is_pos: 1, | ||
1208 | + pageSize: 2000 | ||
1209 | + } | ||
1210 | + } else { | ||
1211 | + dd = { | ||
1212 | + store_id: o.stoid, | ||
1213 | + isstop: 0, | ||
1214 | + is_pos: 1, | ||
1215 | + pageSize: 2000 | ||
1216 | + } | ||
1217 | + } | ||
1218 | + //如果有距离的话 | ||
1219 | + if (th.data.lat != null) { | ||
1220 | + dd.lat = th.data.lat; | ||
1221 | + dd.lon = th.data.lon; | ||
1222 | + } | ||
1223 | + clearInterval(timer_get); | ||
1224 | + | ||
1225 | + //如果会员是有默认的门店话 | ||
1226 | + if(!th.data.def_pick_store && th.data.fir_def_store){ | ||
1227 | + th.setData({def_pick_store:th.data.fir_def_store}); | ||
1228 | + } | ||
1229 | + | ||
1230 | + //----------获取门店---------------- | ||
1231 | + getApp().request.promiseGet("/api/weshop/pickup/list", { | ||
1232 | + data: dd, | ||
1233 | + }).then(res => { | ||
1234 | + var e = res; | ||
1235 | + if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length>0) { | ||
1236 | + | ||
1237 | + var pickup_ids=null; | ||
1238 | + //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 | ||
1239 | + if( th.data.teamlist.pick_up_lists){ | ||
1240 | + pickup_ids=th.data.teamlist.pick_up_lists | ||
1241 | + } | ||
1242 | + | ||
1243 | + //-- 如果有指定门店的时候 -- | ||
1244 | + if(pickup_ids){ | ||
1245 | + var ok_arr=[]; | ||
1246 | + for (let i in e.data.data.pageData) { | ||
1247 | + let ite = e.data.data.pageData[i]; | ||
1248 | + //-- 查找一下门店有没有在 -- | ||
1249 | + var idx=pickup_ids.findIndex(function (e){ | ||
1250 | + return e.pickup_id==ite.pickup_id; | ||
1251 | + }) | ||
1252 | + if(idx>-1){ | ||
1253 | + ok_arr.push(ite) | ||
1254 | + } | ||
1255 | + } | ||
1256 | + | ||
1257 | + //判断会员的默认的门店是不是匹配指定的门店 | ||
1258 | + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | ||
1259 | + //-- 查找一下门店有没有在 -- | ||
1260 | + var idx1=pickup_ids.findIndex(function (e){ | ||
1261 | + return e.pickup_id==th.data.def_pick_store.pickup_id; | ||
1262 | + }) | ||
1263 | + | ||
1264 | + if(idx1<0){ | ||
1265 | + th.data.def_pick_store.is_no_dis_act=1; | ||
1266 | + }else{ | ||
1267 | + th.data.def_pick_store.is_no_dis_act=0; | ||
1268 | + } | ||
1269 | + | ||
1270 | + that.setData({ | ||
1271 | + def_pick_store: th.data.def_pick_store | ||
1272 | + }) | ||
1273 | + | ||
1274 | + } | ||
1275 | + e.data.data.pageData=ok_arr; //数组重新赋值 | ||
1276 | + e.data.data.total=ok_arr.length; //数组的长度 | ||
1277 | + } | ||
1278 | + else{ | ||
1279 | + //-- 多规格指定门店优化 -- | ||
1280 | + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | ||
1281 | + th.data.def_pick_store.is_no_dis_act=0; | ||
1282 | + that.setData({ | ||
1283 | + def_pick_store: th.data.def_pick_store | ||
1284 | + }) | ||
1285 | + } | ||
1286 | + } | ||
1287 | + | ||
1288 | + | ||
1289 | + | ||
1290 | + var his_cate_num=0; | ||
1291 | + for(let i in e.data.data.pageData){ | ||
1292 | + let item=e.data.data.pageData[i]; | ||
1293 | + if(item.category_id>0){ | ||
1294 | + his_cate_num=1;break; | ||
1295 | + } | ||
1296 | + } | ||
1297 | + e.his_cate_num=his_cate_num; | ||
1298 | + | ||
1299 | + //如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店 | ||
1300 | + if(dd.lat && !th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage){ | ||
1301 | + th.setData({ | ||
1302 | + def_pick_store:e.data.data.pageData[0], | ||
1303 | + sto_sele_name: e.data.data.pageData[0].pickup_name, | ||
1304 | + sto_sele_id: e.data.data.pageData[0].pickup_id, | ||
1305 | + sto_sele_distr: e.data.data.pageData[0].distr_type | ||
1306 | + }); | ||
1307 | + th.data.fir_def_store=e.data.data.pageData[0]; | ||
1308 | + } | ||
1309 | + | ||
1310 | + //-- 如果有默认选择门店的时候,要把默认门店放在第一位 -- | ||
1311 | + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store)!='{}'){ | ||
1312 | + for (var k = 0; k < e.data.data.pageData.length; k++) { | ||
1313 | + if (e.data.data.pageData[k].pickup_id == th.data.def_pick_store.pickup_id) { | ||
1314 | + e.data.data.pageData.splice(k, 1); //删除 | ||
1315 | + break; | ||
1316 | + } | ||
1317 | + } | ||
1318 | + e.data.data.pageData.splice(0, 0, th.data.def_pick_store); //添加 | ||
1319 | + } | ||
1320 | + | ||
1321 | + | ||
1322 | + th.setData({all_pick_list:e.data.data.pageData}); | ||
1323 | + | ||
1324 | + | ||
1325 | + setTimeout(function(){ | ||
1326 | + th.deal_pickup(e); //--普通门店排版-- | ||
1327 | + },800) | ||
1328 | + | ||
1329 | + } | ||
1330 | + }) | ||
1331 | + }, 200) | ||
1332 | + | ||
1333 | + }, | ||
1334 | + | ||
1335 | + //------------处理门店,拼团活动只有线上库存--------------- | ||
1336 | + deal_pickup(e){ | ||
1337 | + var th=this; | ||
1338 | + var g_distr_type=th.data.goods.distr_type; | ||
1339 | + //单总量超出5个的时候 | ||
1340 | + if (e.data.data.total > 10 && e.his_cate_num) { | ||
1341 | + getApp().request.get("/api/weshop/storagecategory/page", { | ||
1342 | + data: { | ||
1343 | + store_id: o.stoid, | ||
1344 | + pageSize: 1000, | ||
1345 | + orderField:"sort", | ||
1346 | + orderType:'asc', | ||
1347 | + }, | ||
1348 | + success: function(ee) { | ||
1349 | + if (ee.data.code == 0) { | ||
1350 | + | ||
1351 | + var check_all_cate=0; | ||
1352 | + if (ee.data.data && ee.data.data.pageData && ee.data.data.pageData.length > 0){ | ||
1353 | + for(let i in ee.data.data.pageData){ | ||
1354 | + let item=ee.data.data.pageData[i]; | ||
1355 | + if(item.is_show==1){ | ||
1356 | + check_all_cate=1;break | ||
1357 | + } | ||
1358 | + } | ||
1359 | + } | ||
1360 | + | ||
1361 | + | ||
1362 | + | ||
1363 | + if (check_all_cate) { | ||
1364 | + | ||
1365 | + var sto_cate = ee.data.data.pageData; | ||
1366 | + var sto_arr = e.data.data.pageData; | ||
1367 | + var newarr = new Array(); | ||
1368 | + var qita = new Array(); | ||
1369 | + | ||
1370 | + var is_del_pk=0; | ||
1371 | + //----要进行门店分组-------- | ||
1372 | + for (var i = 0; i < sto_arr.length; i++) { | ||
1373 | + //找一下这个门店有没有在分类数组内 | ||
1374 | + var find2 = 0,find2name = "",sort=0; | ||
1375 | + is_del_pk=0; | ||
1376 | + for (var m = 0; m < sto_cate.length; m++) { | ||
1377 | + if (sto_arr[i].category_id == sto_cate[m].cat_id) { | ||
1378 | + if(sto_cate[m].is_show!=1){ | ||
1379 | + is_del_pk=1; sto_arr.splice(i,1); | ||
1380 | + i--; | ||
1381 | + }else { | ||
1382 | + find2 = sto_cate[m].cat_id; | ||
1383 | + find2name = sto_cate[m].cat_name; | ||
1384 | + sort = sto_cate[m].sort; | ||
1385 | + is_del_pk=0; | ||
1386 | + } | ||
1387 | + break; | ||
1388 | + } | ||
1389 | + } | ||
1390 | + if(is_del_pk) continue; | ||
1391 | + | ||
1392 | + if (newarr.length > 0) { | ||
1393 | + var find = 0; | ||
1394 | + //如果有找到,那门店就在这个分组内,否则,分类就要排在其他 | ||
1395 | + if (find2 != 0) { | ||
1396 | + for (var ii = 0; ii < newarr.length; ii++) { | ||
1397 | + if (sto_arr[i].category_id == newarr[ii].cat_id) { | ||
1398 | + newarr[ii].s_arr.push(sto_arr[i]); | ||
1399 | + find = 1; | ||
1400 | + break; | ||
1401 | + } | ||
1402 | + } | ||
1403 | + if (find == 0) { | ||
1404 | + var arr0 = new Array(); | ||
1405 | + arr0.push(sto_arr[i]); | ||
1406 | + var item = { | ||
1407 | + cat_id: find2, | ||
1408 | + name: find2name, | ||
1409 | + sort:sort, | ||
1410 | + s_arr: arr0 | ||
1411 | + }; | ||
1412 | + newarr.push(item); | ||
1413 | + } | ||
1414 | + } else { | ||
1415 | + qita.push(sto_arr[i]); | ||
1416 | + } | ||
1417 | + } else { | ||
1418 | + //如果有找到,那门店就在这个分组内,否则,分类就要排在其他 | ||
1419 | + if (find2 != 0) { | ||
1420 | + var arr0 = new Array(); | ||
1421 | + arr0.push(sto_arr[i]); | ||
1422 | + var item = { | ||
1423 | + cat_id: find2, | ||
1424 | + name: find2name, | ||
1425 | + sort:sort, | ||
1426 | + s_arr: arr0 | ||
1427 | + }; | ||
1428 | + newarr.push(item); | ||
1429 | + } else { | ||
1430 | + qita.push(sto_arr[i]); | ||
1431 | + } | ||
1432 | + } | ||
1433 | + } | ||
1434 | + | ||
1435 | + var def_arr = new Array(); | ||
1436 | + //-- 开始就看10个门店 -- | ||
1437 | + for (var k = 0; k < 10; k++) { | ||
1438 | + if (k == sto_arr.length) break; | ||
1439 | + def_arr.push(sto_arr[k]); | ||
1440 | + } | ||
1441 | + | ||
1442 | + th.setData({ | ||
1443 | + def_pickpu_list: def_arr, | ||
1444 | + pickpu_list: ee.data.data.pageData | ||
1445 | + }); | ||
1446 | + | ||
1447 | + //门店分类要排序下 | ||
1448 | + function compare(property){ | ||
1449 | + return function(a,b){ | ||
1450 | + var value1 = a[property]; | ||
1451 | + var value2 = b[property]; | ||
1452 | + return value1 - value2; | ||
1453 | + } | ||
1454 | + } | ||
1455 | + if(newarr.length>0) | ||
1456 | + newarr.sort(compare("sort")); | ||
1457 | + | ||
1458 | + | ||
1459 | + //----安排其他的分类----- | ||
1460 | + if (qita.length > 0) { | ||
1461 | + var item = { | ||
1462 | + cat_id: -1, | ||
1463 | + name: "其他", | ||
1464 | + s_arr: qita | ||
1465 | + }; | ||
1466 | + newarr.push(item); | ||
1467 | + } | ||
1468 | + | ||
1469 | + var sd={ | ||
1470 | + all_sto: newarr, | ||
1471 | + is_show_sto_cat:1 | ||
1472 | + } | ||
1473 | + if(!sto_arr || sto_arr.length<=10){ | ||
1474 | + sd.is_show_sto_cat=-1; | ||
1475 | + sd.only_pk=sto_arr; | ||
1476 | + } | ||
1477 | + th.setData(sd); | ||
1478 | + | ||
1479 | + } else { | ||
1480 | + th.setData({ | ||
1481 | + is_show_sto_cat: -1, | ||
1482 | + only_pk: e.data.data.pageData | ||
1483 | + }); | ||
1484 | + //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------ | ||
1485 | + if (!th.data.def_pick_store) { | ||
1486 | + th.setData({def_pick_store:e.data.data.pageData[0]}) | ||
1487 | + } | ||
1488 | + } | ||
1489 | + } else { | ||
1490 | + th.setData({ | ||
1491 | + is_show_sto_cat: -1, | ||
1492 | + only_pk: e.data.data.pageData | ||
1493 | + }); | ||
1494 | + //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------ | ||
1495 | + if (!th.data.def_pick_store) { | ||
1496 | + th.setData({def_pick_store:e.data.data.pageData[0]}) | ||
1497 | + } | ||
1498 | + | ||
1499 | + } | ||
1500 | + } | ||
1501 | + }); | ||
1502 | + } else { | ||
1503 | + th.setData({ | ||
1504 | + is_show_sto_cat: 0, | ||
1505 | + only_pk: e.data.data.pageData | ||
1506 | + }); | ||
1507 | + //-----如果没有默认门店,要取第一个门店作为默认店------ | ||
1508 | + if (!th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage) { | ||
1509 | + th.setData({ | ||
1510 | + def_pick_store:e.data.data.pageData[0], | ||
1511 | + sto_sele_name: e.data.data.pageData[0].pickup_name, | ||
1512 | + sto_sele_id: e.data.data.pageData[0].pickup_id, | ||
1513 | + sto_sele_distr: e.data.data.pageData[0].distr_type | ||
1514 | + }) | ||
1515 | + } | ||
1516 | + } | ||
1517 | + }, | ||
1518 | + | ||
1519 | + | ||
1520 | + | ||
1521 | + //---选择分类门店--- | ||
1522 | + choice_sort_store: function(e) { | ||
1523 | + var index = e.currentTarget.dataset.index; | ||
1524 | + var region_name = e.currentTarget.dataset.region; | ||
1525 | + var item = this.data.all_sto[index]; | ||
1526 | + this.setData({ | ||
1527 | + region_name: region_name, | ||
1528 | + sort_store: 0, | ||
1529 | + choice_sort_store: 1, | ||
1530 | + sec_sto: item, | ||
1531 | + sec_pick_index: 0, | ||
1532 | + }); | ||
1533 | + }, | ||
1534 | + | ||
1535 | + choose_for_store_fir: function(e) { | ||
1536 | + var index_c = e.currentTarget.dataset.ind; | ||
1537 | + var th=this; | ||
1538 | + th.setData({ | ||
1539 | + fir_pick_index: index_c | ||
1540 | + }) | ||
1541 | + }, | ||
1542 | + | ||
1543 | + //---点击二级之后的选择--- | ||
1544 | + choose_for_store: function(e) { | ||
1545 | + var index_c = e.currentTarget.dataset.ind; | ||
1546 | + var th=this; | ||
1547 | + th.setData({ | ||
1548 | + sec_pick_index: index_c, | ||
1549 | + fir_pick_index: index_c | ||
1550 | + }) | ||
1551 | + | ||
1552 | + }, | ||
1553 | + | ||
1554 | + //确定def_pick为选择的门店 | ||
1555 | + sure_pick: function(e) { | ||
1556 | + var th = this; | ||
1557 | + var item = null; | ||
1558 | + | ||
1559 | + if (th.data.choice_sort_store == 0) { | ||
1560 | + var index = th.data.fir_pick_index; | ||
1561 | + if (th.data.is_show_sto_cat == 1) { | ||
1562 | + item = th.data.def_pickpu_list[index]; | ||
1563 | + } else { | ||
1564 | + item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候 | ||
1565 | + } | ||
1566 | + | ||
1567 | + } else { | ||
1568 | + var index = th.data.sec_pick_index; | ||
1569 | + item = th.data.sec_sto.s_arr[index]; | ||
1570 | + } | ||
1571 | + if(!item) return false; | ||
1572 | + | ||
1573 | + | ||
1574 | + th.setData({ | ||
1575 | + def_pick_store: item, | ||
1576 | + sto_sele_name: item.pickup_name, | ||
1577 | + sto_sele_id: item.pickup_id, | ||
1578 | + sto_sele_distr: item.distr_type, | ||
1579 | + store: 0, | ||
1580 | + choice_sort_store: 0, | ||
1581 | + fir_pick_index: 0 | ||
1582 | + }); | ||
1583 | + | ||
1584 | + | ||
1585 | + th.setData({ | ||
1586 | + yijian: 1, //打开拼团购买界面 | ||
1587 | + store: 0, //关闭门店 | ||
1588 | + choice_sort_store: 0, //关闭门店2级 | ||
1589 | + sort_store: 0, //关闭门店2级 | ||
1590 | + }); | ||
1591 | + | ||
1592 | + | ||
1593 | + }, | ||
1594 | + | ||
1595 | + | ||
1596 | + | ||
1597 | + //把选择的门店设置成默认的门店def_pick | ||
1598 | + set_def_pick: function(e) { | ||
1599 | + var th = this; | ||
1600 | + var item = null; | ||
1601 | + if (th.data.choice_sort_store == 0) { | ||
1602 | + var index = th.data.fir_pick_index; | ||
1603 | + if (th.data.is_show_sto_cat == 1) { | ||
1604 | + item = th.data.def_pickpu_list[index]; | ||
1605 | + } else { | ||
1606 | + item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候 | ||
1607 | + } | ||
1608 | + } else { | ||
1609 | + var index = th.data.sec_pick_index; | ||
1610 | + item = th.data.sec_sto.s_arr[index]; | ||
1611 | + } | ||
1612 | + | ||
1613 | + if(!item) return false; | ||
1614 | + | ||
1615 | + | ||
1616 | + var store_id = o.stoid; | ||
1617 | + var user_id = getApp().globalData.user_id; | ||
1618 | + var def_pickup_id = item.pickup_id; | ||
1619 | + | ||
1620 | + getApp().request.put('/api/weshop/users/update', { | ||
1621 | + data: { | ||
1622 | + user_id, | ||
1623 | + def_pickup_id | ||
1624 | + }, | ||
1625 | + success: function(res) { | ||
1626 | + if (res.data.code == 0) { | ||
1627 | + if (th.data.choice_sort_store == 0) th.setData({ | ||
1628 | + fir_pick_index: 0 | ||
1629 | + }); | ||
1630 | + getApp().globalData.pk_store = item; | ||
1631 | + } else { | ||
1632 | + getApp().my_warnning("设置默认门店地址失败",0,th) | ||
1633 | + } | ||
1634 | + | ||
1635 | + } | ||
1636 | + }); | ||
1637 | + | ||
1638 | + th.setData({ | ||
1639 | + def_pick_store: item, | ||
1640 | + sto_sele_name: item.pickup_name, | ||
1641 | + sto_sele_id: item.pickup_id, | ||
1642 | + sto_sele_distr: item.distr_type, | ||
1643 | + store: 0, | ||
1644 | + choice_sort_store: 0 | ||
1645 | + }); | ||
1646 | + | ||
1647 | + //4就是拼团 | ||
1648 | + th.setData({ | ||
1649 | + yijian: 1, //打开拼团购买界面 | ||
1650 | + store: 0, //关闭门店 | ||
1651 | + choice_sort_store: 0, //关闭门店2级 | ||
1652 | + sort_store: 0, //关闭门店2级 | ||
1653 | + }); | ||
1654 | + | ||
1655 | + }, | ||
1656 | + | ||
1657 | + | ||
1658 | + //-- 关闭选择门店 -- | ||
1659 | + close_popup: function(e) { | ||
1660 | + var th=this; | ||
1661 | + this.setData({ | ||
1662 | + store: 0, | ||
1663 | + choice_sort_store: 0, | ||
1664 | + sort_store: 0, | ||
1665 | + fir_pick_index:0, | ||
1666 | + sec_pick_index:0, | ||
1667 | + yijian: 1, //打开拼团购买界面 | ||
1668 | + }) | ||
1669 | + | ||
1670 | + }, | ||
1671 | + | ||
1672 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
1673 | + agree_pri:function (){ | ||
1674 | + var th=this; | ||
1675 | + var bconfig = th.data.bconfig; | ||
1676 | + if (bconfig && bconfig.is_sort_storage) { | ||
1677 | + wx.getLocation({ | ||
1678 | + type: 'gcj02', | ||
1679 | + success: function (res) { | ||
1680 | + th.data.lat = res.latitude; | ||
1681 | + th.data.lon = res.longitude; | ||
1682 | + th.data.is_get_local_ok = 1; | ||
1683 | + th.setData({ | ||
1684 | + is_gps: 1 | ||
1685 | + }); | ||
1686 | + //th.onShow(); | ||
1687 | + th.get_sto(); | ||
1688 | + }, | ||
1689 | + fail: function (res) { | ||
1690 | + //th.onShow(); | ||
1691 | + th.data.is_get_local_ok = 1; | ||
1692 | + th.get_sto(); | ||
1693 | + if (res.errCode == 2) { | ||
1694 | + th.setData({ | ||
1695 | + is_gps: 0 | ||
1696 | + }); | ||
1697 | + if (th.data.is_gps == 0) { | ||
1698 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
1699 | + } | ||
1700 | + } else { | ||
1701 | + th.setData({ | ||
1702 | + is_gps: "3" | ||
1703 | + }); | ||
1704 | + } | ||
1705 | + | ||
1706 | + } | ||
1707 | + }) | ||
1708 | + } | ||
1709 | + }, | ||
1710 | + | ||
1711 | + | ||
1712 | + | ||
1713 | + | ||
1714 | +}) | ||
0 | \ No newline at end of file | 1715 | \ No newline at end of file |
packageG/pages/team/team_show/team_show.json
0 → 100644
1 | +{ | ||
2 | + "windom": { | ||
3 | + "navigationBarTitleText": "拼团订单", | ||
4 | + "backgroundTextStyle": "light", | ||
5 | + "navigationBarTextStyle": "white", | ||
6 | + "navigationBarBackgroundColor": "#ffffff", | ||
7 | + "backgroundColor": "#eeeeee" | ||
8 | + }, | ||
9 | + "usingComponents": { | ||
10 | + "warn": "/components/long_warn/long_warn", | ||
11 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
12 | + } | ||
13 | +} | ||
0 | \ No newline at end of file | 14 | \ No newline at end of file |
packageG/pages/team/team_show/team_show.wxml
0 → 100644
1 | +<!-- 判断隐私是不是显示 --> | ||
2 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
3 | + | ||
4 | +<wxs module="filters" src="../../../utils/filter.wxs"></wxs> | ||
5 | +<!---- //文字"--> | ||
6 | +<view wx:if="{{is_show}}"> | ||
7 | + | ||
8 | + <!--图片区域--> | ||
9 | + <view class='center'> | ||
10 | + <view class='cenleft'> | ||
11 | + <image src='{{image}}' binderror='bind_bnerr' data-errorimg='image'></image> | ||
12 | + </view> | ||
13 | + <view class='cenright'> | ||
14 | + <view class='cenrt'> | ||
15 | + | ||
16 | + <view class='xc-goods-details ellipsis-2 fs28'> | ||
17 | + <span>{{goods.goods_name}}</span> | ||
18 | + </view> | ||
19 | + </view> | ||
20 | + <view class='cenrcen flex-vertical-between'> | ||
21 | + <view> | ||
22 | + <view class="fs40 xc-wc" style='font-size:40rpx'> | ||
23 | + <span class="fs28" style="font-weight:500;">¥</span>{{teamlist.price}}</view> | ||
24 | + <view class="fs22 word-line xc-wc"> | ||
25 | + ¥{{goods.shop_price}} | ||
26 | + </view> | ||
27 | + </view> | ||
28 | + <view class="xc-wc fs24"> | ||
29 | + <view> | ||
30 | + <view class="">已拼{{teamlist.buy_num}}件</view> | ||
31 | + <view class="flex xc-valframe t-c"> | ||
32 | + <view class="xc-frame-img"> | ||
33 | + <image class="picture" src="{{imageurl}}/miniapp/images/bai-ren.png"></image> | ||
34 | + </view> | ||
35 | + <view style='margin-left:9rpx;'> | ||
36 | + {{teamlist.ct_num}}人拼 | ||
37 | + </view> | ||
38 | + </view> | ||
39 | + </view> | ||
40 | + </view> | ||
41 | + </view> | ||
42 | + </view> | ||
43 | + </view> | ||
44 | + | ||
45 | + <view class='body oh'> | ||
46 | + <!-- 等待团员 --> | ||
47 | + <!-- <view class='bodytop' wx:if="{{teamlist.kt_type==3}}"> --> | ||
48 | + <!-- 拼团成功 --> | ||
49 | + <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==2}}"> | ||
50 | + | ||
51 | + <view class="xc-wc">拼团成功</view>,为您节省<text class="xc-wc">25</text>元 | ||
52 | + <view class="xc-img-frame oh" wx:if="{{val==2}}"> | ||
53 | + <image class="img" src="{{imageurl}}/miniapp/images/xc_qtcg.png"></image> | ||
54 | + </view> | ||
55 | + </view> | ||
56 | + <!-- 拼团失败 --> | ||
57 | + <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==3}}"> | ||
58 | + <view class="xc-wc xc-end">拼团失败</view> | ||
59 | + <view class="xc-img-frames oh iw" wx:if="{{val==3}}"> | ||
60 | + <image class="img " src="{{imageurl}}/miniapp/images/xc-qtshibai.png"></image> | ||
61 | + </view> | ||
62 | + </view> | ||
63 | + <!--头像--> | ||
64 | + <view class="flex_tou"> | ||
65 | + <view class='bodyimg flex-level' wx:for="{{ordertx2}}" wx:key> | ||
66 | + <view class='d'> | ||
67 | + <image src='{{item.head_pic}}'></image> | ||
68 | + <span wx:if="{{item.is_pt_tz==1}}">团长</span> | ||
69 | + </view> | ||
70 | + </view> | ||
71 | + <view class='d' wx:for="{{sf_arr}}"> | ||
72 | + <image src='{{iurl}}/miniapp/images/shafa.png' style='width:100%; height:100%'></image> | ||
73 | + </view> | ||
74 | + <view class='xc-ellipsis-img' wx:if="{{ordertx.length>5}}"> | ||
75 | + <image style='width:56rpx;height:56rpx;margin-left:10rpx;' src="{{imageurl}}/miniapp/images/xc_ellipsis.png"></image> | ||
76 | + </view> | ||
77 | + | ||
78 | + | ||
79 | + </view> | ||
80 | + | ||
81 | + <view class='bodytime'> | ||
82 | + <!--/ //旁边直线--> | ||
83 | + <view class='bodytimeleft'> | ||
84 | + <view class='xian'></view> | ||
85 | + </view> | ||
86 | + <!--/ // //时间--> | ||
87 | + <!--许程 <view class='bodytimecen' wx:if='{{obj}}'> --> | ||
88 | + <view class='bodytimecen'> | ||
89 | + 剩余 | ||
90 | + <span wx:if="{{obj.day!=0}}"> {{obj.day}} </span>: | ||
91 | + <span> {{obj.hou}} </span>: | ||
92 | + <span> {{obj.min}} </span>: | ||
93 | + <span> {{obj.sec}} </span>结束 | ||
94 | + </view> | ||
95 | + | ||
96 | + | ||
97 | + <!----/ 旁边直线----> | ||
98 | + <view class='bodytimeright'> | ||
99 | + <view class='xian'></view> | ||
100 | + </view> | ||
101 | + </view> | ||
102 | + | ||
103 | + <view style='height:50rpx;width:100%' wx:if="{{val==1}}"></view> | ||
104 | + <!--如果团还没有满--> | ||
105 | + <block wx:if="{{tg_arr==null}}"> | ||
106 | + <!--按钮--> | ||
107 | + <view wx:if="{{is_group_end==0}}" class='bodybutton white fs32'> | ||
108 | + <view class="xc-good-friend" bindtap='sendsm' data-isct="0">去参团</view> | ||
109 | + <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
110 | + </view> | ||
111 | + <view wx:elif="{{teamlist.kttype>1}}" class='bodybutton' bindtap='sendsm' data-isct="1"> | ||
112 | + <view class="xc-good-friend">一键参团</view> | ||
113 | + <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
114 | + </view> | ||
115 | + <view wx:else class='bodybutton' bindtap='sendsm' data-isct="1"> | ||
116 | + <view class="xc-good-friend">一键参团</view> | ||
117 | + <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
118 | + </view> | ||
119 | + </block> | ||
120 | + <block wx:else> | ||
121 | + <view class="show_zf_dd"> | ||
122 | + <view>会员'{{tg_arr.user_name}}'待付款,若{{r_obj.min}}分{{r_obj.sec}}秒后该会员未支付您可以继续参团哦!</view> | ||
123 | + </view> | ||
124 | + | ||
125 | + <view class='bodybutton white fs32'> | ||
126 | + <view class="xc-good-friend co-w" data-isct="0">去参团</view> | ||
127 | + <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
128 | + </view> | ||
129 | + | ||
130 | + </block> | ||
131 | + | ||
132 | + </view> | ||
133 | + <!--展开拼团列表--> | ||
134 | + <view class='mck'> | ||
135 | + <view class='bodyfoot'> | ||
136 | + <view class='bodyselect' wx:if="{{zk}}" bindtap='czk'> | ||
137 | + <span>展开拼团列表 | ||
138 | + <view class='down-arrow'></view> | ||
139 | + </span> | ||
140 | + </view> | ||
141 | + <!----收起拼团列表----> | ||
142 | + <view class='zhangxi' wx:if="{{hiddenName}}"> | ||
143 | + | ||
144 | + <view class='zspan' bindtap='click'>收起拼团列表 | ||
145 | + <view class='down-arrow1'></view> | ||
146 | + </view> | ||
147 | + | ||
148 | + <view class="ia" wx:for="{{ordertx}}" wx:for-index="ky"> | ||
149 | + <view class='img'> | ||
150 | + <image src='{{item.head_pic}}'></image> | ||
151 | + <span>{{item.nickname}}</span> | ||
152 | + </view> | ||
153 | + <view class='zssj' wx:if="{{ky==0}}">{{item.add_time_date}} 开团</view> | ||
154 | + <view class='zssj' wx:else>{{item.add_time_date}} 参团</view> | ||
155 | + </view> | ||
156 | + </view> | ||
157 | + </view> | ||
158 | + </view> | ||
159 | + <!----//拼团玩法----> | ||
160 | + <!-- <view class='pintuan' bindtap="cpd"> | ||
161 | + <view class='pintuanzhou'>拼团玩法</view> | ||
162 | + <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view> | ||
163 | + </view> --> | ||
164 | + <!--大家都在团--> | ||
165 | + <view class='goodslist'> | ||
166 | + <view class='goodslisttop'> | ||
167 | + <span class='goodslistspan'>大家都在团</span> | ||
168 | + <view class='goodslisttopright'></view> | ||
169 | + </view> | ||
170 | + <view class="changxin"> | ||
171 | + <view class='onegoods' wx:for='{{pageteam}}' wx:key="{{index}}" bindtap="go_goodsinfo" data-gid="{{item.goods_id}}"> | ||
172 | + <view class='onegoodsimg'> | ||
173 | + <image src="{{imageurl+item.share_imgurl}}"></image> | ||
174 | + </view> | ||
175 | + <view class='onegoodsdesc'> | ||
176 | + <text>{{item.goods_name}}</text> | ||
177 | + </view> | ||
178 | + <view class='price'> | ||
179 | + <view class='jgleft'>¥{{item.price}}</view> | ||
180 | + <view class='jgright'>{{item.ct_num}}人 | ||
181 | + <span>参团</span> | ||
182 | + </view> | ||
183 | + </view> | ||
184 | + </view> | ||
185 | + </view> | ||
186 | + </view> | ||
187 | +</view> | ||
188 | + | ||
189 | +<!--弹出购物模块--> | ||
190 | +<view class="pop_up" wx:if="{{yijian}}"> | ||
191 | + <view> | ||
192 | + | ||
193 | + <!----弹起来,选择规格数量,拼单商品购买------> | ||
194 | + <!-- <view> --> | ||
195 | + <!-- <view hidden="{{!openSpecModal_pt}}"> --> | ||
196 | + <view bindtap="closeSpecModal" class="cover-layer"></view> | ||
197 | + <view class="spec-model"> | ||
198 | + <view class="pding"> | ||
199 | + <icon bindtap="closeSpecModal" class="modal-close" color="gray" size="22" type="cancel"></icon> | ||
200 | + <!-- 商品名称 --> | ||
201 | + <view class="spec-goods"> | ||
202 | + <image class="wh100 spec-img xc-distance-bottom" src="{{image}}" binderror="pop_err_img" data-errorimg="data.original_img"></image> | ||
203 | + <view class="spec-goods-info"> | ||
204 | + <view class="spec-goods-name ellipsis-1">{{goods.goods_name}}</view> | ||
205 | + <view class="flex ai_end xc-val-money"> | ||
206 | + <view class="spec-goods-price"> | ||
207 | + <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text> | ||
208 | + </view> | ||
209 | + </view> | ||
210 | + <view class="flex"> | ||
211 | + <view class="spec-goods-stock">已售:{{teamlist.buy_num}}</view> | ||
212 | + <view class="spec-goods-stock">可售:{{teamlist.goods_num-teamlist.buy_num}}</view> | ||
213 | + </view> | ||
214 | + </view> | ||
215 | + </view> | ||
216 | + | ||
217 | + <view style="clear: both"></view> | ||
218 | + <view style="margin-top: 20rpx"> | ||
219 | + <view class="flex-space-between address ai_end xc-width "> | ||
220 | + | ||
221 | + <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> | ||
222 | + <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> | ||
223 | + | ||
224 | + <view class="distance fs24 xc-ash" wx:if="{{def_pick_store.distance!=null}}"> | ||
225 | + 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} | ||
226 | + </view> | ||
227 | + </view> | ||
228 | + | ||
229 | + | ||
230 | + <view class="flex" bindtap="choice_store" wx:else> | ||
231 | + <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image> | ||
232 | + <view class="fs28 xc-ash-9f">选择门店</view> | ||
233 | + </view> | ||
234 | + | ||
235 | + <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store">更多门店<text class="right-arrow"></text></view> | ||
236 | + | ||
237 | + | ||
238 | + </view> | ||
239 | + <view class="no_store" wx:if="{{def_pick_store && def_pick_store.is_no_dis}}">(配送不匹配)</view> | ||
240 | + <view class="no_store" wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}">(该店不可售)</view> | ||
241 | + <view class="fs24 xc-ash-9f xc-distance-top " wx:elif="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view> | ||
242 | + | ||
243 | + </view> | ||
244 | + <!-- 商品的属性项目 --> | ||
245 | + <view> | ||
246 | + <view hidden="{{ismend==1}}" class="spec-name">商品规格</view> | ||
247 | + <block> | ||
248 | + <view hidden="{{ismend==1}}" class="flex"> | ||
249 | + <view class="spec_bt act" >{{goods.gg}} | ||
250 | + </view> | ||
251 | + </view> | ||
252 | + </block> | ||
253 | + <view class="clear"></view> | ||
254 | + </view> | ||
255 | + | ||
256 | + <view> | ||
257 | + <view class="b_num" hidden="{{ismend==1}}" style="margin-top: 20rpx"> | ||
258 | + <view>购买数量</view> | ||
259 | + <view class="count"> | ||
260 | + <view bindtap="{{num <= 1 ? '':'bindMinus'}}" class="sub {{num <= 1 ? 'active':''}}">-</view> | ||
261 | + <!-- <view class='{{minusStatus}}' bindtap="bindMinus" class="sub">-</view> --> | ||
262 | + <input bindblur="bindManual" class="xc-val-fream" type="number" value="{{num}}">1</input> | ||
263 | + <view bindtap="bindPlus" class="add">+</view> | ||
264 | + </view> | ||
265 | + </view> | ||
266 | + | ||
267 | + <!-- <view class="clear"></view> --> | ||
268 | + | ||
269 | + </view> | ||
270 | + </view> | ||
271 | + | ||
272 | + <view class="pt_qd"> | ||
273 | + <view wx:if="{{def_pick_store && def_pick_store.is_no_dis}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">配送不匹配</view> | ||
274 | + <view wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">该店不可售</view> | ||
275 | + <view wx:else bindtap="go_pay" class="spec-cart-btn spec-buy w100" data-action="buy">确定</view> | ||
276 | + </view> | ||
277 | + | ||
278 | + </view> | ||
279 | + <!-- </view> --> | ||
280 | + | ||
281 | + </view> | ||
282 | +</view> | ||
283 | + | ||
284 | +<!-- 选择门店的弹框,1.1版最新的 --> | ||
285 | +<block wx:if="{{store==1}}"> | ||
286 | + <view class="mongolia-layer" bindtap="close_popup"></view> | ||
287 | + <view class="popup-frame"> | ||
288 | + <block wx:if="{{sort_store==0}}"> | ||
289 | + <!-- 头部 标题 --> | ||
290 | + <view class="popup-top flex-space-between"> | ||
291 | + <text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':region_name}}</text> | ||
292 | + <view> | ||
293 | + <view> | ||
294 | + <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon> | ||
295 | + </view> | ||
296 | + <view class="felx choose_more" bindtap="more_store" wx:if="{{is_show_sto_cat>0}}"> | ||
297 | + <text class="fs26 red-co">{{choice_sort_store==0?'更多门店':'返回'}}</text> | ||
298 | + <view class="bg_rights"></view> | ||
299 | + </view> | ||
300 | + </view> | ||
301 | + </view> | ||
302 | + <!-- 门店列表,最外层的门店列表,一开始 --> | ||
303 | + <view class="store-list"> | ||
304 | + <!--如果还没有点击更多门店的时候 --> | ||
305 | + <block wx:if="{{choice_sort_store==0}}"> | ||
306 | + <!-- 需要for循环 --> | ||
307 | + <block wx:if="{{is_show_sto_cat==1}}"> | ||
308 | + <view class="store_choose flex" wx:for="{{def_pickpu_list}}" bindtap="choose_for_store_fir" data-ind="{{index}}"> | ||
309 | + <view class="store flex-vertical"> | ||
310 | + <!-- 需要点击事件 --> | ||
311 | + <block wx:if="{{index==fir_pick_index}}"> | ||
312 | + <view class="circle white xc-hook fs20 red-b">Г</view> | ||
313 | + </block> | ||
314 | + <block wx:else> | ||
315 | + <view class="circle xc-hooks"></view> | ||
316 | + </block> | ||
317 | + <view class="address-frame xc-ash"> | ||
318 | + <view class="flex-vertical-between butttem5"> | ||
319 | + <view class="flex xc-ash"> | ||
320 | + <view class="fs30 xc-black3 address_name">{{item.pickup_name}} | ||
321 | + <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text> | ||
322 | + <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text> | ||
323 | + </view> | ||
324 | + </view> | ||
325 | + <view> | ||
326 | + <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}"> | ||
327 | + 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}</view> | ||
328 | + </view> | ||
329 | + </view> | ||
330 | + <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view> | ||
331 | + </view> | ||
332 | + </view> | ||
333 | + </view> | ||
334 | + </block> | ||
335 | + <block wx:else> | ||
336 | + <view class="store_choose flex" wx:for="{{only_pk}}" bindtap="choose_for_store_fir" data-ind="{{index}}"> | ||
337 | + <view class="store flex-vertical"> | ||
338 | + <!-- 需要点击事件 --> | ||
339 | + <block wx:if="{{index==fir_pick_index}}" > | ||
340 | + <view class="circle white xc-hook fs20 red-b">Г</view> | ||
341 | + </block> | ||
342 | + <block wx:else> | ||
343 | + <view class="circle xc-hooks"></view> | ||
344 | + </block> | ||
345 | + | ||
346 | + <view class="address-frame xc-ash"> | ||
347 | + <view class="flex-vertical-between "> | ||
348 | + <view class="flex xc-ash"> | ||
349 | + <view class="fs30 xc-black3 address_name">{{item.pickup_name}} | ||
350 | + <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text> | ||
351 | + <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text> | ||
352 | + </view> | ||
353 | + </view> | ||
354 | + <view> | ||
355 | + <view class="distance fs24 address-val" | ||
356 | + wx:if="{{item.distance!=null}}">距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}} | ||
357 | + </view> | ||
358 | + </view> | ||
359 | + </view> | ||
360 | + <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view> | ||
361 | + </view> | ||
362 | + </view> | ||
363 | + </view> | ||
364 | + </block> | ||
365 | + </block> | ||
366 | + <block wx:else> <!-- 如果是点击选择门店分类后显示分类下的门店 --> | ||
367 | + <view class="store_choose flex" wx:for="{{sec_sto.s_arr}}" data-ind="{{index}}" bindtap="choose_for_store"> | ||
368 | + <view class="store flex-vertical"> | ||
369 | + <!-- 需要点击事件 --> | ||
370 | + <block wx:if="{{index==sec_pick_index}}"> | ||
371 | + <view class="circle white xc-hook fs20 red-b">Г</view> | ||
372 | + </block> | ||
373 | + <block wx:else> | ||
374 | + <view class="circle xc-hooks"></view> | ||
375 | + </block> | ||
376 | + | ||
377 | + <view class="address-frame xc-ash"> | ||
378 | + <view class="flex-vertical-between "> | ||
379 | + <view class="flex xc-ash"> | ||
380 | + <view class="fs28 xc-black3 address_name">{{item.pickup_name}} | ||
381 | + <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text> | ||
382 | + <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text> | ||
383 | + </view> | ||
384 | + </view> | ||
385 | + <view> | ||
386 | + <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}"> | ||
387 | + 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}</view> | ||
388 | + </view> | ||
389 | + </view> | ||
390 | + <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view> | ||
391 | + </view> | ||
392 | + </view> | ||
393 | + </view> | ||
394 | + </block> | ||
395 | + | ||
396 | + </view> | ||
397 | + | ||
398 | + <!-- 门店列表底部 --> | ||
399 | + <view class="store-bottom-frame"> | ||
400 | + <view class="store-bottom flex-vertical-between"> | ||
401 | + <view class="determine red-b fs28 white t-c" bindtap="sure_pick" | ||
402 | + data-openindstore="{{open_ind_store}}">确定</view> | ||
403 | + <view class="default t-c fs28" bindtap="set_def_pick"data-openindstore="{{open_ind_store}}">设为默认</view> | ||
404 | + </view> | ||
405 | + </view> | ||
406 | + | ||
407 | + </block> | ||
408 | + | ||
409 | + | ||
410 | + <block wx:else> | ||
411 | + <view class="popup-top flex-space-between"> | ||
412 | + <text class="fs32 nearby_store">门店分类选择</text> | ||
413 | + <view> | ||
414 | + <view><icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon></view> | ||
415 | + <view class="felx choose_mores" bindtap="returns"><text class="fs26 red-co">返回</text></view> | ||
416 | + </view> | ||
417 | + </view> | ||
418 | + <view class="sort_store_list"> | ||
419 | + <view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store" data-region="{{item.name}}"> | ||
420 | + <view class="sort-store flex-vertical-between" > | ||
421 | + <view class="fs30" di>{{item.name}}</view> | ||
422 | + <view class="black_rights-frame"> | ||
423 | + <view class="black_rights"></view> | ||
424 | + </view> | ||
425 | + </view> | ||
426 | + </view> | ||
427 | + | ||
428 | + </view> | ||
429 | + </block> | ||
430 | + </view> | ||
431 | +</block> | ||
432 | + | ||
433 | + | ||
434 | + | ||
435 | + | ||
436 | + | ||
437 | + | ||
438 | +<!-- <view class='buy-option'> --> | ||
439 | +<!--头部图片--> | ||
440 | +<!-- <view class='buy-top'> | ||
441 | + <view class='buy-image mimg'> | ||
442 | + <image src='{{image}}'></image> | ||
443 | + <view> | ||
444 | + <view> | ||
445 | + <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text> | ||
446 | + </view> | ||
447 | + <view class="ellipsis-2"> | ||
448 | + {{goods.goods_name}} | ||
449 | + </view> | ||
450 | + </view> | ||
451 | + | ||
452 | + </view> | ||
453 | + | ||
454 | + <view class='buy-cou' bindtap='cbcou'>⊗</view> | ||
455 | + <view class='clear'></view> | ||
456 | + </view> --> | ||
457 | + | ||
458 | +<!--取货门店--> | ||
459 | +<!-- <view class='quhuo' wx:if="{{qh}}" bindtap='cqh'> --> | ||
460 | +<!--当ii==0请选择门店显示,ii==1最后名字显示--> | ||
461 | +<!-- <text>取货门店</text><view class='end_name' wx:if="{{ii==1 }}">({{end_name}})</view><view wx:if="{{ii==0 }}" class='ttxz'>(请选择门店)</view> | ||
462 | + </view> --> | ||
463 | +<!--选择门店--> | ||
464 | +<!-- <view class='xuanze1' wx:if="{{xz}}" bindtap='cxz'> | ||
465 | + <text decode='true'>< 选择门店</text> | ||
466 | + </view> | ||
467 | + <view class='x-z'> --> | ||
468 | +<!--第一层--> | ||
469 | +<!-- <block wx:if="{{one}}"> | ||
470 | + <view class="fir_view"> | ||
471 | + <view> | ||
472 | + <view class='xuanze' bindtap='setchild' data-bindex='{{bindex}}' data-bname='{{item.name}}' wx:for-index="bindex" wx:for="{{ssl}}" wx:key> | ||
473 | + <text decode='true'>{{item.name}}</text> | ||
474 | + </view> | ||
475 | + </view> | ||
476 | + </view> | ||
477 | + </block> --> | ||
478 | +<!--选择的--> | ||
479 | +<!-- <view class='xuanze1' wx:if="{{se}}" bindtap='sel'><text decode='true'><</text> {{sele_dl_name}}</view> --> | ||
480 | +<!--第二层list--> | ||
481 | +<!-- <block wx:if="{{list}}"> | ||
482 | + <scroll-view scroll-y="true" style="max-height: 460rpx"> | ||
483 | + <view class='xuanze' wx:for="{{ssl_child}}" wx:key bindtap='clist' | ||
484 | + data-pick_dis="{{item.distr_type}}" | ||
485 | + data-end='{{item.pickup_name}}' data-pick_id='{{item.pickup_id}}'> | ||
486 | + <text decode='true'>{{item.pickup_name}}</text> | ||
487 | + </view> | ||
488 | + </scroll-view> | ||
489 | + </block> | ||
490 | + </view> --> | ||
491 | + | ||
492 | +<!--数量--> | ||
493 | +<!-- <view class='buy-button' wx:if="{{qh}}"> | ||
494 | + <text>数量</text> | ||
495 | + <view class='stepper sum'> | ||
496 | + <text class='{{minusStatus}}' type='number' bindtap='bindMinus' class="jiajian">-</text> | ||
497 | + <input bindinput='bindManual' value='{{num}}'></input> | ||
498 | + <text bindtap='bindPlus' class="jiajian">+</text> | ||
499 | + </view> | ||
500 | + <view class='clear'></view> | ||
501 | + </view> --> | ||
502 | + | ||
503 | +<!-- <view class="clear"></view> | ||
504 | + </view> --> | ||
505 | +<!--支付--> | ||
506 | +<!-- <view class='btn' bindtap="go_pay">立即支付</view> --> | ||
507 | +<!-- </view> | ||
508 | +</view> --> | ||
509 | + | ||
510 | +<!--mask吐司内容--> | ||
511 | +<view class="toast_mask" wx:if="{{isShowToast}}"></view> | ||
512 | + | ||
513 | +<!--以下为toast显示的内容--> | ||
514 | +<view class="toast_content_box" wx:if="{{isShowToast}}"> | ||
515 | + <view class="toast_content"> | ||
516 | + <view class="toast_content_text"> | ||
517 | + {{toastText}} | ||
518 | + </view> | ||
519 | + </view> | ||
520 | +</view> | ||
521 | + | ||
522 | +<!--拼团玩法弹出框--> | ||
523 | +<!----弹起的----> | ||
524 | +<block wx:if="{{pd_xx}}"> | ||
525 | + <view class="bview"></view> | ||
526 | + <view class="juzhong"> | ||
527 | + <view class="xq"> | ||
528 | + <view class="title" bindtap="close_pt_xx">拼团玩法介绍 | ||
529 | + <image src="{{iurl}}/miniapp/images/gbi.png" class="close"></image> | ||
530 | + </view> | ||
531 | + <view>1.开团: | ||
532 | + <text class="hs1">选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;</text> | ||
533 | + </view> | ||
534 | + <view>2.参团: | ||
535 | + <text class="hs1">进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;</text> | ||
536 | + </view> | ||
537 | + <view>3.成团: | ||
538 | + <text class="hs1">在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;</text> | ||
539 | + </view> | ||
540 | + <view>4.组团失败: | ||
541 | + <text class="hs1">在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;</text> | ||
542 | + </view> | ||
543 | + <view>5. | ||
544 | + <text class="hs1">组团有效期间内,拼购商品订单不允许取消。 </text> | ||
545 | + </view> | ||
546 | + </view> | ||
547 | + </view> | ||
548 | +</block> | ||
549 | + | ||
550 | +<warn id="warn"></warn> |
packageG/pages/team/team_show/team_show.wxss
0 → 100644
1 | +page { | ||
2 | + background-color: #eee; | ||
3 | +} | ||
4 | + | ||
5 | +.top { | ||
6 | + background-color: rgb(216, 230, 220); | ||
7 | + color: rgb(98, 155, 13); | ||
8 | + text-align: center; | ||
9 | + height: 110rpx; | ||
10 | + width: 100%; | ||
11 | +} | ||
12 | + | ||
13 | +.center { | ||
14 | + height: 240rpx; | ||
15 | + width: 100%; | ||
16 | + background: #fff; | ||
17 | +} | ||
18 | + | ||
19 | +.cenleft { | ||
20 | + width: 240rpx; | ||
21 | + height: 100%; | ||
22 | + float: left; | ||
23 | + display: flex; | ||
24 | + justify-content: center; | ||
25 | + align-items: center; | ||
26 | +} | ||
27 | + | ||
28 | +.cenleft image { | ||
29 | + background-color: white; | ||
30 | + width: 200rpx; | ||
31 | + height: 200rpx; | ||
32 | +} | ||
33 | + | ||
34 | +.cenrt {} | ||
35 | + | ||
36 | +.cenright { | ||
37 | + height: 100%; | ||
38 | + width: auto; | ||
39 | + float: left; | ||
40 | +} | ||
41 | + | ||
42 | +.cenrtoptitle { | ||
43 | + float: left; | ||
44 | + width: 240rpx; | ||
45 | + height: 40rpx; | ||
46 | + margin-left: 12rpx; | ||
47 | + font-size: 28rpx; | ||
48 | + margin-top: 12rpx; | ||
49 | +} | ||
50 | + | ||
51 | +.cenrcen { | ||
52 | + height: 70rpx; | ||
53 | + margin-top: 35rpx; | ||
54 | + width: 479rpx; | ||
55 | +} | ||
56 | + | ||
57 | +.jg { | ||
58 | + font-size: 40rpx; | ||
59 | + margin-right: 30rpx; | ||
60 | +} | ||
61 | + | ||
62 | +.jgx { | ||
63 | + font-size: 24rpx; | ||
64 | + color: #777; | ||
65 | + text-decoration: line-through; | ||
66 | + margin-top: 12rpx; | ||
67 | +} | ||
68 | + | ||
69 | +.cenrfoot { | ||
70 | + align-content: center; | ||
71 | + text-align: center; | ||
72 | + border: 2rpx solid red; | ||
73 | + border-radius: 10rpx; | ||
74 | + color: red; | ||
75 | + float: left; | ||
76 | + font-size: 24rpx; | ||
77 | + padding: 4rpx 16rpx; | ||
78 | + margin-top: 12rpx; | ||
79 | +} | ||
80 | + | ||
81 | +.body { | ||
82 | + background-color: white; | ||
83 | + height: 472rpx; | ||
84 | + width: 100%; | ||
85 | + margin-top: 4rpx; | ||
86 | +} | ||
87 | + | ||
88 | +.d { | ||
89 | + font-size: 24rpx; | ||
90 | +} | ||
91 | + | ||
92 | +.bodytop { | ||
93 | + background-color: white; | ||
94 | + text-align: center; | ||
95 | + font-size: 28rpx; | ||
96 | + padding-top: 16rpx; | ||
97 | + height: 90rpx; | ||
98 | + | ||
99 | +} | ||
100 | + | ||
101 | +.bodytop span { | ||
102 | + color: red; | ||
103 | +} | ||
104 | + | ||
105 | +.bodyimg { | ||
106 | + height: 155rpx; | ||
107 | + /* display: flex; | ||
108 | + justify-content: center; | ||
109 | + align-items: center; */ | ||
110 | + | ||
111 | + | ||
112 | +} | ||
113 | + | ||
114 | +.bodyimg image { | ||
115 | + border-radius: 50rpx; | ||
116 | + height: 96rpx; | ||
117 | + width: 96rpx; | ||
118 | + margin-top: 30rpx; | ||
119 | + position: absolute; | ||
120 | + | ||
121 | +} | ||
122 | + | ||
123 | +.d { | ||
124 | + width: 101rpx; | ||
125 | + height: 101rpx; | ||
126 | + display: inline-block; | ||
127 | + | ||
128 | +} | ||
129 | + | ||
130 | +.bodyimg span { | ||
131 | + background-color: #e22b44; | ||
132 | + color: white; | ||
133 | + font-size: 24rpx; | ||
134 | + border-radius: 6rpx; | ||
135 | + padding: 3rpx 10rpx; | ||
136 | + position: relative; | ||
137 | + top: 8px; | ||
138 | + left: 40rpx; | ||
139 | +} | ||
140 | + | ||
141 | +.bodyspan { | ||
142 | + color: red; | ||
143 | + text-align: center; | ||
144 | + font-size: 24rpx; | ||
145 | +} | ||
146 | + | ||
147 | +.bodytime { | ||
148 | + height: 55rpx; | ||
149 | + width: 100%; | ||
150 | + display: flex; | ||
151 | + flex-wrap: nowrap; | ||
152 | + padding-left: 40rpx; | ||
153 | + align-items: center; | ||
154 | + | ||
155 | +} | ||
156 | + | ||
157 | +.bodytimeleft { | ||
158 | + text-decoration: line-through; | ||
159 | + flex-grow: 1.7; | ||
160 | +} | ||
161 | + | ||
162 | +.bodytimecen { | ||
163 | + text-align: center; | ||
164 | + flex-grow: 1; | ||
165 | + | ||
166 | + font-size: 30rpx; | ||
167 | + color: #000; | ||
168 | + width: 415rpx; | ||
169 | + | ||
170 | +} | ||
171 | + | ||
172 | +.bodytimecen span { | ||
173 | + background-color: #333333; | ||
174 | + color: white; | ||
175 | + border-radius: 7rpx; | ||
176 | + padding-left: 20rpx; | ||
177 | + font-size: 30rpx; | ||
178 | + margin: 0 auto; | ||
179 | + padding-right: 10rpx; | ||
180 | + margin-right: 5px; | ||
181 | + | ||
182 | + | ||
183 | +} | ||
184 | + | ||
185 | +.bodytimecen span:last-child { | ||
186 | + margin-right: 10rpx; | ||
187 | + | ||
188 | +} | ||
189 | + | ||
190 | +.bodytimeright { | ||
191 | + flex-grow: 1.7; | ||
192 | + margin-right: 72rpx; | ||
193 | + | ||
194 | +} | ||
195 | + | ||
196 | +.bodybutton { | ||
197 | + min-height: 170rpx; | ||
198 | + width: 90%; | ||
199 | + margin: 0 auto; | ||
200 | + text-align: center; | ||
201 | + line-height: 70rpx; | ||
202 | + border-radius: 15rpx; | ||
203 | + height: auto; | ||
204 | + padding-top: 38rpx | ||
205 | +} | ||
206 | + | ||
207 | +.bodybutton button { | ||
208 | + height: 100%; | ||
209 | + width: 100%; | ||
210 | + background-color: red; | ||
211 | + color: white; | ||
212 | + font-size: 32rpx; | ||
213 | +} | ||
214 | + | ||
215 | +.bodybutton.co-w { | ||
216 | + color: #333; | ||
217 | + background-color: #adadad; | ||
218 | + font-size: 32rpx; | ||
219 | + | ||
220 | +} | ||
221 | + | ||
222 | + | ||
223 | + | ||
224 | +.bodyfoot { | ||
225 | + width: 100%; | ||
226 | + text-align: center; | ||
227 | + font-size: 28rpx; | ||
228 | + color: #777; | ||
229 | + background-color: white; | ||
230 | +} | ||
231 | + | ||
232 | +.pintuan { | ||
233 | + width: 100%; | ||
234 | + height: 84rpx; | ||
235 | + background-color: white; | ||
236 | + color: black; | ||
237 | + text-align: center; | ||
238 | + font-size: 36rpx; | ||
239 | + margin-top: 0rpx; | ||
240 | +} | ||
241 | + | ||
242 | + | ||
243 | +.pintuanzhou { | ||
244 | + float: left; | ||
245 | + line-height: 84rpx; | ||
246 | + width: 226rpx; | ||
247 | + background: url('https://mshopimg.yolipai.net/miniapp/images/user/wh.png') no-repeat right center; | ||
248 | + background-size: 42rpx; | ||
249 | + margin-left: -18rpx; | ||
250 | + font-size: 32rpx; | ||
251 | +} | ||
252 | + | ||
253 | +.pintuanyou { | ||
254 | + float: right; | ||
255 | + color: rgb(168, 167, 167); | ||
256 | + line-height: 84rpx; | ||
257 | + font-size: 32rpx; | ||
258 | + margin-right: 24rpx; | ||
259 | +} | ||
260 | + | ||
261 | +.onegoods { | ||
262 | + background-color: white; | ||
263 | + width: 372rpx; | ||
264 | + height: 560rpx; | ||
265 | + border-left: 2rpx solid #eee; | ||
266 | + float: left; | ||
267 | +} | ||
268 | + | ||
269 | +.goodsl { | ||
270 | + background-color: white; | ||
271 | +} | ||
272 | + | ||
273 | +.onegoodsimg { | ||
274 | + width: 100%; | ||
275 | + height: 360rpx; | ||
276 | + margin-bottom: 20rpx; | ||
277 | +} | ||
278 | + | ||
279 | +.onegoodsimg image { | ||
280 | + height: 100%; | ||
281 | + width: 100%; | ||
282 | +} | ||
283 | + | ||
284 | +.onegoodsdesc { | ||
285 | + color: rgb(168, 167, 167); | ||
286 | + padding-left: 20rpx; | ||
287 | + height: 100rpx; | ||
288 | + font-size: 32rpx; | ||
289 | + width: 92%; | ||
290 | + line-height: 100rpx; | ||
291 | + overflow: hidden; | ||
292 | + text-overflow: ellipsis; | ||
293 | + white-space: nowrap; | ||
294 | + padding-right: 20rpx; | ||
295 | +} | ||
296 | + | ||
297 | +.onegoodsdesc text {} | ||
298 | + | ||
299 | +.price { | ||
300 | + color: red; | ||
301 | + width: 100%; | ||
302 | +} | ||
303 | + | ||
304 | +.jgleft { | ||
305 | + float: left; | ||
306 | + width: 100rpx; | ||
307 | + margin-left: 20rpx; | ||
308 | + font-size: 40rpx; | ||
309 | + margin-top: -8rpx; | ||
310 | +} | ||
311 | + | ||
312 | +.jgright { | ||
313 | + font-size: 28rpx; | ||
314 | + float: right; | ||
315 | + width: 120rpx; | ||
316 | +} | ||
317 | + | ||
318 | +.jgright span { | ||
319 | + color: rgb(168, 167, 167); | ||
320 | +} | ||
321 | + | ||
322 | +.goodslisttop { | ||
323 | + background-color: white; | ||
324 | + width: 100%; | ||
325 | +} | ||
326 | + | ||
327 | +.goodslist { | ||
328 | + background-color: white; | ||
329 | +} | ||
330 | + | ||
331 | +.goodslisttop { | ||
332 | + background-color: white; | ||
333 | + width: 100%; | ||
334 | + height: 80rpx; | ||
335 | + margin-top: 20rpx; | ||
336 | + text-align: center; | ||
337 | +} | ||
338 | + | ||
339 | +.goodslistspan { | ||
340 | + margin: 0 auto; | ||
341 | + padding-top: 20rpx; | ||
342 | + display: inline-block; | ||
343 | + padding: 0 10px; | ||
344 | + background: #fff; | ||
345 | + margin-top: 12rpx; | ||
346 | + font-size: 28rpx; | ||
347 | + color: rgb(168, 167, 167); | ||
348 | +} | ||
349 | + | ||
350 | +.xian { | ||
351 | + height: 50%; | ||
352 | + width: 100%; | ||
353 | + border-bottom: 4rpx solid #eee; | ||
354 | + float: left; | ||
355 | +} | ||
356 | + | ||
357 | +.bodyselect { | ||
358 | + height: 50px; | ||
359 | + background-color: white; | ||
360 | + width: 100%; | ||
361 | + line-height: 50px; | ||
362 | + font-size: 28rpx; | ||
363 | +} | ||
364 | + | ||
365 | +.changxin { | ||
366 | + float: left; | ||
367 | + width: 100%; | ||
368 | +} | ||
369 | + | ||
370 | +.zhangxi { | ||
371 | + width: 100%; | ||
372 | + min-height: 100rpx; | ||
373 | + background-color: white; | ||
374 | + color: black; | ||
375 | +} | ||
376 | + | ||
377 | +.img { | ||
378 | + width: 30%; | ||
379 | + height: 100rpx; | ||
380 | + margin-bottom: 0rpx; | ||
381 | + color: black; | ||
382 | + margin-left: 36rpx; | ||
383 | + font-size: 26rpx; | ||
384 | + display: flex; | ||
385 | +} | ||
386 | + | ||
387 | +.img span { | ||
388 | + height: 100rpx; | ||
389 | + display: block; | ||
390 | + line-height: 100rpx; | ||
391 | + text-overflow: ellipsis; | ||
392 | + white-space: nowrap; | ||
393 | + overflow: hidden; | ||
394 | + padding: 0rpx; | ||
395 | + width: 120rpx; | ||
396 | +} | ||
397 | + | ||
398 | +.zhangxi image { | ||
399 | + border-radius: 50rpx; | ||
400 | + height: 80rpx; | ||
401 | + width: 80rpx; | ||
402 | + float: left; | ||
403 | + margin-top: 12rpx; | ||
404 | + background-color: red; | ||
405 | + margin-right: 10rpx; | ||
406 | +} | ||
407 | + | ||
408 | +.zhangxi .zssj { | ||
409 | + height: 100rpx; | ||
410 | + width: 70%; | ||
411 | + margin-right: 40rpx; | ||
412 | + line-height: 100rpx; | ||
413 | + font-size: 26rpx; | ||
414 | + text-align: right; | ||
415 | +} | ||
416 | + | ||
417 | +.zhangxi .zssj text { | ||
418 | + width: 100%; | ||
419 | +} | ||
420 | + | ||
421 | +.ia { | ||
422 | + display: flex; | ||
423 | +} | ||
424 | + | ||
425 | +.zspan { | ||
426 | + text-align: center; | ||
427 | + border-bottom: 2rpx #eee solid; | ||
428 | + width: 100%; | ||
429 | + display: flex; | ||
430 | + align-items: center; | ||
431 | + justify-content: center; | ||
432 | + font-size: 28rpx; | ||
433 | + color: #777; | ||
434 | + line-height: 100rpx; | ||
435 | + height: auto; | ||
436 | + | ||
437 | +} | ||
438 | + | ||
439 | +.mtop { | ||
440 | + text-align: center; | ||
441 | + color: white; | ||
442 | + background-color: #4c4c4c; | ||
443 | + width: 100%; | ||
444 | + height: 100%; | ||
445 | + position: fixed; | ||
446 | + z-index: 5; | ||
447 | + top: 0; | ||
448 | + left: 0; | ||
449 | +} | ||
450 | + | ||
451 | +.mt1 { | ||
452 | + margin-top: 100px; | ||
453 | + margin-bottom: 20rpx; | ||
454 | +} | ||
455 | + | ||
456 | +.mts { | ||
457 | + color: #e1e10b; | ||
458 | +} | ||
459 | + | ||
460 | +.mcou { | ||
461 | + font-size: 48rpx; | ||
462 | +} | ||
463 | + | ||
464 | +.mfoot { | ||
465 | + width: 100%; | ||
466 | + margin-top: 700rpx; | ||
467 | +} | ||
468 | + | ||
469 | +.mbtn { | ||
470 | + margin-top: 60rpx; | ||
471 | + width: 400rpx; | ||
472 | + background: #666; | ||
473 | + color: #fff; | ||
474 | + border-radius: 20rpx; | ||
475 | + font-size: 32rpx; | ||
476 | +} | ||
477 | + | ||
478 | +.etop { | ||
479 | + padding-top: 200rpx; | ||
480 | + width: 100%; | ||
481 | + height: 100%; | ||
482 | + position: fixed; | ||
483 | + left: 0rpx; | ||
484 | + top: 0rpx; | ||
485 | + z-index: 12rpx; | ||
486 | + background-color: white; | ||
487 | +} | ||
488 | + | ||
489 | +.emyimage { | ||
490 | + display: flex; | ||
491 | + justify-content: center; | ||
492 | + align-items: center; | ||
493 | +} | ||
494 | + | ||
495 | +.emyimage image { | ||
496 | + background-color: red; | ||
497 | + width: 160rpx; | ||
498 | + height: 160rpx; | ||
499 | + margin: 0 auto; | ||
500 | +} | ||
501 | + | ||
502 | +.espan { | ||
503 | + font-size: 32rpx; | ||
504 | + margin-top: 10rpx; | ||
505 | +} | ||
506 | + | ||
507 | +.erweima { | ||
508 | + margin-top: 10rpx; | ||
509 | + width: 100%; | ||
510 | +} | ||
511 | + | ||
512 | +.erzhou { | ||
513 | + width: 200rpx; | ||
514 | + float: left; | ||
515 | + margin-right: 20rpx; | ||
516 | +} | ||
517 | + | ||
518 | +.erzhou image { | ||
519 | + background-color: blanchedalmond; | ||
520 | + width: 200rpx; | ||
521 | + height: 200rpx; | ||
522 | +} | ||
523 | + | ||
524 | +.eright { | ||
525 | + width: 500rpx; | ||
526 | + float: left; | ||
527 | + font-size: 32rpx; | ||
528 | +} | ||
529 | + | ||
530 | +.body { | ||
531 | + background-color: white; | ||
532 | + height: auto; | ||
533 | + width: 100%; | ||
534 | + margin-top: 4rpx; | ||
535 | +} | ||
536 | + | ||
537 | +.cenrtoptitle { | ||
538 | + float: left; | ||
539 | + width: 450rpx; | ||
540 | + font-size: 28rpx; | ||
541 | + margin-top: 20rpx; | ||
542 | + | ||
543 | +} | ||
544 | + | ||
545 | +.cenrtop { | ||
546 | + margin-top: 20rpx; | ||
547 | + background-color: red; | ||
548 | + color: white; | ||
549 | + border-radius: 10rpx; | ||
550 | + padding: 0 16rpx; | ||
551 | + font-size: 28rpx; | ||
552 | + float: left; | ||
553 | + height: 40rpx; | ||
554 | +} | ||
555 | + | ||
556 | +.yijian { | ||
557 | + position: fixed; | ||
558 | + top: 0rpx; | ||
559 | + left: 0rpx; | ||
560 | + width: 100%; | ||
561 | + height: 100%; | ||
562 | + z-index: 14rpx; | ||
563 | + background-color: rgba(0, 0, 0, 0.3); | ||
564 | +} | ||
565 | + | ||
566 | +.buy-option { | ||
567 | + background: #fff; | ||
568 | + box-shadow: 0 0 6px rgba(0, 0, 0, 0.5); | ||
569 | + padding: 20rpx; | ||
570 | + min-height: 400rpx; | ||
571 | + padding-bottom: 120rpx; | ||
572 | + width: 100%; | ||
573 | + margin-top: 180rpx; | ||
574 | +} | ||
575 | + | ||
576 | +.buy-top { | ||
577 | + width: 100%; | ||
578 | +} | ||
579 | + | ||
580 | +.buy-image { | ||
581 | + margin-right: 20rpx; | ||
582 | + width: 320rpx; | ||
583 | + height: 200rpx; | ||
584 | + float: left; | ||
585 | +} | ||
586 | + | ||
587 | +.buy-image image { | ||
588 | + width: 200rpx; | ||
589 | + height: 200rpx; | ||
590 | + background-color: burlywood; | ||
591 | + float: left; | ||
592 | +} | ||
593 | + | ||
594 | +.buy-image text { | ||
595 | + margin-left: 10rpx; | ||
596 | + color: red; | ||
597 | +} | ||
598 | + | ||
599 | +.buy-cou { | ||
600 | + float: right; | ||
601 | + width: 100rpx; | ||
602 | + height: 200rpx; | ||
603 | + background-color: white; | ||
604 | + font-size: 60rpx; | ||
605 | + color: black; | ||
606 | +} | ||
607 | + | ||
608 | +.t1 { | ||
609 | + float: left; | ||
610 | + font-size: 28rpx; | ||
611 | + padding-left: 4rpx; | ||
612 | + color: red; | ||
613 | + padding-top: 10rpx; | ||
614 | +} | ||
615 | + | ||
616 | +.buy-button { | ||
617 | + width: 100%; | ||
618 | + float: left; | ||
619 | + margin-top: 22rpx; | ||
620 | +} | ||
621 | + | ||
622 | +.buy-button text { | ||
623 | + float: left; | ||
624 | +} | ||
625 | + | ||
626 | +.stepper { | ||
627 | + height: 52rpx; | ||
628 | + float: left; | ||
629 | + border: 2rpx solid #ccc; | ||
630 | + border-radius: 6rpx; | ||
631 | + margin-left: 28rpx; | ||
632 | +} | ||
633 | + | ||
634 | +/*加号和减号*/ | ||
635 | + | ||
636 | +.stepper text { | ||
637 | + float: left; | ||
638 | + width: 76rpx; | ||
639 | + line-height: 52rpx; | ||
640 | + text-align: center; | ||
641 | +} | ||
642 | + | ||
643 | +/*数值*/ | ||
644 | + | ||
645 | +.stepper input { | ||
646 | + width: 80rpx; | ||
647 | + height: 52rpx; | ||
648 | + float: left; | ||
649 | + margin: 0 auto; | ||
650 | + text-align: center; | ||
651 | + font-size: 24rpx; | ||
652 | + border-left: 2rpx solid #ccc; | ||
653 | + border-right: 2rpx solid #ccc; | ||
654 | +} | ||
655 | + | ||
656 | +/*普通样式*/ | ||
657 | + | ||
658 | +.stepper .normal { | ||
659 | + color: black; | ||
660 | +} | ||
661 | + | ||
662 | +/*禁用样式*/ | ||
663 | + | ||
664 | +.stepper .disable { | ||
665 | + color: #ccc; | ||
666 | +} | ||
667 | + | ||
668 | +.quhuo { | ||
669 | + width: 100%; | ||
670 | + color: rgb(51, 51, 51); | ||
671 | + float: left; | ||
672 | + margin-top: 20rpx; | ||
673 | +} | ||
674 | + | ||
675 | +.x-z { | ||
676 | + width: 100%; | ||
677 | + float: left; | ||
678 | + color: rgb(51, 51, 51); | ||
679 | + font-size: 36rpx; | ||
680 | +} | ||
681 | + | ||
682 | +.btn { | ||
683 | + width: 94%; | ||
684 | + background-color: red; | ||
685 | + color: white; | ||
686 | + text-align: center; | ||
687 | + height: 88rpx; | ||
688 | + line-height: 88rpx; | ||
689 | + float: left; | ||
690 | + margin: 0 auto; | ||
691 | +} | ||
692 | + | ||
693 | +.mck { | ||
694 | + min-height: 100rpx; | ||
695 | + width: 100%; | ||
696 | + border-bottom: 24rpx #eee solid; | ||
697 | +} | ||
698 | + | ||
699 | +/* pages/yi/yi.wxss */ | ||
700 | + | ||
701 | +.buy-option { | ||
702 | + background: #fff; | ||
703 | + padding: 20rpx; | ||
704 | + margin-top: 650rpx; | ||
705 | + width: 100%; | ||
706 | +} | ||
707 | + | ||
708 | +.buy-top { | ||
709 | + width: 100%; | ||
710 | +} | ||
711 | + | ||
712 | +.buy-image { | ||
713 | + margin-right: 20rpx; | ||
714 | + width: 630rpx; | ||
715 | + height: 200rpx; | ||
716 | + float: left; | ||
717 | +} | ||
718 | + | ||
719 | +.buy-image image { | ||
720 | + width: 200rpx; | ||
721 | + height: 200rpx; | ||
722 | + background-color: burlywood; | ||
723 | + float: left; | ||
724 | + margin-right: 16rpx; | ||
725 | +} | ||
726 | + | ||
727 | + | ||
728 | +.buy-image text { | ||
729 | + margin-left: 10rpx; | ||
730 | + color: red; | ||
731 | +} | ||
732 | + | ||
733 | +.buy-cou { | ||
734 | + float: right; | ||
735 | + width: 60rpx; | ||
736 | + height: 60rpx; | ||
737 | + background-color: white; | ||
738 | + font-size: 60rpx; | ||
739 | + color: black; | ||
740 | + margin-right: 40rpx; | ||
741 | + text-align: center; | ||
742 | + line-height: 60rpx; | ||
743 | + padding-bottom: 4rpx; | ||
744 | +} | ||
745 | + | ||
746 | +.t1 { | ||
747 | + font-size: 28rpx; | ||
748 | + padding-left: 4rpx; | ||
749 | + color: red; | ||
750 | + padding-top: 10rpx; | ||
751 | +} | ||
752 | + | ||
753 | +.buy-button { | ||
754 | + width: 100%; | ||
755 | + margin-top: 30rpx; | ||
756 | +} | ||
757 | + | ||
758 | +.buy-button text { | ||
759 | + /*float: left;*/ | ||
760 | + display: inline-block; | ||
761 | +} | ||
762 | + | ||
763 | +.stepper { | ||
764 | + height: 52rpx; | ||
765 | + display: inline-block; | ||
766 | + border: 2rpx solid #ccc; | ||
767 | + border-radius: 6rpx; | ||
768 | + margin-left: 28rpx; | ||
769 | +} | ||
770 | + | ||
771 | +/*加号和减号*/ | ||
772 | + | ||
773 | +.stepper text { | ||
774 | + float: left; | ||
775 | + width: 65rpx; | ||
776 | + line-height: 52rpx; | ||
777 | + text-align: center; | ||
778 | +} | ||
779 | + | ||
780 | +/*数值*/ | ||
781 | + | ||
782 | +.stepper input { | ||
783 | + width: 84rpx; | ||
784 | + height: 52rpx; | ||
785 | + float: left; | ||
786 | + margin: 0 auto; | ||
787 | + text-align: center; | ||
788 | + font-size: 24rpx; | ||
789 | + border-left: 2rpx solid #ccc; | ||
790 | + border-right: 2rpx solid #ccc; | ||
791 | +} | ||
792 | + | ||
793 | +/*普通样式*/ | ||
794 | + | ||
795 | +.stepper .normal { | ||
796 | + color: black; | ||
797 | +} | ||
798 | + | ||
799 | +/*禁用样式*/ | ||
800 | + | ||
801 | +.stepper .disable { | ||
802 | + color: #ccc; | ||
803 | +} | ||
804 | + | ||
805 | +.quhuo { | ||
806 | + width: 100%; | ||
807 | + color: rgb(51, 51, 51); | ||
808 | + margin-top: 45rpx; | ||
809 | + font-size: 32rpx | ||
810 | +} | ||
811 | + | ||
812 | +.quhuo image { | ||
813 | + width: 40rpx; | ||
814 | + height: 40rpx; | ||
815 | + display: inline-block; | ||
816 | + position: relative; | ||
817 | + left: 500rpx; | ||
818 | +} | ||
819 | + | ||
820 | +.ttxz { | ||
821 | + display: inline-block; | ||
822 | +} | ||
823 | + | ||
824 | +.xuanze { | ||
825 | + width: 100%; | ||
826 | + height: 80rpx; | ||
827 | + display: inline-block; | ||
828 | + border-bottom: 1rpx #e7e7e7 solid; | ||
829 | + font-size: 32rpx; | ||
830 | + line-height: 80rpx; | ||
831 | +} | ||
832 | + | ||
833 | +.xuanze1 { | ||
834 | + width: 100%; | ||
835 | + color: rgb(51, 51, 51); | ||
836 | + height: 80rpx; | ||
837 | + display: inline-block; | ||
838 | + border-bottom: 1rpx #e7e7e7 solid; | ||
839 | + line-height: 80rpx; | ||
840 | + overflow: hidden; | ||
841 | +} | ||
842 | + | ||
843 | +.x-z { | ||
844 | + width: 100%; | ||
845 | + color: rgb(51, 51, 51); | ||
846 | + font-size: 36rpx; | ||
847 | + height: auto; | ||
848 | +} | ||
849 | + | ||
850 | +.btn { | ||
851 | + width: 100%; | ||
852 | + background-color: red; | ||
853 | + color: white; | ||
854 | + text-align: center; | ||
855 | + height: 88rpx; | ||
856 | + line-height: 88rpx; | ||
857 | +} | ||
858 | + | ||
859 | +.clear { | ||
860 | + clear: both; | ||
861 | +} | ||
862 | + | ||
863 | +.fir_view { | ||
864 | + max-height: 300rpx; | ||
865 | + overflow-y: scroll; | ||
866 | +} | ||
867 | + | ||
868 | +.pop_up { | ||
869 | + min-height: 200rpx; | ||
870 | + position: fixed; | ||
871 | + bottom: 0; | ||
872 | + left: 0; | ||
873 | + width: 100%; | ||
874 | + background-color: rgba(0, 0, 0, 0.3); | ||
875 | + font-size: 34rpx; | ||
876 | + color: rgb(51, 51, 51); | ||
877 | + | ||
878 | +} | ||
879 | + | ||
880 | +.end_name { | ||
881 | + display: inline-block; | ||
882 | +} | ||
883 | + | ||
884 | +/*mask*/ | ||
885 | + | ||
886 | +.toast_mask { | ||
887 | + opacity: 0; | ||
888 | + width: 100%; | ||
889 | + height: 100%; | ||
890 | + overflow: hidden; | ||
891 | + position: fixed; | ||
892 | + top: 0rpx; | ||
893 | + left: 0rpx; | ||
894 | + z-index: 888; | ||
895 | +} | ||
896 | + | ||
897 | +/*toast*/ | ||
898 | + | ||
899 | +.toast_content_box { | ||
900 | + display: flex; | ||
901 | + width: 100%; | ||
902 | + height: 100%; | ||
903 | + justify-content: center; | ||
904 | + align-items: center; | ||
905 | + position: fixed; | ||
906 | + z-index: 999; | ||
907 | + top: 0rpx; | ||
908 | +} | ||
909 | + | ||
910 | +.toast_content { | ||
911 | + width: 50%; | ||
912 | + padding: 20rpx; | ||
913 | + background: rgba(0, 0, 0, 0.5); | ||
914 | + border-radius: 20rpx; | ||
915 | +} | ||
916 | + | ||
917 | +.toast_content_text { | ||
918 | + height: 100%; | ||
919 | + width: 100%; | ||
920 | + color: #fff; | ||
921 | + font-size: 28rpx; | ||
922 | + text-align: center; | ||
923 | +} | ||
924 | + | ||
925 | +.jt { | ||
926 | + width: 30rpx; | ||
927 | + height: 30rpx; | ||
928 | + display: inline-block; | ||
929 | +} | ||
930 | + | ||
931 | +.jiajian { | ||
932 | + color: #999; | ||
933 | +} | ||
934 | + | ||
935 | +.t_wz { | ||
936 | + line-height: 110rpx; | ||
937 | + height: 110rpx; | ||
938 | + font-size: 36rpx; | ||
939 | +} | ||
940 | + | ||
941 | +.down-arrow { | ||
942 | + display: inline-block; | ||
943 | + position: relative; | ||
944 | + width: 40rpx; | ||
945 | + height: 30rpx; | ||
946 | + margin-right: 20rpx; | ||
947 | +} | ||
948 | + | ||
949 | +.down-arrow::after { | ||
950 | + display: inline-block; | ||
951 | + content: " "; | ||
952 | + height: 18rpx; | ||
953 | + width: 18rpx; | ||
954 | + border-width: 0 2rpx 2rpx 0; | ||
955 | + border-color: #999; | ||
956 | + border-style: solid; | ||
957 | + transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); | ||
958 | + transform-origin: center; | ||
959 | + transition: transform 0.3s; | ||
960 | + position: absolute; | ||
961 | + top: 50%; | ||
962 | + right: 10rpx; | ||
963 | + margin-top: -10rpx; | ||
964 | +} | ||
965 | + | ||
966 | +.down-arrow1 { | ||
967 | + display: inline-block; | ||
968 | + position: relative; | ||
969 | + width: 40rpx; | ||
970 | + height: 30rpx; | ||
971 | + margin-right: 20rpx; | ||
972 | + margin-top: 12rpx; | ||
973 | +} | ||
974 | + | ||
975 | +.down-arrow1::after { | ||
976 | + display: inline-block; | ||
977 | + content: " "; | ||
978 | + height: 18rpx; | ||
979 | + width: 18rpx; | ||
980 | + border-width: 0 2rpx 2rpx 0; | ||
981 | + border-color: #999; | ||
982 | + border-style: solid; | ||
983 | + transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); | ||
984 | + transform-origin: center; | ||
985 | + transition: transform 0.3s; | ||
986 | + position: absolute; | ||
987 | + top: 50%; | ||
988 | + right: 10rpx; | ||
989 | + margin-top: -10rpx; | ||
990 | +} | ||
991 | + | ||
992 | +.down-arrow1::after { | ||
993 | + transform-origin: center; | ||
994 | + transform: rotate(-135deg); | ||
995 | + transition: transform 0.3s; | ||
996 | +} | ||
997 | + | ||
998 | +.goodslisttop::after { | ||
999 | + content: ""; | ||
1000 | + width: 100%; | ||
1001 | + height: 1px; | ||
1002 | + border-bottom: 1px #d4d4d4 solid; | ||
1003 | + display: block; | ||
1004 | + margin-top: -12px; | ||
1005 | +} | ||
1006 | + | ||
1007 | +.ia { | ||
1008 | + display: flex; | ||
1009 | + width: 100%; | ||
1010 | +} | ||
1011 | + | ||
1012 | +.bview { | ||
1013 | + position: fixed; | ||
1014 | + top: 0; | ||
1015 | + left: 0; | ||
1016 | + width: 100%; | ||
1017 | + height: 100%; | ||
1018 | + background-color: rgba(0, 0, 0, 0.5); | ||
1019 | +} | ||
1020 | + | ||
1021 | +.juzhong { | ||
1022 | + position: fixed; | ||
1023 | + top: 0; | ||
1024 | + left: 0; | ||
1025 | + width: 100%; | ||
1026 | + height: 100%; | ||
1027 | + display: flex; | ||
1028 | + flex-direction: row; | ||
1029 | + justify-content: center; | ||
1030 | + align-items: center; | ||
1031 | +} | ||
1032 | + | ||
1033 | +.juzhong .xq { | ||
1034 | + padding: 0 20rpx; | ||
1035 | + background: #fff; | ||
1036 | + font-size: 30rpx; | ||
1037 | + padding-bottom: 20rpx; | ||
1038 | +} | ||
1039 | + | ||
1040 | +.juzhong .xq .title { | ||
1041 | + text-align: center; | ||
1042 | + margin: 20rpx 0; | ||
1043 | + position: relative; | ||
1044 | + height: 50rpx; | ||
1045 | +} | ||
1046 | + | ||
1047 | +.juzhong .xq .hs1 { | ||
1048 | + font-size: 28rpx; | ||
1049 | + color: #ab8f9e; | ||
1050 | +} | ||
1051 | + | ||
1052 | +.juzhong .xq .title .close { | ||
1053 | + position: absolute; | ||
1054 | + top: 0; | ||
1055 | + right: 0; | ||
1056 | + width: 45rpx; | ||
1057 | + height: 45rpx; | ||
1058 | +} | ||
1059 | + | ||
1060 | +/* .pt_qd { | ||
1061 | + margin-top: 40rpx; | ||
1062 | + height: auto; | ||
1063 | +} */ | ||
1064 | + | ||
1065 | +.spec-cart-btn.w100 { | ||
1066 | + width: 100%; | ||
1067 | + margin-left: 0; | ||
1068 | + height: 80rpx; | ||
1069 | + line-height: 80rpx; | ||
1070 | +} | ||
1071 | + | ||
1072 | + | ||
1073 | +.bview { | ||
1074 | + position: fixed; | ||
1075 | + top: 0; | ||
1076 | + left: 0; | ||
1077 | + width: 100%; | ||
1078 | + height: 100%; | ||
1079 | + background-color: rgba(0, 0, 0, 0.5); | ||
1080 | +} | ||
1081 | + | ||
1082 | +.juzhong { | ||
1083 | + position: fixed; | ||
1084 | + top: 0; | ||
1085 | + left: 0; | ||
1086 | + width: 100%; | ||
1087 | + height: 100%; | ||
1088 | + display: flex; | ||
1089 | + flex-direction: row; | ||
1090 | + justify-content: center; | ||
1091 | + align-items: center; | ||
1092 | +} | ||
1093 | + | ||
1094 | +.juzhong .xq { | ||
1095 | + padding: 0 20rpx; | ||
1096 | + background: #fff; | ||
1097 | + font-size: 30rpx; | ||
1098 | + padding-bottom: 20rpx; | ||
1099 | +} | ||
1100 | + | ||
1101 | +.juzhong .xq .title { | ||
1102 | + text-align: center; | ||
1103 | + margin: 20rpx 0; | ||
1104 | + position: relative; | ||
1105 | + height: 50rpx; | ||
1106 | +} | ||
1107 | + | ||
1108 | +.juzhong .xq .hs1 { | ||
1109 | + font-size: 28rpx; | ||
1110 | + color: #ab8f9e; | ||
1111 | +} | ||
1112 | + | ||
1113 | +.juzhong .xq .title .close { | ||
1114 | + position: absolute; | ||
1115 | + top: 0; | ||
1116 | + right: 0; | ||
1117 | + width: 45rpx; | ||
1118 | + height: 45rpx; | ||
1119 | +} | ||
1120 | + | ||
1121 | +.pt_qd { | ||
1122 | + /* margin-top: 40rpx; | ||
1123 | + height: auto; */ | ||
1124 | + padding: 20rpx; | ||
1125 | +} | ||
1126 | + | ||
1127 | +.spec-cart-btn.w100 { | ||
1128 | + width: 100%; | ||
1129 | + margin-left: 0; | ||
1130 | + height: 80rpx; | ||
1131 | + line-height: 80rpx; | ||
1132 | +} | ||
1133 | + | ||
1134 | +.show_zf_dd { | ||
1135 | + display: flex; | ||
1136 | + padding: 15rpx 40rpx; | ||
1137 | + justify-content: space-between; | ||
1138 | + font-size: 30rpx; | ||
1139 | + color: #666; | ||
1140 | +} | ||
1141 | + | ||
1142 | +.flex_tou { | ||
1143 | + display: flex; | ||
1144 | + justify-content: center; | ||
1145 | + width: 100%; | ||
1146 | + height: 175rpx; | ||
1147 | + align-items: center; | ||
1148 | +} | ||
1149 | + | ||
1150 | +.xc-goods-details { | ||
1151 | + width: 479rpx; | ||
1152 | + margin-top: 20rpx; | ||
1153 | + height: 80rpx; | ||
1154 | + align-items: center; | ||
1155 | + | ||
1156 | +} | ||
1157 | + | ||
1158 | +.xc-valframe { | ||
1159 | + border-radius: 7rpx; | ||
1160 | + border: 1rpx solid; | ||
1161 | + margin-top: 3rpx; | ||
1162 | +} | ||
1163 | + | ||
1164 | +.xc-valframe .xc-frame-img { | ||
1165 | + width: 30rpx; | ||
1166 | + height: 100%; | ||
1167 | + background: #e22b44; | ||
1168 | +} | ||
1169 | + | ||
1170 | +.xc-valframe .xc-frame-img .picture { | ||
1171 | + width: 25rpx; | ||
1172 | + height: 25rpx; | ||
1173 | + margin-top: 4rpx; | ||
1174 | + | ||
1175 | +} | ||
1176 | + | ||
1177 | +.bodybutton .xc-good-friend { | ||
1178 | + background: #fab55a; | ||
1179 | + border-radius: 15rpx; | ||
1180 | +} | ||
1181 | + | ||
1182 | +.bodybutton .xc-home-page { | ||
1183 | + margin-top: 20rpx; | ||
1184 | + background-color: #e22b44; | ||
1185 | + border-radius: 15rpx; | ||
1186 | +} | ||
1187 | + | ||
1188 | +.xc-ellipsis-img { | ||
1189 | + width: 56rpx; | ||
1190 | + height: 56rpx; | ||
1191 | + padding-top: 15rpx; | ||
1192 | +} | ||
1193 | + | ||
1194 | +.xc-ptcomplete { | ||
1195 | + width: 74%; | ||
1196 | + height: 105rpx; | ||
1197 | + line-height: 105rpx; | ||
1198 | + float: right; | ||
1199 | + | ||
1200 | +} | ||
1201 | + | ||
1202 | +.xc-ptcomplete .xc-img-frame .img { | ||
1203 | + width: 105rpx; | ||
1204 | + height: 105rpx; | ||
1205 | + float: right; | ||
1206 | +} | ||
1207 | + | ||
1208 | +.xc-ptcomplete .xc-img-frame { | ||
1209 | + width: 205rpx; | ||
1210 | + height: 105rpx; | ||
1211 | + margin-top: 20rpx; | ||
1212 | +} | ||
1213 | + | ||
1214 | +.xc-ptcomplete .xc-end { | ||
1215 | + width: 283rpx; | ||
1216 | + text-align: right; | ||
1217 | +} | ||
1218 | + | ||
1219 | +.iw { | ||
1220 | + padding-right: 33rpx; | ||
1221 | +} | ||
1222 | + | ||
1223 | +.xc-ptcomplete .xc-img-frames { | ||
1224 | + width: 345rpx; | ||
1225 | + height: 105rpx; | ||
1226 | + margin-top: 20rpx; | ||
1227 | + | ||
1228 | +} | ||
1229 | + | ||
1230 | +.xc-ptcomplete .xc-img-frames .img { | ||
1231 | + width: 105rpx; | ||
1232 | + height: 105rpx; | ||
1233 | + float: right; | ||
1234 | +} | ||
1235 | + | ||
1236 | +.bodybutton .xc-good-friend.co-w { | ||
1237 | + background-color: #aeaeae | ||
1238 | +} | ||
1239 | + | ||
1240 | + | ||
1241 | + | ||
1242 | + | ||
1243 | + | ||
1244 | + | ||
1245 | + | ||
1246 | + | ||
1247 | + | ||
1248 | + | ||
1249 | + | ||
1250 | + | ||
1251 | + | ||
1252 | + | ||
1253 | + | ||
1254 | +.spec-model { | ||
1255 | + position: fixed; | ||
1256 | + bottom: 0; | ||
1257 | + z-index: 20; | ||
1258 | + background: white; | ||
1259 | + width: 100%; | ||
1260 | + /* padding: 0 30rpx; */ | ||
1261 | + font-size: 32rpx; | ||
1262 | + box-sizing: border-box; | ||
1263 | + border-radius: 20rpx; | ||
1264 | + /* height: 72%; */ | ||
1265 | +} | ||
1266 | + | ||
1267 | +.spec-model .pding { | ||
1268 | + padding: 0 30rpx; | ||
1269 | +} | ||
1270 | + | ||
1271 | +.spec-goods { | ||
1272 | + padding: 30rpx 0 20rpx; | ||
1273 | + float: left; | ||
1274 | + width: 100%; | ||
1275 | + border-bottom: 2rpx solid #eee; | ||
1276 | +} | ||
1277 | + | ||
1278 | +.spec-img { | ||
1279 | + float: left; | ||
1280 | + height: 186rpx; | ||
1281 | + width: 186rpx; | ||
1282 | + border: 4rpx solid #eee | ||
1283 | +} | ||
1284 | + | ||
1285 | +.spec-goods-info { | ||
1286 | + float: left; | ||
1287 | + padding: 0 25rpx; | ||
1288 | + width: 400rpx; | ||
1289 | +} | ||
1290 | + | ||
1291 | +.spec-goods-name { | ||
1292 | + font-size: 30rpx; | ||
1293 | + line-height: 35rpx; | ||
1294 | + height: 70rpx; | ||
1295 | + margin: 15rpx 20rpx 25rpx 0; | ||
1296 | + overflow: hidden; | ||
1297 | + text-overflow: ellipsis; | ||
1298 | + color: #333; | ||
1299 | +} | ||
1300 | + | ||
1301 | +.spec-goods-price { | ||
1302 | + color: #d60021; | ||
1303 | + font-size: 33rpx; | ||
1304 | + font-weight: bold; | ||
1305 | +} | ||
1306 | + | ||
1307 | +.spec-goods-stock { | ||
1308 | + margin-top: 3rpx; | ||
1309 | + font-size: 24rpx; | ||
1310 | + color: #999999; | ||
1311 | + margin-right: 15rpx; | ||
1312 | +} | ||
1313 | + | ||
1314 | +.spec-name { | ||
1315 | + clear: both; | ||
1316 | + padding: 20rpx 0; | ||
1317 | + font-size: 30rpx; | ||
1318 | + color: #333; | ||
1319 | +} | ||
1320 | + | ||
1321 | +.quhuo { | ||
1322 | + font-size: 30rpx; | ||
1323 | + color: #000 | ||
1324 | +} | ||
1325 | + | ||
1326 | +.b_num { | ||
1327 | + display: flex; | ||
1328 | + font-size: 30rpx; | ||
1329 | + color: #333; | ||
1330 | + justify-content: space-between; | ||
1331 | +} | ||
1332 | + | ||
1333 | +.count { | ||
1334 | + /* position: fixed; */ | ||
1335 | + display: flex; | ||
1336 | + height: 50rpx; | ||
1337 | + /* border: 1rpx solid #000; */ | ||
1338 | + font-size: 28rpx; | ||
1339 | + /* right: 30rpx; */ | ||
1340 | + /* justify-content: space-between; */ | ||
1341 | +} | ||
1342 | + | ||
1343 | + | ||
1344 | +.count>view, | ||
1345 | +.count>input { | ||
1346 | + width: 60rpx; | ||
1347 | + height: 50rpx; | ||
1348 | + line-height: 50rpx; | ||
1349 | + text-align: center; | ||
1350 | +} | ||
1351 | + | ||
1352 | +.spec_bt { | ||
1353 | + background: fff; | ||
1354 | + color: #333; | ||
1355 | + margin-left: 10rpx; | ||
1356 | + padding: 4rpx 15rpx 4rpx; | ||
1357 | + display: inline-block; | ||
1358 | + border-radius: 30rpx; | ||
1359 | + font-size: 24rpx; | ||
1360 | + border: 1rpx solid #ccc; | ||
1361 | + margin: 10rpx; | ||
1362 | + height: 40rpx; | ||
1363 | + line-height: 40rpx; | ||
1364 | +} | ||
1365 | + | ||
1366 | +.spec_bt.act { | ||
1367 | + background: #d60021; | ||
1368 | + color: #fff; | ||
1369 | + border: 1rpx solid #d60021; | ||
1370 | +} | ||
1371 | + | ||
1372 | +.sub, .add, .count>input { | ||
1373 | + /* border-right: 1px solid #000; */ | ||
1374 | + background-color: #f8f8f8; | ||
1375 | + border-radius: 8rpx; | ||
1376 | +} | ||
1377 | +.sub.active { | ||
1378 | + /* background-color: #ddd; */ | ||
1379 | + color: #ccc; | ||
1380 | +} | ||
1381 | +.count>input { | ||
1382 | + margin: 0 10rpx; | ||
1383 | + line-height: normal; | ||
1384 | +} | ||
1385 | + | ||
1386 | +/* .sub { | ||
1387 | + border-right: 1px solid #000; | ||
1388 | +} | ||
1389 | + | ||
1390 | +.add { | ||
1391 | + border-left: 1px solid #000; | ||
1392 | +} */ | ||
1393 | + | ||
1394 | +.spec-btn { | ||
1395 | + color: black; | ||
1396 | + background-color: white; | ||
1397 | + padding: 10rpx 10rpx; | ||
1398 | + font-size: 26rpx; | ||
1399 | + line-height: 28rpx; | ||
1400 | + float: left; | ||
1401 | + border: 1rpx solid #dedede; | ||
1402 | + margin: 4rpx 10rpx 4rpx 0; | ||
1403 | + border-radius: 4rpx; | ||
1404 | +} | ||
1405 | + | ||
1406 | +.spec-btn-click { | ||
1407 | + color: white; | ||
1408 | + background-color: #f23030; | ||
1409 | + border: 1rpx solid #f23030; | ||
1410 | +} | ||
1411 | + | ||
1412 | +.spec-cart-btns { | ||
1413 | + width: 92%; | ||
1414 | + line-height: 70rpx; | ||
1415 | + margin: 0rpx auto; | ||
1416 | + margin-top: 160rpx; | ||
1417 | + border-radius: 20rpx; | ||
1418 | + position: fixed; | ||
1419 | + bottom: 50rpx; | ||
1420 | + left: 4%; | ||
1421 | + | ||
1422 | +} | ||
1423 | + | ||
1424 | +.spec-cart-btn { | ||
1425 | + | ||
1426 | + width: 100%; | ||
1427 | + font-size: 30rpx; | ||
1428 | + text-align: center; | ||
1429 | + color: white; | ||
1430 | + border-radius: 40rpx; | ||
1431 | +} | ||
1432 | + | ||
1433 | +.spec-add-cart { | ||
1434 | + background-color: #ffb03f; | ||
1435 | +} | ||
1436 | + | ||
1437 | +.spec-buy { | ||
1438 | + background-color: #f23030; | ||
1439 | + /* margin-left: 34rpx; */ | ||
1440 | +} | ||
1441 | + | ||
1442 | +.spec-cart-disable { | ||
1443 | + background: #bbbbbb; | ||
1444 | +} | ||
1445 | + | ||
1446 | +.spec-cart-btn-lg { | ||
1447 | + width: 614rpx; | ||
1448 | +} | ||
1449 | + | ||
1450 | +.prom-model { | ||
1451 | + position: fixed; | ||
1452 | + bottom: 0; | ||
1453 | + z-index: 20; | ||
1454 | + background: white; | ||
1455 | + width: 100%; | ||
1456 | + padding: 0 30rpx 30rpx; | ||
1457 | + font-size: 32rpx; | ||
1458 | + box-sizing: border-box; | ||
1459 | + overflow-x: hidden; | ||
1460 | +} | ||
1461 | + | ||
1462 | +.prom-model .prom-title { | ||
1463 | + text-align: center; | ||
1464 | + margin: 30rpx 0; | ||
1465 | +} | ||
1466 | + | ||
1467 | +.prom-model .logistics-item { | ||
1468 | + border: 0; | ||
1469 | +} | ||
1470 | + | ||
1471 | +.prom-model .item-mes { | ||
1472 | + width: 500rpx; | ||
1473 | +} | ||
1474 | + | ||
1475 | +.integral-btn { | ||
1476 | + width: 100%; | ||
1477 | + padding: 0rpx; | ||
1478 | + margin: 0rpx; | ||
1479 | +} | ||
1480 | + | ||
1481 | +.clear { | ||
1482 | + clear: both; | ||
1483 | +} | ||
1484 | + | ||
1485 | +.sto_v .title, | ||
1486 | +.sto_v .stitle { | ||
1487 | + border-top: 1rpx solid #dedede; | ||
1488 | + border-bottom: 1rpx solid #dedede; | ||
1489 | + height: 78rpx; | ||
1490 | + line-height: 78rpx; | ||
1491 | +} | ||
1492 | + | ||
1493 | +.sto_v .title .tubiao, | ||
1494 | +.sto_v .stitle .tubiao { | ||
1495 | + width: 32rpx; | ||
1496 | + height: 32rpx; | ||
1497 | + margin-top: 23rpx; | ||
1498 | +} | ||
1499 | + | ||
1500 | +.itemlists .item { | ||
1501 | + border-bottom: 1rpx solid #dedede; | ||
1502 | + height: 72rpx; | ||
1503 | + line-height: 72rpx; | ||
1504 | + font-size: 28rpx; | ||
1505 | + margin: 0 10rpx; | ||
1506 | +} | ||
1507 | + | ||
1508 | +.cshu { | ||
1509 | + margin-bottom: 30rpx; | ||
1510 | + margin-top: 20rpx; | ||
1511 | +} | ||
1512 | + | ||
1513 | +.cshu view { | ||
1514 | + color: #999; | ||
1515 | + font-size: 30rpx; | ||
1516 | + margin-left: 26rpx; | ||
1517 | +} | ||
1518 | + | ||
1519 | + | ||
1520 | +/*---活动特殊显示---*/ | ||
1521 | +.prom_show { | ||
1522 | + height: 120rpx; | ||
1523 | + display: flex; | ||
1524 | +} | ||
1525 | + | ||
1526 | +.prom_show .secondkill-img { | ||
1527 | + width: 100%; | ||
1528 | + height: 100%; | ||
1529 | +} | ||
1530 | + | ||
1531 | +.prom_show .spike-img { | ||
1532 | + width: 283rpx; | ||
1533 | + height: 57rpx; | ||
1534 | + top: 35rpx; | ||
1535 | + left: 31rpx; | ||
1536 | +} | ||
1537 | + | ||
1538 | +.prom_show .stop { | ||
1539 | + color: #d81731; | ||
1540 | + top: 17rpx; | ||
1541 | + right: 65rpx; | ||
1542 | + font-weight: 600; | ||
1543 | +} | ||
1544 | + | ||
1545 | +.prom_show .start { | ||
1546 | + color: #009ae2; | ||
1547 | + top: 17rpx; | ||
1548 | + right: 65rpx; | ||
1549 | + font-weight: 600; | ||
1550 | +} | ||
1551 | + | ||
1552 | +.prom_show .timeac { | ||
1553 | + font-size: 32rpx; | ||
1554 | + height: 120rpx; | ||
1555 | + color: #333; | ||
1556 | +} | ||
1557 | + | ||
1558 | +.prom_show .timeac.left { | ||
1559 | + width: 66%; | ||
1560 | + color: #fff; | ||
1561 | + background: #f23030; | ||
1562 | +} | ||
1563 | + | ||
1564 | +.prom_show .timeac.right { | ||
1565 | + width: 34%; | ||
1566 | + background-color: #d7d7d7; | ||
1567 | + text-align: center | ||
1568 | +} | ||
1569 | + | ||
1570 | +.prom_show .secview .day { | ||
1571 | + padding-right: 10rpx; | ||
1572 | +} | ||
1573 | + | ||
1574 | +.prom_show .secview .time-val { | ||
1575 | + width: 36rpx; | ||
1576 | + height: 36rpx; | ||
1577 | + border-radius: 7rpx; | ||
1578 | + line-height: 36rpx; | ||
1579 | +} | ||
1580 | + | ||
1581 | +.prom_show .secview .time { | ||
1582 | + margin-right: 10rpx; | ||
1583 | + margin-left: 10rpx; | ||
1584 | +} | ||
1585 | + | ||
1586 | + | ||
1587 | +.prom_show .timeac.left view { | ||
1588 | + margin-left: 20rpx | ||
1589 | +} | ||
1590 | + | ||
1591 | +.prom_show .timeac.left view.firview { | ||
1592 | + margin-top: 10rpx | ||
1593 | +} | ||
1594 | + | ||
1595 | +.prom_show .timeac.left view .tr_line { | ||
1596 | + text-decoration: line-through; | ||
1597 | + font-size: 28rpx; | ||
1598 | +} | ||
1599 | + | ||
1600 | +.prom_show .timeac.left view .bprice { | ||
1601 | + font-size: 50rpx; | ||
1602 | +} | ||
1603 | + | ||
1604 | +.prom_show .timeac.right view.firview { | ||
1605 | + margin-top: 12rpx; | ||
1606 | + margin-bottom: 10rpx | ||
1607 | +} | ||
1608 | + | ||
1609 | +.prom_show .timeac.right view.secview { | ||
1610 | + display: flex; | ||
1611 | + text-align: center; | ||
1612 | + justify-content: center; | ||
1613 | + flex-direction: row; | ||
1614 | +} | ||
1615 | + | ||
1616 | +.prom_show .timeac.right view .tui-conutdown-box { | ||
1617 | + /* background: #6b6b6b; */ | ||
1618 | + width: auto; | ||
1619 | + /* min-width: 45rpx; */ | ||
1620 | + height: 45rpx; | ||
1621 | + color: #c4182e; | ||
1622 | + font-size: 27rpx; | ||
1623 | + text-align: center; | ||
1624 | + line-height: 46rpx; | ||
1625 | +} | ||
1626 | + | ||
1627 | +.huise { | ||
1628 | + background: gray | ||
1629 | +} | ||
1630 | + | ||
1631 | +.lanse { | ||
1632 | + background: #0199e2 | ||
1633 | +} | ||
1634 | + | ||
1635 | + | ||
1636 | +/*------拼单------*/ | ||
1637 | +.pt_view { | ||
1638 | + text-align: center; | ||
1639 | + width: 100%; | ||
1640 | + height: 100rpx; | ||
1641 | + line-height: 100rpx; | ||
1642 | + font-size: 26rpx | ||
1643 | +} | ||
1644 | + | ||
1645 | +.pt_view .secondkill-img { | ||
1646 | + width: 100%; | ||
1647 | + height: 100%; | ||
1648 | +} | ||
1649 | + | ||
1650 | +.pt_fir { | ||
1651 | + background: #fff; | ||
1652 | + margin-bottom: 10rpx; | ||
1653 | +} | ||
1654 | + | ||
1655 | +.pt_fir .pt_fir_title { | ||
1656 | + display: flex; | ||
1657 | + align-items: center; | ||
1658 | + margin-left: 10rpx; | ||
1659 | + margin-top: 20rpx; | ||
1660 | + font-size: 28rpx; | ||
1661 | + position: relative; | ||
1662 | +} | ||
1663 | + | ||
1664 | +.pt_fir .pt_fir_title .kt_type { | ||
1665 | + color: #fff; | ||
1666 | + background: #e9030d; | ||
1667 | + width: 100rpx; | ||
1668 | + line-height: 40rpx; | ||
1669 | + border-radius: 6rpx; | ||
1670 | + margin: 0 10rpx; | ||
1671 | + height: 40rpx; | ||
1672 | + font-size: 24rpx; | ||
1673 | + text-align: center; | ||
1674 | +} | ||
1675 | + | ||
1676 | +.pt_fir .pt_fir_title .price { | ||
1677 | + color: #e9030d; | ||
1678 | + font-size: 26rpx; | ||
1679 | +} | ||
1680 | + | ||
1681 | +.pt_fir .pt_fir_title .bigw { | ||
1682 | + font-size: 36rpx; | ||
1683 | +} | ||
1684 | + | ||
1685 | +.pt_fir .pt_fir_title .tprice { | ||
1686 | + text-decoration: line-through; | ||
1687 | + color: #949494 | ||
1688 | +} | ||
1689 | + | ||
1690 | +.pt_fir .pt_fir_title .tprice.ml50 { | ||
1691 | + margin-left: 50rpx | ||
1692 | +} | ||
1693 | + | ||
1694 | +.pt_fir .pt_fir_title .js { | ||
1695 | + padding: 0 15rpx; | ||
1696 | + height: 40rpx; | ||
1697 | + background: #e9030d; | ||
1698 | + text-align: center; | ||
1699 | + border-radius: 8rpx; | ||
1700 | + color: #fff; | ||
1701 | + margin-left: 10rpx; | ||
1702 | +} | ||
1703 | + | ||
1704 | +.pt_fir .pt_fir_title .tuannum { | ||
1705 | + color: #e9030d; | ||
1706 | + position: absolute; | ||
1707 | + right: 20rpx; | ||
1708 | + font-size: 26rpx; | ||
1709 | +} | ||
1710 | + | ||
1711 | +.pding { | ||
1712 | + padding-top: 20rpx; | ||
1713 | + padding-left: 20rpx; | ||
1714 | + height: 81%; | ||
1715 | + padding-right: 20rpx; | ||
1716 | + font-size: 26rpx; | ||
1717 | + color: #ea120f | ||
1718 | +} | ||
1719 | + | ||
1720 | +.pdres { | ||
1721 | + margin-left: 10rpx; | ||
1722 | + color: #8f8f94 | ||
1723 | +} | ||
1724 | + | ||
1725 | +.ptgz { | ||
1726 | + position: relative; | ||
1727 | + font-size: 30rpx; | ||
1728 | + padding-left: 20rpx; | ||
1729 | + margin-top: 10rpx; | ||
1730 | + overflow: hidden | ||
1731 | +} | ||
1732 | + | ||
1733 | +.shuxian { | ||
1734 | + width: 6rpx; | ||
1735 | + height: 28rpx; | ||
1736 | + background: #ea120f; | ||
1737 | + display: inline-block; | ||
1738 | + top: 5rpx; | ||
1739 | + position: relative; | ||
1740 | + margin-right: 5rpx | ||
1741 | +} | ||
1742 | + | ||
1743 | +.ptgz_an { | ||
1744 | + position: absolute; | ||
1745 | + top: 5rpx; | ||
1746 | + right: 6rpx | ||
1747 | +} | ||
1748 | + | ||
1749 | +.ptgz_an .arrow-two { | ||
1750 | + width: 18rpx; | ||
1751 | + height: 18rpx; | ||
1752 | + border-color: #da0b31; | ||
1753 | + margin-top: 30rpx; | ||
1754 | +} | ||
1755 | + | ||
1756 | +.pt_fir.se { | ||
1757 | + height: auto; | ||
1758 | + margin-bottom: 10rpx | ||
1759 | +} | ||
1760 | + | ||
1761 | +.t_gz { | ||
1762 | + padding: 10rpx 20rpx; | ||
1763 | + font-size: 28rpx | ||
1764 | +} | ||
1765 | + | ||
1766 | +.pt_fir.se1 { | ||
1767 | + height: auto; | ||
1768 | + margin: 0 | ||
1769 | +} | ||
1770 | + | ||
1771 | +.pt_fir.se2 { | ||
1772 | + height: auto; | ||
1773 | + margin: 0; | ||
1774 | + border-top: 6rpx solid #eeeeee; | ||
1775 | + border-bottom: 2rpx solid #eeeeee; | ||
1776 | +} | ||
1777 | + | ||
1778 | +.pt_hb { | ||
1779 | + height: 78rpx; | ||
1780 | + line-height: 75rpx; | ||
1781 | + position: relative; | ||
1782 | + font-size: 32rpx; | ||
1783 | + overflow: hidden; | ||
1784 | + width: 695rpx; | ||
1785 | + margin-left: 28rpx; | ||
1786 | + border-bottom: 1rpx solid #E5E5E5 | ||
1787 | +} | ||
1788 | + | ||
1789 | +.ptgz_an.xq { | ||
1790 | + font-size: 32rpx; | ||
1791 | + color: #d40024 | ||
1792 | +} | ||
1793 | + | ||
1794 | +.wf { | ||
1795 | + display: flex; | ||
1796 | + padding: 20rpx 0; | ||
1797 | +} | ||
1798 | + | ||
1799 | +.wf .item { | ||
1800 | + width: 24.5%; | ||
1801 | + text-align: center; | ||
1802 | + font-size: 26rpx; | ||
1803 | + color: #666 | ||
1804 | +} | ||
1805 | + | ||
1806 | +.wf .item .item_txy { | ||
1807 | + position: relative; | ||
1808 | + width: 60rpx; | ||
1809 | + height: 60rpx; | ||
1810 | + background: #ea120f; | ||
1811 | + border-radius: 50%; | ||
1812 | + left: 50%; | ||
1813 | + margin-left: -30rpx; | ||
1814 | + border: 3px #dfdfdf solid; | ||
1815 | + text-align: center; | ||
1816 | + line-height: 60rpx; | ||
1817 | + color: #fff; | ||
1818 | + margin-bottom: 10rpx; | ||
1819 | +} | ||
1820 | + | ||
1821 | +.wf .item .item_txy.hs { | ||
1822 | + background: #cbcbcb; | ||
1823 | +} | ||
1824 | + | ||
1825 | +.po { | ||
1826 | + margin-bottom: 20rpx; | ||
1827 | +} | ||
1828 | + | ||
1829 | +.cart-btn.line-h { | ||
1830 | + line-height: 26rpx; | ||
1831 | +} | ||
1832 | + | ||
1833 | +.cart-btn .fir-v { | ||
1834 | + margin-top: 10rpx; | ||
1835 | +} | ||
1836 | + | ||
1837 | +.hyt { | ||
1838 | + padding: 0 20rpx; | ||
1839 | + font-size: 30rpx; | ||
1840 | + display: flex; | ||
1841 | + align-items: center; | ||
1842 | + margin-top: 10rpx; | ||
1843 | +} | ||
1844 | + | ||
1845 | +.hyt .r_f { | ||
1846 | + color: #e9120f; | ||
1847 | + font-size: 26rpx; | ||
1848 | + position: relative; | ||
1849 | + top: 3rpx | ||
1850 | +} | ||
1851 | + | ||
1852 | +.hyt .byj { | ||
1853 | + color: #e9120f; | ||
1854 | + font-size: 32rpx; | ||
1855 | + position: relative; | ||
1856 | + top: 5rpx | ||
1857 | +} | ||
1858 | + | ||
1859 | +.pt_fir .pt_fir_title.no-mar-b { | ||
1860 | + margin-bottom: 0; | ||
1861 | + padding-bottom: 10rpx; | ||
1862 | + margin-left: 20rpx | ||
1863 | +} | ||
1864 | + | ||
1865 | +.pt_fir .pt_fir_title.boder-1 { | ||
1866 | + border-bottom: 1rpx #e7e7e7 solid | ||
1867 | +} | ||
1868 | + | ||
1869 | +.jie_price { | ||
1870 | + padding: 10rpx 30rpx; | ||
1871 | +} | ||
1872 | + | ||
1873 | +.jie_price_title { | ||
1874 | + font-size: 30rpx; | ||
1875 | + color: #a26270; | ||
1876 | + margin-bottom: 10rpx | ||
1877 | +} | ||
1878 | + | ||
1879 | +.price_list { | ||
1880 | + display: flex; | ||
1881 | + width: 100%; | ||
1882 | +} | ||
1883 | + | ||
1884 | +.price_item { | ||
1885 | + width: 25%; | ||
1886 | + font-size: 28rpx; | ||
1887 | + color: #4c336c | ||
1888 | +} | ||
1889 | + | ||
1890 | +.pt_fir.se2 .zzk-1 { | ||
1891 | + margin-top: 23rpx; | ||
1892 | + font-size: 30rpx; | ||
1893 | + position: relative; | ||
1894 | + margin-bottom: 30rpx; | ||
1895 | + border-left: 4rpx solid red; | ||
1896 | + margin-left: 14rpx; | ||
1897 | + height: 30rpx; | ||
1898 | + line-height: 30rpx; | ||
1899 | + padding-left: 5rpx; | ||
1900 | +} | ||
1901 | + | ||
1902 | +.ckgd { | ||
1903 | + position: absolute; | ||
1904 | + top: 0; | ||
1905 | + right: 57rpx; | ||
1906 | + color: #d70025; | ||
1907 | + font-size: 32rpx; | ||
1908 | +} | ||
1909 | + | ||
1910 | +.ckgd .arrow-one { | ||
1911 | + width: 18rpx; | ||
1912 | + height: 18rpx; | ||
1913 | + border-color: #da0b31; | ||
1914 | + margin-top: 5rpx; | ||
1915 | +} | ||
1916 | + | ||
1917 | +.bview { | ||
1918 | + position: fixed; | ||
1919 | + top: 0; | ||
1920 | + left: 0; | ||
1921 | + width: 100%; | ||
1922 | + height: 100%; | ||
1923 | + background-color: rgba(0, 0, 0, 0.5); | ||
1924 | +} | ||
1925 | + | ||
1926 | +.juzhong { | ||
1927 | + position: fixed; | ||
1928 | + top: 0; | ||
1929 | + left: 0; | ||
1930 | + width: 100%; | ||
1931 | + height: 100%; | ||
1932 | + display: flex; | ||
1933 | + flex-direction: row; | ||
1934 | + justify-content: center; | ||
1935 | + align-items: center; | ||
1936 | +} | ||
1937 | + | ||
1938 | +.juzhong .xq { | ||
1939 | + padding: 0 20rpx; | ||
1940 | + background: #fff; | ||
1941 | + font-size: 30rpx; | ||
1942 | + padding-bottom: 20rpx; | ||
1943 | +} | ||
1944 | + | ||
1945 | +.juzhong .xq .title { | ||
1946 | + text-align: center; | ||
1947 | + margin: 20rpx 0; | ||
1948 | + position: relative; | ||
1949 | + height: 50rpx; | ||
1950 | +} | ||
1951 | + | ||
1952 | +.juzhong .xq .hs1 { | ||
1953 | + font-size: 28rpx; | ||
1954 | + color: #ab8f9e | ||
1955 | +} | ||
1956 | + | ||
1957 | +.juzhong .xq .title .close { | ||
1958 | + position: absolute; | ||
1959 | + top: 0; | ||
1960 | + right: 0; | ||
1961 | + width: 45rpx; | ||
1962 | + height: 45rpx; | ||
1963 | +} | ||
1964 | + | ||
1965 | +.pt_qd { | ||
1966 | + /* margin-top: 40rpx; | ||
1967 | + height: auto; */ | ||
1968 | +} | ||
1969 | + | ||
1970 | +.spec-cart-btn.w100 { | ||
1971 | + width: 95%; | ||
1972 | + margin-left: 0; | ||
1973 | + height: 75rpx; | ||
1974 | + line-height: 75rpx; | ||
1975 | + margin: auto; | ||
1976 | +} | ||
1977 | + | ||
1978 | +.sto_v { | ||
1979 | + color: #333; | ||
1980 | +} | ||
1981 | + | ||
1982 | +.ellipsis { | ||
1983 | + overflow: hidden; | ||
1984 | + white-space: nowrap; | ||
1985 | + text-overflow: ellipsis; | ||
1986 | +} | ||
1987 | + | ||
1988 | + | ||
1989 | + | ||
1990 | + | ||
1991 | +/* 房子图标 */ | ||
1992 | +.stores-img { | ||
1993 | + width: 40rpx; | ||
1994 | + height: 35rpx; | ||
1995 | + margin-right: 10rpx; | ||
1996 | +} | ||
1997 | + | ||
1998 | +.right-arrow { | ||
1999 | + width: 15rpx; | ||
2000 | + height: 15rpx; | ||
2001 | + border-top: 2rpx solid #d70026; | ||
2002 | + border-right: 2rpx solid #d70026; | ||
2003 | + transform: rotate(45deg); | ||
2004 | + display: inline-block; | ||
2005 | + margin-bottom: 3rpx; | ||
2006 | +} | ||
2007 | + | ||
2008 | +.distance{ | ||
2009 | + padding-left: 15rpx; | ||
2010 | + padding-right: 15rpx; | ||
2011 | + background: #eee; | ||
2012 | + border-radius: 20rpx; | ||
2013 | + margin-right: 5rpx; | ||
2014 | + color: #999; | ||
2015 | + height: 38rpx; | ||
2016 | + line-height: 38rpx; | ||
2017 | +} | ||
2018 | + | ||
2019 | +.shop_name{ | ||
2020 | + margin-right: 10rpx; | ||
2021 | +} | ||
2022 | + | ||
2023 | +.xc-distance-top{ | ||
2024 | + margin-top: 10rpx; | ||
2025 | +} | ||
2026 | + | ||
2027 | + | ||
2028 | +.popup-frame{ | ||
2029 | + position: fixed; | ||
2030 | + /* bottom:99rpx; */ | ||
2031 | + bottom: 0; | ||
2032 | + z-index: 20; | ||
2033 | + background: white; | ||
2034 | + width: 100%; | ||
2035 | + border-radius: 20rpx 20rpx 0 0; | ||
2036 | + height: auto; | ||
2037 | +} | ||
2038 | + | ||
2039 | +.popup-top{ | ||
2040 | + border-bottom: 1rpx solid #eee; | ||
2041 | + height: 155rpx; | ||
2042 | + width: 95%; | ||
2043 | + margin: auto; | ||
2044 | + line-height: 155rpx; | ||
2045 | + | ||
2046 | +} | ||
2047 | + | ||
2048 | + | ||
2049 | +/* .flex-space-between{ | ||
2050 | + display: flex; | ||
2051 | + justify-content:space-between; | ||
2052 | +} */ | ||
2053 | + | ||
2054 | +.modal-closes { | ||
2055 | + position: absolute; | ||
2056 | + right: 30rpx; | ||
2057 | + top: -15rpx; | ||
2058 | + height: 25rpx; | ||
2059 | +} | ||
2060 | + | ||
2061 | +.choose_more{ | ||
2062 | + margin-top: 40rpx; | ||
2063 | + margin-right: 20rpx; | ||
2064 | + | ||
2065 | +} | ||
2066 | +.choose_mores{ | ||
2067 | + margin-top: 30rpx; | ||
2068 | + margin-right: 15rpx; | ||
2069 | + | ||
2070 | +} | ||
2071 | + | ||
2072 | +.bg_rights{ | ||
2073 | + border-top: 2rpx solid ; | ||
2074 | + border-right: 2rpx solid ; | ||
2075 | + transform: rotate(45deg); | ||
2076 | + display: inline-block; | ||
2077 | + width: 15rpx;height:15rpx; | ||
2078 | + border-color: #da0b31; | ||
2079 | +} | ||
2080 | + | ||
2081 | + | ||
2082 | +.mongolia-layer{ | ||
2083 | + position: fixed; | ||
2084 | + left: 0; | ||
2085 | + top: 0; | ||
2086 | + right: 0; | ||
2087 | + bottom: 0; | ||
2088 | + z-index: 11; | ||
2089 | + background: rgba(0,0,0,0.4); | ||
2090 | + width: 100%; | ||
2091 | + height: 91.9%; | ||
2092 | +} | ||
2093 | + | ||
2094 | + | ||
2095 | + | ||
2096 | + | ||
2097 | +.store-list{ | ||
2098 | + width: 95%; | ||
2099 | + min-height:300rpx; | ||
2100 | + overflow-y: scroll; | ||
2101 | + margin: auto; | ||
2102 | + max-height: 610rpx; | ||
2103 | +} | ||
2104 | + | ||
2105 | +.store-list .store_choose{ | ||
2106 | + width: 100%; | ||
2107 | + height: 120rpx; | ||
2108 | + line-height: 125rpx; | ||
2109 | + border-bottom: 1rpx solid #eee; | ||
2110 | +} | ||
2111 | + | ||
2112 | +.store-list .store_choose .store{ | ||
2113 | + width: 100%; | ||
2114 | + margin: auto; | ||
2115 | + line-height: 37rpx; | ||
2116 | + padding-left: 20rpx; | ||
2117 | +} | ||
2118 | + | ||
2119 | +.xc-hook{ | ||
2120 | + width: 35rpx; | ||
2121 | + height: 35rpx; | ||
2122 | + transform: rotate(-145deg); | ||
2123 | + line-height: 37rpx; | ||
2124 | + text-align: center; | ||
2125 | +} | ||
2126 | + | ||
2127 | +.butttem5{ | ||
2128 | + margin-bottom: 5rpx; | ||
2129 | +} | ||
2130 | + | ||
2131 | +.address-frame{ | ||
2132 | + width: 93%; | ||
2133 | + margin-left: 7rpx; | ||
2134 | +} | ||
2135 | + | ||
2136 | +.store-bottom{ | ||
2137 | + width: 85%; | ||
2138 | + margin: auto; | ||
2139 | + height: 90rpx; | ||
2140 | + } | ||
2141 | + | ||
2142 | + .determine{ | ||
2143 | + width: 260rpx; | ||
2144 | + height: 55rpx; | ||
2145 | + border-radius: 50rpx; | ||
2146 | + line-height: 55rpx; | ||
2147 | + } | ||
2148 | + | ||
2149 | + .default{ | ||
2150 | + width: 260rpx; | ||
2151 | + height: 55rpx; | ||
2152 | + border:3rpx solid #c8c8c8; | ||
2153 | + border-radius: 50rpx; | ||
2154 | + line-height: 55rpx; | ||
2155 | + } | ||
2156 | + | ||
2157 | + .sort_store_list .sort-store-frame .sort-store { | ||
2158 | + width: 94.5%; | ||
2159 | + margin: auto; | ||
2160 | + } | ||
2161 | + | ||
2162 | + | ||
2163 | + .sort_store_list .sort-store-frame{ | ||
2164 | + width: 100%; | ||
2165 | + height: 100rpx; | ||
2166 | + line-height:100rpx; | ||
2167 | + border-bottom: 1rpx solid #eee; | ||
2168 | + } | ||
2169 | + | ||
2170 | + .black_rights-frame .black_rights{ | ||
2171 | + border-top: 3rpx solid; | ||
2172 | + border-right: 3rpx solid; | ||
2173 | + transform: rotate(45deg); | ||
2174 | + display: inline-block; | ||
2175 | + width: 20rpx; | ||
2176 | + height: 20rpx; | ||
2177 | + } | ||
2178 | + | ||
2179 | + | ||
2180 | + .sort_store_list{ | ||
2181 | + max-height: 700rpx; | ||
2182 | + overflow: hidden; | ||
2183 | + overflow-y: scroll; | ||
2184 | + width: 95%; | ||
2185 | + margin: auto; | ||
2186 | + } | ||
2187 | + | ||
2188 | + .xc-hooks{ | ||
2189 | + width: 30rpx; | ||
2190 | + height: 30rpx; | ||
2191 | + border: 1rpx solid #999; | ||
2192 | +} | ||
2193 | + | ||
2194 | +.no_store{color:#d60021; font-size: 26rpx;} | ||
2195 | + | ||
2196 | +.sub.active { | ||
2197 | + /* background-color: #ddd; */ | ||
2198 | + color: #ccc; | ||
2199 | +} | ||
2200 | + | ||
2201 | +.c-red22{ color:#d60021; } |
packageG/pages/team/team_success/team_success.js
@@ -448,7 +448,7 @@ Page({ | @@ -448,7 +448,7 @@ Page({ | ||
448 | 448 | ||
449 | //二微码 | 449 | //二微码 |
450 | var path3 = os.url+ "/api/wx/open/app/user/getWeAppEwm/"+ | 450 | var path3 = os.url+ "/api/wx/open/app/user/getWeAppEwm/"+ |
451 | - os.stoid+"?sceneValue="+scene+"&pageValue=pages/team/team_show/team_show"; | 451 | + os.stoid+"?sceneValue="+scene+"&pageValue=packageG/pages/team/team_show/team_show"; |
452 | 452 | ||
453 | console.log(path3,6000); | 453 | console.log(path3,6000); |
454 | 454 | ||
@@ -840,7 +840,7 @@ Page({ | @@ -840,7 +840,7 @@ Page({ | ||
840 | var th=this; | 840 | var th=this; |
841 | var scene=this.data.teamgroup.id; | 841 | var scene=this.data.teamgroup.id; |
842 | var goods_id=this.data.teamlist.goods_id; | 842 | var goods_id=this.data.teamlist.goods_id; |
843 | - var url="/pages/team/team_show/team_show?tg_id="+scene+"&goods_id="+goods_id; | 843 | + var url="/packageG/pages/team/team_show/team_show?tg_id="+scene+"&goods_id="+goods_id; |
844 | //--分享图片-- | 844 | //--分享图片-- |
845 | var img=th.data.iurl+th.data.teamlist.share_imgurl; | 845 | var img=th.data.iurl+th.data.teamlist.share_imgurl; |
846 | //--把会员分享出去-- | 846 | //--把会员分享出去-- |
pages/team/team_show/team_show.js
1 | -var t = require("../../../utils/util.js"), | ||
2 | - ut = t, | ||
3 | - e = require("../../../utils/common.js"), | ||
4 | - a = require("../../../utils/wxParse/wxParse.js"), | ||
5 | - s = getApp(), | ||
6 | - i = s.request, | ||
7 | - rq = i, | ||
8 | - oo = s.globalData, | ||
9 | - o = s.globalData.setting, | ||
10 | - os = o; | ||
11 | -var regeneratorRuntime = require('../../../utils/runtime.js'); | ||
12 | - | ||
13 | - | ||
14 | Page({ | 1 | Page({ |
15 | - data: { | ||
16 | - | ||
17 | - num: 1, //输入框值 加减之间的值 | ||
18 | - minusStatus: 'disable', //禁用按钮 | ||
19 | - ii_endname: 'disable', //吐司的禁用按钮 | ||
20 | - pd_xx: false, //弹框 | ||
21 | - buy_start_date: null, //转换完的时间 | ||
22 | - ssl: null, | ||
23 | - yijian: false, //一键参加按钮显示隐藏 | ||
24 | - | ||
25 | - //选择门店 | ||
26 | - qh: true, //取货 | ||
27 | - xz: false, //选择 | ||
28 | - one: false, //第一层显示隐藏 | ||
29 | - se: false, //已选择的值 | ||
30 | - list: false, //第二层显示隐藏 | ||
31 | - ssl_child: null, //第二层的值 | ||
32 | - sele_dl_name: "", //选择的值 | ||
33 | - end_name: "", //最后显示的值 | ||
34 | - | ||
35 | - ii: 0, //选择门店显示隐藏 | ||
36 | - zk: true, //展开列表显示隐藏 | ||
37 | - stoid: o.stoid, | ||
38 | - hiddenName: false, //收起列表显示隐藏 | ||
39 | - teamlist: null, //活动主表 | ||
40 | - teamgroup: null, //活动从表 | ||
41 | - goods: null, //商品数据 | ||
42 | - pindGoods: null, //拼单数据 | ||
43 | - imageurl: os.imghost, //有礼派图片地址 | ||
44 | - team_id: 0, //支付是否成功 | ||
45 | - listno: "", //订单编号 | ||
46 | - | ||
47 | - //选择的门店id | ||
48 | - pick_id:0, | ||
49 | - //会员团满团时的判断 | ||
50 | - tg_arr:null, | ||
51 | - //是否显示 | ||
52 | - is_show:0, | ||
53 | - //是不是团结束 | ||
54 | - is_group_end:0, | ||
55 | - //团结束的提示语句 | ||
56 | - end_text:"", | ||
57 | - //是开团或者参团,0参团,1开团(但是,商家团还是参团) | ||
58 | - is_kt_or_ct:0, | ||
59 | - //判断redis的数组 | ||
60 | - redis_arr:null, | ||
61 | - | ||
62 | - iurl:os.imghost, | ||
63 | - | ||
64 | - | ||
65 | - openSpecModal: !1, | ||
66 | - openSpecModal_pt: !1, //拼单的弹起, | ||
67 | - | ||
68 | - | ||
69 | - //门店相关 | ||
70 | - ismend: 0, | ||
71 | - is_sec_mend: 0, | ||
72 | - sto_sele_name: "", //选中的门店名称 | ||
73 | - sto_sele_id: "", //选中的门店id | ||
74 | - sto_sele_distr: "", //选择的门店的配送方式 | ||
75 | - is_show_sto_cat: 1, //是否显示门店分类 | ||
76 | - only_pk: null, | ||
77 | - all_sto: null, | ||
78 | - sec_sto: null, //选择了的门店分类 | ||
79 | - pickpu_list: null, //读出的所有门店list | ||
80 | - def_pickpu_list: null, //一开始5个门店list | ||
81 | - sec_pick_index: 0, //第二级门店选择ID | ||
82 | - fir_pick_index: 0, //第一级门店选择ID | ||
83 | - all_pick_list:null,//所有的门店先记录起来 | ||
84 | - bconfig:null, | ||
85 | - def_pick_store: null, // 默认的门店 | ||
86 | - fir_def_store:null, //客户默认的门店的 | ||
87 | - lat: null, //维度 | ||
88 | - lon: null, //经度 | ||
89 | - | ||
90 | - is_get_local_ok: 0, //获取坐标是否完成 | ||
91 | - | ||
92 | - sort_store: 0, //门店分类 | ||
93 | - choice_sort_store: 0, //选择分类门店 | ||
94 | - template_id:[],//订阅消息id | ||
95 | - }, | 2 | + data: {}, |
96 | onLoad: async function(options) { | 3 | onLoad: async function(options) { |
97 | - wx.setNavigationBarTitle({ title: "拼团订单",}) | ||
98 | - //var postdata=getApp().globalData.to_group; | ||
99 | - var postdata=options; | ||
100 | - var tg_id = postdata.tg_id, first_leader=options.first_leader,goods_id=options.goods_id; | ||
101 | - //如果tg_id是空的话 | ||
102 | - if(tg_id==null ||goods_id==null){ | ||
103 | - var tg_id_str=decodeURIComponent(postdata.scene); | ||
104 | - tg_id_str=tg_id_str.split("_"); | ||
105 | - console.log(tg_id_str.length); | ||
106 | - //tg_id_str[0] teamgroup.id tg_id_str[1] user_id tg_id_str[2] goods_id | ||
107 | - switch(tg_id_str.length){ | ||
108 | - case 1: | ||
109 | - tg_id=tg_id_str[0]; | ||
110 | - break; | ||
111 | - case 2: | ||
112 | - tg_id=tg_id_str[0]; | ||
113 | - first_leader=tg_id_str[1]; | ||
114 | - break; | ||
115 | - case 3: | ||
116 | - tg_id=tg_id_str[0]; | ||
117 | - first_leader=tg_id_str[1]; | ||
118 | - goods_id=tg_id_str[2]; | ||
119 | - break; | ||
120 | - } | ||
121 | - } | ||
122 | - //--判断一下是不是导购-- | ||
123 | - if(first_leader){ | ||
124 | - getApp().globalData.first_leader=first_leader; | ||
125 | - //调用接口判断是不是会员 | ||
126 | - getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{ | ||
127 | - if(res.data.code==0){ | ||
128 | - getApp().globalData.guide_id=res.data.data.id; | ||
129 | - getApp().globalData.guide_pick_id= res.data.data.pickup_id | ||
130 | - } | ||
131 | - }) | ||
132 | - } | ||
133 | - this.setData({tg_id: tg_id,goods_id}); | ||
134 | - getApp().globalData.to_group=null; | ||
135 | - | ||
136 | - var th=this; | ||
137 | - getApp().getConfig2(function(e) { | ||
138 | - var json_d = JSON.parse(e.switch_list); | ||
139 | - th.setData({ bconfig: e,sys_switch:json_d}); | ||
140 | - th.wait_for_store_config(); //获取默认的门店 | ||
141 | - }) | ||
142 | - try { | ||
143 | - let template_id =await getApp().get_template_id('1023') | ||
144 | - this.setData({ | ||
145 | - template_id | ||
146 | - }) | ||
147 | - } catch (error) {} | ||
148 | - | 4 | + getApp().globalData.ts_trans_data=options; |
5 | + getApp().goto('/packageG/pages/team/team_show/team_show?transfer=1'); | ||
149 | }, | 6 | }, |
150 | - | ||
151 | //显示加载 | 7 | //显示加载 |
152 | - onShow:function(){ | ||
153 | - //-- 看一下隐私政策要不要显示 -- | ||
154 | - var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
155 | - if (privacy_pop) { | ||
156 | - privacy_pop.check_pri_show(); | ||
157 | - } | ||
158 | - | ||
159 | - getApp().check_can_share(); | ||
160 | - var tg_id = this.data.tg_id,th=this; | ||
161 | - this.init(tg_id); | ||
162 | - }, | ||
163 | - | ||
164 | - //c点击打开拼团弹窗 | ||
165 | - cpd: function() { | ||
166 | - this.setData({ pd_xx: true,}) | ||
167 | - }, | ||
168 | - | ||
169 | - //点击关闭拼团弹窗 | ||
170 | - close_pt_xx: function() { | ||
171 | - this.setData({ pd_xx: false, }) | ||
172 | - }, | ||
173 | - //天天拼团订阅消息提醒 | ||
174 | - sendsm: function (ee) { | ||
175 | - let th = this; | ||
176 | - var template_id = this.data.template_id; | ||
177 | - // //授权订阅 | ||
178 | - wx.requestSubscribeMessage({ | ||
179 | - tmplIds: template_id, | ||
180 | - success(res) { | ||
181 | - th.cyijian(ee); | ||
182 | - }, | ||
183 | - fail(res) { | ||
184 | - th.cyijian(ee); | ||
185 | - } | ||
186 | - }) | ||
187 | - }, | ||
188 | - //按钮点击一键参加团按钮 | ||
189 | - cyijian: function(e) { | ||
190 | - //--先判断会员状态-- | ||
191 | - var user_info=getApp().globalData.userInfo; | ||
192 | - if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){ | ||
193 | - wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | ||
194 | - return false; | ||
195 | - } | ||
196 | - | ||
197 | - var is_kt_or_ct=e.currentTarget.dataset.isct; | ||
198 | - this.setData({ | ||
199 | - yijian: true,is_kt_or_ct:is_kt_or_ct, | ||
200 | - }) | ||
201 | - }, | ||
202 | - //关闭展开列表 | ||
203 | - click: function(e) { | ||
204 | - this.setData({ | ||
205 | - hiddenName: !this.data.hiddenName, | ||
206 | - zk: !this.data.zk, | ||
207 | - }) | ||
208 | - }, | ||
209 | - //打开收起拼团列表 | ||
210 | - czk: function(e) { | ||
211 | - this.setData({ | ||
212 | - zk: !this.data.zk, | ||
213 | - hiddenName: !this.data.hiddenName, | ||
214 | - }) | ||
215 | - }, | ||
216 | - //关闭购买页面 | ||
217 | - cbcou: function(e) { | ||
218 | - this.setData({ | ||
219 | - yijian: false, | ||
220 | - }) | ||
221 | - | ||
222 | - }, | ||
223 | - //qh点击取货 | ||
224 | - cqh: function(e) { | ||
225 | - if(this.data.ssl) { | ||
226 | - this.setData({ | ||
227 | - qh: false, | ||
228 | - xz: true, | ||
229 | - one: true, | ||
230 | - }) | ||
231 | - }else{ | ||
232 | - this.setData({ | ||
233 | - qh: false, | ||
234 | - xz: true, | ||
235 | - one: false, | ||
236 | - list:1, | ||
237 | - }) | ||
238 | - } | ||
239 | - | ||
240 | - }, | ||
241 | - | ||
242 | - //cxz点击选择门店 | ||
243 | - cxz: function(e) { | ||
244 | - this.setData({ | ||
245 | - qh: true, | ||
246 | - xz: false, | ||
247 | - one: false, | ||
248 | - }) | ||
249 | - }, | ||
250 | - //ccc点击选择的 | ||
251 | - sel: function(e) { | ||
252 | - this.setData({ | ||
253 | - list: false, | ||
254 | - se: false, | ||
255 | - one: true, | ||
256 | - xz: true, | ||
257 | - }) | ||
258 | - }, | ||
259 | - //list点击底二层 | ||
260 | - clist: function(e) { | ||
261 | - var i = e.currentTarget.dataset.end; | ||
262 | - var pick_id = e.currentTarget.dataset.pick_id; | ||
263 | - var pick_dis = e.currentTarget.dataset.pick_dis; | ||
264 | - | ||
265 | - this.setData({ | ||
266 | - end_name: i, | ||
267 | - pick_id: pick_id, | ||
268 | - ii: 1, | ||
269 | - qh: true, | ||
270 | - se: false, | ||
271 | - list: false, | ||
272 | - pick_dis: pick_dis | ||
273 | - }) | ||
274 | - }, | ||
275 | - | ||
276 | - //点击第一层 | ||
277 | - setchild: function(e) { | ||
278 | - var ind = e.currentTarget.dataset.bindex; | ||
279 | - var nn = e.currentTarget.dataset.bname; | ||
280 | - console.log(nn); | ||
281 | - var list = this.data.ssl[ind].s_arr; | ||
282 | - this.setData({ | ||
283 | - ssl_child: list, | ||
284 | - sele_dl_name: nn, | ||
285 | - xz: false, | ||
286 | - one: false, | ||
287 | - list: true, | ||
288 | - se: true | ||
289 | - }); | ||
290 | - }, | ||
291 | - | ||
292 | - //事件处理函数 | ||
293 | - /*点击减号*/ | ||
294 | - bindMinus: function() { | ||
295 | - var num = this.data.num; | ||
296 | - if (num > 1) { | ||
297 | - num--; | ||
298 | - } | ||
299 | - var minusStatus = num > 1 ? 'normal' : 'disable'; | ||
300 | - this.setData({ | ||
301 | - num: num, | ||
302 | - minusStatus: minusStatus, | ||
303 | - }) | ||
304 | - }, | ||
305 | - | ||
306 | - /*点击加号*/ | ||
307 | - bindPlus: function() { | ||
308 | - var th=this; | ||
309 | - var num = this.data.num; | ||
310 | - var ii = this.data.ii; | ||
311 | - var minusStatus = num > 1 ? 'normal' : 'disable'; | ||
312 | - | ||
313 | - num++; | ||
314 | - //要判断库存数量,限购数量 | ||
315 | - th.check_num(num,minusStatus); | ||
316 | - | ||
317 | - }, | ||
318 | - | ||
319 | - async check_num(num,minusStatus){ | ||
320 | - | ||
321 | - var gd=this.data.goods; | ||
322 | - var th=this; | ||
323 | - var user_id=getApp().globalData.user_id; | ||
324 | - var promgoodsbuynum=0; | ||
325 | - var goodsbuynum=0; | ||
326 | - getApp().request.promiseGet("/api/weshop/ordergoods/getUserBuyGoodsNum", { | ||
327 | - data: { | ||
328 | - store_id: os.stoid, | ||
329 | - user_id: user_id, | ||
330 | - goods_id: gd.goods_id, | ||
331 | - prom_type: gd.prom_type, | ||
332 | - prom_id: gd.prom_id, isnew:1 | ||
333 | - | ||
334 | - }, | ||
335 | - }).then(res=>{ | ||
336 | - var buy_num_data=res.data.data; | ||
337 | - if(buy_num_data.promgoodsbuynum) promgoodsbuynum=buy_num_data.promgoodsbuynum; | ||
338 | - goodsbuynum=buy_num_data.goodsbuynum; | ||
339 | - }) | ||
340 | - | ||
341 | - //先判断限购 | ||
342 | - if (num+goodsbuynum>gd.viplimited && gd.viplimited>0) { | ||
343 | - getApp().confirmBox("超出商品限购"); | ||
344 | - return false; | ||
345 | - } | ||
346 | - if (num+promgoodsbuynum>th.data.teamlist.buy_limit && th.data.teamlist.buy_limit>0) { | ||
347 | - getApp().confirmBox("超出活动限购"); | ||
348 | - return false; | ||
349 | - } | ||
350 | - //判断库存 | ||
351 | - if ( num>gd.store_count) { | ||
352 | - getApp().confirmBox("超出商品库存"); | ||
353 | - return false; | ||
354 | - } | ||
355 | - var r_num=0; | ||
356 | - await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/6/" + th.data.teamlist.id, { | ||
357 | - 1: 1 | ||
358 | - }).then(res => { | ||
359 | - var em = res; | ||
360 | - if (em.data.code == 0) { | ||
361 | - r_num=em.data.data; | ||
362 | - } | ||
363 | - }) | ||
364 | - //--判断库存--- | ||
365 | - if ( num>r_num) { | ||
366 | - getApp().confirmBox("超出商品库存"); | ||
367 | - return false; | ||
368 | - } | ||
369 | - | ||
370 | - this.setData({ | ||
371 | - num: num, | ||
372 | - minusStatus: minusStatus, | ||
373 | - }) | ||
374 | - | ||
375 | - }, | ||
376 | - | ||
377 | - /*输入框事件*/ | ||
378 | - bindManual: function(e) { | ||
379 | - var num = e.detail.value; | ||
380 | - var minusStatus = num > 1 ? 'normal' : 'disable'; | ||
381 | - this.setData({ | ||
382 | - num: num, | ||
383 | - minusStatus: minusStatus | ||
384 | - }) | ||
385 | - }, | ||
386 | - | ||
387 | - //---------------初始化代码---------------- | ||
388 | - async init(tg_id) { | ||
389 | - var goods_id = 0, //商品ID, | ||
390 | - pageteam = null, // | ||
391 | - original_img = null, //商品图片 | ||
392 | - ee = this, | ||
393 | - ordertx = [], | ||
394 | - teamlist = null, //活动表 | ||
395 | - goods = null, //商品 | ||
396 | - teamgroup = null, //活動从表 | ||
397 | - max_num = 0, | ||
398 | - min_price = 0, | ||
399 | - th=this, | ||
400 | - that=th, | ||
401 | - flag=null; | ||
402 | - await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/2",{ | ||
403 | - data:{ | ||
404 | - store_id: os.stoid, | ||
405 | - is_end: 0, | ||
406 | - is_show: 1, | ||
407 | - user_id: getApp().globalData.user_id, | ||
408 | - pageSize:1000 | ||
409 | - } | ||
410 | - }).then(res=>{ | ||
411 | - let pd_list=res.data.data.pageData; | ||
412 | - if(res.data.code==0 && pd_list.length>0){ | ||
413 | - flag =pd_list.some(pd=>{ | ||
414 | - // if(th.data.goods_id){ | ||
415 | - return pd.goods_id==th.data.goods_id; | ||
416 | - // } | ||
417 | - }) | ||
418 | - } | ||
419 | - }) | ||
420 | - if(!flag){ | ||
421 | - wx.showToast({title: "当前会员身份不符,无法参与", icon: 'none', duration: 3000}); | ||
422 | - setTimeout(function () { | ||
423 | - ut.wx_back(); | ||
424 | - }, 1000) | ||
425 | - return false; | ||
426 | - } | ||
427 | - | ||
428 | - //获取活动从表信息team_id,listno团编号(券号) | ||
429 | - await getApp().request.promiseGet("/api/weshop/teamgroup/get/"+os.stoid+"/"+tg_id, { | ||
430 | - }).then(res => { | ||
431 | - | ||
432 | - if(res.data.code !=0 ){ | ||
433 | - getApp().showWarning(res.data.msg); | ||
434 | - th.go_back(); | ||
435 | - return false; | ||
436 | - } | ||
437 | - | ||
438 | - if(res.data && res.data.data ) { | ||
439 | - | ||
440 | - teamgroup = res.data.data; | ||
441 | - //获取当前时间,并且判断剩余时间 | ||
442 | - var nt = ut.gettimestamp(); | ||
443 | - var buy_start_date = ut.formatTime(teamgroup.buy_start_date, "yyyy-MM-dd hh:mm:ss"); | ||
444 | - ee.setData({ | ||
445 | - pindGoods: teamgroup, | ||
446 | - buy_start_date: buy_start_date | ||
447 | - }); | ||
448 | - | ||
449 | - if(nt>teamgroup.kt_end_time) { | ||
450 | - th.setData({is_group_end:1,end_text:"团期已经结束"}) | ||
451 | - } | ||
452 | - if(teamgroup.state==1) { | ||
453 | - th.setData({is_group_end:1,end_text:"团期已经结束"}) | ||
454 | - } | ||
455 | - if(teamgroup.state==3 || teamgroup.state==4 || teamgroup.state==5 ) { | ||
456 | - th.setData({is_group_end:2,end_text:"团期已满"}) | ||
457 | - } | ||
458 | - | ||
459 | - } | ||
460 | - }) | ||
461 | - | ||
462 | - if(!teamgroup || !teamgroup.listno){ | ||
463 | - ut.m_toast('未找到团号'); | ||
464 | - th.go_back(); | ||
465 | - return false; | ||
466 | - } | ||
467 | - | ||
468 | - //判断是不是要继续的开关 | ||
469 | - var is_ok=1; | ||
470 | - | ||
471 | - //要先读取订单,看自己有没有买过该团的商品 | ||
472 | - await getApp().request.promiseGet("/api/weshop/order/page", { | ||
473 | - data: { | ||
474 | - pt_prom_id:teamgroup.team_id, | ||
475 | - user_id: oo.user_id, | ||
476 | - store_id: os.stoid, | ||
477 | - pageSize: 1, | ||
478 | - page: 1 | ||
479 | - } | ||
480 | - }).then(res => { | ||
481 | - var e=res; | ||
482 | - if (e.data.code != 0) { | ||
483 | - getApp().showWarning("读取订单失败"); | ||
484 | - th.go_back(); | ||
485 | - is_ok=0; | ||
486 | - return fasle; | ||
487 | - } | ||
488 | - //--跳转到已经购买的情况-- | ||
489 | - if (e.data.data.pageData.length > 0) { | ||
490 | - var odr = e.data.data.pageData[0]; | ||
491 | - //还未支付 | ||
492 | - if (odr.pt_status == 0 && odr.order_status == 1) { | ||
493 | - wx.navigateTo({ | ||
494 | - url: "/pages/user/order_detail/order_detail?order_id=" + odr.order_id, | ||
495 | - }); | ||
496 | - is_ok=0; | ||
497 | - }else if (odr.pt_status == 1 && odr.order_status == 1){ | ||
498 | - wx.navigateTo({ | ||
499 | - url: "/packageG/pages/team/team_success/team_success?ordersn=" + odr.order_sn, | ||
500 | - }); | ||
501 | - is_ok=0; | ||
502 | - } | ||
503 | - } | ||
504 | - }) | ||
505 | - if(!is_ok) return false; | ||
506 | - | ||
507 | - //获取活动表的信息根据活动team_id | ||
508 | - await getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + teamgroup.team_id, { | ||
509 | - data: {} | ||
510 | - }).then(res => { | ||
511 | - if (res.data.code == 0) { | ||
512 | - teamlist = res.data.data; | ||
513 | - goods_id = res.data.data.goods_id; | ||
514 | - //----------查看阶梯团------------ | ||
515 | - if (teamlist.ct_rylist != "" && teamlist.ct_rylist != null && teamlist.ct_rylist != undefined) { | ||
516 | - var ct_rylist = JSON.parse(teamlist.ct_rylist); | ||
517 | - var max = 0; var pri = 0; | ||
518 | - ct_rylist.forEach(function (val, ind) { | ||
519 | - if (val.rynum > max) { | ||
520 | - max = val.rynum; | ||
521 | - pri = val.price; | ||
522 | - } | ||
523 | - }) | ||
524 | - max_num = max; | ||
525 | - min_price = pri; | ||
526 | - } | ||
527 | - | ||
528 | - } | ||
529 | - }) | ||
530 | - | ||
531 | - if(!teamlist){ | ||
532 | - getApp().showWarning("未找到活动"); | ||
533 | - is_ok=0; | ||
534 | - }else{ | ||
535 | - if(teamlist.is_end==1){ | ||
536 | - getApp().showWarning("拼单活动已经结束"); is_ok=0; | ||
537 | - } | ||
538 | - var now=ut.gettimestamp(); | ||
539 | - if(teamlist.end_time<now && is_ok){ | ||
540 | - getApp().showWarning("拼单活动已经结束"); is_ok=0; | ||
541 | - } | ||
542 | - } | ||
543 | - if(!is_ok) { | ||
544 | - th.go_back(); | ||
545 | - return false; | ||
546 | - } | ||
547 | - | ||
548 | - //多少人参团头像 | ||
549 | - await getApp().request.promiseGet("/api/weshop/order/pagePtList", { | ||
550 | - data: { | ||
551 | - store_id: o.stoid, | ||
552 | - pt_listno: teamgroup.listno, | ||
553 | - } | ||
554 | - }).then(res => { | ||
555 | - ordertx = res.data.data.pageData; | ||
556 | - }) | ||
557 | - | ||
558 | - //获取商品信息 | ||
559 | - await getApp().request.promiseGet("/api/weshop/goods/get/" + os.stoid + "/" + goods_id, { | ||
560 | - }).then(res => { | ||
561 | - //商品地址 | ||
562 | - original_img = ee.data.imageurl + res.data.data.original_img, | ||
563 | - goods = res.data.data | ||
564 | - }) | ||
565 | - | ||
566 | - //显示商品规格 | ||
567 | - var gg = ""; | ||
568 | - if(goods.goods_spec=="null" || goods.goods_spec==null ) goods.goods_spec=""; | ||
569 | - if(goods.goods_color=="null" || goods.goods_color==null) goods.goods_color=""; | ||
570 | - | ||
571 | - if (goods.goods_spec != "" && goods.goods_color != "") { | ||
572 | - gg = goods.goods_spec + "/" + goods.goods_color; | ||
573 | - } else if (goods.goods_spec != "" || goods.goods_color != "") { | ||
574 | - gg = goods.goods_spec + goods.goods_color; | ||
575 | - } else { | ||
576 | - gg = "规格1"; | ||
577 | - } | ||
578 | - goods.gg = gg; | ||
579 | - | ||
580 | - //只装5个 | ||
581 | - var ordertx2 = [], sf_num = 0, ct_nun = teamlist.ct_num; | ||
582 | - if (max_num) { | ||
583 | - ct_nun = parseInt(max_num); | ||
584 | - if (ct_nun < ordertx.length) ct_nun = ordertx.length; | ||
585 | - } | ||
586 | - | ||
587 | - if (ct_nun > 5) ct_nun = 5; | ||
588 | - for (var i = 0; i < ct_nun; i++) { | ||
589 | - if (i >= ordertx.length) sf_num++ | ||
590 | - else | ||
591 | - ordertx2.push(ordertx[i]); | ||
592 | - } | ||
593 | - | ||
594 | - var sf_arr = []; | ||
595 | - for (var i = 0; i < sf_num; i++) { | ||
596 | - sf_arr.push(i); | ||
597 | - } | ||
598 | - | ||
599 | - | ||
600 | - | ||
601 | - if(th.data.is_group_end==1 || th.data.is_group_end==2 ){ | ||
602 | - getApp().confirmBox(th.data.end_text); | ||
603 | - wx.redirectTo({ | ||
604 | - url: "/pages/goods/goodsInfo/goodsInfo?goods_id=" + goods.goods_id, | ||
605 | - }); | ||
606 | - return false; | ||
607 | - } | ||
608 | - | ||
609 | - //--当是会员团的时候才显示倒计时多久可以参团-- | ||
610 | - if(teamlist.kttype==2) { | ||
611 | - //显示判断多久才能购买商品,获取没有支付的会员 | ||
612 | - await getApp().request.promiseGet("/api/weshop/teamgroup/getTeamUser/" + os.stoid + "/" + teamgroup.id, { | ||
613 | - 1: 1 | ||
614 | - }).then(res => { | ||
615 | - var em = res; | ||
616 | - if (em.data.code == 0) { | ||
617 | - var tg_list = em.data.data.split("|"); | ||
618 | - var t_obj = {}; | ||
619 | - t_obj.order_id = tg_list[0]; | ||
620 | - t_obj.time = parseFloat(tg_list[1]) + 5 * 60; //五分钟后 | ||
621 | - t_obj.user_name = tg_list[2]; | ||
622 | - th.setData({tg_arr: t_obj}) | ||
623 | - } | ||
624 | - }) | ||
625 | - } | ||
626 | - | ||
627 | - //获取大家都在团信息 | ||
628 | - await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/"+os.stoid, { | ||
629 | - data: { | ||
630 | - pageSize: 2, | ||
631 | - page: 1, | ||
632 | - store_id: 1, | ||
633 | - is_end: 0, | ||
634 | - is_show: 1 | ||
635 | - } | ||
636 | - }).then(res => { | ||
637 | - if(ut.ajax_ok(res)){ | ||
638 | - pageteam = res.data.data.pageData; | ||
639 | - } | ||
640 | - }); | ||
641 | - | ||
642 | - //-- 获取用户的默认门店 -- | ||
643 | - getApp().get_user_store(function(ee) { | ||
644 | - if(!ee) { | ||
645 | - th.data.fir_def_store={}; //赋值空对象 | ||
646 | - return false; | ||
647 | - } | ||
648 | - | ||
649 | - if(getApp().globalData.is_dj_pk) th.setData({has_def:1}) | ||
650 | - //--定时器推迟一下-- | ||
651 | - | ||
652 | - var appd=getApp().globalData; | ||
653 | - var w_time = setInterval(function() { | ||
654 | - if (that.data.is_get_local_ok == 0) return false; | ||
655 | - if(!th.data.goods) return false; | ||
656 | - var g_distr_type=th.data.goods.distr_type; | ||
657 | - //--如果默认门店的配送方式不对,就不能被选择-- | ||
658 | - if(ee.distr_type!=0 && g_distr_type!=0 && ee.distr_type!=g_distr_type ){ | ||
659 | - //th.data.fir_def_store={}; //赋值空对象 | ||
660 | - //return false; | ||
661 | - ee.is_no_dis=1; | ||
662 | - } | ||
663 | - | ||
664 | - clearInterval(w_time); | ||
665 | - | ||
666 | - var distance = null; | ||
667 | - var e=JSON.parse(JSON.stringify(ee)); | ||
668 | - | ||
669 | - //如果有开启近距离的话,同时距离优不一样了 | ||
670 | - if (that.data.lat != null) { | ||
671 | - //如果经纬度有变化的话 | ||
672 | - if( appd.lat==that.data.lat && appd.lon==that.data.lon && e.distance>0 ){ | ||
673 | - that.data.fir_def_store=e; | ||
674 | - that.setData({ | ||
675 | - def_pick_store: e, | ||
676 | - sto_sele_name: e.pickup_name, | ||
677 | - sto_sele_id: e.pickup_id, | ||
678 | - sto_sele_distr: e.distr_type | ||
679 | - }) | ||
680 | - }else{ | ||
681 | - //要用接口是获取距离,js的计算不准 | ||
682 | - getApp().request.promiseGet("/api/weshop/pickup/list",{ | ||
683 | - data:{store_id:os.stoid,pickup_id:e.pickup_id,lat:th.data.lat,lon: th.data.lon,is_pos: 1}, | ||
684 | - }).then(res=>{ | ||
685 | - if(ut.ajax_ok(res)){ | ||
686 | - e=res.data.data.pageData[0]; | ||
687 | - if (e){ | ||
688 | - appd.pk_store=e; | ||
689 | - that.data.fir_def_store=e; | ||
690 | - that.setData({ | ||
691 | - def_pick_store: e, | ||
692 | - sto_sele_name: e.pickup_name, | ||
693 | - sto_sele_id: e.pickup_id, | ||
694 | - sto_sele_distr: e.distr_type | ||
695 | - }) | ||
696 | - } | ||
697 | - | ||
698 | - } | ||
699 | - }) | ||
700 | - } | ||
701 | - | ||
702 | - //e.distance = distance; | ||
703 | - appd.lat=that.data.lat; | ||
704 | - appd.lon=that.data.lon; | ||
705 | - | ||
706 | - }else{ | ||
707 | - if (e) { | ||
708 | - e.distance = null; | ||
709 | - that.data.fir_def_store=e; | ||
710 | - that.setData({ | ||
711 | - def_pick_store: e, | ||
712 | - sto_sele_name: e.pickup_name, | ||
713 | - sto_sele_id: e.pickup_id, | ||
714 | - sto_sele_distr: e.distr_type | ||
715 | - }) | ||
716 | - } | ||
717 | - } | ||
718 | - | ||
719 | - }, 500) | ||
720 | - | ||
721 | - }); | ||
722 | - | ||
723 | - //获取下redis长度,如果团已经弄完,或者拼单已经卖完 | ||
724 | - //设置值 | ||
725 | - ee.setData({ | ||
726 | - ordertx2: ordertx2, | ||
727 | - ordertx: ordertx, | ||
728 | - teamlist: teamlist, | ||
729 | - teamgroup: teamgroup, | ||
730 | - goods: goods, | ||
731 | - pageteam: pageteam, | ||
732 | - image: original_img, | ||
733 | - is_show:1, | ||
734 | - sf_arr: sf_arr | ||
735 | - }); | ||
736 | - ee.countDown2(); | ||
737 | - //---设置门店--- | ||
738 | - ee.get_sto(); | ||
739 | - //---定时设置一下待支付的订单--- | ||
740 | - ee.time_out(); | ||
741 | - }, | ||
742 | - | ||
743 | - onHide:function(){ | ||
744 | - this.setData({is_show:0,}); | ||
745 | - }, | ||
746 | - go_back:function(){ | ||
747 | - if(getCurrentPages()>1) | ||
748 | - wx.navigateBack({delta: 1}) | ||
749 | - else | ||
750 | - wx.navigateTo({ | ||
751 | - url: "/pages/index/index/index" | ||
752 | - }); | ||
753 | - }, | ||
754 | - //---小于10的格式化函数---- | ||
755 | - timeFormat(param) { | ||
756 | - return param < 10 ? '0' + param : param; | ||
757 | - }, | ||
758 | - countDown2() { | ||
759 | - var th = this; | ||
760 | - // 获取当前时间,同时得到活动结束时间数组 | ||
761 | - var newTime = ut.gettimestamp(); | ||
762 | - var o = this.data.pindGoods; | ||
763 | - var endTime = o.kt_end_time; | ||
764 | - | ||
765 | - let obj = null; | ||
766 | - // 如果活动未结束,对时间进行处理 | ||
767 | - if (endTime - newTime > 0) { | ||
768 | - let time = (endTime - newTime); | ||
769 | - // 获取天、时、分、秒 | ||
770 | - let day = parseInt(time / (60 * 60 * 24)); | ||
771 | - let hou = parseInt(time % (60 * 60 * 24) / 3600); | ||
772 | - let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); | ||
773 | - let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); | ||
774 | - obj = { | ||
775 | - day: this.timeFormat(day), | ||
776 | - hou: this.timeFormat(hou), | ||
777 | - min: this.timeFormat(min), | ||
778 | - sec: this.timeFormat(sec) | ||
779 | - } | ||
780 | - } else { | ||
781 | - //活动已结束,全部设置为'00' | ||
782 | - obj = { | ||
783 | - day: '00', | ||
784 | - hou: '00', | ||
785 | - min: '00', | ||
786 | - sec: '00' | ||
787 | - } | ||
788 | - } | ||
789 | - var txt = "pindGoods.djs"; | ||
790 | - th.setData({ | ||
791 | - obj: obj | ||
792 | - }); | ||
793 | - setTimeout(th.countDown2, 1000); | ||
794 | - }, | ||
795 | - | ||
796 | - //------去支付,购买------- | ||
797 | - go_pay:function () { | ||
798 | - var th=this; | ||
799 | - var def_pick_store=this.data.def_pick_store; | ||
800 | - if(def_pick_store && def_pick_store.pickup_id) { | ||
801 | - th.data.pick_id=def_pick_store.pickup_id; //选择门店 | ||
802 | - th.data.end_name=def_pick_store.pickup_name; | ||
803 | - } | ||
804 | - if (!th.data.pick_id) return s.my_warnning("请选择门店", 0, th); | ||
805 | - if (th.data.pick_id==0) return s.my_warnning("请选择门店", 0, th); | ||
806 | - | ||
807 | - //----判断起购数---- | ||
808 | - var qnum=parseFloat(th.data.teamlist.minbuynum); | ||
809 | - if(qnum>0 && qnum>th.data.num ){ | ||
810 | - getApp().confirmBox("拼团商品至少要买"+qnum+"件!"); | ||
811 | - return false; | ||
812 | - } | ||
813 | - //先判断团的redis数量 | ||
814 | - this.buy_check_redis(function () { | ||
815 | - var arr=th.data.redis_arr; | ||
816 | - if(th.data.num>arr[0]){ | ||
817 | - if(arr[0]>0){ | ||
818 | - getApp().showWarning("超出活动库存"); | ||
819 | - }else{ | ||
820 | - getApp().showWarning("拼单已经抢光"); | ||
821 | - } | ||
822 | - return false; | ||
823 | - } | ||
824 | - if(th.data.teamlist.kttype==2 && 1>arr[1]){ | ||
825 | - getApp().showWarning("拼团已满"); | ||
826 | - return false; | ||
827 | - } | ||
828 | - | ||
829 | - //--------------此时操作的数据------------ | ||
830 | - var newd = { | ||
831 | - goods_id: th.data.goods.goods_id, | ||
832 | - goods_num: th.data.num, | ||
833 | - pick_id: th.data.pick_id, | ||
834 | - user_id: oo.user_id, | ||
835 | - store_id: th.data.stoid, | ||
836 | - goods_name: th.data.goods.goods_name, | ||
837 | - goods_sn: th.data.goods.goods_sn, | ||
838 | - }; | ||
839 | - | ||
840 | - //---是不是从收藏夹出来的--- | ||
841 | - if(th.data.c_guide_id){ | ||
842 | - newd['guide_id'] = th.data.c_guide_id; | ||
843 | - newd['guide_type']=2; | ||
844 | - | ||
845 | - }else{ | ||
846 | - if(getApp().globalData.guide_id){ | ||
847 | - newd['guide_id'] = getApp().globalData.guide_id; | ||
848 | - newd['guide_type']=0; | ||
849 | - | ||
850 | - } | ||
851 | - } | ||
852 | - | ||
853 | - //-----拼团----- | ||
854 | - newd.goods_price = th.data.teamlist.price; | ||
855 | - newd.prom_type = 6; | ||
856 | - newd.prom_id = th.data.teamlist.id; | ||
857 | - newd.kt_type = th.data.teamlist.kttype; //开团类型 | ||
858 | - newd.is_pt_tz = 0; | ||
859 | - newd.pick_name = th.data.end_name; | ||
860 | - newd.pick_dis = 1; | ||
861 | - newd.is_normal = 0; | ||
862 | - //判断开团还是参团 | ||
863 | - switch (th.data.is_kt_or_ct) { | ||
864 | - case "0": | ||
865 | - //如果不是商家团,就要带团期号 | ||
866 | - if(th.data.teamlist.kttype>1){ | ||
867 | - newd.qh=th.data.teamgroup.listno; | ||
868 | - } | ||
869 | - break; | ||
870 | - case "1": | ||
871 | - //阶梯团和会员团都要设置is_pt_tz | ||
872 | - if (newd.kt_type > 1) { | ||
873 | - newd.is_pt_tz = 1; //开团类型 | ||
874 | - } | ||
875 | - break; | ||
876 | - } | ||
877 | - newd['pick_dis'] = th.data.pick_dis; | ||
878 | - | ||
879 | - if(getApp().globalData.guide_id){ | ||
880 | - newd['guide_id'] = getApp().globalData.guide_id; | ||
881 | - newd['guide_type']=0; | ||
882 | - } | ||
883 | - | ||
884 | - s.set_b_now(newd); | ||
885 | - wx.navigateTo({ | ||
886 | - url: "/packageE/pages/cart/cart2_pt/cart2_pt?is_bnow=1&goods_id=" + th.data.goods.goods_id, | ||
887 | - }); | ||
888 | - }); | ||
889 | - }, | ||
890 | - | ||
891 | - //购买前的判断redis | ||
892 | - async buy_check_redis(func){ | ||
893 | - //获取redis中的数量 | ||
894 | - var r_num=0,prom_type=6,prom_id=this.data.teamlist.id; | ||
895 | - await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/" + prom_type + "/" + prom_id, { | ||
896 | - 1: 1 | ||
897 | - }).then(res => { | ||
898 | - var em = res; | ||
899 | - if (em.data.code == 0) { | ||
900 | - r_num=em.data.data; | ||
901 | - } | ||
902 | - }) | ||
903 | - | ||
904 | - //只有会员团要判断团的人数 | ||
905 | - var gr_num=0,grp_id=this.data.teamgroup.id; | ||
906 | - if(this.data.teamlist.kttype==2){ | ||
907 | - await getApp().request.promiseGet("/api/weshop/activitylist/getActTuanLen/" + os.stoid + "/" + grp_id, { | ||
908 | - 1: 1 | ||
909 | - }).then(res => { | ||
910 | - var em = res; | ||
911 | - if (em.data.code == 0) { | ||
912 | - gr_num=em.data.data; | ||
913 | - } | ||
914 | - }) | ||
915 | - } | ||
916 | - var arr=[];arr.push(r_num);arr.push(gr_num); | ||
917 | - this.data.redis_arr=arr; | ||
918 | - func(); | ||
919 | - }, | ||
920 | - | ||
921 | - //定时设置一下待支付的订单 | ||
922 | - time_out:function () { | ||
923 | - var list=this.data.tg_arr,th=this; | ||
924 | - if(!list) return false; | ||
925 | - // 获取当前时间,同时得到活动结束时间数组 | ||
926 | - var newTime = ut.gettimestamp(); | ||
927 | - var endTime = list.time; | ||
928 | - | ||
929 | - let obj = null; | ||
930 | - // 如果活动未结束,对时间进行处理 | ||
931 | - if (endTime - newTime > 0) { | ||
932 | - let time = (endTime - newTime); | ||
933 | - // 获取天、时、分、秒 | ||
934 | - let day = parseInt(time / (60 * 60 * 24)); | ||
935 | - let hou = parseInt(time % (60 * 60 * 24) / 3600); | ||
936 | - let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); | ||
937 | - let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); | ||
938 | - obj = { | ||
939 | - day: th.timeFormat(day), | ||
940 | - hou: th.timeFormat(hou), | ||
941 | - min: th.timeFormat(min), | ||
942 | - sec: th.timeFormat(sec) | ||
943 | - } | ||
944 | - } else { | ||
945 | - //活动已结束,全部设置为'00' | ||
946 | - obj = { | ||
947 | - day: '00', | ||
948 | - hou: '00', | ||
949 | - min: '00', | ||
950 | - sec: '00' | ||
951 | - } | ||
952 | - | ||
953 | - //调用接口清理订单,并且返回redis数量 | ||
954 | - th.back_order(function () { | ||
955 | - th.setData({ tg_arr: null}); | ||
956 | - }); | ||
957 | - return false; | ||
958 | - } | ||
959 | - var txt = "pindGoods.djs"; | ||
960 | - th.setData({ | ||
961 | - r_obj: obj | ||
962 | - }); | ||
963 | - setTimeout(th.time_out, 1000); | ||
964 | - }, | ||
965 | - | ||
966 | - //清理订单,并且返回redis数量ss | ||
967 | - back_order:function (func) { | ||
968 | - var th=this; | ||
969 | - //---取消订单--- | ||
970 | - getApp().request.delete("/api/weshop/order/cancelTeamOrder/"+th.data.stoid+"/"+th.data.tg_arr.order_id,{ | ||
971 | - data:{}, | ||
972 | - success: function(t) { | ||
973 | - if(t.data.code==0){ | ||
974 | - th.setData({tg_arr:null}) | ||
975 | - } | ||
976 | - }, | ||
977 | - }) | ||
978 | - }, | ||
979 | - | ||
980 | - go_goodsinfo:function (e) { | ||
981 | - var gid=e.currentTarget.dataset.gid; | ||
982 | - var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+gid; | ||
983 | - wx.navigateTo({ url: url, }) //跳到非tabbar页 | ||
984 | - }, | ||
985 | - | ||
986 | - gohome:function(){ | ||
987 | - getApp().goto("/pages/index/index/index"); | ||
988 | - }, | ||
989 | - | ||
990 | - //-----图片失败,默认图片----- | ||
991 | - bind_bnerr: function (e) { | ||
992 | - var _errImg = e.target.dataset.errorimg; | ||
993 | - var _errObj = {}; | ||
994 | - _errObj[_errImg] = this.data.iurl + "/miniapp/images/default_g_img.gif"; | ||
995 | - this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; | ||
996 | - }, | ||
997 | - | ||
998 | - //------ 分享配置 -------- | ||
999 | - onShareAppMessage: function (e) { | ||
1000 | - getApp().globalData.no_clear=1; | ||
1001 | - var curPage=this; | ||
1002 | - var pagePath = curPage.route; //当前页面url | ||
1003 | - if (pagePath.indexOf('/') != 0) { | ||
1004 | - pagePath = '/' + pagePath; | ||
1005 | - } | ||
1006 | - var url=pagePath; | ||
1007 | - | ||
1008 | - //--分享图片-- | ||
1009 | - img=th.data.iurl+th.data.teamlist.share_imgurl; | ||
1010 | - //--把会员分享出去-- | ||
1011 | - if(getApp().globalData.user_id){ | ||
1012 | - if(url.indexOf("?")>0) | ||
1013 | - url+="&first_leader="+getApp().globalData.user_id; | ||
1014 | - else | ||
1015 | - url+="?first_leader="+getApp().globalData.user_id; | ||
1016 | - } | ||
1017 | - | ||
1018 | - if(url.indexOf('goods_id')==-1){ | ||
1019 | - url+="&goods_id="+this.data.goods.goods_id; | ||
1020 | - } | ||
1021 | - if(url.indexOf('tg_id')==-1){ | ||
1022 | - url+="&tg_id="+this.data.teamgroup.id; | ||
1023 | - } | ||
1024 | - | ||
1025 | - | ||
1026 | - return { | ||
1027 | - path:url, | ||
1028 | - title: "商品分类", | ||
1029 | - imageUrl: img, | ||
1030 | - } | ||
1031 | - }, | ||
1032 | - | ||
1033 | - | ||
1034 | - | ||
1035 | - | ||
1036 | - | ||
1037 | - closeSpecModal: function() { | ||
1038 | - this.setData({ | ||
1039 | - yijian: false | ||
1040 | - }); | ||
1041 | - }, | ||
1042 | - | ||
1043 | - close_popup: function() { | ||
1044 | - this.setData({ | ||
1045 | - showStore: true | ||
1046 | - }); | ||
1047 | - }, | ||
1048 | - | ||
1049 | - | ||
1050 | - | ||
1051 | - //-- 选择门店。此时的门店选择与门店有关系 -- | ||
1052 | - choice_store: function(ee) { | ||
1053 | - | ||
1054 | - //--先判断会员状态-- | ||
1055 | - var user_info = getApp().globalData.userInfo; | ||
1056 | - if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
1057 | - wx.navigateTo({ | ||
1058 | - url: '/packageE/pages/togoin/togoin', | ||
1059 | - }) | ||
1060 | - return false; | ||
1061 | - } | ||
1062 | - | ||
1063 | - var th = this; | ||
1064 | - var bconfig = th.data.bconfig; | ||
1065 | - | ||
1066 | - //如果开启了,则不在选择门店 | ||
1067 | - if(this.data.sys_switch.is_pricing_open_store && getApp().globalData.pk_store){ | ||
1068 | - return false; | ||
1069 | - } | ||
1070 | - | ||
1071 | - if(!th.data.only_pk && !th.data.def_pickpu_list){ | ||
1072 | - getApp().confirmBox("门店库存不足", null, 25000, !1); | ||
1073 | - return false; | ||
1074 | - } | ||
1075 | - if(th.data.only_pk && !th.data.only_pk.length){ | ||
1076 | - getApp().confirmBox("门店库存不足", null, 25000, !1); | ||
1077 | - return false; | ||
1078 | - } | ||
1079 | - if(th.data.def_pickpu_list && !th.data.def_pickpu_list.length){ | ||
1080 | - getApp().confirmBox("门店库存不足", null, 25000, !1); | ||
1081 | - return false; | ||
1082 | - } | ||
1083 | - | ||
1084 | - if ( bconfig && bconfig.is_sort_storage) { | ||
1085 | - wx.getLocation({ | ||
1086 | - type: 'gcj02', | ||
1087 | - success: function(res) { | ||
1088 | - | ||
1089 | - th.data.lat = res.latitude; | ||
1090 | - th.data.lon = res.longitude; | ||
1091 | - th.data.is_get_local_ok = 1; | ||
1092 | - th.setData({ | ||
1093 | - is_gps: 1 | ||
1094 | - }); | ||
1095 | - //th.onShow(); | ||
1096 | - th.get_sto(); | ||
1097 | - }, | ||
1098 | - fail: function(res) { | ||
1099 | - //th.onShow(); | ||
1100 | - th.data.is_get_local_ok = 1; | ||
1101 | - th.get_sto(); | ||
1102 | - if (res.errCode == 2) { | ||
1103 | - th.setData({ | ||
1104 | - is_gps: 0 | ||
1105 | - }); | ||
1106 | - if (th.data.is_gps == 0) { | ||
1107 | - getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
1108 | - } | ||
1109 | - } else { | ||
1110 | - th.setData({ | ||
1111 | - is_gps: "3" | ||
1112 | - }); | ||
1113 | - } | ||
1114 | - | ||
1115 | - } | ||
1116 | - }) | ||
1117 | - }else{ | ||
1118 | - th.data.is_get_local_ok = 1; | ||
1119 | - th.get_sto(); | ||
1120 | - } | ||
1121 | - | ||
1122 | - this.setData({ | ||
1123 | - store: 1, | ||
1124 | - yijian: false, | ||
1125 | - choice_sort_store:0 | ||
1126 | - }) | ||
1127 | - | ||
1128 | - }, | ||
1129 | - | ||
1130 | - | ||
1131 | - //选择更多门店 | ||
1132 | - more_store: function() { | ||
1133 | - this.setData({ sort_store: 1}); | ||
1134 | - }, | ||
1135 | - | ||
1136 | - // 返回按钮 | ||
1137 | - returns: function() { | ||
1138 | - this.setData({ | ||
1139 | - sort_store: 0,choice_sort_store: 0 | ||
1140 | - }); | ||
1141 | - }, | ||
1142 | - | ||
1143 | - | ||
1144 | - //-- 等待获取定位系统 -- | ||
1145 | - wait_for_store_config: function() { | ||
1146 | - var th = this; | ||
1147 | - var t_time = setInterval(function() { | ||
1148 | - if (th.data.bconfig == null) false; | ||
1149 | - var e = th.data.bconfig; | ||
1150 | - if (e && e.is_sort_storage) { | ||
1151 | - wx.getLocation({ | ||
1152 | - type: 'gcj02', | ||
1153 | - success: function(res) { | ||
1154 | - th.data.lat = res.latitude; | ||
1155 | - th.data.lon = res.longitude; | ||
1156 | - th.data.is_get_local_ok = 1; | ||
1157 | - }, | ||
1158 | - fail: function(res) { | ||
1159 | - if (res.errCode == 2) { | ||
1160 | - th.setData({ | ||
1161 | - is_gps: 0 | ||
1162 | - }); | ||
1163 | - if (th.data.is_gps == 0) { | ||
1164 | - getApp().confirmBox("请开启GPS定位", null, 10000, !1); | ||
1165 | - } | ||
1166 | - | ||
1167 | - } else { | ||
1168 | - th.setData({ | ||
1169 | - is_gps: "3" | ||
1170 | - }); | ||
1171 | - } | ||
1172 | - | ||
1173 | - th.data.is_get_local_ok = 1; | ||
1174 | - } | ||
1175 | - }) | ||
1176 | - } else { | ||
1177 | - th.data.is_get_local_ok = 1; | ||
1178 | - } | ||
1179 | - clearInterval(t_time); | ||
1180 | - }, 500) | ||
1181 | - }, | ||
1182 | - | ||
1183 | - | ||
1184 | - //---------拿出门店分类和门店------------ | ||
1185 | - get_sto(e) { | ||
1186 | - var th = this,that=this; | ||
1187 | - var timer_get = setInterval(function() { | ||
1188 | - if (th.data.is_get_local_ok == 0) return false; | ||
1189 | - if (!th.data.goods) return false; | ||
1190 | - var dd = null, | ||
1191 | - i = getApp().request; | ||
1192 | - var g_distr_type = th.data.goods.distr_type; | ||
1193 | - if (g_distr_type != 0) { | ||
1194 | - dd = { | ||
1195 | - store_id: o.stoid, | ||
1196 | - distr_type: g_distr_type, | ||
1197 | - isstop: 0, | ||
1198 | - is_pos: 1, | ||
1199 | - pageSize: 2000 | ||
1200 | - } | ||
1201 | - } else { | ||
1202 | - dd = { | ||
1203 | - store_id: o.stoid, | ||
1204 | - isstop: 0, | ||
1205 | - is_pos: 1, | ||
1206 | - pageSize: 2000 | ||
1207 | - } | ||
1208 | - } | ||
1209 | - //如果有距离的话 | ||
1210 | - if (th.data.lat != null) { | ||
1211 | - dd.lat = th.data.lat; | ||
1212 | - dd.lon = th.data.lon; | ||
1213 | - } | ||
1214 | - clearInterval(timer_get); | ||
1215 | - | ||
1216 | - //如果会员是有默认的门店话 | ||
1217 | - if(!th.data.def_pick_store && th.data.fir_def_store){ | ||
1218 | - th.setData({def_pick_store:th.data.fir_def_store}); | ||
1219 | - } | ||
1220 | - | ||
1221 | - //----------获取门店---------------- | ||
1222 | - getApp().request.promiseGet("/api/weshop/pickup/list", { | ||
1223 | - data: dd, | ||
1224 | - }).then(res => { | ||
1225 | - var e = res; | ||
1226 | - if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length>0) { | ||
1227 | - | ||
1228 | - var pickup_ids=null; | ||
1229 | - //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 | ||
1230 | - if( th.data.teamlist.pick_up_lists){ | ||
1231 | - pickup_ids=th.data.teamlist.pick_up_lists | ||
1232 | - } | ||
1233 | - | ||
1234 | - //-- 如果有指定门店的时候 -- | ||
1235 | - if(pickup_ids){ | ||
1236 | - var ok_arr=[]; | ||
1237 | - for (let i in e.data.data.pageData) { | ||
1238 | - let ite = e.data.data.pageData[i]; | ||
1239 | - //-- 查找一下门店有没有在 -- | ||
1240 | - var idx=pickup_ids.findIndex(function (e){ | ||
1241 | - return e.pickup_id==ite.pickup_id; | ||
1242 | - }) | ||
1243 | - if(idx>-1){ | ||
1244 | - ok_arr.push(ite) | ||
1245 | - } | ||
1246 | - } | ||
1247 | - | ||
1248 | - //判断会员的默认的门店是不是匹配指定的门店 | ||
1249 | - if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | ||
1250 | - //-- 查找一下门店有没有在 -- | ||
1251 | - var idx1=pickup_ids.findIndex(function (e){ | ||
1252 | - return e.pickup_id==th.data.def_pick_store.pickup_id; | ||
1253 | - }) | ||
1254 | - | ||
1255 | - if(idx1<0){ | ||
1256 | - th.data.def_pick_store.is_no_dis_act=1; | ||
1257 | - }else{ | ||
1258 | - th.data.def_pick_store.is_no_dis_act=0; | ||
1259 | - } | ||
1260 | - | ||
1261 | - that.setData({ | ||
1262 | - def_pick_store: th.data.def_pick_store | ||
1263 | - }) | ||
1264 | - | ||
1265 | - } | ||
1266 | - e.data.data.pageData=ok_arr; //数组重新赋值 | ||
1267 | - e.data.data.total=ok_arr.length; //数组的长度 | ||
1268 | - } | ||
1269 | - else{ | ||
1270 | - //-- 多规格指定门店优化 -- | ||
1271 | - if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){ | ||
1272 | - th.data.def_pick_store.is_no_dis_act=0; | ||
1273 | - that.setData({ | ||
1274 | - def_pick_store: th.data.def_pick_store | ||
1275 | - }) | ||
1276 | - } | ||
1277 | - } | ||
1278 | - | ||
1279 | - | ||
1280 | - | ||
1281 | - var his_cate_num=0; | ||
1282 | - for(let i in e.data.data.pageData){ | ||
1283 | - let item=e.data.data.pageData[i]; | ||
1284 | - if(item.category_id>0){ | ||
1285 | - his_cate_num=1;break; | ||
1286 | - } | ||
1287 | - } | ||
1288 | - e.his_cate_num=his_cate_num; | ||
1289 | - | ||
1290 | - //如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店 | ||
1291 | - if(dd.lat && !th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage){ | ||
1292 | - th.setData({ | ||
1293 | - def_pick_store:e.data.data.pageData[0], | ||
1294 | - sto_sele_name: e.data.data.pageData[0].pickup_name, | ||
1295 | - sto_sele_id: e.data.data.pageData[0].pickup_id, | ||
1296 | - sto_sele_distr: e.data.data.pageData[0].distr_type | ||
1297 | - }); | ||
1298 | - th.data.fir_def_store=e.data.data.pageData[0]; | ||
1299 | - } | ||
1300 | - | ||
1301 | - //-- 如果有默认选择门店的时候,要把默认门店放在第一位 -- | ||
1302 | - if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store)!='{}'){ | ||
1303 | - for (var k = 0; k < e.data.data.pageData.length; k++) { | ||
1304 | - if (e.data.data.pageData[k].pickup_id == th.data.def_pick_store.pickup_id) { | ||
1305 | - e.data.data.pageData.splice(k, 1); //删除 | ||
1306 | - break; | ||
1307 | - } | ||
1308 | - } | ||
1309 | - e.data.data.pageData.splice(0, 0, th.data.def_pick_store); //添加 | ||
1310 | - } | ||
1311 | - | ||
1312 | - | ||
1313 | - th.setData({all_pick_list:e.data.data.pageData}); | ||
1314 | - | ||
1315 | - | ||
1316 | - setTimeout(function(){ | ||
1317 | - th.deal_pickup(e); //--普通门店排版-- | ||
1318 | - },800) | ||
1319 | - | ||
1320 | - } | ||
1321 | - }) | ||
1322 | - }, 200) | ||
1323 | - | ||
1324 | - }, | ||
1325 | - | ||
1326 | - //------------处理门店,拼团活动只有线上库存--------------- | ||
1327 | - deal_pickup(e){ | ||
1328 | - var th=this; | ||
1329 | - var g_distr_type=th.data.goods.distr_type; | ||
1330 | - //单总量超出5个的时候 | ||
1331 | - if (e.data.data.total > 10 && e.his_cate_num) { | ||
1332 | - getApp().request.get("/api/weshop/storagecategory/page", { | ||
1333 | - data: { | ||
1334 | - store_id: o.stoid, | ||
1335 | - pageSize: 1000, | ||
1336 | - orderField:"sort", | ||
1337 | - orderType:'asc', | ||
1338 | - }, | ||
1339 | - success: function(ee) { | ||
1340 | - if (ee.data.code == 0) { | ||
1341 | - | ||
1342 | - var check_all_cate=0; | ||
1343 | - if (ee.data.data && ee.data.data.pageData && ee.data.data.pageData.length > 0){ | ||
1344 | - for(let i in ee.data.data.pageData){ | ||
1345 | - let item=ee.data.data.pageData[i]; | ||
1346 | - if(item.is_show==1){ | ||
1347 | - check_all_cate=1;break | ||
1348 | - } | ||
1349 | - } | ||
1350 | - } | ||
1351 | - | ||
1352 | - | ||
1353 | - | ||
1354 | - if (check_all_cate) { | ||
1355 | - | ||
1356 | - var sto_cate = ee.data.data.pageData; | ||
1357 | - var sto_arr = e.data.data.pageData; | ||
1358 | - var newarr = new Array(); | ||
1359 | - var qita = new Array(); | ||
1360 | - | ||
1361 | - var is_del_pk=0; | ||
1362 | - //----要进行门店分组-------- | ||
1363 | - for (var i = 0; i < sto_arr.length; i++) { | ||
1364 | - //找一下这个门店有没有在分类数组内 | ||
1365 | - var find2 = 0,find2name = "",sort=0; | ||
1366 | - is_del_pk=0; | ||
1367 | - for (var m = 0; m < sto_cate.length; m++) { | ||
1368 | - if (sto_arr[i].category_id == sto_cate[m].cat_id) { | ||
1369 | - if(sto_cate[m].is_show!=1){ | ||
1370 | - is_del_pk=1; sto_arr.splice(i,1); | ||
1371 | - i--; | ||
1372 | - }else { | ||
1373 | - find2 = sto_cate[m].cat_id; | ||
1374 | - find2name = sto_cate[m].cat_name; | ||
1375 | - sort = sto_cate[m].sort; | ||
1376 | - is_del_pk=0; | ||
1377 | - } | ||
1378 | - break; | ||
1379 | - } | ||
1380 | - } | ||
1381 | - if(is_del_pk) continue; | ||
1382 | - | ||
1383 | - if (newarr.length > 0) { | ||
1384 | - var find = 0; | ||
1385 | - //如果有找到,那门店就在这个分组内,否则,分类就要排在其他 | ||
1386 | - if (find2 != 0) { | ||
1387 | - for (var ii = 0; ii < newarr.length; ii++) { | ||
1388 | - if (sto_arr[i].category_id == newarr[ii].cat_id) { | ||
1389 | - newarr[ii].s_arr.push(sto_arr[i]); | ||
1390 | - find = 1; | ||
1391 | - break; | ||
1392 | - } | ||
1393 | - } | ||
1394 | - if (find == 0) { | ||
1395 | - var arr0 = new Array(); | ||
1396 | - arr0.push(sto_arr[i]); | ||
1397 | - var item = { | ||
1398 | - cat_id: find2, | ||
1399 | - name: find2name, | ||
1400 | - sort:sort, | ||
1401 | - s_arr: arr0 | ||
1402 | - }; | ||
1403 | - newarr.push(item); | ||
1404 | - } | ||
1405 | - } else { | ||
1406 | - qita.push(sto_arr[i]); | ||
1407 | - } | ||
1408 | - } else { | ||
1409 | - //如果有找到,那门店就在这个分组内,否则,分类就要排在其他 | ||
1410 | - if (find2 != 0) { | ||
1411 | - var arr0 = new Array(); | ||
1412 | - arr0.push(sto_arr[i]); | ||
1413 | - var item = { | ||
1414 | - cat_id: find2, | ||
1415 | - name: find2name, | ||
1416 | - sort:sort, | ||
1417 | - s_arr: arr0 | ||
1418 | - }; | ||
1419 | - newarr.push(item); | ||
1420 | - } else { | ||
1421 | - qita.push(sto_arr[i]); | ||
1422 | - } | ||
1423 | - } | ||
1424 | - } | ||
1425 | - | ||
1426 | - var def_arr = new Array(); | ||
1427 | - //-- 开始就看10个门店 -- | ||
1428 | - for (var k = 0; k < 10; k++) { | ||
1429 | - if (k == sto_arr.length) break; | ||
1430 | - def_arr.push(sto_arr[k]); | ||
1431 | - } | ||
1432 | - | ||
1433 | - th.setData({ | ||
1434 | - def_pickpu_list: def_arr, | ||
1435 | - pickpu_list: ee.data.data.pageData | ||
1436 | - }); | ||
1437 | - | ||
1438 | - //门店分类要排序下 | ||
1439 | - function compare(property){ | ||
1440 | - return function(a,b){ | ||
1441 | - var value1 = a[property]; | ||
1442 | - var value2 = b[property]; | ||
1443 | - return value1 - value2; | ||
1444 | - } | ||
1445 | - } | ||
1446 | - if(newarr.length>0) | ||
1447 | - newarr.sort(compare("sort")); | ||
1448 | - | ||
1449 | - | ||
1450 | - //----安排其他的分类----- | ||
1451 | - if (qita.length > 0) { | ||
1452 | - var item = { | ||
1453 | - cat_id: -1, | ||
1454 | - name: "其他", | ||
1455 | - s_arr: qita | ||
1456 | - }; | ||
1457 | - newarr.push(item); | ||
1458 | - } | ||
1459 | - | ||
1460 | - var sd={ | ||
1461 | - all_sto: newarr, | ||
1462 | - is_show_sto_cat:1 | ||
1463 | - } | ||
1464 | - if(!sto_arr || sto_arr.length<=10){ | ||
1465 | - sd.is_show_sto_cat=-1; | ||
1466 | - sd.only_pk=sto_arr; | ||
1467 | - } | ||
1468 | - th.setData(sd); | ||
1469 | - | ||
1470 | - } else { | ||
1471 | - th.setData({ | ||
1472 | - is_show_sto_cat: -1, | ||
1473 | - only_pk: e.data.data.pageData | ||
1474 | - }); | ||
1475 | - //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------ | ||
1476 | - if (!th.data.def_pick_store) { | ||
1477 | - th.setData({def_pick_store:e.data.data.pageData[0]}) | ||
1478 | - } | ||
1479 | - } | ||
1480 | - } else { | ||
1481 | - th.setData({ | ||
1482 | - is_show_sto_cat: -1, | ||
1483 | - only_pk: e.data.data.pageData | ||
1484 | - }); | ||
1485 | - //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------ | ||
1486 | - if (!th.data.def_pick_store) { | ||
1487 | - th.setData({def_pick_store:e.data.data.pageData[0]}) | ||
1488 | - } | ||
1489 | - | ||
1490 | - } | ||
1491 | - } | ||
1492 | - }); | ||
1493 | - } else { | ||
1494 | - th.setData({ | ||
1495 | - is_show_sto_cat: 0, | ||
1496 | - only_pk: e.data.data.pageData | ||
1497 | - }); | ||
1498 | - //-----如果没有默认门店,要取第一个门店作为默认店------ | ||
1499 | - if (!th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage) { | ||
1500 | - th.setData({ | ||
1501 | - def_pick_store:e.data.data.pageData[0], | ||
1502 | - sto_sele_name: e.data.data.pageData[0].pickup_name, | ||
1503 | - sto_sele_id: e.data.data.pageData[0].pickup_id, | ||
1504 | - sto_sele_distr: e.data.data.pageData[0].distr_type | ||
1505 | - }) | ||
1506 | - } | ||
1507 | - } | ||
1508 | - }, | ||
1509 | - | ||
1510 | - | ||
1511 | - | ||
1512 | - //---选择分类门店--- | ||
1513 | - choice_sort_store: function(e) { | ||
1514 | - var index = e.currentTarget.dataset.index; | ||
1515 | - var region_name = e.currentTarget.dataset.region; | ||
1516 | - var item = this.data.all_sto[index]; | ||
1517 | - this.setData({ | ||
1518 | - region_name: region_name, | ||
1519 | - sort_store: 0, | ||
1520 | - choice_sort_store: 1, | ||
1521 | - sec_sto: item, | ||
1522 | - sec_pick_index: 0, | ||
1523 | - }); | ||
1524 | - }, | ||
1525 | - | ||
1526 | - choose_for_store_fir: function(e) { | ||
1527 | - var index_c = e.currentTarget.dataset.ind; | ||
1528 | - var th=this; | ||
1529 | - th.setData({ | ||
1530 | - fir_pick_index: index_c | ||
1531 | - }) | ||
1532 | - }, | ||
1533 | - | ||
1534 | - //---点击二级之后的选择--- | ||
1535 | - choose_for_store: function(e) { | ||
1536 | - var index_c = e.currentTarget.dataset.ind; | ||
1537 | - var th=this; | ||
1538 | - th.setData({ | ||
1539 | - sec_pick_index: index_c, | ||
1540 | - fir_pick_index: index_c | ||
1541 | - }) | ||
1542 | - | ||
1543 | - }, | ||
1544 | - | ||
1545 | - //确定def_pick为选择的门店 | ||
1546 | - sure_pick: function(e) { | ||
1547 | - var th = this; | ||
1548 | - var item = null; | ||
1549 | - | ||
1550 | - if (th.data.choice_sort_store == 0) { | ||
1551 | - var index = th.data.fir_pick_index; | ||
1552 | - if (th.data.is_show_sto_cat == 1) { | ||
1553 | - item = th.data.def_pickpu_list[index]; | ||
1554 | - } else { | ||
1555 | - item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候 | ||
1556 | - } | ||
1557 | - | ||
1558 | - } else { | ||
1559 | - var index = th.data.sec_pick_index; | ||
1560 | - item = th.data.sec_sto.s_arr[index]; | ||
1561 | - } | ||
1562 | - if(!item) return false; | ||
1563 | - | ||
1564 | - | ||
1565 | - th.setData({ | ||
1566 | - def_pick_store: item, | ||
1567 | - sto_sele_name: item.pickup_name, | ||
1568 | - sto_sele_id: item.pickup_id, | ||
1569 | - sto_sele_distr: item.distr_type, | ||
1570 | - store: 0, | ||
1571 | - choice_sort_store: 0, | ||
1572 | - fir_pick_index: 0 | ||
1573 | - }); | ||
1574 | - | ||
1575 | - | ||
1576 | - th.setData({ | ||
1577 | - yijian: 1, //打开拼团购买界面 | ||
1578 | - store: 0, //关闭门店 | ||
1579 | - choice_sort_store: 0, //关闭门店2级 | ||
1580 | - sort_store: 0, //关闭门店2级 | ||
1581 | - }); | ||
1582 | - | ||
1583 | - | ||
1584 | - }, | ||
1585 | - | ||
1586 | - | ||
1587 | - | ||
1588 | - //把选择的门店设置成默认的门店def_pick | ||
1589 | - set_def_pick: function(e) { | ||
1590 | - var th = this; | ||
1591 | - var item = null; | ||
1592 | - if (th.data.choice_sort_store == 0) { | ||
1593 | - var index = th.data.fir_pick_index; | ||
1594 | - if (th.data.is_show_sto_cat == 1) { | ||
1595 | - item = th.data.def_pickpu_list[index]; | ||
1596 | - } else { | ||
1597 | - item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候 | ||
1598 | - } | ||
1599 | - } else { | ||
1600 | - var index = th.data.sec_pick_index; | ||
1601 | - item = th.data.sec_sto.s_arr[index]; | ||
1602 | - } | ||
1603 | - | ||
1604 | - if(!item) return false; | ||
1605 | - | ||
1606 | - | ||
1607 | - var store_id = o.stoid; | ||
1608 | - var user_id = getApp().globalData.user_id; | ||
1609 | - var def_pickup_id = item.pickup_id; | ||
1610 | - | ||
1611 | - getApp().request.put('/api/weshop/users/update', { | ||
1612 | - data: { | ||
1613 | - user_id, | ||
1614 | - def_pickup_id | ||
1615 | - }, | ||
1616 | - success: function(res) { | ||
1617 | - if (res.data.code == 0) { | ||
1618 | - if (th.data.choice_sort_store == 0) th.setData({ | ||
1619 | - fir_pick_index: 0 | ||
1620 | - }); | ||
1621 | - getApp().globalData.pk_store = item; | ||
1622 | - } else { | ||
1623 | - getApp().my_warnning("设置默认门店地址失败",0,th) | ||
1624 | - } | ||
1625 | - | ||
1626 | - } | ||
1627 | - }); | ||
1628 | - | ||
1629 | - th.setData({ | ||
1630 | - def_pick_store: item, | ||
1631 | - sto_sele_name: item.pickup_name, | ||
1632 | - sto_sele_id: item.pickup_id, | ||
1633 | - sto_sele_distr: item.distr_type, | ||
1634 | - store: 0, | ||
1635 | - choice_sort_store: 0 | ||
1636 | - }); | ||
1637 | - | ||
1638 | - //4就是拼团 | ||
1639 | - th.setData({ | ||
1640 | - yijian: 1, //打开拼团购买界面 | ||
1641 | - store: 0, //关闭门店 | ||
1642 | - choice_sort_store: 0, //关闭门店2级 | ||
1643 | - sort_store: 0, //关闭门店2级 | ||
1644 | - }); | ||
1645 | - | ||
1646 | - }, | ||
1647 | - | ||
1648 | - | ||
1649 | - //-- 关闭选择门店 -- | ||
1650 | - close_popup: function(e) { | ||
1651 | - var th=this; | ||
1652 | - this.setData({ | ||
1653 | - store: 0, | ||
1654 | - choice_sort_store: 0, | ||
1655 | - sort_store: 0, | ||
1656 | - fir_pick_index:0, | ||
1657 | - sec_pick_index:0, | ||
1658 | - yijian: 1, //打开拼团购买界面 | ||
1659 | - }) | ||
1660 | - | ||
1661 | - }, | ||
1662 | - | ||
1663 | - //-- 弹出框的同意的优化,重新获取定位 --- | ||
1664 | - agree_pri:function (){ | ||
1665 | - var th=this; | ||
1666 | - var bconfig = th.data.bconfig; | ||
1667 | - if (bconfig && bconfig.is_sort_storage) { | ||
1668 | - wx.getLocation({ | ||
1669 | - type: 'gcj02', | ||
1670 | - success: function (res) { | ||
1671 | - th.data.lat = res.latitude; | ||
1672 | - th.data.lon = res.longitude; | ||
1673 | - th.data.is_get_local_ok = 1; | ||
1674 | - th.setData({ | ||
1675 | - is_gps: 1 | ||
1676 | - }); | ||
1677 | - //th.onShow(); | ||
1678 | - th.get_sto(); | ||
1679 | - }, | ||
1680 | - fail: function (res) { | ||
1681 | - //th.onShow(); | ||
1682 | - th.data.is_get_local_ok = 1; | ||
1683 | - th.get_sto(); | ||
1684 | - if (res.errCode == 2) { | ||
1685 | - th.setData({ | ||
1686 | - is_gps: 0 | ||
1687 | - }); | ||
1688 | - if (th.data.is_gps == 0) { | ||
1689 | - getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
1690 | - } | ||
1691 | - } else { | ||
1692 | - th.setData({ | ||
1693 | - is_gps: "3" | ||
1694 | - }); | ||
1695 | - } | ||
1696 | - | ||
1697 | - } | ||
1698 | - }) | ||
1699 | - } | ||
1700 | - }, | ||
1701 | - | ||
1702 | - | ||
1703 | - | 8 | + onShow:function(){ }, |
1704 | 9 | ||
1705 | }) | 10 | }) |
1706 | \ No newline at end of file | 11 | \ No newline at end of file |
pages/team/team_show/team_show.json
1 | { | 1 | { |
2 | "windom": { | 2 | "windom": { |
3 | - "navigationBarTitleText": "拼团订单", | 3 | + "navigationBarTitleText": "加载中.", |
4 | "backgroundTextStyle": "light", | 4 | "backgroundTextStyle": "light", |
5 | "navigationBarTextStyle": "white", | 5 | "navigationBarTextStyle": "white", |
6 | "navigationBarBackgroundColor": "#ffffff", | 6 | "navigationBarBackgroundColor": "#ffffff", |
7 | "backgroundColor": "#eeeeee" | 7 | "backgroundColor": "#eeeeee" |
8 | - }, | ||
9 | - "usingComponents": { | ||
10 | - "warn": "/components/long_warn/long_warn", | ||
11 | - "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
12 | } | 8 | } |
9 | + | ||
13 | } | 10 | } |
14 | \ No newline at end of file | 11 | \ No newline at end of file |
pages/team/team_show/team_show.wxml
1 | -<!-- 判断隐私是不是显示 --> | ||
2 | -<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
3 | - | ||
4 | -<wxs module="filters" src="../../../utils/filter.wxs"></wxs> | ||
5 | <!---- //文字"--> | 1 | <!---- //文字"--> |
6 | -<view wx:if="{{is_show}}"> | ||
7 | - | ||
8 | - <!--图片区域--> | ||
9 | - <view class='center'> | ||
10 | - <view class='cenleft'> | ||
11 | - <image src='{{image}}' binderror='bind_bnerr' data-errorimg='image'></image> | ||
12 | - </view> | ||
13 | - <view class='cenright'> | ||
14 | - <view class='cenrt'> | ||
15 | - | ||
16 | - <view class='xc-goods-details ellipsis-2 fs28'> | ||
17 | - <span>{{goods.goods_name}}</span> | ||
18 | - </view> | ||
19 | - </view> | ||
20 | - <view class='cenrcen flex-vertical-between'> | ||
21 | - <view> | ||
22 | - <view class="fs40 xc-wc" style='font-size:40rpx'> | ||
23 | - <span class="fs28" style="font-weight:500;">¥</span>{{teamlist.price}}</view> | ||
24 | - <view class="fs22 word-line xc-wc"> | ||
25 | - ¥{{goods.shop_price}} | ||
26 | - </view> | ||
27 | - </view> | ||
28 | - <view class="xc-wc fs24"> | ||
29 | - <view> | ||
30 | - <view class="">已拼{{teamlist.buy_num}}件</view> | ||
31 | - <view class="flex xc-valframe t-c"> | ||
32 | - <view class="xc-frame-img"> | ||
33 | - <image class="picture" src="{{imageurl}}/miniapp/images/bai-ren.png"></image> | ||
34 | - </view> | ||
35 | - <view style='margin-left:9rpx;'> | ||
36 | - {{teamlist.ct_num}}人拼 | ||
37 | - </view> | ||
38 | - </view> | ||
39 | - </view> | ||
40 | - </view> | ||
41 | - </view> | ||
42 | - </view> | ||
43 | - </view> | ||
44 | - | ||
45 | - <view class='body oh'> | ||
46 | - <!-- 等待团员 --> | ||
47 | - <!-- <view class='bodytop' wx:if="{{teamlist.kt_type==3}}"> --> | ||
48 | - <!-- 拼团成功 --> | ||
49 | - <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==2}}"> | ||
50 | - | ||
51 | - <view class="xc-wc">拼团成功</view>,为您节省<text class="xc-wc">25</text>元 | ||
52 | - <view class="xc-img-frame oh" wx:if="{{val==2}}"> | ||
53 | - <image class="img" src="{{imageurl}}/miniapp/images/xc_qtcg.png"></image> | ||
54 | - </view> | ||
55 | - </view> | ||
56 | - <!-- 拼团失败 --> | ||
57 | - <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==3}}"> | ||
58 | - <view class="xc-wc xc-end">拼团失败</view> | ||
59 | - <view class="xc-img-frames oh iw" wx:if="{{val==3}}"> | ||
60 | - <image class="img " src="{{imageurl}}/miniapp/images/xc-qtshibai.png"></image> | ||
61 | - </view> | ||
62 | - </view> | ||
63 | - <!--头像--> | ||
64 | - <view class="flex_tou"> | ||
65 | - <view class='bodyimg flex-level' wx:for="{{ordertx2}}" wx:key> | ||
66 | - <view class='d'> | ||
67 | - <image src='{{item.head_pic}}'></image> | ||
68 | - <span wx:if="{{item.is_pt_tz==1}}">团长</span> | ||
69 | - </view> | ||
70 | - </view> | ||
71 | - <view class='d' wx:for="{{sf_arr}}"> | ||
72 | - <image src='{{iurl}}/miniapp/images/shafa.png' style='width:100%; height:100%'></image> | ||
73 | - </view> | ||
74 | - <view class='xc-ellipsis-img' wx:if="{{ordertx.length>5}}"> | ||
75 | - <image style='width:56rpx;height:56rpx;margin-left:10rpx;' src="{{imageurl}}/miniapp/images/xc_ellipsis.png"></image> | ||
76 | - </view> | ||
77 | - | ||
78 | - | ||
79 | - </view> | ||
80 | - | ||
81 | - <view class='bodytime'> | ||
82 | - <!--/ //旁边直线--> | ||
83 | - <view class='bodytimeleft'> | ||
84 | - <view class='xian'></view> | ||
85 | - </view> | ||
86 | - <!--/ // //时间--> | ||
87 | - <!--许程 <view class='bodytimecen' wx:if='{{obj}}'> --> | ||
88 | - <view class='bodytimecen'> | ||
89 | - 剩余 | ||
90 | - <span wx:if="{{obj.day!=0}}"> {{obj.day}} </span>: | ||
91 | - <span> {{obj.hou}} </span>: | ||
92 | - <span> {{obj.min}} </span>: | ||
93 | - <span> {{obj.sec}} </span>结束 | ||
94 | - </view> | ||
95 | - | ||
96 | - | ||
97 | - <!----/ 旁边直线----> | ||
98 | - <view class='bodytimeright'> | ||
99 | - <view class='xian'></view> | ||
100 | - </view> | ||
101 | - </view> | ||
102 | - | ||
103 | - <view style='height:50rpx;width:100%' wx:if="{{val==1}}"></view> | ||
104 | - <!--如果团还没有满--> | ||
105 | - <block wx:if="{{tg_arr==null}}"> | ||
106 | - <!--按钮--> | ||
107 | - <view wx:if="{{is_group_end==0}}" class='bodybutton white fs32'> | ||
108 | - <view class="xc-good-friend" bindtap='sendsm' data-isct="0">去参团</view> | ||
109 | - <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
110 | - </view> | ||
111 | - <view wx:elif="{{teamlist.kttype>1}}" class='bodybutton' bindtap='sendsm' data-isct="1"> | ||
112 | - <view class="xc-good-friend">一键参团</view> | ||
113 | - <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
114 | - </view> | ||
115 | - <view wx:else class='bodybutton' bindtap='sendsm' data-isct="1"> | ||
116 | - <view class="xc-good-friend">一键参团</view> | ||
117 | - <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
118 | - </view> | ||
119 | - </block> | ||
120 | - <block wx:else> | ||
121 | - <view class="show_zf_dd"> | ||
122 | - <view>会员'{{tg_arr.user_name}}'待付款,若{{r_obj.min}}分{{r_obj.sec}}秒后该会员未支付您可以继续参团哦!</view> | ||
123 | - </view> | ||
124 | - | ||
125 | - <view class='bodybutton white fs32'> | ||
126 | - <view class="xc-good-friend co-w" data-isct="0">去参团</view> | ||
127 | - <view class="xc-home-page" bindtap='gohome'>返回首页</view> | ||
128 | - </view> | ||
129 | - | ||
130 | - </block> | ||
131 | - | ||
132 | - </view> | ||
133 | - <!--展开拼团列表--> | ||
134 | - <view class='mck'> | ||
135 | - <view class='bodyfoot'> | ||
136 | - <view class='bodyselect' wx:if="{{zk}}" bindtap='czk'> | ||
137 | - <span>展开拼团列表 | ||
138 | - <view class='down-arrow'></view> | ||
139 | - </span> | ||
140 | - </view> | ||
141 | - <!----收起拼团列表----> | ||
142 | - <view class='zhangxi' wx:if="{{hiddenName}}"> | ||
143 | - | ||
144 | - <view class='zspan' bindtap='click'>收起拼团列表 | ||
145 | - <view class='down-arrow1'></view> | ||
146 | - </view> | ||
147 | - | ||
148 | - <view class="ia" wx:for="{{ordertx}}" wx:for-index="ky"> | ||
149 | - <view class='img'> | ||
150 | - <image src='{{item.head_pic}}'></image> | ||
151 | - <span>{{item.nickname}}</span> | ||
152 | - </view> | ||
153 | - <view class='zssj' wx:if="{{ky==0}}">{{item.add_time_date}} 开团</view> | ||
154 | - <view class='zssj' wx:else>{{item.add_time_date}} 参团</view> | ||
155 | - </view> | ||
156 | - </view> | ||
157 | - </view> | ||
158 | - </view> | ||
159 | - <!----//拼团玩法----> | ||
160 | - <!-- <view class='pintuan' bindtap="cpd"> | ||
161 | - <view class='pintuanzhou'>拼团玩法</view> | ||
162 | - <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view> | ||
163 | - </view> --> | ||
164 | - <!--大家都在团--> | ||
165 | - <view class='goodslist'> | ||
166 | - <view class='goodslisttop'> | ||
167 | - <span class='goodslistspan'>大家都在团</span> | ||
168 | - <view class='goodslisttopright'></view> | ||
169 | - </view> | ||
170 | - <view class="changxin"> | ||
171 | - <view class='onegoods' wx:for='{{pageteam}}' wx:key="{{index}}" bindtap="go_goodsinfo" data-gid="{{item.goods_id}}"> | ||
172 | - <view class='onegoodsimg'> | ||
173 | - <image src="{{imageurl+item.share_imgurl}}"></image> | ||
174 | - </view> | ||
175 | - <view class='onegoodsdesc'> | ||
176 | - <text>{{item.goods_name}}</text> | ||
177 | - </view> | ||
178 | - <view class='price'> | ||
179 | - <view class='jgleft'>¥{{item.price}}</view> | ||
180 | - <view class='jgright'>{{item.ct_num}}人 | ||
181 | - <span>参团</span> | ||
182 | - </view> | ||
183 | - </view> | ||
184 | - </view> | ||
185 | - </view> | ||
186 | - </view> | 2 | +<view class="rty"> |
3 | + <view>加载中。。</view> | ||
187 | </view> | 4 | </view> |
188 | - | ||
189 | -<!--弹出购物模块--> | ||
190 | -<view class="pop_up" wx:if="{{yijian}}"> | ||
191 | - <view> | ||
192 | - | ||
193 | - <!----弹起来,选择规格数量,拼单商品购买------> | ||
194 | - <!-- <view> --> | ||
195 | - <!-- <view hidden="{{!openSpecModal_pt}}"> --> | ||
196 | - <view bindtap="closeSpecModal" class="cover-layer"></view> | ||
197 | - <view class="spec-model"> | ||
198 | - <view class="pding"> | ||
199 | - <icon bindtap="closeSpecModal" class="modal-close" color="gray" size="22" type="cancel"></icon> | ||
200 | - <!-- 商品名称 --> | ||
201 | - <view class="spec-goods"> | ||
202 | - <image class="wh100 spec-img xc-distance-bottom" src="{{image}}" binderror="pop_err_img" data-errorimg="data.original_img"></image> | ||
203 | - <view class="spec-goods-info"> | ||
204 | - <view class="spec-goods-name ellipsis-1">{{goods.goods_name}}</view> | ||
205 | - <view class="flex ai_end xc-val-money"> | ||
206 | - <view class="spec-goods-price"> | ||
207 | - <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text> | ||
208 | - </view> | ||
209 | - </view> | ||
210 | - <view class="flex"> | ||
211 | - <view class="spec-goods-stock">已售:{{teamlist.buy_num}}</view> | ||
212 | - <view class="spec-goods-stock">可售:{{teamlist.goods_num-teamlist.buy_num}}</view> | ||
213 | - </view> | ||
214 | - </view> | ||
215 | - </view> | ||
216 | - | ||
217 | - <view style="clear: both"></view> | ||
218 | - <view style="margin-top: 20rpx"> | ||
219 | - <view class="flex-space-between address ai_end xc-width "> | ||
220 | - | ||
221 | - <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> | ||
222 | - <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> | ||
223 | - | ||
224 | - <view class="distance fs24 xc-ash" wx:if="{{def_pick_store.distance!=null}}"> | ||
225 | - 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} | ||
226 | - </view> | ||
227 | - </view> | ||
228 | - | ||
229 | - | ||
230 | - <view class="flex" bindtap="choice_store" wx:else> | ||
231 | - <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image> | ||
232 | - <view class="fs28 xc-ash-9f">选择门店</view> | ||
233 | - </view> | ||
234 | - | ||
235 | - <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store">更多门店<text class="right-arrow"></text></view> | ||
236 | - | ||
237 | - | ||
238 | - </view> | ||
239 | - <view class="no_store" wx:if="{{def_pick_store && def_pick_store.is_no_dis}}">(配送不匹配)</view> | ||
240 | - <view class="no_store" wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}">(该店不可售)</view> | ||
241 | - <view class="fs24 xc-ash-9f xc-distance-top " wx:elif="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view> | ||
242 | - | ||
243 | - </view> | ||
244 | - <!-- 商品的属性项目 --> | ||
245 | - <view> | ||
246 | - <view hidden="{{ismend==1}}" class="spec-name">商品规格</view> | ||
247 | - <block> | ||
248 | - <view hidden="{{ismend==1}}" class="flex"> | ||
249 | - <view class="spec_bt act" >{{goods.gg}} | ||
250 | - </view> | ||
251 | - </view> | ||
252 | - </block> | ||
253 | - <view class="clear"></view> | ||
254 | - </view> | ||
255 | - | ||
256 | - <view> | ||
257 | - <view class="b_num" hidden="{{ismend==1}}" style="margin-top: 20rpx"> | ||
258 | - <view>购买数量</view> | ||
259 | - <view class="count"> | ||
260 | - <view bindtap="{{num <= 1 ? '':'bindMinus'}}" class="sub {{num <= 1 ? 'active':''}}">-</view> | ||
261 | - <!-- <view class='{{minusStatus}}' bindtap="bindMinus" class="sub">-</view> --> | ||
262 | - <input bindblur="bindManual" class="xc-val-fream" type="number" value="{{num}}">1</input> | ||
263 | - <view bindtap="bindPlus" class="add">+</view> | ||
264 | - </view> | ||
265 | - </view> | ||
266 | - | ||
267 | - <!-- <view class="clear"></view> --> | ||
268 | - | ||
269 | - </view> | ||
270 | - </view> | ||
271 | - | ||
272 | - <view class="pt_qd"> | ||
273 | - <view wx:if="{{def_pick_store && def_pick_store.is_no_dis}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">配送不匹配</view> | ||
274 | - <view wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">该店不可售</view> | ||
275 | - <view wx:else bindtap="go_pay" class="spec-cart-btn spec-buy w100" data-action="buy">确定</view> | ||
276 | - </view> | ||
277 | - | ||
278 | - </view> | ||
279 | - <!-- </view> --> | ||
280 | - | ||
281 | - </view> | ||
282 | -</view> | ||
283 | - | ||
284 | -<!-- 选择门店的弹框,1.1版最新的 --> | ||
285 | -<block wx:if="{{store==1}}"> | ||
286 | - <view class="mongolia-layer" bindtap="close_popup"></view> | ||
287 | - <view class="popup-frame"> | ||
288 | - <block wx:if="{{sort_store==0}}"> | ||
289 | - <!-- 头部 标题 --> | ||
290 | - <view class="popup-top flex-space-between"> | ||
291 | - <text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':region_name}}</text> | ||
292 | - <view> | ||
293 | - <view> | ||
294 | - <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon> | ||
295 | - </view> | ||
296 | - <view class="felx choose_more" bindtap="more_store" wx:if="{{is_show_sto_cat>0}}"> | ||
297 | - <text class="fs26 red-co">{{choice_sort_store==0?'更多门店':'返回'}}</text> | ||
298 | - <view class="bg_rights"></view> | ||
299 | - </view> | ||
300 | - </view> | ||
301 | - </view> | ||
302 | - <!-- 门店列表,最外层的门店列表,一开始 --> | ||
303 | - <view class="store-list"> | ||
304 | - <!--如果还没有点击更多门店的时候 --> | ||
305 | - <block wx:if="{{choice_sort_store==0}}"> | ||
306 | - <!-- 需要for循环 --> | ||
307 | - <block wx:if="{{is_show_sto_cat==1}}"> | ||
308 | - <view class="store_choose flex" wx:for="{{def_pickpu_list}}" bindtap="choose_for_store_fir" data-ind="{{index}}"> | ||
309 | - <view class="store flex-vertical"> | ||
310 | - <!-- 需要点击事件 --> | ||
311 | - <block wx:if="{{index==fir_pick_index}}"> | ||
312 | - <view class="circle white xc-hook fs20 red-b">Г</view> | ||
313 | - </block> | ||
314 | - <block wx:else> | ||
315 | - <view class="circle xc-hooks"></view> | ||
316 | - </block> | ||
317 | - <view class="address-frame xc-ash"> | ||
318 | - <view class="flex-vertical-between butttem5"> | ||
319 | - <view class="flex xc-ash"> | ||
320 | - <view class="fs30 xc-black3 address_name">{{item.pickup_name}} | ||
321 | - <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text> | ||
322 | - <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text> | ||
323 | - </view> | ||
324 | - </view> | ||
325 | - <view> | ||
326 | - <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}"> | ||
327 | - 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}</view> | ||
328 | - </view> | ||
329 | - </view> | ||
330 | - <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view> | ||
331 | - </view> | ||
332 | - </view> | ||
333 | - </view> | ||
334 | - </block> | ||
335 | - <block wx:else> | ||
336 | - <view class="store_choose flex" wx:for="{{only_pk}}" bindtap="choose_for_store_fir" data-ind="{{index}}"> | ||
337 | - <view class="store flex-vertical"> | ||
338 | - <!-- 需要点击事件 --> | ||
339 | - <block wx:if="{{index==fir_pick_index}}" > | ||
340 | - <view class="circle white xc-hook fs20 red-b">Г</view> | ||
341 | - </block> | ||
342 | - <block wx:else> | ||
343 | - <view class="circle xc-hooks"></view> | ||
344 | - </block> | ||
345 | - | ||
346 | - <view class="address-frame xc-ash"> | ||
347 | - <view class="flex-vertical-between "> | ||
348 | - <view class="flex xc-ash"> | ||
349 | - <view class="fs30 xc-black3 address_name">{{item.pickup_name}} | ||
350 | - <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text> | ||
351 | - <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text> | ||
352 | - </view> | ||
353 | - </view> | ||
354 | - <view> | ||
355 | - <view class="distance fs24 address-val" | ||
356 | - wx:if="{{item.distance!=null}}">距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}} | ||
357 | - </view> | ||
358 | - </view> | ||
359 | - </view> | ||
360 | - <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view> | ||
361 | - </view> | ||
362 | - </view> | ||
363 | - </view> | ||
364 | - </block> | ||
365 | - </block> | ||
366 | - <block wx:else> <!-- 如果是点击选择门店分类后显示分类下的门店 --> | ||
367 | - <view class="store_choose flex" wx:for="{{sec_sto.s_arr}}" data-ind="{{index}}" bindtap="choose_for_store"> | ||
368 | - <view class="store flex-vertical"> | ||
369 | - <!-- 需要点击事件 --> | ||
370 | - <block wx:if="{{index==sec_pick_index}}"> | ||
371 | - <view class="circle white xc-hook fs20 red-b">Г</view> | ||
372 | - </block> | ||
373 | - <block wx:else> | ||
374 | - <view class="circle xc-hooks"></view> | ||
375 | - </block> | ||
376 | - | ||
377 | - <view class="address-frame xc-ash"> | ||
378 | - <view class="flex-vertical-between "> | ||
379 | - <view class="flex xc-ash"> | ||
380 | - <view class="fs28 xc-black3 address_name">{{item.pickup_name}} | ||
381 | - <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text> | ||
382 | - <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text> | ||
383 | - </view> | ||
384 | - </view> | ||
385 | - <view> | ||
386 | - <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}"> | ||
387 | - 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}</view> | ||
388 | - </view> | ||
389 | - </view> | ||
390 | - <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view> | ||
391 | - </view> | ||
392 | - </view> | ||
393 | - </view> | ||
394 | - </block> | ||
395 | - | ||
396 | - </view> | ||
397 | - | ||
398 | - <!-- 门店列表底部 --> | ||
399 | - <view class="store-bottom-frame"> | ||
400 | - <view class="store-bottom flex-vertical-between"> | ||
401 | - <view class="determine red-b fs28 white t-c" bindtap="sure_pick" | ||
402 | - data-openindstore="{{open_ind_store}}">确定</view> | ||
403 | - <view class="default t-c fs28" bindtap="set_def_pick"data-openindstore="{{open_ind_store}}">设为默认</view> | ||
404 | - </view> | ||
405 | - </view> | ||
406 | - | ||
407 | - </block> | ||
408 | - | ||
409 | - | ||
410 | - <block wx:else> | ||
411 | - <view class="popup-top flex-space-between"> | ||
412 | - <text class="fs32 nearby_store">门店分类选择</text> | ||
413 | - <view> | ||
414 | - <view><icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon></view> | ||
415 | - <view class="felx choose_mores" bindtap="returns"><text class="fs26 red-co">返回</text></view> | ||
416 | - </view> | ||
417 | - </view> | ||
418 | - <view class="sort_store_list"> | ||
419 | - <view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store" data-region="{{item.name}}"> | ||
420 | - <view class="sort-store flex-vertical-between" > | ||
421 | - <view class="fs30" di>{{item.name}}</view> | ||
422 | - <view class="black_rights-frame"> | ||
423 | - <view class="black_rights"></view> | ||
424 | - </view> | ||
425 | - </view> | ||
426 | - </view> | ||
427 | - | ||
428 | - </view> | ||
429 | - </block> | ||
430 | - </view> | ||
431 | -</block> | ||
432 | - | ||
433 | - | ||
434 | - | ||
435 | - | ||
436 | - | ||
437 | - | ||
438 | -<!-- <view class='buy-option'> --> | ||
439 | -<!--头部图片--> | ||
440 | -<!-- <view class='buy-top'> | ||
441 | - <view class='buy-image mimg'> | ||
442 | - <image src='{{image}}'></image> | ||
443 | - <view> | ||
444 | - <view> | ||
445 | - <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text> | ||
446 | - </view> | ||
447 | - <view class="ellipsis-2"> | ||
448 | - {{goods.goods_name}} | ||
449 | - </view> | ||
450 | - </view> | ||
451 | - | ||
452 | - </view> | ||
453 | - | ||
454 | - <view class='buy-cou' bindtap='cbcou'>⊗</view> | ||
455 | - <view class='clear'></view> | ||
456 | - </view> --> | ||
457 | - | ||
458 | -<!--取货门店--> | ||
459 | -<!-- <view class='quhuo' wx:if="{{qh}}" bindtap='cqh'> --> | ||
460 | -<!--当ii==0请选择门店显示,ii==1最后名字显示--> | ||
461 | -<!-- <text>取货门店</text><view class='end_name' wx:if="{{ii==1 }}">({{end_name}})</view><view wx:if="{{ii==0 }}" class='ttxz'>(请选择门店)</view> | ||
462 | - </view> --> | ||
463 | -<!--选择门店--> | ||
464 | -<!-- <view class='xuanze1' wx:if="{{xz}}" bindtap='cxz'> | ||
465 | - <text decode='true'>< 选择门店</text> | ||
466 | - </view> | ||
467 | - <view class='x-z'> --> | ||
468 | -<!--第一层--> | ||
469 | -<!-- <block wx:if="{{one}}"> | ||
470 | - <view class="fir_view"> | ||
471 | - <view> | ||
472 | - <view class='xuanze' bindtap='setchild' data-bindex='{{bindex}}' data-bname='{{item.name}}' wx:for-index="bindex" wx:for="{{ssl}}" wx:key> | ||
473 | - <text decode='true'>{{item.name}}</text> | ||
474 | - </view> | ||
475 | - </view> | ||
476 | - </view> | ||
477 | - </block> --> | ||
478 | -<!--选择的--> | ||
479 | -<!-- <view class='xuanze1' wx:if="{{se}}" bindtap='sel'><text decode='true'><</text> {{sele_dl_name}}</view> --> | ||
480 | -<!--第二层list--> | ||
481 | -<!-- <block wx:if="{{list}}"> | ||
482 | - <scroll-view scroll-y="true" style="max-height: 460rpx"> | ||
483 | - <view class='xuanze' wx:for="{{ssl_child}}" wx:key bindtap='clist' | ||
484 | - data-pick_dis="{{item.distr_type}}" | ||
485 | - data-end='{{item.pickup_name}}' data-pick_id='{{item.pickup_id}}'> | ||
486 | - <text decode='true'>{{item.pickup_name}}</text> | ||
487 | - </view> | ||
488 | - </scroll-view> | ||
489 | - </block> | ||
490 | - </view> --> | ||
491 | - | ||
492 | -<!--数量--> | ||
493 | -<!-- <view class='buy-button' wx:if="{{qh}}"> | ||
494 | - <text>数量</text> | ||
495 | - <view class='stepper sum'> | ||
496 | - <text class='{{minusStatus}}' type='number' bindtap='bindMinus' class="jiajian">-</text> | ||
497 | - <input bindinput='bindManual' value='{{num}}'></input> | ||
498 | - <text bindtap='bindPlus' class="jiajian">+</text> | ||
499 | - </view> | ||
500 | - <view class='clear'></view> | ||
501 | - </view> --> | ||
502 | - | ||
503 | -<!-- <view class="clear"></view> | ||
504 | - </view> --> | ||
505 | -<!--支付--> | ||
506 | -<!-- <view class='btn' bindtap="go_pay">立即支付</view> --> | ||
507 | -<!-- </view> | ||
508 | -</view> --> | ||
509 | - | ||
510 | -<!--mask吐司内容--> | ||
511 | -<view class="toast_mask" wx:if="{{isShowToast}}"></view> | ||
512 | - | ||
513 | -<!--以下为toast显示的内容--> | ||
514 | -<view class="toast_content_box" wx:if="{{isShowToast}}"> | ||
515 | - <view class="toast_content"> | ||
516 | - <view class="toast_content_text"> | ||
517 | - {{toastText}} | ||
518 | - </view> | ||
519 | - </view> | ||
520 | -</view> | ||
521 | - | ||
522 | -<!--拼团玩法弹出框--> | ||
523 | -<!----弹起的----> | ||
524 | -<block wx:if="{{pd_xx}}"> | ||
525 | - <view class="bview"></view> | ||
526 | - <view class="juzhong"> | ||
527 | - <view class="xq"> | ||
528 | - <view class="title" bindtap="close_pt_xx">拼团玩法介绍 | ||
529 | - <image src="{{iurl}}/miniapp/images/gbi.png" class="close"></image> | ||
530 | - </view> | ||
531 | - <view>1.开团: | ||
532 | - <text class="hs1">选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;</text> | ||
533 | - </view> | ||
534 | - <view>2.参团: | ||
535 | - <text class="hs1">进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;</text> | ||
536 | - </view> | ||
537 | - <view>3.成团: | ||
538 | - <text class="hs1">在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;</text> | ||
539 | - </view> | ||
540 | - <view>4.组团失败: | ||
541 | - <text class="hs1">在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;</text> | ||
542 | - </view> | ||
543 | - <view>5. | ||
544 | - <text class="hs1">组团有效期间内,拼购商品订单不允许取消。 </text> | ||
545 | - </view> | ||
546 | - </view> | ||
547 | - </view> | ||
548 | -</block> | ||
549 | - | ||
550 | -<warn id="warn"></warn> |
pages/team/team_show/team_show.wxss
1 | -page { | ||
2 | - background-color: #eee; | ||
3 | -} | ||
4 | - | ||
5 | -.top { | ||
6 | - background-color: rgb(216, 230, 220); | ||
7 | - color: rgb(98, 155, 13); | ||
8 | - text-align: center; | ||
9 | - height: 110rpx; | ||
10 | - width: 100%; | ||
11 | -} | ||
12 | - | ||
13 | -.center { | ||
14 | - height: 240rpx; | ||
15 | - width: 100%; | ||
16 | - background: #fff; | ||
17 | -} | ||
18 | - | ||
19 | -.cenleft { | ||
20 | - width: 240rpx; | ||
21 | - height: 100%; | ||
22 | - float: left; | ||
23 | - display: flex; | ||
24 | - justify-content: center; | ||
25 | - align-items: center; | ||
26 | -} | ||
27 | - | ||
28 | -.cenleft image { | ||
29 | - background-color: white; | ||
30 | - width: 200rpx; | ||
31 | - height: 200rpx; | ||
32 | -} | ||
33 | - | ||
34 | -.cenrt {} | ||
35 | - | ||
36 | -.cenright { | ||
37 | - height: 100%; | ||
38 | - width: auto; | ||
39 | - float: left; | ||
40 | -} | ||
41 | - | ||
42 | -.cenrtoptitle { | ||
43 | - float: left; | ||
44 | - width: 240rpx; | ||
45 | - height: 40rpx; | ||
46 | - margin-left: 12rpx; | ||
47 | - font-size: 28rpx; | ||
48 | - margin-top: 12rpx; | ||
49 | -} | ||
50 | - | ||
51 | -.cenrcen { | ||
52 | - height: 70rpx; | ||
53 | - margin-top: 35rpx; | ||
54 | - width: 479rpx; | ||
55 | -} | ||
56 | - | ||
57 | -.jg { | ||
58 | - font-size: 40rpx; | ||
59 | - margin-right: 30rpx; | ||
60 | -} | ||
61 | - | ||
62 | -.jgx { | ||
63 | - font-size: 24rpx; | ||
64 | - color: #777; | ||
65 | - text-decoration: line-through; | ||
66 | - margin-top: 12rpx; | ||
67 | -} | ||
68 | - | ||
69 | -.cenrfoot { | ||
70 | - align-content: center; | ||
71 | - text-align: center; | ||
72 | - border: 2rpx solid red; | ||
73 | - border-radius: 10rpx; | ||
74 | - color: red; | ||
75 | - float: left; | ||
76 | - font-size: 24rpx; | ||
77 | - padding: 4rpx 16rpx; | ||
78 | - margin-top: 12rpx; | ||
79 | -} | ||
80 | - | ||
81 | -.body { | ||
82 | - background-color: white; | ||
83 | - height: 472rpx; | ||
84 | - width: 100%; | ||
85 | - margin-top: 4rpx; | ||
86 | -} | ||
87 | - | ||
88 | -.d { | ||
89 | - font-size: 24rpx; | ||
90 | -} | ||
91 | - | ||
92 | -.bodytop { | ||
93 | - background-color: white; | ||
94 | - text-align: center; | ||
95 | - font-size: 28rpx; | ||
96 | - padding-top: 16rpx; | ||
97 | - height: 90rpx; | ||
98 | - | ||
99 | -} | ||
100 | - | ||
101 | -.bodytop span { | ||
102 | - color: red; | ||
103 | -} | ||
104 | - | ||
105 | -.bodyimg { | ||
106 | - height: 155rpx; | ||
107 | - /* display: flex; | ||
108 | - justify-content: center; | ||
109 | - align-items: center; */ | ||
110 | - | ||
111 | - | ||
112 | -} | ||
113 | - | ||
114 | -.bodyimg image { | ||
115 | - border-radius: 50rpx; | ||
116 | - height: 96rpx; | ||
117 | - width: 96rpx; | ||
118 | - margin-top: 30rpx; | ||
119 | - position: absolute; | ||
120 | - | ||
121 | -} | ||
122 | - | ||
123 | -.d { | ||
124 | - width: 101rpx; | ||
125 | - height: 101rpx; | ||
126 | - display: inline-block; | ||
127 | - | ||
128 | -} | ||
129 | - | ||
130 | -.bodyimg span { | ||
131 | - background-color: #e22b44; | ||
132 | - color: white; | ||
133 | - font-size: 24rpx; | ||
134 | - border-radius: 6rpx; | ||
135 | - padding: 3rpx 10rpx; | ||
136 | - position: relative; | ||
137 | - top: 8px; | ||
138 | - left: 40rpx; | ||
139 | -} | ||
140 | - | ||
141 | -.bodyspan { | ||
142 | - color: red; | ||
143 | - text-align: center; | ||
144 | - font-size: 24rpx; | ||
145 | -} | ||
146 | - | ||
147 | -.bodytime { | ||
148 | - height: 55rpx; | ||
149 | - width: 100%; | ||
150 | - display: flex; | ||
151 | - flex-wrap: nowrap; | ||
152 | - padding-left: 40rpx; | ||
153 | - align-items: center; | ||
154 | - | ||
155 | -} | ||
156 | - | ||
157 | -.bodytimeleft { | ||
158 | - text-decoration: line-through; | ||
159 | - flex-grow: 1.7; | ||
160 | -} | ||
161 | - | ||
162 | -.bodytimecen { | ||
163 | - text-align: center; | ||
164 | - flex-grow: 1; | ||
165 | - | ||
166 | - font-size: 30rpx; | ||
167 | - color: #000; | ||
168 | - width: 415rpx; | ||
169 | - | ||
170 | -} | ||
171 | - | ||
172 | -.bodytimecen span { | ||
173 | - background-color: #333333; | ||
174 | - color: white; | ||
175 | - border-radius: 7rpx; | ||
176 | - padding-left: 20rpx; | ||
177 | - font-size: 30rpx; | ||
178 | - margin: 0 auto; | ||
179 | - padding-right: 10rpx; | ||
180 | - margin-right: 5px; | ||
181 | - | ||
182 | - | ||
183 | -} | ||
184 | - | ||
185 | -.bodytimecen span:last-child { | ||
186 | - margin-right: 10rpx; | ||
187 | - | ||
188 | -} | ||
189 | - | ||
190 | -.bodytimeright { | ||
191 | - flex-grow: 1.7; | ||
192 | - margin-right: 72rpx; | ||
193 | - | ||
194 | -} | ||
195 | - | ||
196 | -.bodybutton { | ||
197 | - min-height: 170rpx; | ||
198 | - width: 90%; | ||
199 | - margin: 0 auto; | ||
200 | - text-align: center; | ||
201 | - line-height: 70rpx; | ||
202 | - border-radius: 15rpx; | ||
203 | - height: auto; | ||
204 | - padding-top: 38rpx | ||
205 | -} | ||
206 | - | ||
207 | -.bodybutton button { | ||
208 | - height: 100%; | ||
209 | - width: 100%; | ||
210 | - background-color: red; | ||
211 | - color: white; | ||
212 | - font-size: 32rpx; | ||
213 | -} | ||
214 | - | ||
215 | -.bodybutton.co-w { | ||
216 | - color: #333; | ||
217 | - background-color: #adadad; | ||
218 | - font-size: 32rpx; | ||
219 | - | ||
220 | -} | ||
221 | - | ||
222 | - | ||
223 | - | ||
224 | -.bodyfoot { | ||
225 | - width: 100%; | ||
226 | - text-align: center; | ||
227 | - font-size: 28rpx; | ||
228 | - color: #777; | ||
229 | - background-color: white; | ||
230 | -} | ||
231 | - | ||
232 | -.pintuan { | ||
233 | - width: 100%; | ||
234 | - height: 84rpx; | ||
235 | - background-color: white; | ||
236 | - color: black; | ||
237 | - text-align: center; | ||
238 | - font-size: 36rpx; | ||
239 | - margin-top: 0rpx; | ||
240 | -} | ||
241 | - | ||
242 | - | ||
243 | -.pintuanzhou { | ||
244 | - float: left; | ||
245 | - line-height: 84rpx; | ||
246 | - width: 226rpx; | ||
247 | - background: url('https://mshopimg.yolipai.net/miniapp/images/user/wh.png') no-repeat right center; | ||
248 | - background-size: 42rpx; | ||
249 | - margin-left: -18rpx; | ||
250 | - font-size: 32rpx; | ||
251 | -} | ||
252 | - | ||
253 | -.pintuanyou { | ||
254 | - float: right; | ||
255 | - color: rgb(168, 167, 167); | ||
256 | - line-height: 84rpx; | ||
257 | - font-size: 32rpx; | ||
258 | - margin-right: 24rpx; | ||
259 | -} | ||
260 | - | ||
261 | -.onegoods { | ||
262 | - background-color: white; | ||
263 | - width: 372rpx; | ||
264 | - height: 560rpx; | ||
265 | - border-left: 2rpx solid #eee; | ||
266 | - float: left; | ||
267 | -} | ||
268 | - | ||
269 | -.goodsl { | ||
270 | - background-color: white; | ||
271 | -} | ||
272 | - | ||
273 | -.onegoodsimg { | ||
274 | - width: 100%; | ||
275 | - height: 360rpx; | ||
276 | - margin-bottom: 20rpx; | ||
277 | -} | ||
278 | - | ||
279 | -.onegoodsimg image { | ||
280 | - height: 100%; | ||
281 | - width: 100%; | ||
282 | -} | ||
283 | - | ||
284 | -.onegoodsdesc { | ||
285 | - color: rgb(168, 167, 167); | ||
286 | - padding-left: 20rpx; | ||
287 | - height: 100rpx; | ||
288 | - font-size: 32rpx; | ||
289 | - width: 92%; | ||
290 | - line-height: 100rpx; | ||
291 | - overflow: hidden; | ||
292 | - text-overflow: ellipsis; | ||
293 | - white-space: nowrap; | ||
294 | - padding-right: 20rpx; | ||
295 | -} | ||
296 | - | ||
297 | -.onegoodsdesc text {} | ||
298 | - | ||
299 | -.price { | ||
300 | - color: red; | ||
301 | - width: 100%; | ||
302 | -} | ||
303 | - | ||
304 | -.jgleft { | ||
305 | - float: left; | ||
306 | - width: 100rpx; | ||
307 | - margin-left: 20rpx; | ||
308 | - font-size: 40rpx; | ||
309 | - margin-top: -8rpx; | ||
310 | -} | ||
311 | - | ||
312 | -.jgright { | ||
313 | - font-size: 28rpx; | ||
314 | - float: right; | ||
315 | - width: 120rpx; | ||
316 | -} | ||
317 | - | ||
318 | -.jgright span { | ||
319 | - color: rgb(168, 167, 167); | ||
320 | -} | ||
321 | - | ||
322 | -.goodslisttop { | ||
323 | - background-color: white; | ||
324 | - width: 100%; | ||
325 | -} | ||
326 | - | ||
327 | -.goodslist { | ||
328 | - background-color: white; | ||
329 | -} | ||
330 | - | ||
331 | -.goodslisttop { | ||
332 | - background-color: white; | ||
333 | - width: 100%; | ||
334 | - height: 80rpx; | ||
335 | - margin-top: 20rpx; | ||
336 | - text-align: center; | ||
337 | -} | ||
338 | - | ||
339 | -.goodslistspan { | ||
340 | - margin: 0 auto; | ||
341 | - padding-top: 20rpx; | ||
342 | - display: inline-block; | ||
343 | - padding: 0 10px; | ||
344 | - background: #fff; | ||
345 | - margin-top: 12rpx; | ||
346 | - font-size: 28rpx; | ||
347 | - color: rgb(168, 167, 167); | ||
348 | -} | ||
349 | - | ||
350 | -.xian { | ||
351 | - height: 50%; | ||
352 | - width: 100%; | ||
353 | - border-bottom: 4rpx solid #eee; | ||
354 | - float: left; | ||
355 | -} | ||
356 | - | ||
357 | -.bodyselect { | ||
358 | - height: 50px; | ||
359 | - background-color: white; | ||
360 | - width: 100%; | ||
361 | - line-height: 50px; | ||
362 | - font-size: 28rpx; | ||
363 | -} | ||
364 | - | ||
365 | -.changxin { | ||
366 | - float: left; | ||
367 | - width: 100%; | ||
368 | -} | ||
369 | - | ||
370 | -.zhangxi { | ||
371 | - width: 100%; | ||
372 | - min-height: 100rpx; | ||
373 | - background-color: white; | ||
374 | - color: black; | ||
375 | -} | ||
376 | - | ||
377 | -.img { | ||
378 | - width: 30%; | ||
379 | - height: 100rpx; | ||
380 | - margin-bottom: 0rpx; | ||
381 | - color: black; | ||
382 | - margin-left: 36rpx; | ||
383 | - font-size: 26rpx; | ||
384 | - display: flex; | ||
385 | -} | ||
386 | - | ||
387 | -.img span { | ||
388 | - height: 100rpx; | ||
389 | - display: block; | ||
390 | - line-height: 100rpx; | ||
391 | - text-overflow: ellipsis; | ||
392 | - white-space: nowrap; | ||
393 | - overflow: hidden; | ||
394 | - padding: 0rpx; | ||
395 | - width: 120rpx; | ||
396 | -} | ||
397 | - | ||
398 | -.zhangxi image { | ||
399 | - border-radius: 50rpx; | ||
400 | - height: 80rpx; | ||
401 | - width: 80rpx; | ||
402 | - float: left; | ||
403 | - margin-top: 12rpx; | ||
404 | - background-color: red; | ||
405 | - margin-right: 10rpx; | ||
406 | -} | ||
407 | - | ||
408 | -.zhangxi .zssj { | ||
409 | - height: 100rpx; | ||
410 | - width: 70%; | ||
411 | - margin-right: 40rpx; | ||
412 | - line-height: 100rpx; | ||
413 | - font-size: 26rpx; | ||
414 | - text-align: right; | ||
415 | -} | ||
416 | - | ||
417 | -.zhangxi .zssj text { | ||
418 | - width: 100%; | ||
419 | -} | ||
420 | - | ||
421 | -.ia { | ||
422 | - display: flex; | ||
423 | -} | ||
424 | - | ||
425 | -.zspan { | ||
426 | - text-align: center; | ||
427 | - border-bottom: 2rpx #eee solid; | ||
428 | - width: 100%; | ||
429 | - display: flex; | ||
430 | - align-items: center; | ||
431 | - justify-content: center; | ||
432 | - font-size: 28rpx; | ||
433 | - color: #777; | ||
434 | - line-height: 100rpx; | ||
435 | - height: auto; | ||
436 | - | ||
437 | -} | ||
438 | - | ||
439 | -.mtop { | ||
440 | - text-align: center; | ||
441 | - color: white; | ||
442 | - background-color: #4c4c4c; | ||
443 | - width: 100%; | ||
444 | - height: 100%; | ||
445 | - position: fixed; | ||
446 | - z-index: 5; | ||
447 | - top: 0; | ||
448 | - left: 0; | ||
449 | -} | ||
450 | - | ||
451 | -.mt1 { | ||
452 | - margin-top: 100px; | ||
453 | - margin-bottom: 20rpx; | ||
454 | -} | ||
455 | - | ||
456 | -.mts { | ||
457 | - color: #e1e10b; | ||
458 | -} | ||
459 | - | ||
460 | -.mcou { | ||
461 | - font-size: 48rpx; | ||
462 | -} | ||
463 | - | ||
464 | -.mfoot { | ||
465 | - width: 100%; | ||
466 | - margin-top: 700rpx; | ||
467 | -} | ||
468 | - | ||
469 | -.mbtn { | ||
470 | - margin-top: 60rpx; | ||
471 | - width: 400rpx; | ||
472 | - background: #666; | ||
473 | - color: #fff; | ||
474 | - border-radius: 20rpx; | ||
475 | - font-size: 32rpx; | ||
476 | -} | ||
477 | - | ||
478 | -.etop { | ||
479 | - padding-top: 200rpx; | ||
480 | - width: 100%; | ||
481 | - height: 100%; | ||
482 | - position: fixed; | ||
483 | - left: 0rpx; | ||
484 | - top: 0rpx; | ||
485 | - z-index: 12rpx; | ||
486 | - background-color: white; | ||
487 | -} | ||
488 | - | ||
489 | -.emyimage { | ||
490 | - display: flex; | ||
491 | - justify-content: center; | ||
492 | - align-items: center; | ||
493 | -} | ||
494 | - | ||
495 | -.emyimage image { | ||
496 | - background-color: red; | ||
497 | - width: 160rpx; | ||
498 | - height: 160rpx; | ||
499 | - margin: 0 auto; | ||
500 | -} | ||
501 | - | ||
502 | -.espan { | ||
503 | - font-size: 32rpx; | ||
504 | - margin-top: 10rpx; | ||
505 | -} | ||
506 | - | ||
507 | -.erweima { | ||
508 | - margin-top: 10rpx; | ||
509 | - width: 100%; | ||
510 | -} | ||
511 | - | ||
512 | -.erzhou { | ||
513 | - width: 200rpx; | ||
514 | - float: left; | ||
515 | - margin-right: 20rpx; | ||
516 | -} | ||
517 | - | ||
518 | -.erzhou image { | ||
519 | - background-color: blanchedalmond; | ||
520 | - width: 200rpx; | ||
521 | - height: 200rpx; | ||
522 | -} | ||
523 | - | ||
524 | -.eright { | ||
525 | - width: 500rpx; | ||
526 | - float: left; | ||
527 | - font-size: 32rpx; | ||
528 | -} | ||
529 | - | ||
530 | -.body { | ||
531 | - background-color: white; | ||
532 | - height: auto; | ||
533 | - width: 100%; | ||
534 | - margin-top: 4rpx; | ||
535 | -} | ||
536 | - | ||
537 | -.cenrtoptitle { | ||
538 | - float: left; | ||
539 | - width: 450rpx; | ||
540 | - font-size: 28rpx; | ||
541 | - margin-top: 20rpx; | ||
542 | - | ||
543 | -} | ||
544 | - | ||
545 | -.cenrtop { | ||
546 | - margin-top: 20rpx; | ||
547 | - background-color: red; | ||
548 | - color: white; | ||
549 | - border-radius: 10rpx; | ||
550 | - padding: 0 16rpx; | ||
551 | - font-size: 28rpx; | ||
552 | - float: left; | ||
553 | - height: 40rpx; | ||
554 | -} | ||
555 | - | ||
556 | -.yijian { | ||
557 | - position: fixed; | ||
558 | - top: 0rpx; | ||
559 | - left: 0rpx; | ||
560 | - width: 100%; | ||
561 | - height: 100%; | ||
562 | - z-index: 14rpx; | ||
563 | - background-color: rgba(0, 0, 0, 0.3); | ||
564 | -} | ||
565 | - | ||
566 | -.buy-option { | ||
567 | - background: #fff; | ||
568 | - box-shadow: 0 0 6px rgba(0, 0, 0, 0.5); | ||
569 | - padding: 20rpx; | ||
570 | - min-height: 400rpx; | ||
571 | - padding-bottom: 120rpx; | ||
572 | - width: 100%; | ||
573 | - margin-top: 180rpx; | ||
574 | -} | ||
575 | - | ||
576 | -.buy-top { | ||
577 | - width: 100%; | ||
578 | -} | ||
579 | - | ||
580 | -.buy-image { | ||
581 | - margin-right: 20rpx; | ||
582 | - width: 320rpx; | ||
583 | - height: 200rpx; | ||
584 | - float: left; | ||
585 | -} | ||
586 | - | ||
587 | -.buy-image image { | ||
588 | - width: 200rpx; | ||
589 | - height: 200rpx; | ||
590 | - background-color: burlywood; | ||
591 | - float: left; | ||
592 | -} | ||
593 | - | ||
594 | -.buy-image text { | ||
595 | - margin-left: 10rpx; | ||
596 | - color: red; | ||
597 | -} | ||
598 | - | ||
599 | -.buy-cou { | ||
600 | - float: right; | ||
601 | - width: 100rpx; | ||
602 | - height: 200rpx; | ||
603 | - background-color: white; | ||
604 | - font-size: 60rpx; | ||
605 | - color: black; | ||
606 | -} | ||
607 | - | ||
608 | -.t1 { | ||
609 | - float: left; | ||
610 | - font-size: 28rpx; | ||
611 | - padding-left: 4rpx; | ||
612 | - color: red; | ||
613 | - padding-top: 10rpx; | ||
614 | -} | ||
615 | - | ||
616 | -.buy-button { | ||
617 | - width: 100%; | ||
618 | - float: left; | ||
619 | - margin-top: 22rpx; | ||
620 | -} | ||
621 | - | ||
622 | -.buy-button text { | ||
623 | - float: left; | ||
624 | -} | ||
625 | - | ||
626 | -.stepper { | ||
627 | - height: 52rpx; | ||
628 | - float: left; | ||
629 | - border: 2rpx solid #ccc; | ||
630 | - border-radius: 6rpx; | ||
631 | - margin-left: 28rpx; | ||
632 | -} | ||
633 | - | ||
634 | -/*加号和减号*/ | ||
635 | - | ||
636 | -.stepper text { | ||
637 | - float: left; | ||
638 | - width: 76rpx; | ||
639 | - line-height: 52rpx; | ||
640 | - text-align: center; | ||
641 | -} | ||
642 | - | ||
643 | -/*数值*/ | ||
644 | - | ||
645 | -.stepper input { | ||
646 | - width: 80rpx; | ||
647 | - height: 52rpx; | ||
648 | - float: left; | ||
649 | - margin: 0 auto; | ||
650 | - text-align: center; | ||
651 | - font-size: 24rpx; | ||
652 | - border-left: 2rpx solid #ccc; | ||
653 | - border-right: 2rpx solid #ccc; | ||
654 | -} | ||
655 | - | ||
656 | -/*普通样式*/ | ||
657 | - | ||
658 | -.stepper .normal { | ||
659 | - color: black; | ||
660 | -} | ||
661 | - | ||
662 | -/*禁用样式*/ | ||
663 | - | ||
664 | -.stepper .disable { | ||
665 | - color: #ccc; | ||
666 | -} | ||
667 | - | ||
668 | -.quhuo { | ||
669 | - width: 100%; | ||
670 | - color: rgb(51, 51, 51); | ||
671 | - float: left; | ||
672 | - margin-top: 20rpx; | ||
673 | -} | ||
674 | - | ||
675 | -.x-z { | ||
676 | - width: 100%; | ||
677 | - float: left; | ||
678 | - color: rgb(51, 51, 51); | ||
679 | - font-size: 36rpx; | ||
680 | -} | ||
681 | - | ||
682 | -.btn { | ||
683 | - width: 94%; | ||
684 | - background-color: red; | ||
685 | - color: white; | ||
686 | - text-align: center; | ||
687 | - height: 88rpx; | ||
688 | - line-height: 88rpx; | ||
689 | - float: left; | ||
690 | - margin: 0 auto; | ||
691 | -} | ||
692 | - | ||
693 | -.mck { | ||
694 | - min-height: 100rpx; | ||
695 | - width: 100%; | ||
696 | - border-bottom: 24rpx #eee solid; | ||
697 | -} | ||
698 | - | ||
699 | -/* pages/yi/yi.wxss */ | ||
700 | - | ||
701 | -.buy-option { | ||
702 | - background: #fff; | ||
703 | - padding: 20rpx; | ||
704 | - margin-top: 650rpx; | ||
705 | - width: 100%; | ||
706 | -} | ||
707 | - | ||
708 | -.buy-top { | ||
709 | - width: 100%; | ||
710 | -} | ||
711 | - | ||
712 | -.buy-image { | ||
713 | - margin-right: 20rpx; | ||
714 | - width: 630rpx; | ||
715 | - height: 200rpx; | ||
716 | - float: left; | ||
717 | -} | ||
718 | - | ||
719 | -.buy-image image { | ||
720 | - width: 200rpx; | ||
721 | - height: 200rpx; | ||
722 | - background-color: burlywood; | ||
723 | - float: left; | ||
724 | - margin-right: 16rpx; | ||
725 | -} | ||
726 | - | ||
727 | - | ||
728 | -.buy-image text { | ||
729 | - margin-left: 10rpx; | ||
730 | - color: red; | ||
731 | -} | ||
732 | - | ||
733 | -.buy-cou { | ||
734 | - float: right; | ||
735 | - width: 60rpx; | ||
736 | - height: 60rpx; | ||
737 | - background-color: white; | ||
738 | - font-size: 60rpx; | ||
739 | - color: black; | ||
740 | - margin-right: 40rpx; | ||
741 | - text-align: center; | ||
742 | - line-height: 60rpx; | ||
743 | - padding-bottom: 4rpx; | ||
744 | -} | ||
745 | - | ||
746 | -.t1 { | ||
747 | - font-size: 28rpx; | ||
748 | - padding-left: 4rpx; | ||
749 | - color: red; | ||
750 | - padding-top: 10rpx; | ||
751 | -} | ||
752 | - | ||
753 | -.buy-button { | ||
754 | - width: 100%; | ||
755 | - margin-top: 30rpx; | ||
756 | -} | ||
757 | - | ||
758 | -.buy-button text { | ||
759 | - /*float: left;*/ | ||
760 | - display: inline-block; | ||
761 | -} | ||
762 | - | ||
763 | -.stepper { | ||
764 | - height: 52rpx; | ||
765 | - display: inline-block; | ||
766 | - border: 2rpx solid #ccc; | ||
767 | - border-radius: 6rpx; | ||
768 | - margin-left: 28rpx; | ||
769 | -} | ||
770 | - | ||
771 | -/*加号和减号*/ | ||
772 | - | ||
773 | -.stepper text { | ||
774 | - float: left; | ||
775 | - width: 65rpx; | ||
776 | - line-height: 52rpx; | ||
777 | - text-align: center; | ||
778 | -} | ||
779 | - | ||
780 | -/*数值*/ | ||
781 | - | ||
782 | -.stepper input { | ||
783 | - width: 84rpx; | ||
784 | - height: 52rpx; | ||
785 | - float: left; | ||
786 | - margin: 0 auto; | ||
787 | - text-align: center; | ||
788 | - font-size: 24rpx; | ||
789 | - border-left: 2rpx solid #ccc; | ||
790 | - border-right: 2rpx solid #ccc; | ||
791 | -} | ||
792 | - | ||
793 | -/*普通样式*/ | ||
794 | - | ||
795 | -.stepper .normal { | ||
796 | - color: black; | ||
797 | -} | ||
798 | - | ||
799 | -/*禁用样式*/ | ||
800 | - | ||
801 | -.stepper .disable { | ||
802 | - color: #ccc; | ||
803 | -} | ||
804 | - | ||
805 | -.quhuo { | ||
806 | - width: 100%; | ||
807 | - color: rgb(51, 51, 51); | ||
808 | - margin-top: 45rpx; | ||
809 | - font-size: 32rpx | ||
810 | -} | ||
811 | - | ||
812 | -.quhuo image { | ||
813 | - width: 40rpx; | ||
814 | - height: 40rpx; | ||
815 | - display: inline-block; | ||
816 | - position: relative; | ||
817 | - left: 500rpx; | ||
818 | -} | ||
819 | - | ||
820 | -.ttxz { | ||
821 | - display: inline-block; | ||
822 | -} | ||
823 | - | ||
824 | -.xuanze { | ||
825 | - width: 100%; | ||
826 | - height: 80rpx; | ||
827 | - display: inline-block; | ||
828 | - border-bottom: 1rpx #e7e7e7 solid; | ||
829 | - font-size: 32rpx; | ||
830 | - line-height: 80rpx; | ||
831 | -} | ||
832 | - | ||
833 | -.xuanze1 { | ||
834 | - width: 100%; | ||
835 | - color: rgb(51, 51, 51); | ||
836 | - height: 80rpx; | ||
837 | - display: inline-block; | ||
838 | - border-bottom: 1rpx #e7e7e7 solid; | ||
839 | - line-height: 80rpx; | ||
840 | - overflow: hidden; | ||
841 | -} | ||
842 | - | ||
843 | -.x-z { | ||
844 | - width: 100%; | ||
845 | - color: rgb(51, 51, 51); | ||
846 | - font-size: 36rpx; | ||
847 | - height: auto; | ||
848 | -} | ||
849 | - | ||
850 | -.btn { | ||
851 | - width: 100%; | ||
852 | - background-color: red; | ||
853 | - color: white; | ||
854 | - text-align: center; | ||
855 | - height: 88rpx; | ||
856 | - line-height: 88rpx; | ||
857 | -} | ||
858 | - | ||
859 | -.clear { | ||
860 | - clear: both; | ||
861 | -} | ||
862 | - | ||
863 | -.fir_view { | ||
864 | - max-height: 300rpx; | ||
865 | - overflow-y: scroll; | ||
866 | -} | ||
867 | - | ||
868 | -.pop_up { | ||
869 | - min-height: 200rpx; | ||
870 | - position: fixed; | ||
871 | - bottom: 0; | ||
872 | - left: 0; | ||
873 | - width: 100%; | ||
874 | - background-color: rgba(0, 0, 0, 0.3); | ||
875 | - font-size: 34rpx; | ||
876 | - color: rgb(51, 51, 51); | ||
877 | - | ||
878 | -} | ||
879 | - | ||
880 | -.end_name { | ||
881 | - display: inline-block; | ||
882 | -} | ||
883 | - | ||
884 | -/*mask*/ | ||
885 | - | ||
886 | -.toast_mask { | ||
887 | - opacity: 0; | ||
888 | - width: 100%; | ||
889 | - height: 100%; | ||
890 | - overflow: hidden; | ||
891 | - position: fixed; | ||
892 | - top: 0rpx; | ||
893 | - left: 0rpx; | ||
894 | - z-index: 888; | ||
895 | -} | ||
896 | - | ||
897 | -/*toast*/ | ||
898 | - | ||
899 | -.toast_content_box { | ||
900 | - display: flex; | ||
901 | - width: 100%; | ||
902 | - height: 100%; | ||
903 | - justify-content: center; | ||
904 | - align-items: center; | ||
905 | - position: fixed; | ||
906 | - z-index: 999; | ||
907 | - top: 0rpx; | ||
908 | -} | ||
909 | - | ||
910 | -.toast_content { | ||
911 | - width: 50%; | ||
912 | - padding: 20rpx; | ||
913 | - background: rgba(0, 0, 0, 0.5); | ||
914 | - border-radius: 20rpx; | ||
915 | -} | ||
916 | - | ||
917 | -.toast_content_text { | ||
918 | - height: 100%; | ||
919 | - width: 100%; | ||
920 | - color: #fff; | ||
921 | - font-size: 28rpx; | ||
922 | - text-align: center; | ||
923 | -} | ||
924 | - | ||
925 | -.jt { | ||
926 | - width: 30rpx; | ||
927 | - height: 30rpx; | ||
928 | - display: inline-block; | ||
929 | -} | ||
930 | - | ||
931 | -.jiajian { | ||
932 | - color: #999; | ||
933 | -} | ||
934 | - | ||
935 | -.t_wz { | ||
936 | - line-height: 110rpx; | ||
937 | - height: 110rpx; | ||
938 | - font-size: 36rpx; | ||
939 | -} | ||
940 | - | ||
941 | -.down-arrow { | ||
942 | - display: inline-block; | ||
943 | - position: relative; | ||
944 | - width: 40rpx; | ||
945 | - height: 30rpx; | ||
946 | - margin-right: 20rpx; | ||
947 | -} | ||
948 | - | ||
949 | -.down-arrow::after { | ||
950 | - display: inline-block; | ||
951 | - content: " "; | ||
952 | - height: 18rpx; | ||
953 | - width: 18rpx; | ||
954 | - border-width: 0 2rpx 2rpx 0; | ||
955 | - border-color: #999; | ||
956 | - border-style: solid; | ||
957 | - transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); | ||
958 | - transform-origin: center; | ||
959 | - transition: transform 0.3s; | ||
960 | - position: absolute; | ||
961 | - top: 50%; | ||
962 | - right: 10rpx; | ||
963 | - margin-top: -10rpx; | ||
964 | -} | ||
965 | - | ||
966 | -.down-arrow1 { | ||
967 | - display: inline-block; | ||
968 | - position: relative; | ||
969 | - width: 40rpx; | ||
970 | - height: 30rpx; | ||
971 | - margin-right: 20rpx; | ||
972 | - margin-top: 12rpx; | ||
973 | -} | ||
974 | - | ||
975 | -.down-arrow1::after { | ||
976 | - display: inline-block; | ||
977 | - content: " "; | ||
978 | - height: 18rpx; | ||
979 | - width: 18rpx; | ||
980 | - border-width: 0 2rpx 2rpx 0; | ||
981 | - border-color: #999; | ||
982 | - border-style: solid; | ||
983 | - transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); | ||
984 | - transform-origin: center; | ||
985 | - transition: transform 0.3s; | ||
986 | - position: absolute; | ||
987 | - top: 50%; | ||
988 | - right: 10rpx; | ||
989 | - margin-top: -10rpx; | ||
990 | -} | ||
991 | - | ||
992 | -.down-arrow1::after { | ||
993 | - transform-origin: center; | ||
994 | - transform: rotate(-135deg); | ||
995 | - transition: transform 0.3s; | ||
996 | -} | ||
997 | - | ||
998 | -.goodslisttop::after { | ||
999 | - content: ""; | ||
1000 | - width: 100%; | ||
1001 | - height: 1px; | ||
1002 | - border-bottom: 1px #d4d4d4 solid; | ||
1003 | - display: block; | ||
1004 | - margin-top: -12px; | ||
1005 | -} | ||
1006 | - | ||
1007 | -.ia { | ||
1008 | - display: flex; | ||
1009 | - width: 100%; | ||
1010 | -} | ||
1011 | - | ||
1012 | -.bview { | ||
1013 | - position: fixed; | ||
1014 | - top: 0; | ||
1015 | - left: 0; | ||
1016 | - width: 100%; | ||
1017 | - height: 100%; | ||
1018 | - background-color: rgba(0, 0, 0, 0.5); | ||
1019 | -} | ||
1020 | - | ||
1021 | -.juzhong { | ||
1022 | - position: fixed; | ||
1023 | - top: 0; | ||
1024 | - left: 0; | ||
1025 | - width: 100%; | ||
1026 | - height: 100%; | ||
1027 | - display: flex; | ||
1028 | - flex-direction: row; | ||
1029 | - justify-content: center; | ||
1030 | - align-items: center; | ||
1031 | -} | ||
1032 | - | ||
1033 | -.juzhong .xq { | ||
1034 | - padding: 0 20rpx; | ||
1035 | - background: #fff; | ||
1036 | - font-size: 30rpx; | ||
1037 | - padding-bottom: 20rpx; | ||
1038 | -} | ||
1039 | - | ||
1040 | -.juzhong .xq .title { | ||
1041 | - text-align: center; | ||
1042 | - margin: 20rpx 0; | ||
1043 | - position: relative; | ||
1044 | - height: 50rpx; | ||
1045 | -} | ||
1046 | - | ||
1047 | -.juzhong .xq .hs1 { | ||
1048 | - font-size: 28rpx; | ||
1049 | - color: #ab8f9e; | ||
1050 | -} | ||
1051 | - | ||
1052 | -.juzhong .xq .title .close { | ||
1053 | - position: absolute; | ||
1054 | - top: 0; | ||
1055 | - right: 0; | ||
1056 | - width: 45rpx; | ||
1057 | - height: 45rpx; | ||
1058 | -} | ||
1059 | - | ||
1060 | -/* .pt_qd { | ||
1061 | - margin-top: 40rpx; | ||
1062 | - height: auto; | ||
1063 | -} */ | ||
1064 | - | ||
1065 | -.spec-cart-btn.w100 { | ||
1066 | - width: 100%; | ||
1067 | - margin-left: 0; | ||
1068 | - height: 80rpx; | ||
1069 | - line-height: 80rpx; | ||
1070 | -} | ||
1071 | - | ||
1072 | - | ||
1073 | -.bview { | ||
1074 | - position: fixed; | ||
1075 | - top: 0; | ||
1076 | - left: 0; | ||
1077 | - width: 100%; | ||
1078 | - height: 100%; | ||
1079 | - background-color: rgba(0, 0, 0, 0.5); | ||
1080 | -} | ||
1081 | - | ||
1082 | -.juzhong { | ||
1083 | - position: fixed; | ||
1084 | - top: 0; | ||
1085 | - left: 0; | ||
1086 | - width: 100%; | ||
1087 | - height: 100%; | ||
1088 | - display: flex; | ||
1089 | - flex-direction: row; | ||
1090 | - justify-content: center; | ||
1091 | - align-items: center; | ||
1092 | -} | ||
1093 | - | ||
1094 | -.juzhong .xq { | ||
1095 | - padding: 0 20rpx; | ||
1096 | - background: #fff; | ||
1097 | - font-size: 30rpx; | ||
1098 | - padding-bottom: 20rpx; | ||
1099 | -} | ||
1100 | - | ||
1101 | -.juzhong .xq .title { | ||
1102 | - text-align: center; | ||
1103 | - margin: 20rpx 0; | ||
1104 | - position: relative; | ||
1105 | - height: 50rpx; | ||
1106 | -} | ||
1107 | - | ||
1108 | -.juzhong .xq .hs1 { | ||
1109 | - font-size: 28rpx; | ||
1110 | - color: #ab8f9e; | ||
1111 | -} | ||
1112 | - | ||
1113 | -.juzhong .xq .title .close { | ||
1114 | - position: absolute; | ||
1115 | - top: 0; | ||
1116 | - right: 0; | ||
1117 | - width: 45rpx; | ||
1118 | - height: 45rpx; | ||
1119 | -} | ||
1120 | - | ||
1121 | -.pt_qd { | ||
1122 | - /* margin-top: 40rpx; | ||
1123 | - height: auto; */ | ||
1124 | - padding: 20rpx; | ||
1125 | -} | ||
1126 | - | ||
1127 | -.spec-cart-btn.w100 { | ||
1128 | - width: 100%; | ||
1129 | - margin-left: 0; | ||
1130 | - height: 80rpx; | ||
1131 | - line-height: 80rpx; | ||
1132 | -} | ||
1133 | - | ||
1134 | -.show_zf_dd { | ||
1135 | - display: flex; | ||
1136 | - padding: 15rpx 40rpx; | ||
1137 | - justify-content: space-between; | ||
1138 | - font-size: 30rpx; | ||
1139 | - color: #666; | ||
1140 | -} | ||
1141 | - | ||
1142 | -.flex_tou { | ||
1143 | - display: flex; | ||
1144 | - justify-content: center; | ||
1145 | - width: 100%; | ||
1146 | - height: 175rpx; | ||
1147 | - align-items: center; | ||
1148 | -} | ||
1149 | - | ||
1150 | -.xc-goods-details { | ||
1151 | - width: 479rpx; | ||
1152 | - margin-top: 20rpx; | ||
1153 | - height: 80rpx; | ||
1154 | - align-items: center; | ||
1155 | - | ||
1156 | -} | ||
1157 | - | ||
1158 | -.xc-valframe { | ||
1159 | - border-radius: 7rpx; | ||
1160 | - border: 1rpx solid; | ||
1161 | - margin-top: 3rpx; | ||
1162 | -} | ||
1163 | - | ||
1164 | -.xc-valframe .xc-frame-img { | ||
1165 | - width: 30rpx; | ||
1166 | - height: 100%; | ||
1167 | - background: #e22b44; | ||
1168 | -} | ||
1169 | - | ||
1170 | -.xc-valframe .xc-frame-img .picture { | ||
1171 | - width: 25rpx; | ||
1172 | - height: 25rpx; | ||
1173 | - margin-top: 4rpx; | ||
1174 | - | ||
1175 | -} | ||
1176 | - | ||
1177 | -.bodybutton .xc-good-friend { | ||
1178 | - background: #fab55a; | ||
1179 | - border-radius: 15rpx; | ||
1180 | -} | ||
1181 | - | ||
1182 | -.bodybutton .xc-home-page { | ||
1183 | - margin-top: 20rpx; | ||
1184 | - background-color: #e22b44; | ||
1185 | - border-radius: 15rpx; | ||
1186 | -} | ||
1187 | - | ||
1188 | -.xc-ellipsis-img { | ||
1189 | - width: 56rpx; | ||
1190 | - height: 56rpx; | ||
1191 | - padding-top: 15rpx; | ||
1192 | -} | ||
1193 | - | ||
1194 | -.xc-ptcomplete { | ||
1195 | - width: 74%; | ||
1196 | - height: 105rpx; | ||
1197 | - line-height: 105rpx; | ||
1198 | - float: right; | ||
1199 | - | ||
1200 | -} | ||
1201 | - | ||
1202 | -.xc-ptcomplete .xc-img-frame .img { | ||
1203 | - width: 105rpx; | ||
1204 | - height: 105rpx; | ||
1205 | - float: right; | ||
1206 | -} | ||
1207 | - | ||
1208 | -.xc-ptcomplete .xc-img-frame { | ||
1209 | - width: 205rpx; | ||
1210 | - height: 105rpx; | ||
1211 | - margin-top: 20rpx; | ||
1212 | -} | ||
1213 | - | ||
1214 | -.xc-ptcomplete .xc-end { | ||
1215 | - width: 283rpx; | ||
1216 | - text-align: right; | ||
1217 | -} | ||
1218 | - | ||
1219 | -.iw { | ||
1220 | - padding-right: 33rpx; | ||
1221 | -} | ||
1222 | - | ||
1223 | -.xc-ptcomplete .xc-img-frames { | ||
1224 | - width: 345rpx; | ||
1225 | - height: 105rpx; | ||
1226 | - margin-top: 20rpx; | ||
1227 | - | ||
1228 | -} | ||
1229 | - | ||
1230 | -.xc-ptcomplete .xc-img-frames .img { | ||
1231 | - width: 105rpx; | ||
1232 | - height: 105rpx; | ||
1233 | - float: right; | ||
1234 | -} | ||
1235 | - | ||
1236 | -.bodybutton .xc-good-friend.co-w { | ||
1237 | - background-color: #aeaeae | ||
1238 | -} | ||
1239 | - | ||
1240 | - | ||
1241 | - | ||
1242 | - | ||
1243 | - | ||
1244 | - | ||
1245 | - | ||
1246 | - | ||
1247 | - | ||
1248 | - | ||
1249 | - | ||
1250 | - | ||
1251 | - | ||
1252 | - | ||
1253 | - | ||
1254 | -.spec-model { | ||
1255 | - position: fixed; | ||
1256 | - bottom: 0; | ||
1257 | - z-index: 20; | ||
1258 | - background: white; | ||
1259 | - width: 100%; | ||
1260 | - /* padding: 0 30rpx; */ | ||
1261 | - font-size: 32rpx; | ||
1262 | - box-sizing: border-box; | ||
1263 | - border-radius: 20rpx; | ||
1264 | - /* height: 72%; */ | ||
1265 | -} | ||
1266 | - | ||
1267 | -.spec-model .pding { | ||
1268 | - padding: 0 30rpx; | ||
1269 | -} | ||
1270 | - | ||
1271 | -.spec-goods { | ||
1272 | - padding: 30rpx 0 20rpx; | ||
1273 | - float: left; | ||
1274 | - width: 100%; | ||
1275 | - border-bottom: 2rpx solid #eee; | ||
1276 | -} | ||
1277 | - | ||
1278 | -.spec-img { | ||
1279 | - float: left; | ||
1280 | - height: 186rpx; | ||
1281 | - width: 186rpx; | ||
1282 | - border: 4rpx solid #eee | ||
1283 | -} | ||
1284 | - | ||
1285 | -.spec-goods-info { | ||
1286 | - float: left; | ||
1287 | - padding: 0 25rpx; | ||
1288 | - width: 400rpx; | ||
1289 | -} | ||
1290 | - | ||
1291 | -.spec-goods-name { | ||
1292 | - font-size: 30rpx; | ||
1293 | - line-height: 35rpx; | ||
1294 | - height: 70rpx; | ||
1295 | - margin: 15rpx 20rpx 25rpx 0; | ||
1296 | - overflow: hidden; | ||
1297 | - text-overflow: ellipsis; | ||
1298 | - color: #333; | ||
1299 | -} | ||
1300 | - | ||
1301 | -.spec-goods-price { | ||
1302 | - color: #d60021; | ||
1303 | - font-size: 33rpx; | ||
1304 | - font-weight: bold; | ||
1305 | -} | ||
1306 | - | ||
1307 | -.spec-goods-stock { | ||
1308 | - margin-top: 3rpx; | ||
1309 | - font-size: 24rpx; | ||
1310 | - color: #999999; | ||
1311 | - margin-right: 15rpx; | ||
1312 | -} | ||
1313 | - | ||
1314 | -.spec-name { | ||
1315 | - clear: both; | ||
1316 | - padding: 20rpx 0; | ||
1317 | - font-size: 30rpx; | ||
1318 | - color: #333; | ||
1319 | -} | ||
1320 | - | ||
1321 | -.quhuo { | ||
1322 | - font-size: 30rpx; | ||
1323 | - color: #000 | ||
1324 | -} | ||
1325 | - | ||
1326 | -.b_num { | ||
1327 | - display: flex; | ||
1328 | - font-size: 30rpx; | ||
1329 | - color: #333; | ||
1330 | - justify-content: space-between; | ||
1331 | -} | ||
1332 | - | ||
1333 | -.count { | ||
1334 | - /* position: fixed; */ | ||
1335 | - display: flex; | ||
1336 | - height: 50rpx; | ||
1337 | - /* border: 1rpx solid #000; */ | ||
1338 | - font-size: 28rpx; | ||
1339 | - /* right: 30rpx; */ | ||
1340 | - /* justify-content: space-between; */ | ||
1341 | -} | ||
1342 | - | ||
1343 | - | ||
1344 | -.count>view, | ||
1345 | -.count>input { | ||
1346 | - width: 60rpx; | ||
1347 | - height: 50rpx; | ||
1348 | - line-height: 50rpx; | ||
1349 | - text-align: center; | ||
1350 | -} | ||
1351 | - | ||
1352 | -.spec_bt { | ||
1353 | - background: fff; | ||
1354 | - color: #333; | ||
1355 | - margin-left: 10rpx; | ||
1356 | - padding: 4rpx 15rpx 4rpx; | ||
1357 | - display: inline-block; | ||
1358 | - border-radius: 30rpx; | ||
1359 | - font-size: 24rpx; | ||
1360 | - border: 1rpx solid #ccc; | ||
1361 | - margin: 10rpx; | ||
1362 | - height: 40rpx; | ||
1363 | - line-height: 40rpx; | ||
1364 | -} | ||
1365 | - | ||
1366 | -.spec_bt.act { | ||
1367 | - background: #d60021; | ||
1368 | - color: #fff; | ||
1369 | - border: 1rpx solid #d60021; | ||
1370 | -} | ||
1371 | - | ||
1372 | -.sub, .add, .count>input { | ||
1373 | - /* border-right: 1px solid #000; */ | ||
1374 | - background-color: #f8f8f8; | ||
1375 | - border-radius: 8rpx; | ||
1376 | -} | ||
1377 | -.sub.active { | ||
1378 | - /* background-color: #ddd; */ | ||
1379 | - color: #ccc; | ||
1380 | -} | ||
1381 | -.count>input { | ||
1382 | - margin: 0 10rpx; | ||
1383 | - line-height: normal; | ||
1384 | -} | ||
1385 | - | ||
1386 | -/* .sub { | ||
1387 | - border-right: 1px solid #000; | ||
1388 | -} | ||
1389 | - | ||
1390 | -.add { | ||
1391 | - border-left: 1px solid #000; | ||
1392 | -} */ | ||
1393 | - | ||
1394 | -.spec-btn { | ||
1395 | - color: black; | ||
1396 | - background-color: white; | ||
1397 | - padding: 10rpx 10rpx; | ||
1398 | - font-size: 26rpx; | ||
1399 | - line-height: 28rpx; | ||
1400 | - float: left; | ||
1401 | - border: 1rpx solid #dedede; | ||
1402 | - margin: 4rpx 10rpx 4rpx 0; | ||
1403 | - border-radius: 4rpx; | ||
1404 | -} | ||
1405 | - | ||
1406 | -.spec-btn-click { | ||
1407 | - color: white; | ||
1408 | - background-color: #f23030; | ||
1409 | - border: 1rpx solid #f23030; | ||
1410 | -} | ||
1411 | - | ||
1412 | -.spec-cart-btns { | ||
1413 | - width: 92%; | ||
1414 | - line-height: 70rpx; | ||
1415 | - margin: 0rpx auto; | ||
1416 | - margin-top: 160rpx; | ||
1417 | - border-radius: 20rpx; | ||
1418 | - position: fixed; | ||
1419 | - bottom: 50rpx; | ||
1420 | - left: 4%; | ||
1421 | - | ||
1422 | -} | ||
1423 | - | ||
1424 | -.spec-cart-btn { | ||
1425 | - | ||
1426 | - width: 100%; | ||
1427 | - font-size: 30rpx; | ||
1428 | - text-align: center; | ||
1429 | - color: white; | ||
1430 | - border-radius: 40rpx; | ||
1431 | -} | ||
1432 | - | ||
1433 | -.spec-add-cart { | ||
1434 | - background-color: #ffb03f; | ||
1435 | -} | ||
1436 | - | ||
1437 | -.spec-buy { | ||
1438 | - background-color: #f23030; | ||
1439 | - /* margin-left: 34rpx; */ | ||
1440 | -} | ||
1441 | - | ||
1442 | -.spec-cart-disable { | ||
1443 | - background: #bbbbbb; | ||
1444 | -} | ||
1445 | - | ||
1446 | -.spec-cart-btn-lg { | ||
1447 | - width: 614rpx; | ||
1448 | -} | ||
1449 | - | ||
1450 | -.prom-model { | ||
1451 | - position: fixed; | ||
1452 | - bottom: 0; | ||
1453 | - z-index: 20; | ||
1454 | - background: white; | ||
1455 | - width: 100%; | ||
1456 | - padding: 0 30rpx 30rpx; | ||
1457 | - font-size: 32rpx; | ||
1458 | - box-sizing: border-box; | ||
1459 | - overflow-x: hidden; | ||
1460 | -} | ||
1461 | - | ||
1462 | -.prom-model .prom-title { | ||
1463 | - text-align: center; | ||
1464 | - margin: 30rpx 0; | ||
1465 | -} | ||
1466 | - | ||
1467 | -.prom-model .logistics-item { | ||
1468 | - border: 0; | ||
1469 | -} | ||
1470 | - | ||
1471 | -.prom-model .item-mes { | ||
1472 | - width: 500rpx; | ||
1473 | -} | ||
1474 | - | ||
1475 | -.integral-btn { | ||
1476 | - width: 100%; | ||
1477 | - padding: 0rpx; | ||
1478 | - margin: 0rpx; | ||
1479 | -} | ||
1480 | - | ||
1481 | -.clear { | ||
1482 | - clear: both; | ||
1483 | -} | ||
1484 | - | ||
1485 | -.sto_v .title, | ||
1486 | -.sto_v .stitle { | ||
1487 | - border-top: 1rpx solid #dedede; | ||
1488 | - border-bottom: 1rpx solid #dedede; | ||
1489 | - height: 78rpx; | ||
1490 | - line-height: 78rpx; | ||
1491 | -} | ||
1492 | - | ||
1493 | -.sto_v .title .tubiao, | ||
1494 | -.sto_v .stitle .tubiao { | ||
1495 | - width: 32rpx; | ||
1496 | - height: 32rpx; | ||
1497 | - margin-top: 23rpx; | ||
1498 | -} | ||
1499 | - | ||
1500 | -.itemlists .item { | ||
1501 | - border-bottom: 1rpx solid #dedede; | ||
1502 | - height: 72rpx; | ||
1503 | - line-height: 72rpx; | ||
1504 | - font-size: 28rpx; | ||
1505 | - margin: 0 10rpx; | ||
1506 | -} | ||
1507 | - | ||
1508 | -.cshu { | ||
1509 | - margin-bottom: 30rpx; | ||
1510 | - margin-top: 20rpx; | ||
1511 | -} | ||
1512 | - | ||
1513 | -.cshu view { | ||
1514 | - color: #999; | ||
1515 | - font-size: 30rpx; | ||
1516 | - margin-left: 26rpx; | ||
1517 | -} | ||
1518 | - | ||
1519 | - | ||
1520 | -/*---活动特殊显示---*/ | ||
1521 | -.prom_show { | ||
1522 | - height: 120rpx; | ||
1523 | - display: flex; | ||
1524 | -} | ||
1525 | - | ||
1526 | -.prom_show .secondkill-img { | ||
1527 | - width: 100%; | ||
1528 | - height: 100%; | ||
1529 | -} | ||
1530 | - | ||
1531 | -.prom_show .spike-img { | ||
1532 | - width: 283rpx; | ||
1533 | - height: 57rpx; | ||
1534 | - top: 35rpx; | ||
1535 | - left: 31rpx; | ||
1536 | -} | ||
1537 | - | ||
1538 | -.prom_show .stop { | ||
1539 | - color: #d81731; | ||
1540 | - top: 17rpx; | ||
1541 | - right: 65rpx; | ||
1542 | - font-weight: 600; | ||
1543 | -} | ||
1544 | - | ||
1545 | -.prom_show .start { | ||
1546 | - color: #009ae2; | ||
1547 | - top: 17rpx; | ||
1548 | - right: 65rpx; | ||
1549 | - font-weight: 600; | ||
1550 | -} | ||
1551 | - | ||
1552 | -.prom_show .timeac { | ||
1553 | - font-size: 32rpx; | ||
1554 | - height: 120rpx; | ||
1555 | - color: #333; | ||
1556 | -} | ||
1557 | - | ||
1558 | -.prom_show .timeac.left { | ||
1559 | - width: 66%; | ||
1560 | - color: #fff; | ||
1561 | - background: #f23030; | ||
1562 | -} | ||
1563 | - | ||
1564 | -.prom_show .timeac.right { | ||
1565 | - width: 34%; | ||
1566 | - background-color: #d7d7d7; | ||
1567 | - text-align: center | ||
1568 | -} | ||
1569 | - | ||
1570 | -.prom_show .secview .day { | ||
1571 | - padding-right: 10rpx; | ||
1572 | -} | ||
1573 | - | ||
1574 | -.prom_show .secview .time-val { | ||
1575 | - width: 36rpx; | ||
1576 | - height: 36rpx; | ||
1577 | - border-radius: 7rpx; | ||
1578 | - line-height: 36rpx; | ||
1579 | -} | ||
1580 | - | ||
1581 | -.prom_show .secview .time { | ||
1582 | - margin-right: 10rpx; | ||
1583 | - margin-left: 10rpx; | ||
1584 | -} | ||
1585 | - | ||
1586 | - | ||
1587 | -.prom_show .timeac.left view { | ||
1588 | - margin-left: 20rpx | ||
1589 | -} | ||
1590 | - | ||
1591 | -.prom_show .timeac.left view.firview { | ||
1592 | - margin-top: 10rpx | ||
1593 | -} | ||
1594 | - | ||
1595 | -.prom_show .timeac.left view .tr_line { | ||
1596 | - text-decoration: line-through; | ||
1597 | - font-size: 28rpx; | ||
1598 | -} | ||
1599 | - | ||
1600 | -.prom_show .timeac.left view .bprice { | ||
1601 | - font-size: 50rpx; | ||
1602 | -} | ||
1603 | - | ||
1604 | -.prom_show .timeac.right view.firview { | ||
1605 | - margin-top: 12rpx; | ||
1606 | - margin-bottom: 10rpx | ||
1607 | -} | ||
1608 | - | ||
1609 | -.prom_show .timeac.right view.secview { | ||
1610 | - display: flex; | ||
1611 | - text-align: center; | ||
1612 | - justify-content: center; | ||
1613 | - flex-direction: row; | ||
1614 | -} | ||
1615 | - | ||
1616 | -.prom_show .timeac.right view .tui-conutdown-box { | ||
1617 | - /* background: #6b6b6b; */ | ||
1618 | - width: auto; | ||
1619 | - /* min-width: 45rpx; */ | ||
1620 | - height: 45rpx; | ||
1621 | - color: #c4182e; | ||
1622 | - font-size: 27rpx; | ||
1623 | - text-align: center; | ||
1624 | - line-height: 46rpx; | ||
1625 | -} | ||
1626 | - | ||
1627 | -.huise { | ||
1628 | - background: gray | ||
1629 | -} | ||
1630 | - | ||
1631 | -.lanse { | ||
1632 | - background: #0199e2 | ||
1633 | -} | ||
1634 | - | ||
1635 | - | ||
1636 | -/*------拼单------*/ | ||
1637 | -.pt_view { | ||
1638 | - text-align: center; | ||
1639 | - width: 100%; | ||
1640 | - height: 100rpx; | ||
1641 | - line-height: 100rpx; | ||
1642 | - font-size: 26rpx | ||
1643 | -} | ||
1644 | - | ||
1645 | -.pt_view .secondkill-img { | ||
1646 | - width: 100%; | ||
1647 | - height: 100%; | ||
1648 | -} | ||
1649 | - | ||
1650 | -.pt_fir { | ||
1651 | - background: #fff; | ||
1652 | - margin-bottom: 10rpx; | ||
1653 | -} | ||
1654 | - | ||
1655 | -.pt_fir .pt_fir_title { | ||
1656 | - display: flex; | ||
1657 | - align-items: center; | ||
1658 | - margin-left: 10rpx; | ||
1659 | - margin-top: 20rpx; | ||
1660 | - font-size: 28rpx; | ||
1661 | - position: relative; | ||
1662 | -} | ||
1663 | - | ||
1664 | -.pt_fir .pt_fir_title .kt_type { | ||
1665 | - color: #fff; | ||
1666 | - background: #e9030d; | ||
1667 | - width: 100rpx; | ||
1668 | - line-height: 40rpx; | ||
1669 | - border-radius: 6rpx; | ||
1670 | - margin: 0 10rpx; | ||
1671 | - height: 40rpx; | ||
1672 | - font-size: 24rpx; | ||
1673 | - text-align: center; | ||
1674 | -} | ||
1675 | - | ||
1676 | -.pt_fir .pt_fir_title .price { | ||
1677 | - color: #e9030d; | ||
1678 | - font-size: 26rpx; | ||
1679 | -} | ||
1680 | - | ||
1681 | -.pt_fir .pt_fir_title .bigw { | ||
1682 | - font-size: 36rpx; | ||
1683 | -} | ||
1684 | - | ||
1685 | -.pt_fir .pt_fir_title .tprice { | ||
1686 | - text-decoration: line-through; | ||
1687 | - color: #949494 | ||
1688 | -} | ||
1689 | - | ||
1690 | -.pt_fir .pt_fir_title .tprice.ml50 { | ||
1691 | - margin-left: 50rpx | ||
1692 | -} | ||
1693 | - | ||
1694 | -.pt_fir .pt_fir_title .js { | ||
1695 | - padding: 0 15rpx; | ||
1696 | - height: 40rpx; | ||
1697 | - background: #e9030d; | ||
1698 | - text-align: center; | ||
1699 | - border-radius: 8rpx; | ||
1700 | - color: #fff; | ||
1701 | - margin-left: 10rpx; | ||
1702 | -} | ||
1703 | - | ||
1704 | -.pt_fir .pt_fir_title .tuannum { | ||
1705 | - color: #e9030d; | ||
1706 | - position: absolute; | ||
1707 | - right: 20rpx; | ||
1708 | - font-size: 26rpx; | ||
1709 | -} | ||
1710 | - | ||
1711 | -.pding { | ||
1712 | - padding-top: 20rpx; | ||
1713 | - padding-left: 20rpx; | ||
1714 | - height: 81%; | ||
1715 | - padding-right: 20rpx; | ||
1716 | - font-size: 26rpx; | ||
1717 | - color: #ea120f | ||
1718 | -} | ||
1719 | - | ||
1720 | -.pdres { | ||
1721 | - margin-left: 10rpx; | ||
1722 | - color: #8f8f94 | ||
1723 | -} | ||
1724 | - | ||
1725 | -.ptgz { | ||
1726 | - position: relative; | ||
1727 | - font-size: 30rpx; | ||
1728 | - padding-left: 20rpx; | ||
1729 | - margin-top: 10rpx; | ||
1730 | - overflow: hidden | ||
1731 | -} | ||
1732 | - | ||
1733 | -.shuxian { | ||
1734 | - width: 6rpx; | ||
1735 | - height: 28rpx; | ||
1736 | - background: #ea120f; | ||
1737 | - display: inline-block; | ||
1738 | - top: 5rpx; | ||
1739 | - position: relative; | ||
1740 | - margin-right: 5rpx | ||
1741 | -} | ||
1742 | - | ||
1743 | -.ptgz_an { | ||
1744 | - position: absolute; | ||
1745 | - top: 5rpx; | ||
1746 | - right: 6rpx | ||
1747 | -} | ||
1748 | - | ||
1749 | -.ptgz_an .arrow-two { | ||
1750 | - width: 18rpx; | ||
1751 | - height: 18rpx; | ||
1752 | - border-color: #da0b31; | ||
1753 | - margin-top: 30rpx; | ||
1754 | -} | ||
1755 | - | ||
1756 | -.pt_fir.se { | ||
1757 | - height: auto; | ||
1758 | - margin-bottom: 10rpx | ||
1759 | -} | ||
1760 | - | ||
1761 | -.t_gz { | ||
1762 | - padding: 10rpx 20rpx; | ||
1763 | - font-size: 28rpx | ||
1764 | -} | ||
1765 | - | ||
1766 | -.pt_fir.se1 { | ||
1767 | - height: auto; | ||
1768 | - margin: 0 | ||
1769 | -} | ||
1770 | - | ||
1771 | -.pt_fir.se2 { | ||
1772 | - height: auto; | ||
1773 | - margin: 0; | ||
1774 | - border-top: 6rpx solid #eeeeee; | ||
1775 | - border-bottom: 2rpx solid #eeeeee; | ||
1776 | -} | ||
1777 | - | ||
1778 | -.pt_hb { | ||
1779 | - height: 78rpx; | ||
1780 | - line-height: 75rpx; | ||
1781 | - position: relative; | ||
1782 | - font-size: 32rpx; | ||
1783 | - overflow: hidden; | ||
1784 | - width: 695rpx; | ||
1785 | - margin-left: 28rpx; | ||
1786 | - border-bottom: 1rpx solid #E5E5E5 | ||
1787 | -} | ||
1788 | - | ||
1789 | -.ptgz_an.xq { | ||
1790 | - font-size: 32rpx; | ||
1791 | - color: #d40024 | ||
1792 | -} | ||
1793 | - | ||
1794 | -.wf { | ||
1795 | - display: flex; | ||
1796 | - padding: 20rpx 0; | ||
1797 | -} | ||
1798 | - | ||
1799 | -.wf .item { | ||
1800 | - width: 24.5%; | ||
1801 | - text-align: center; | ||
1802 | - font-size: 26rpx; | ||
1803 | - color: #666 | ||
1804 | -} | ||
1805 | - | ||
1806 | -.wf .item .item_txy { | ||
1807 | - position: relative; | ||
1808 | - width: 60rpx; | ||
1809 | - height: 60rpx; | ||
1810 | - background: #ea120f; | ||
1811 | - border-radius: 50%; | ||
1812 | - left: 50%; | ||
1813 | - margin-left: -30rpx; | ||
1814 | - border: 3px #dfdfdf solid; | ||
1815 | - text-align: center; | ||
1816 | - line-height: 60rpx; | ||
1817 | - color: #fff; | ||
1818 | - margin-bottom: 10rpx; | ||
1819 | -} | ||
1820 | - | ||
1821 | -.wf .item .item_txy.hs { | ||
1822 | - background: #cbcbcb; | ||
1823 | -} | ||
1824 | - | ||
1825 | -.po { | ||
1826 | - margin-bottom: 20rpx; | ||
1827 | -} | ||
1828 | - | ||
1829 | -.cart-btn.line-h { | ||
1830 | - line-height: 26rpx; | ||
1831 | -} | ||
1832 | - | ||
1833 | -.cart-btn .fir-v { | ||
1834 | - margin-top: 10rpx; | ||
1835 | -} | ||
1836 | - | ||
1837 | -.hyt { | ||
1838 | - padding: 0 20rpx; | ||
1839 | - font-size: 30rpx; | ||
1840 | - display: flex; | ||
1841 | - align-items: center; | ||
1842 | - margin-top: 10rpx; | ||
1843 | -} | ||
1844 | - | ||
1845 | -.hyt .r_f { | ||
1846 | - color: #e9120f; | ||
1847 | - font-size: 26rpx; | ||
1848 | - position: relative; | ||
1849 | - top: 3rpx | ||
1850 | -} | ||
1851 | - | ||
1852 | -.hyt .byj { | ||
1853 | - color: #e9120f; | ||
1854 | - font-size: 32rpx; | ||
1855 | - position: relative; | ||
1856 | - top: 5rpx | ||
1857 | -} | ||
1858 | - | ||
1859 | -.pt_fir .pt_fir_title.no-mar-b { | ||
1860 | - margin-bottom: 0; | ||
1861 | - padding-bottom: 10rpx; | ||
1862 | - margin-left: 20rpx | ||
1863 | -} | ||
1864 | - | ||
1865 | -.pt_fir .pt_fir_title.boder-1 { | ||
1866 | - border-bottom: 1rpx #e7e7e7 solid | ||
1867 | -} | ||
1868 | - | ||
1869 | -.jie_price { | ||
1870 | - padding: 10rpx 30rpx; | ||
1871 | -} | ||
1872 | - | ||
1873 | -.jie_price_title { | ||
1874 | - font-size: 30rpx; | ||
1875 | - color: #a26270; | ||
1876 | - margin-bottom: 10rpx | ||
1877 | -} | ||
1878 | - | ||
1879 | -.price_list { | ||
1880 | - display: flex; | ||
1881 | - width: 100%; | ||
1882 | -} | ||
1883 | - | ||
1884 | -.price_item { | ||
1885 | - width: 25%; | ||
1886 | - font-size: 28rpx; | ||
1887 | - color: #4c336c | ||
1888 | -} | ||
1889 | - | ||
1890 | -.pt_fir.se2 .zzk-1 { | ||
1891 | - margin-top: 23rpx; | ||
1892 | - font-size: 30rpx; | ||
1893 | - position: relative; | ||
1894 | - margin-bottom: 30rpx; | ||
1895 | - border-left: 4rpx solid red; | ||
1896 | - margin-left: 14rpx; | ||
1897 | - height: 30rpx; | ||
1898 | - line-height: 30rpx; | ||
1899 | - padding-left: 5rpx; | ||
1900 | -} | ||
1901 | - | ||
1902 | -.ckgd { | ||
1903 | - position: absolute; | ||
1904 | - top: 0; | ||
1905 | - right: 57rpx; | ||
1906 | - color: #d70025; | ||
1907 | - font-size: 32rpx; | ||
1908 | -} | ||
1909 | - | ||
1910 | -.ckgd .arrow-one { | ||
1911 | - width: 18rpx; | ||
1912 | - height: 18rpx; | ||
1913 | - border-color: #da0b31; | ||
1914 | - margin-top: 5rpx; | ||
1915 | -} | ||
1916 | - | ||
1917 | -.bview { | ||
1918 | - position: fixed; | ||
1919 | - top: 0; | ||
1920 | - left: 0; | ||
1921 | - width: 100%; | ||
1922 | - height: 100%; | ||
1923 | - background-color: rgba(0, 0, 0, 0.5); | ||
1924 | -} | ||
1925 | - | ||
1926 | -.juzhong { | ||
1927 | - position: fixed; | ||
1928 | - top: 0; | ||
1929 | - left: 0; | ||
1930 | - width: 100%; | ||
1931 | - height: 100%; | ||
1932 | - display: flex; | ||
1933 | - flex-direction: row; | ||
1934 | - justify-content: center; | ||
1935 | - align-items: center; | ||
1936 | -} | ||
1937 | - | ||
1938 | -.juzhong .xq { | ||
1939 | - padding: 0 20rpx; | ||
1940 | - background: #fff; | ||
1941 | - font-size: 30rpx; | ||
1942 | - padding-bottom: 20rpx; | ||
1943 | -} | ||
1944 | - | ||
1945 | -.juzhong .xq .title { | ||
1946 | - text-align: center; | ||
1947 | - margin: 20rpx 0; | ||
1948 | - position: relative; | ||
1949 | - height: 50rpx; | ||
1950 | -} | ||
1951 | - | ||
1952 | -.juzhong .xq .hs1 { | ||
1953 | - font-size: 28rpx; | ||
1954 | - color: #ab8f9e | ||
1955 | -} | ||
1956 | - | ||
1957 | -.juzhong .xq .title .close { | ||
1958 | - position: absolute; | ||
1959 | - top: 0; | ||
1960 | - right: 0; | ||
1961 | - width: 45rpx; | ||
1962 | - height: 45rpx; | ||
1963 | -} | ||
1964 | - | ||
1965 | -.pt_qd { | ||
1966 | - /* margin-top: 40rpx; | ||
1967 | - height: auto; */ | ||
1968 | -} | ||
1969 | - | ||
1970 | -.spec-cart-btn.w100 { | ||
1971 | - width: 95%; | ||
1972 | - margin-left: 0; | ||
1973 | - height: 75rpx; | ||
1974 | - line-height: 75rpx; | ||
1975 | - margin: auto; | ||
1976 | -} | ||
1977 | - | ||
1978 | -.sto_v { | ||
1979 | - color: #333; | ||
1980 | -} | ||
1981 | - | ||
1982 | -.ellipsis { | ||
1983 | - overflow: hidden; | ||
1984 | - white-space: nowrap; | ||
1985 | - text-overflow: ellipsis; | ||
1986 | -} | ||
1987 | - | ||
1988 | - | ||
1989 | - | ||
1990 | - | ||
1991 | -/* 房子图标 */ | ||
1992 | -.stores-img { | ||
1993 | - width: 40rpx; | ||
1994 | - height: 35rpx; | ||
1995 | - margin-right: 10rpx; | ||
1996 | -} | ||
1997 | - | ||
1998 | -.right-arrow { | ||
1999 | - width: 15rpx; | ||
2000 | - height: 15rpx; | ||
2001 | - border-top: 2rpx solid #d70026; | ||
2002 | - border-right: 2rpx solid #d70026; | ||
2003 | - transform: rotate(45deg); | ||
2004 | - display: inline-block; | ||
2005 | - margin-bottom: 3rpx; | ||
2006 | -} | ||
2007 | - | ||
2008 | -.distance{ | ||
2009 | - padding-left: 15rpx; | ||
2010 | - padding-right: 15rpx; | ||
2011 | - background: #eee; | ||
2012 | - border-radius: 20rpx; | ||
2013 | - margin-right: 5rpx; | ||
2014 | - color: #999; | ||
2015 | - height: 38rpx; | ||
2016 | - line-height: 38rpx; | ||
2017 | -} | ||
2018 | - | ||
2019 | -.shop_name{ | ||
2020 | - margin-right: 10rpx; | ||
2021 | -} | ||
2022 | - | ||
2023 | -.xc-distance-top{ | ||
2024 | - margin-top: 10rpx; | ||
2025 | -} | ||
2026 | - | ||
2027 | - | ||
2028 | -.popup-frame{ | ||
2029 | - position: fixed; | ||
2030 | - /* bottom:99rpx; */ | ||
2031 | - bottom: 0; | ||
2032 | - z-index: 20; | ||
2033 | - background: white; | ||
2034 | - width: 100%; | ||
2035 | - border-radius: 20rpx 20rpx 0 0; | ||
2036 | - height: auto; | ||
2037 | -} | ||
2038 | - | ||
2039 | -.popup-top{ | ||
2040 | - border-bottom: 1rpx solid #eee; | ||
2041 | - height: 155rpx; | ||
2042 | - width: 95%; | ||
2043 | - margin: auto; | ||
2044 | - line-height: 155rpx; | ||
2045 | - | ||
2046 | -} | ||
2047 | - | ||
2048 | - | ||
2049 | -/* .flex-space-between{ | ||
2050 | - display: flex; | ||
2051 | - justify-content:space-between; | ||
2052 | -} */ | ||
2053 | - | ||
2054 | -.modal-closes { | ||
2055 | - position: absolute; | ||
2056 | - right: 30rpx; | ||
2057 | - top: -15rpx; | ||
2058 | - height: 25rpx; | ||
2059 | -} | ||
2060 | - | ||
2061 | -.choose_more{ | ||
2062 | - margin-top: 40rpx; | ||
2063 | - margin-right: 20rpx; | ||
2064 | - | ||
2065 | -} | ||
2066 | -.choose_mores{ | ||
2067 | - margin-top: 30rpx; | ||
2068 | - margin-right: 15rpx; | ||
2069 | - | ||
2070 | -} | ||
2071 | - | ||
2072 | -.bg_rights{ | ||
2073 | - border-top: 2rpx solid ; | ||
2074 | - border-right: 2rpx solid ; | ||
2075 | - transform: rotate(45deg); | ||
2076 | - display: inline-block; | ||
2077 | - width: 15rpx;height:15rpx; | ||
2078 | - border-color: #da0b31; | ||
2079 | -} | ||
2080 | - | ||
2081 | - | ||
2082 | -.mongolia-layer{ | ||
2083 | - position: fixed; | ||
2084 | - left: 0; | ||
2085 | - top: 0; | ||
2086 | - right: 0; | ||
2087 | - bottom: 0; | ||
2088 | - z-index: 11; | ||
2089 | - background: rgba(0,0,0,0.4); | ||
2090 | - width: 100%; | ||
2091 | - height: 91.9%; | ||
2092 | -} | ||
2093 | - | ||
2094 | - | ||
2095 | - | ||
2096 | - | ||
2097 | -.store-list{ | ||
2098 | - width: 95%; | ||
2099 | - min-height:300rpx; | ||
2100 | - overflow-y: scroll; | ||
2101 | - margin: auto; | ||
2102 | - max-height: 610rpx; | ||
2103 | -} | ||
2104 | - | ||
2105 | -.store-list .store_choose{ | ||
2106 | - width: 100%; | ||
2107 | - height: 120rpx; | ||
2108 | - line-height: 125rpx; | ||
2109 | - border-bottom: 1rpx solid #eee; | ||
2110 | -} | ||
2111 | - | ||
2112 | -.store-list .store_choose .store{ | ||
2113 | - width: 100%; | ||
2114 | - margin: auto; | ||
2115 | - line-height: 37rpx; | ||
2116 | - padding-left: 20rpx; | ||
2117 | -} | ||
2118 | - | ||
2119 | -.xc-hook{ | ||
2120 | - width: 35rpx; | ||
2121 | - height: 35rpx; | ||
2122 | - transform: rotate(-145deg); | ||
2123 | - line-height: 37rpx; | ||
2124 | - text-align: center; | ||
2125 | -} | ||
2126 | - | ||
2127 | -.butttem5{ | ||
2128 | - margin-bottom: 5rpx; | ||
2129 | -} | ||
2130 | - | ||
2131 | -.address-frame{ | ||
2132 | - width: 93%; | ||
2133 | - margin-left: 7rpx; | ||
2134 | -} | ||
2135 | - | ||
2136 | -.store-bottom{ | ||
2137 | - width: 85%; | ||
2138 | - margin: auto; | ||
2139 | - height: 90rpx; | ||
2140 | - } | ||
2141 | - | ||
2142 | - .determine{ | ||
2143 | - width: 260rpx; | ||
2144 | - height: 55rpx; | ||
2145 | - border-radius: 50rpx; | ||
2146 | - line-height: 55rpx; | ||
2147 | - } | ||
2148 | - | ||
2149 | - .default{ | ||
2150 | - width: 260rpx; | ||
2151 | - height: 55rpx; | ||
2152 | - border:3rpx solid #c8c8c8; | ||
2153 | - border-radius: 50rpx; | ||
2154 | - line-height: 55rpx; | ||
2155 | - } | ||
2156 | - | ||
2157 | - .sort_store_list .sort-store-frame .sort-store { | ||
2158 | - width: 94.5%; | ||
2159 | - margin: auto; | ||
2160 | - } | ||
2161 | - | ||
2162 | - | ||
2163 | - .sort_store_list .sort-store-frame{ | ||
2164 | - width: 100%; | ||
2165 | - height: 100rpx; | ||
2166 | - line-height:100rpx; | ||
2167 | - border-bottom: 1rpx solid #eee; | ||
2168 | - } | ||
2169 | - | ||
2170 | - .black_rights-frame .black_rights{ | ||
2171 | - border-top: 3rpx solid; | ||
2172 | - border-right: 3rpx solid; | ||
2173 | - transform: rotate(45deg); | ||
2174 | - display: inline-block; | ||
2175 | - width: 20rpx; | ||
2176 | - height: 20rpx; | ||
2177 | - } | ||
2178 | - | ||
2179 | - | ||
2180 | - .sort_store_list{ | ||
2181 | - max-height: 700rpx; | ||
2182 | - overflow: hidden; | ||
2183 | - overflow-y: scroll; | ||
2184 | - width: 95%; | ||
2185 | - margin: auto; | ||
2186 | - } | ||
2187 | - | ||
2188 | - .xc-hooks{ | ||
2189 | - width: 30rpx; | ||
2190 | - height: 30rpx; | ||
2191 | - border: 1rpx solid #999; | ||
2192 | -} | ||
2193 | - | ||
2194 | -.no_store{color:#d60021; font-size: 26rpx;} | ||
2195 | - | ||
2196 | -.sub.active { | ||
2197 | - /* background-color: #ddd; */ | ||
2198 | - color: #ccc; | ||
2199 | -} | ||
2200 | - | ||
2201 | -.c-red22{ color:#d60021; } | 1 | +.rty{ |
2 | + display:flex; justify-content: center; align-items: center; | ||
3 | + width:100%; | ||
4 | + height:100% | ||
5 | +} | ||
2202 | \ No newline at end of file | 6 | \ No newline at end of file |