Commit e66dcc90d0ecf56a4fa93f6742a0d7250f3a35f4
Merge branch 'qa' of http://git.vipzhuang.cn/wxd/MShopWeApp
Showing
18 changed files
with
342 additions
and
49 deletions
app.wxss
components/diy_notice/diy_notice.wxml
... | ... | @@ -3,8 +3,8 @@ |
3 | 3 | <block wx:if="{{g_filter.has_char(object.wxapp_url,'plugin')>=0}}"> |
4 | 4 | <navigator url="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}"> |
5 | 5 | <view class="big_border"> |
6 | - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> | |
7 | - <view class="marquee"> | |
6 | + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image> | |
7 | + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}"> | |
8 | 8 | <view class="content"> |
9 | 9 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
10 | 10 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
... | ... | @@ -18,8 +18,8 @@ |
18 | 18 | <block wx:elif="{{object.AppId}}"> |
19 | 19 | <navigator target="miniProgram" app-id="{{object.AppId}}" path="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}"> |
20 | 20 | <view class="big_border"> |
21 | - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> | |
22 | - <view class="marquee"> | |
21 | + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image> | |
22 | + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}"> | |
23 | 23 | <view class="content"> |
24 | 24 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
25 | 25 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
... | ... | @@ -35,8 +35,8 @@ |
35 | 35 | <block wx:elif="{{object.finderUserName && object.video_type}}"> |
36 | 36 | <view bindtap="nv_void" data-feedId="{{object.feedId}}" data-video_type="{{object.video_type}}" data-finderUserName="{{object.finderUserName}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}"> |
37 | 37 | <view class="big_border"> |
38 | - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> | |
39 | - <view class="marquee"> | |
38 | + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image> | |
39 | + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}"> | |
40 | 40 | <view class="content"> |
41 | 41 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
42 | 42 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
... | ... | @@ -49,8 +49,8 @@ |
49 | 49 | <block wx:else> |
50 | 50 | <view data-url="{{object.wxapp_url}}" class="s1_gk_a1" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}"> |
51 | 51 | <view class="big_border"> |
52 | - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> | |
53 | - <view class="marquee"> | |
52 | + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image> | |
53 | + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}"> | |
54 | 54 | <view class="content"> |
55 | 55 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
56 | 56 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> | ... | ... |
components/diy_searchbox/diy_searchbox.js
components/diy_searchbox/diy_searchbox.wxml
1 | 1 | <!--pages/diy_ss/diy_ss.wxml--> |
2 | 2 | <!-- wx:if="{{object.style==1}}" --> |
3 | - <!-- first --> | |
3 | + <!-- first --> | |
4 | 4 | <block wx:if="{{object.style==1}}"> |
5 | - <view class='ss' style="position: relative;background-color: #fff"> | |
6 | - <view bindtap='click_sear' class="s1_gk_a1" wx:if="{{first}}"> | |
7 | - <view class='s_ge'> | |
5 | + <view class='ss' style="position: relative;{{transparent ? '' : (nav_backgroundColor ? ('background-color:' + nav_backgroundColor) : 'background-color:#fff;')}}"> | |
6 | + <view bindtap='click_sear' class="s1_gk_a1 " wx:if="{{first}}"> | |
7 | + <view class="s_ge {{object.is_bord==1 ? 'is_bord' : ''}}" style="text-align: {{object.searchbox_center}};"> | |
8 | 8 | <image src='{{imghost}}/miniapp/images/search.png'></image> |
9 | - <text>请输入商品关键字</text> | |
9 | + <text wx:if="{{object.searchbox_text}}">{{object.searchbox_text}}</text> | |
10 | + <text wx:else>请输入商品关键字</text> | |
10 | 11 | </view> |
11 | 12 | </view> |
12 | 13 | <!-- 响应搜索事件 --> |
... | ... | @@ -19,7 +20,7 @@ |
19 | 20 | <view class="his_str his_str1" wx:if="{{searchRecord.length>0}}"> |
20 | 21 | <block wx:for="{{searchRecord}}"> |
21 | 22 | <view class="item" bindtap="sear_key" data-item="{{item}}" >{{item}}</view> |
22 | - </block> | |
23 | + </block> | |
23 | 24 | <view wx:if="{{searchRecord.length>0}}" class="clear" bindtap="del_his">清除</view> |
24 | 25 | </view> |
25 | 26 | </view> |
... | ... | @@ -32,14 +33,16 @@ |
32 | 33 | <view style="position: relative;"> |
33 | 34 | <view style='background-color:{{object.top_bgcolor}}; display: flex; align-items: center; justify-content: space-around;padding:16rpx 0;'> |
34 | 35 | <view class='s2_left'> |
35 | - <navigator open-type="switchTab" url="/pages/goods/categoryList/categoryList" class="s1_gk_a1"> | |
36 | - <image src='{{imghost}}/miniapp/images/model/nav.png' style="margin:0;position: relative;left: 6rpx"></image> | |
36 | + <navigator open-type="switchTab" url="/pages/goods/categoryList/categoryList" class="s1_gk_a1 "> | |
37 | + <image wx:if="{{object.leftImage}}" src='{{object.leftImage}}' style="margin:0;position: relative;left: 6rpx"></image> | |
38 | + <image wx:else src='{{imghost}}/miniapp/images/model/nav.png' style="margin:0;position: relative;left: 6rpx"></image> | |
37 | 39 | </navigator> |
38 | 40 | </view> |
39 | - <view class='s2_cen' style='background-color:{{object.inner_bgcolor}}'> | |
40 | - <navigator wx:if="{{first}}" bindtap='click_sear' class="s1_gk_a2 flex" style='height: 100%;color:{{object.word_color?object.word_color:"#fff"}}'> | |
41 | + <view class="s2_cen {{object.is_bord==1 ? 'is_bord' : ''}}" style='background-color:{{object.inner_bgcolor}}'> | |
42 | + <navigator wx:if="{{first}}" bindtap='click_sear' class="s1_gk_a2 flex " style='height: 100%;color:{{object.word_color?object.word_color:"#fff"}};'> | |
41 | 43 | <text class="iconfont icon-search" style="font-size: 40rpx;"></text> |
42 | - <text>请输入商品关键字</text> | |
44 | + <text wx:if="{{object.searchbox_text}}">{{object.searchbox_text}}</text> | |
45 | + <text wx:else>请输入商品关键字</text> | |
43 | 46 | </navigator> |
44 | 47 | <view wx:else class="s1_gk_a2" style='color:{{object.word_color?object.word_color:"#fff"}}'> |
45 | 48 | <!-- <view class="pr"> --> |
... | ... | @@ -63,7 +66,8 @@ |
63 | 66 | </view> |
64 | 67 | <view class='s2_right'> |
65 | 68 | <navigator open-type="switchTab" url="/pages/cart/cart/cart" class="s1_gk_a1"> |
66 | - <image src='{{imghost}}/miniapp/images/model/car.png' style="margin:0;;"></image> | |
69 | + <image wx:if="{{object.rightImage}}" src='{{object.rightImage}}' style="margin:0;;"></image> | |
70 | + <image wx:else src='{{imghost}}/miniapp/images/model/car.png' style="margin:0;;"></image> | |
67 | 71 | </navigator> |
68 | 72 | </view> |
69 | 73 | ... | ... |
components/diy_searchbox/diy_searchbox.wxss
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | } |
8 | 8 | |
9 | 9 | .s_ge{ |
10 | - width: 700rpx; | |
10 | + /* width: 700rpx; */ | |
11 | 11 | height: 70rpx; |
12 | 12 | text-align: center; |
13 | 13 | border-radius: 8rpx; |
... | ... | @@ -15,6 +15,7 @@ |
15 | 15 | background: #fff none repeat scroll 0 0; |
16 | 16 | border: 2px solid #eee; |
17 | 17 | line-height: 64rpx; |
18 | + padding: 0 10rpx; | |
18 | 19 | } |
19 | 20 | |
20 | 21 | .s_ge image{ |
... | ... | @@ -153,7 +154,9 @@ |
153 | 154 | color: #FF5B5A; |
154 | 155 | font-size: 26rpx; |
155 | 156 | } |
156 | - | |
157 | +.is_bord{ | |
158 | + border-radius: 30rpx !important; | |
159 | +} | |
157 | 160 | /* .w100 { |
158 | 161 | width: 100%; |
159 | 162 | box-sizing: border-box; | ... | ... |
packageA/pages/jfbuy/jfbuy.js
... | ... | @@ -35,6 +35,7 @@ Page({ |
35 | 35 | key_str:'', |
36 | 36 | pattern:0, //分成的方式 |
37 | 37 | pageSize:10, |
38 | + curr:10, | |
38 | 39 | currentPage:1, //当前的页码 |
39 | 40 | |
40 | 41 | // canvasHidden: 1, //-- 隐藏画布 -- |
... | ... | @@ -57,8 +58,12 @@ Page({ |
57 | 58 | |
58 | 59 | triggered: false, |
59 | 60 | isPullDownRefresh: false, |
60 | - | |
61 | - | |
61 | + | |
62 | + //-- 和搜索框相关的 -- | |
63 | + search_ing:0, | |
64 | + hiddenClear:1, | |
65 | + focus:false, | |
66 | + keyword:'' | |
62 | 67 | }, |
63 | 68 | |
64 | 69 | /** |
... | ... | @@ -345,6 +350,16 @@ Page({ |
345 | 350 | } else { |
346 | 351 | data.stypeup = 1; |
347 | 352 | }; |
353 | + | |
354 | + var word=this.data.keyword; | |
355 | + | |
356 | + //如果没有关闭搜索的话,就看不清理keyword | |
357 | + if(!this.data.keyword && this.data.search_ing){ | |
358 | + if(this.data.requestData && this.data.requestData.keyword){ | |
359 | + word=this.data.requestData.keyword; | |
360 | + } | |
361 | + } | |
362 | + data.keyword=word | |
348 | 363 | |
349 | 364 | // this.data.requestData = data; |
350 | 365 | this.setData({ |
... | ... | @@ -353,9 +368,44 @@ Page({ |
353 | 368 | |
354 | 369 | this.request_list(data); |
355 | 370 | }, |
356 | - | |
357 | 371 | |
358 | - | |
372 | + sear_list(){ | |
373 | + var th=this; | |
374 | + var psize=th.data.curr; | |
375 | + | |
376 | + this.setData({ | |
377 | + is_no_data2:0, | |
378 | + is_no_more2:0, | |
379 | + list2:[], | |
380 | + is_load2: 0, | |
381 | + currentPage2:1, | |
382 | + pageSize:psize | |
383 | + }); | |
384 | + | |
385 | + var data = { | |
386 | + store_id:oo.stoid, | |
387 | + stype: this.data.requestData.stype, | |
388 | + stypeup:1, | |
389 | + page:1, | |
390 | + pageSize:psize | |
391 | + }; | |
392 | + | |
393 | + if(this.data.isUp) { | |
394 | + data.stypeup = 0; | |
395 | + } else { | |
396 | + data.stypeup = 1; | |
397 | + }; | |
398 | + | |
399 | + data.keyword=this.data.keyword | |
400 | + | |
401 | + // this.data.requestData = data; | |
402 | + this.setData({ | |
403 | + requestData: data | |
404 | + }) | |
405 | + | |
406 | + this.request_list(data); | |
407 | + }, | |
408 | + | |
359 | 409 | |
360 | 410 | request_list: function(data, callback){ |
361 | 411 | // console.log('触发上拉刷新'); |
... | ... | @@ -421,9 +471,6 @@ Page({ |
421 | 471 | this.request_list(data); |
422 | 472 | |
423 | 473 | }, |
424 | - | |
425 | - | |
426 | - | |
427 | 474 | |
428 | 475 | //---图片失败,默认图片--- |
429 | 476 | bind_bnerr2: function (e) { |
... | ... | @@ -491,6 +538,52 @@ Page({ |
491 | 538 | var viewHeight = this.data.clientWidth / ratio; |
492 | 539 | var con_heihgt=this.data.clientHeight-viewHeight; |
493 | 540 | this.setData({con_heihgt:con_heihgt,isshow:1}) |
494 | - | |
541 | + }, | |
542 | + | |
543 | + | |
544 | + /*-- 和搜索相关 --*/ | |
545 | + show_search(){ | |
546 | + this.setData({ | |
547 | + search_ing:1, | |
548 | + hiddenClear:1, | |
549 | + keyword:'', | |
550 | + focus:true | |
551 | + }) | |
552 | + }, | |
553 | + | |
554 | + getInput(e) { | |
555 | + let val = e.detail.value; | |
556 | + if (val) { | |
557 | + this.setData({ | |
558 | + keyword: e.detail.value, | |
559 | + hiddenClear: false, | |
560 | + }); | |
561 | + } else { | |
562 | + this.setData({ | |
563 | + hiddenClear: true, | |
564 | + }); | |
565 | + } | |
566 | + }, | |
567 | + | |
568 | + clearInput() { | |
569 | + this.setData({ | |
570 | + keyword: '', | |
571 | + hiddenClear: true, | |
572 | + }); | |
573 | + }, | |
574 | + | |
575 | + close_layer:function (){ | |
576 | + this.setData({ | |
577 | + search_ing:0, | |
578 | + hiddenClear:1, | |
579 | + keyword:'', | |
580 | + }) | |
581 | + this.sear_list(); | |
582 | + }, | |
583 | + | |
584 | + //开始搜索 | |
585 | + submitSearch(){ | |
586 | + this.sear_list(); | |
495 | 587 | } |
588 | + | |
496 | 589 | }) |
497 | 590 | \ No newline at end of file | ... | ... |
packageA/pages/jfbuy/jfbuy.wxml
... | ... | @@ -23,6 +23,22 @@ |
23 | 23 | <block wx:for="{{tab}}"> |
24 | 24 | <view class="title-item {{currentIndex == (index+1) ? 'active' + (isUp?' active1':''):''}}" data-index="{{index+1}}" bindtap="clickTab">{{item}}</view> |
25 | 25 | </block> |
26 | + | |
27 | + <view catchtap="show_search" class="flex ai-center" style="height:80rpx; width:80rpx"> | |
28 | + <text class="iconfont icon-search_fd" style="font-size:30rpx; " ></text> | |
29 | + </view> | |
30 | + | |
31 | + </view> | |
32 | + | |
33 | + <view class="s_box" wx:if="{{search_ing}}" > | |
34 | + <view class="pdh20 pdv10 flex ai_c jc_sb"> | |
35 | + <view class="input-box"> | |
36 | + <input class="input-search" name="word" placeholder="请输入商品关键字" | |
37 | + bindconfirm="submitSearch" bindinput="getInput" focus="{{focus}}" value="{{keyword}}"/> | |
38 | + <text class="iconfont icon-guan" hidden="{{hiddenClear}}" catchtap="clearInput"></text> | |
39 | + </view> | |
40 | + <button catchtap="close_layer" class="btn" hover-class="none">取消</button> | |
41 | + </view> | |
26 | 42 | </view> |
27 | 43 | |
28 | 44 | <!-- <view> --> |
... | ... | @@ -69,3 +85,4 @@ |
69 | 85 | |
70 | 86 | </view> |
71 | 87 | </view> |
88 | + | ... | ... |
packageA/pages/jfbuy/jfbuy.wxss
... | ... | @@ -63,6 +63,7 @@ page { |
63 | 63 | width: 100%; |
64 | 64 | top: 0; |
65 | 65 | z-index: 3; |
66 | + align-items: center; | |
66 | 67 | } |
67 | 68 | .title .iconfont { |
68 | 69 | color: #ccc; |
... | ... | @@ -429,4 +430,55 @@ radio .wx-radio-input.wx-radio-input-checked::before{ |
429 | 430 | margin-left:25rpx; |
430 | 431 | margin-right:25rpx; |
431 | 432 | margin-top: 30rpx; |
432 | -} | |
433 | 433 | \ No newline at end of file |
434 | +} | |
435 | + | |
436 | + | |
437 | +/*-- 搜索相关 --*/ | |
438 | +.s_box{ background-color: #fff; width: 100%; } | |
439 | +.input-box { | |
440 | + position: relative; | |
441 | + flex: 1; | |
442 | + padding-left: 50rpx; | |
443 | + padding-right: 70rpx; | |
444 | + background-color: #f0f0f0; | |
445 | + border-radius: 60rpx; | |
446 | +} | |
447 | + | |
448 | +.input-box::before { | |
449 | + font-family: iconfont; | |
450 | + position: absolute; | |
451 | + left: 20rpx; | |
452 | + top: 50%; | |
453 | + transform: translateY(-50%); | |
454 | + content: '\e618'; | |
455 | + color: #666; | |
456 | +} | |
457 | + | |
458 | +.input-search { | |
459 | + position: relative; | |
460 | + padding: 10rpx; | |
461 | + font-size: 28rpx; | |
462 | +} | |
463 | + | |
464 | + | |
465 | +.btn { | |
466 | + margin-left: 0; | |
467 | + margin-right: 0; | |
468 | + line-height: 1; | |
469 | + padding: 20rpx; | |
470 | + font-size: 30rpx; | |
471 | +} | |
472 | + | |
473 | +.btn::after { | |
474 | + border: none; | |
475 | +} | |
476 | +.icon-guan { | |
477 | + font-size: 20rpx; | |
478 | + padding: 10rpx; | |
479 | + position: absolute; | |
480 | + right: 20rpx; | |
481 | + top: 50%; | |
482 | + transform: translateY(-50%); | |
483 | +} | |
484 | + | |
485 | + | ... | ... |
packageD/pages/user/coupons/coupons.wxml
... | ... | @@ -46,7 +46,8 @@ |
46 | 46 | <view class="c-r dash"> |
47 | 47 | <view class="flex jc_sb ai_c"> |
48 | 48 | <view class="pdr20"> |
49 | - <view class="fs28 ellipsis-1x">{{filter.getNum(detail.Sum)}}元微券</view> | |
49 | + <view class="fs28 ellipsis-1x" wx:if="{{detail.ActName}}">{{detail.ActName}}</view> | |
50 | + <view class="fs28 ellipsis-1x" wx:else>{{filter.getNum(detail.Sum)}}元微券</view> | |
50 | 51 | <view class="fs24 c-7b pdt4 ellipsis-1x">微券来源: {{detail.SendMan==null?'线下发放':detail.SendMan==''?"线下发放":detail.SendMan}}</view> |
51 | 52 | </view> |
52 | 53 | <view class="shrink0"> |
... | ... | @@ -117,8 +118,9 @@ |
117 | 118 | <view class="popup"> |
118 | 119 | <view class="popup-title"> |
119 | 120 | <block wx:if="{{details[useIndex].isby == 1}}">包邮券</block> |
121 | + <block wx:if="{{details[useIndex].ActName}}">{{details[useIndex].ActName}}</block> | |
120 | 122 | <block wx:else> |
121 | - {{filter.getNum(details[useIndex].Sum)}}元微券 | |
123 | + {{filter.getNum(details[useIndex].Sum)}}元微券 | |
122 | 124 | </block> |
123 | 125 | </view> |
124 | 126 | <!-- <view class="pdt20 c-fe0000"><text class="rmb fs80" wx:if="{{details[useIndex].isby != 1}}">{{filter.getNum(details[useIndex].Sum)}}</text></view> --> | ... | ... |
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -5082,7 +5082,7 @@ Page({ |
5082 | 5082 | } |
5083 | 5083 | |
5084 | 5084 | //如果不立即购买或者秒杀,如果是线下库存购买的时候 |
5085 | - if ([0,3,5,7,10].indexOf(goods.prom_type)>-1 && th.data.sales_rules >= 2 && !g_item.whsle_id && !getApp().is_virtual(g_item) ) { | |
5085 | + if (!goods.is_gift && [0,3,5,7,10].indexOf(goods.prom_type)>-1 && th.data.sales_rules >= 2 && !g_item.whsle_id && !getApp().is_virtual(g_item) ) { | |
5086 | 5086 | var isok = 1; |
5087 | 5087 | await th.check_store_num(goods.goods_id, t_item.pickup_id, goods.goods_num, function (res) { |
5088 | 5088 | isok = res; | ... | ... |
packageE/pages/user/cardinfo/cardinfo.js
... | ... | @@ -65,11 +65,14 @@ Page({ |
65 | 65 | //-----------等级卡说明------------------- |
66 | 66 | getApp().request.promiseGet("/api/weshop/storeconfig/get/" + os.stoid, { |
67 | 67 | }).then(res => { |
68 | - var is_cardrule = res.data.data.cardrules; | |
69 | - w.wxParse("content", "html", ut.format_content(is_cardrule), ee, 6); | |
70 | - ee.setData({ | |
71 | - is_card_rule: is_cardrule | |
72 | - }); | |
68 | + var is_cardrule = res.data.data.cardrules; | |
69 | + var switch_list = res.data.data.switch_list; | |
70 | + var swi_arr = JSON.parse(switch_list); | |
71 | + w.wxParse("content", "html", ut.format_content(is_cardrule), ee, 6); | |
72 | + ee.setData({ | |
73 | + is_card_rule: is_cardrule, | |
74 | + plus_bg_color: swi_arr.plus_bg_color, | |
75 | + }); | |
73 | 76 | }) |
74 | 77 | |
75 | 78 | //----------------------------获取最大的卡类----------------------- | ... | ... |
packageE/pages/user/cardinfo/cardinfo.wxml
... | ... | @@ -4,9 +4,13 @@ |
4 | 4 | <view> |
5 | 5 | <image class="Member_bk" src="{{url}}/miniapp/images/plus/page_bk.png"></image> |
6 | 6 | </view> |
7 | - <view class="Opening_bk"> | |
8 | - <image src="{{url}}/miniapp/images/plus/card_bk.png"></image> | |
9 | - </view> | |
7 | +<view class="Opening_bk"> | |
8 | +<!-- <image src="{{url}}/miniapp/images/plus/card_bk.png"></image>--> | |
9 | + <view class="rect"> | |
10 | + <!-- 根据后台来定义一下背景颜色 --> | |
11 | + <view class="before" style="{{plus_bg_color?'background-color:'+plus_bg_color:''}}"></view> | |
12 | + </view> | |
13 | + </view> | |
10 | 14 | |
11 | 15 | <view class="MemberPlus rel"style="background-image:url('{{user_card.CardImg}}');background-size: 100% 100%;background-repead:no-repead;"> |
12 | 16 | ... | ... |
packageE/pages/user/cardinfo/cardinfo.wxss
... | ... | @@ -220,7 +220,7 @@ align-items:center; |
220 | 220 | .fs36{ |
221 | 221 | font-size: 36rpx; |
222 | 222 | } |
223 | -.Opening_bk image { | |
223 | +.Opening_bk{ | |
224 | 224 | position: absolute; |
225 | 225 | |
226 | 226 | width: 100%; |
... | ... | @@ -238,4 +238,24 @@ align-items:center; |
238 | 238 | border-top-left-radius: 55rpx; border-bottom-left-radius:55rpx; } |
239 | 239 | .content .card_list .list .card_name{ max-width: 230rpx} |
240 | 240 | |
241 | - .price_show .thr{color: #999; text-decoration:line-through } | |
242 | 241 | \ No newline at end of file |
242 | + .price_show .thr{color: #999; text-decoration:line-through } | |
243 | + | |
244 | + | |
245 | + /* 定义矩形 */ | |
246 | + .rect { | |
247 | + width: 100%; | |
248 | + height: 300rpx; | |
249 | + position: relative; /* 要设置位置是因为要设置扇形遮罩的位置 */ | |
250 | + overflow: hidden; | |
251 | + } | |
252 | + | |
253 | + /* 定义扇形遮罩 */ | |
254 | + .rect .before { | |
255 | + width: 140%; | |
256 | + height: 300rpx; | |
257 | + background-color: #f0ba94; | |
258 | + position: absolute; /* 要用绝对定位 */ | |
259 | + left: -20%; | |
260 | + top: -2rpx; | |
261 | + border-radius: 0 0 50% 50%; /* 只要顶部两个角是圆弧就好了 */ | |
262 | + } | |
243 | 263 | \ No newline at end of file | ... | ... |
pages/index/index/index.wxml
... | ... | @@ -435,7 +435,8 @@ |
435 | 435 | <view wx:if="{{is_gz_h5 && is_ok_h5}}" style="height: 84px;flex-shrink:0"></view> |
436 | 436 | <block wx:for="{{template_arr}}"> |
437 | 437 | <block wx:if="{{item.content.is_top==1}}"> |
438 | - <view style="height:88rpx"></view> | |
438 | + <!-- <view style="height:88rpx"></view> --> | |
439 | + <view style="height:{{item.content.style==1 ? 110 : 88}}rpx"></view> | |
439 | 440 | </block> |
440 | 441 | </block> |
441 | 442 | ... | ... |
pages/user/plus/plus.js
... | ... | @@ -111,7 +111,8 @@ Page({ |
111 | 111 | that.setData({ |
112 | 112 | is_card_rule: is_cardrule, |
113 | 113 | isyaoqingma: parseInt(swi_arr.isyaoqingma), |
114 | - is_salesman: parseInt(swi_arr.is_staffno) | |
114 | + is_salesman: parseInt(swi_arr.is_staffno), | |
115 | + plus_bg_color: swi_arr.plus_bg_color, | |
115 | 116 | }); |
116 | 117 | } |
117 | 118 | }); | ... | ... |
pages/user/plus/plus.wxml
... | ... | @@ -10,7 +10,10 @@ |
10 | 10 | <block wx:if="{{is_plusCard}}"> |
11 | 11 | <view class="Opening_plus"> |
12 | 12 | <view class="Opening_bk"> |
13 | - <image src="{{url}}/miniapp/images/plus/card_bk.png"></image> | |
13 | +<!-- <image src="{{url}}/miniapp/images/plus/card_bk.png"></image>--> | |
14 | + <view class="rect"> | |
15 | + <view class="before" style="{{plus_bg_color?'background-color:'+plus_bg_color:''}}"></view> | |
16 | + </view> | |
14 | 17 | </view> |
15 | 18 | <view class="swiper"> |
16 | 19 | <!-- 未开通会员swiper-item --> | ... | ... |
pages/user/plus/plus.wxss
... | ... | @@ -58,7 +58,7 @@ page { |
58 | 58 | width: 50%; |
59 | 59 | text-align: center; |
60 | 60 | } |
61 | -.Opening_bk image { | |
61 | +.Opening_bk{ | |
62 | 62 | position: absolute; |
63 | 63 | z-index: 2; |
64 | 64 | width: 100%; |
... | ... | @@ -404,4 +404,23 @@ margin-top: 10rpx; |
404 | 404 | |
405 | 405 | swiper-item{ |
406 | 406 | overflow: visible; |
407 | +} | |
408 | + | |
409 | +/* 定义矩形 */ | |
410 | +.rect { | |
411 | + width: 100%; | |
412 | + height: 300rpx; | |
413 | + position: relative; /* 要设置位置是因为要设置扇形遮罩的位置 */ | |
414 | + overflow: hidden; | |
415 | +} | |
416 | + | |
417 | +/* 定义扇形遮罩 */ | |
418 | +.rect .before { | |
419 | + width: 140%; | |
420 | + height: 300rpx; | |
421 | + background-color: #f0ba94; | |
422 | + position: absolute; /* 要用绝对定位 */ | |
423 | + left: -20%; | |
424 | + top: -2rpx; | |
425 | + border-radius: 0 0 50% 50%; /* 只要顶部两个角是圆弧就好了 */ | |
407 | 426 | } |
408 | 427 | \ No newline at end of file | ... | ... |
utils/pay.js
... | ... | @@ -49,7 +49,6 @@ module.exports = { |
49 | 49 | wx.hideLoading(); |
50 | 50 | if(t.data.code==0){ |
51 | 51 | |
52 | - | |
53 | 52 | var is_pos_pay=t.data.data.is_pos_pay; |
54 | 53 | //-- 富有的插件支付 -- |
55 | 54 | if(t.data.data.is_fuioupay){ |
... | ... | @@ -93,6 +92,67 @@ module.exports = { |
93 | 92 | |
94 | 93 | var p_data=t.data.data; |
95 | 94 | delete p_data.is_pos_pay; //清理掉,不然签名不通过 |
95 | + | |
96 | + var err_txt=""; | |
97 | + | |
98 | + if(!p_data.acct && !err_txt){ | |
99 | + err_txt="未找到acct"; | |
100 | + } | |
101 | + if(!p_data.appid && !err_txt){ | |
102 | + err_txt="未找到appid"; | |
103 | + } | |
104 | + if(!p_data.cusid && !err_txt){ | |
105 | + err_txt="未找到cusid"; | |
106 | + } | |
107 | + if(!p_data.notify_url && !err_txt){ | |
108 | + err_txt="未找到notify_url"; | |
109 | + } | |
110 | + if(!p_data.orgid && !err_txt){ | |
111 | + err_txt="未找到orgid"; | |
112 | + } | |
113 | + if(!p_data.paytype && !err_txt){ | |
114 | + err_txt="未找到paytype"; | |
115 | + } | |
116 | + if(!p_data.randomstr && !err_txt){ | |
117 | + err_txt="未找到randomstr"; | |
118 | + } | |
119 | + if(!p_data.remark && !err_txt){ | |
120 | + err_txt="未找到remark"; | |
121 | + } | |
122 | + if(!p_data.reqsn && !err_txt){ | |
123 | + err_txt="未找到reqsn"; | |
124 | + } | |
125 | + if(!p_data.sign && !err_txt){ | |
126 | + err_txt="未找到sign"; | |
127 | + } | |
128 | + if(!p_data.signtype && !err_txt){ | |
129 | + err_txt="未找到signtype"; | |
130 | + } | |
131 | + if(!p_data.trxamt && !err_txt){ | |
132 | + err_txt="未找到trxamt"; | |
133 | + } | |
134 | + if(!p_data.validtime && !err_txt){ | |
135 | + err_txt="未找到validtime"; | |
136 | + } | |
137 | + if(!p_data.version && !err_txt){ | |
138 | + err_txt="未找到version"; | |
139 | + } | |
140 | + | |
141 | + if(err_txt){ | |
142 | + i.wx_paying=0; | |
143 | + getApp().confirmBox(err_txt); | |
144 | + setTimeout(function(){ | |
145 | + wx.redirectTo({ | |
146 | + url: "/pages/user/order_list/order_list", | |
147 | + }); | |
148 | + },1000) | |
149 | + return false; | |
150 | + } | |
151 | + | |
152 | + | |
153 | + | |
154 | + | |
155 | + | |
96 | 156 | wx.openEmbeddedMiniProgram({ |
97 | 157 | appId: 'wxef277996acc166c3', |
98 | 158 | extraData: p_data, | ... | ... |