Commit 8a770cfa53d7938ccb5a7bb8ef04298a75559f2b
Merge branch 'test' into 'qa'
Test See merge request !330
Showing
11 changed files
with
211 additions
and
31 deletions
app.json
1 | 1 | { |
2 | 2 | "pages": [ |
3 | + | |
3 | 4 | "pages/index/index/index", |
4 | 5 | "pages/goods/categoryList/categoryList", |
5 | 6 | "pages/cart/cart/cart", |
... | ... | @@ -81,21 +82,10 @@ |
81 | 82 | "pages/user/assistance/task_assistance", |
82 | 83 | "pages/user/assistance/friend_assistance", |
83 | 84 | "pages/user/assistance/assistance_success", |
84 | - "pages/user/assistance/assistance" | |
85 | + "pages/user/assistance/assistance", | |
86 | + "pages/video/index" | |
85 | 87 | |
86 | - ], | |
87 | - "subPackages": [ | |
88 | - { | |
89 | - "root": "packageA/", | |
90 | - "pages": [], | |
91 | - "plugins": { | |
92 | - "live-player-plugin": { | |
93 | - "version": "1.0.2", | |
94 | - "provider": "wx2b03c6e691cd7370" | |
95 | - } | |
96 | - } | |
97 | - } | |
98 | - ], | |
88 | + ], | |
99 | 89 | "permission": { |
100 | 90 | "scope.userLocation": { |
101 | 91 | "desc": "获取你的位置信息" | ... | ... |
components/diy_seckill/diy_seckill.js
... | ... | @@ -62,8 +62,7 @@ Component({ |
62 | 62 | app.request.promiseGet("/api/ms/flash_sale/getGoodsList?store_id=" |
63 | 63 | +os.stoid+"&goodsidlist="+goodsidlist, {}).then(res => { |
64 | 64 | //如果秒杀的数组为空的时候 |
65 | - console.log(111111111111) | |
66 | - console.log(res.data.data) | |
65 | + | |
67 | 66 | var goodslist=res.data.data; |
68 | 67 | if(goodslist.length==0) return false; |
69 | 68 | |
... | ... | @@ -128,7 +127,7 @@ Component({ |
128 | 127 | for (var i = 0; i < endTimeList.length; i++) { |
129 | 128 | var o = endTimeList[i]; |
130 | 129 | var endTime = o.end_time; |
131 | - // if (o.status == 0) endTime = o.start_time; | |
130 | + if (newTime< o.start_time) endTime = o.start_time; | |
132 | 131 | let obj = null; |
133 | 132 | // 如果活动未结束,对时间进行处理 |
134 | 133 | if (endTime - newTime > 0) { | ... | ... |
pages/order/refund_order/refund_order.js
... | ... | @@ -14,6 +14,7 @@ Page({ |
14 | 14 | reasonSelect: 0, |
15 | 15 | reasonList: [ "订单不能按预计时间送达", "操作有误(商品、地址等选错)", "重复下单/误下单", "其他渠道价格更低", "该商品降价了", "不想买了", "其他原因" ], |
16 | 16 | refund_type:0, |
17 | + isloading:0, | |
17 | 18 | }, |
18 | 19 | onLoad: function(t) { |
19 | 20 | var th=this; |
... | ... | @@ -48,6 +49,8 @@ Page({ |
48 | 49 | |
49 | 50 | //------提交退款申请------- |
50 | 51 | refundOrder: function(e) { |
52 | + if(this.data.isloading) return false; | |
53 | + this.data.isloading=1; | |
51 | 54 | var th = this; |
52 | 55 | //----获取订单的所有商品----- |
53 | 56 | rq.get('/api/weshop/ordergoods/list',{ | ... | ... |
pages/team/team_show/team_show.js
... | ... | @@ -132,12 +132,22 @@ Page({ |
132 | 132 | |
133 | 133 | }, |
134 | 134 | //qh点击取货 |
135 | - cqh: function(e) { | |
136 | - this.setData({ | |
137 | - qh: false, | |
138 | - xz: true, | |
139 | - one: true, | |
140 | - }) | |
135 | + cqh: function(e) { | |
136 | + if(this.data.ssl) { | |
137 | + this.setData({ | |
138 | + qh: false, | |
139 | + xz: true, | |
140 | + one: true, | |
141 | + }) | |
142 | + }else{ | |
143 | + this.setData({ | |
144 | + qh: false, | |
145 | + xz: true, | |
146 | + one: false, | |
147 | + list:1, | |
148 | + }) | |
149 | + } | |
150 | + | |
141 | 151 | }, |
142 | 152 | |
143 | 153 | //cxz点击选择门店 |
... | ... | @@ -671,14 +681,14 @@ Page({ |
671 | 681 | //--只留第二层--- |
672 | 682 | th.setData({ |
673 | 683 | is_show_sto_cat: 0, |
674 | - ssl_child: e.data.data.pageData | |
684 | + ssl_child: e.data.data.pageData, | |
675 | 685 | }); |
676 | 686 | } |
677 | 687 | } else { |
678 | 688 | //--只留第二层--- |
679 | 689 | th.setData({ |
680 | 690 | is_show_sto_cat: 0, |
681 | - ssl_child: e.data.data.pageData | |
691 | + ssl_child: e.data.data.pageData, | |
682 | 692 | }); |
683 | 693 | } |
684 | 694 | } | ... | ... |
pages/user/return_goods/return_goods.js
... | ... | @@ -23,6 +23,7 @@ Page({ |
23 | 23 | popState: !0, |
24 | 24 | description: "", |
25 | 25 | refund_type:0, |
26 | + isloading:0, | |
26 | 27 | }, |
27 | 28 | onLoad: function(e) { |
28 | 29 | var a = this; |
... | ... | @@ -124,8 +125,11 @@ Page({ |
124 | 125 | }); |
125 | 126 | }, |
126 | 127 | |
128 | + | |
127 | 129 | /*-------------提交退款申请--------------*/ |
128 | 130 | submiApply: function() { |
131 | + if(this.data.isloading) return false; | |
132 | + this.data.isloading=1; | |
129 | 133 | var t = this,th=t; |
130 | 134 | this.checkSubmit(function() { |
131 | 135 | t.uploadPhotos(function() { | ... | ... |
pages/user/userinfo/userinfo.js
... | ... | @@ -51,7 +51,7 @@ Page({ |
51 | 51 | ispwhid: 1, //是否隐藏密码显示 |
52 | 52 | isstcsp: 0, //是否启动密码消费 |
53 | 53 | isGender: 1, //什么性别 |
54 | - iscalendar: 1, //是否是农历 | |
54 | + iscalendar: 0, //是否是农历 | |
55 | 55 | consumption: "", //消费密码 |
56 | 56 | identity_card: "", //身份证值 |
57 | 57 | address: "", //地址 |
... | ... | @@ -127,6 +127,8 @@ Page({ |
127 | 127 | }, |
128 | 128 | //出生日期是否是农历 |
129 | 129 | iscalendar: function() { |
130 | + | |
131 | + if(this.data.user.birthday) return false; | |
130 | 132 | var th = this; |
131 | 133 | var iscalendar = th.data.iscalendar; |
132 | 134 | if (iscalendar == 0) { |
... | ... | @@ -628,8 +630,8 @@ Page({ |
628 | 630 | |
629 | 631 | if(!a) a={}; |
630 | 632 | var time ="",birthday =""; |
631 | - if(a && a.reg_time) util.formatTime(a.reg_time, "'Y/M/D"); | |
632 | - if(a && a.birthday) util.formatTime(a.birthday, "'Y/M/D"); | |
633 | + if(a && a.reg_time) time=util.formatTime(a.reg_time, "'Y/M/D"); | |
634 | + if(a && a.birthday) birthday=util.formatTime(a.birthday, "'Y/M/D"); | |
633 | 635 | |
634 | 636 | a.reg_time = time; |
635 | 637 | a.birthday = birthday | ... | ... |
pages/user/userinfo/userinfo.wxml
... | ... | @@ -116,7 +116,10 @@ |
116 | 116 | <view>出生日期</view> |
117 | 117 | <view class="flex flex-vertical-between fs28 Birth"> |
118 | 118 | <view class="flex" bindtap="iscalendar"> |
119 | - <block wx:if="{{iscalendar&&user.birthday==null&&user.birthday==''}}"> | |
119 | + | |
120 | + <block wx:if="user.birthday==null&&user.birthday==''"> | |
121 | + | |
122 | + <block wx:if="{{iscalendar}}"> | |
120 | 123 | <view class="flex-center"> |
121 | 124 | <icon size="20" type="success" color="rgb(212,2,31)"></icon> |
122 | 125 | </view> |
... | ... | @@ -124,20 +127,25 @@ |
124 | 127 | <block wx:else> |
125 | 128 | <icon size="20" type="success" color="rgb(0, 0, 0, 0.4)"></icon> |
126 | 129 | </block> |
130 | + | |
131 | + </block> | |
132 | + | |
133 | + | |
127 | 134 | <view class="flex-center"> |
128 | 135 | <view class="Mleft">农历</view> |
129 | 136 | </view> |
130 | 137 | </view> |
131 | 138 | <view class="user-txt-right"> |
132 | 139 | <!-- 填充数据的时候要判断是否已经有出生日期,有值的话就不可修改 --> |
133 | - <block wx:if="{{user.birthday==''||user.birthday==null}}"> | |
140 | + <block wx:if="{{user.birthday==''||user.birthday==null}}"> | |
134 | 141 | <picker bindchange='bindChange' value="{{datet}}" mode="date" start="{{year-70}}-1-1" end="{{year}}-12-31"> |
142 | + {{datet?datet:"请选择时间"}} | |
135 | 143 | </picker> |
136 | 144 | </block> |
137 | 145 | <block wx:else> |
138 | 146 | <view>{{datet==""? user.birthday==""?"":filters.replace_time2(user.birthday):datet}}</view> |
139 | 147 | </block> |
140 | - | |
148 | + | |
141 | 149 | </view> |
142 | 150 | </view> |
143 | 151 | </view> | ... | ... |
pages/video/index.js
0 → 100644
1 | +Page({ | |
2 | + onReady: function (res) { | |
3 | + | |
4 | + }, | |
5 | + bindInputBlur: function(e) { | |
6 | + this.inputValue = e.detail.value | |
7 | + }, | |
8 | + bindButtonTap: function() { | |
9 | + var that = this | |
10 | + wx.chooseVideo({ | |
11 | + sourceType: ['album', 'camera'], | |
12 | + maxDuration: 60, | |
13 | + camera: ['front','back'], | |
14 | + success: function(res) { | |
15 | + that.setData({ | |
16 | + src: res.tempFilePath | |
17 | + }) | |
18 | + } | |
19 | + }) | |
20 | + }, | |
21 | + bindSendDanmu: function () { | |
22 | + this.videoContext.sendDanmu({ | |
23 | + text: this.inputValue, | |
24 | + color: getRandomColor() | |
25 | + }) | |
26 | + }, | |
27 | + onShow:function(){ | |
28 | + var goods_list = this.selectComponent("#goods_list"); //组件的id | |
29 | + goods_list.init(); | |
30 | + setTimeout(function() { | |
31 | + goods_list.get_list(); | |
32 | + }, 300) | |
33 | + }, | |
34 | + | |
35 | + //---------分享配置-------- | |
36 | + onShareAppMessage: function (e) { | |
37 | + return { | |
38 | + title: "直播视频回放", | |
39 | + } | |
40 | + }, | |
41 | + //调用视频接口 | |
42 | + onLoad:function(e){ | |
43 | + var r_id=e.id,th=this; | |
44 | + if(!r_id) r_id=1; | |
45 | + getApp().request.get("/api/wx/weappLiveReplaylist/get?id="+r_id,{ | |
46 | + data:{stoid:getApp().globalData.setting.stoid}, | |
47 | + success:function(res){ | |
48 | + if(res.data.code==0){ | |
49 | + th.setData({src:res.data.data.media_url}) | |
50 | + } | |
51 | + } | |
52 | + }) | |
53 | + }, | |
54 | + //---加载更多是靠这个函数---- | |
55 | + onReachBottom: function() { | |
56 | + var goods_list = this.selectComponent("#goods_list"); //组件的id | |
57 | + if (goods_list) goods_list.get_list(); | |
58 | + }, | |
59 | + | |
60 | +}) | |
0 | 61 | \ No newline at end of file | ... | ... |
pages/video/index.json
0 → 100644
pages/video/index.wxml
0 → 100644
1 | + | |
2 | +<view class="video"> | |
3 | + <video | |
4 | + src="{{src}}" | |
5 | + controls | |
6 | + show-fullscreen-btn | |
7 | + show-mute-btn | |
8 | + bindplay = "play" | |
9 | + bindwaiting="waiting" | |
10 | + binderror="error" | |
11 | + bindpause="pause" | |
12 | + bindtimeupdate="timeupdate"></video> | |
13 | +</view> | |
14 | + | |
15 | + | |
16 | + <!-- 标题 --> | |
17 | + <view class="title"> | |
18 | + <!-- 中文名标题 --> | |
19 | + <view class="China flex-level"> | |
20 | + <view class="line flex-vertical"> | |
21 | + <view class="one"></view> | |
22 | + <view class="two"></view> | |
23 | + <view class="three"></view> | |
24 | + </view> | |
25 | + | |
26 | + <view class="Recommend flex-level" bindtap="requestList">好物推荐</view> | |
27 | + | |
28 | + <view class="line flex-vertical"> | |
29 | + <view class="three"></view> | |
30 | + <view class="two"></view> | |
31 | + <view class="one"></view> | |
32 | + </view> | |
33 | + </view> | |
34 | + | |
35 | + <!-- 英文标题 --> | |
36 | + <view class="english flex-center"> | |
37 | + <view class="silk"></view> | |
38 | + <view class="esh five-level-word">GOOD HOT THING</view> | |
39 | + <view class="silk"></view> | |
40 | + </view> | |
41 | + | |
42 | + </view> | |
43 | + | |
44 | +<!-- 商品列表组件 --> | |
45 | +<goods_recommend id="goods_list"></goods_recommend> | |
46 | +<!-- 制作一个圆球导航 --> | |
47 | +<nav_box></nav_box> | |
0 | 48 | \ No newline at end of file | ... | ... |
pages/video/index.wxss
0 → 100644
1 | +.page-body-button { | |
2 | + margin-bottom: 30rpx; | |
3 | +} | |
4 | + | |
5 | +video { | |
6 | + width: 100%; | |
7 | +} | |
8 | + | |
9 | +/* 热门好物 */ | |
10 | + | |
11 | +.title .China { | |
12 | + width: 100%; | |
13 | + margin-top: 10rpx; | |
14 | + margin-bottom: 10rpx; | |
15 | + line-height: 0rpx; | |
16 | +} | |
17 | + | |
18 | +.title .China .line view { | |
19 | + width: 2rpx; | |
20 | +} | |
21 | + | |
22 | +.title .China .line { | |
23 | + height: 40rpx; | |
24 | + color: rgb(51, 51, 51); | |
25 | +} | |
26 | + | |
27 | +.title .China .line view { | |
28 | + border-left: 3rpx solid #000; | |
29 | + margin-left: 5rpx; | |
30 | +} | |
31 | + | |
32 | +.title .China .line .one { | |
33 | + height: 23rpx; | |
34 | +} | |
35 | + | |
36 | +.title .China .line .two { | |
37 | + height: 15rpx; | |
38 | +} | |
39 | + | |
40 | +.title .China .line .three { | |
41 | + height: 18rpx; | |
42 | +} | |
43 | + | |
44 | +.title .China .Recommend { | |
45 | + margin: 0rpx 20rpx; | |
46 | + font-size: 28rpx; | |
47 | + line-height: 39rpx; | |
48 | + font-weight: bold; | |
49 | +} | |
0 | 50 | \ No newline at end of file | ... | ... |