xiaoe_mp_npm 0.3.5-t220118 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +3 -2
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.js +85 -48
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +4 -1
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +8 -1
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.js +24 -3
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.less +8 -23
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxml +1 -1
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxss +8 -23
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxml +2 -2
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxml +2 -2
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +11 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js +2 -20
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.js +2 -1
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.less +18 -3
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxml +4 -2
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxss +17 -2
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.js +1 -23
- package/miniprogram_dist/{LiveGoodsList/GoodsItem → GoodsItem}/index.js +39 -28
- package/miniprogram_dist/GoodsItem/index.json +6 -0
- package/miniprogram_dist/GoodsItem/index.less +249 -0
- package/{src/LiveGoodsList → miniprogram_dist}/GoodsItem/index.wxml +26 -15
- package/miniprogram_dist/{LiveGoodsList/GoodsItem → GoodsItem}/index.wxss +48 -27
- package/miniprogram_dist/LiveGoodsList/Header/index.wxml +1 -1
- package/miniprogram_dist/LiveGoodsList/index.js +10 -5
- package/miniprogram_dist/LiveGoodsList/index.json +1 -1
- package/miniprogram_dist/LiveGoodsList/index.less +0 -6
- package/miniprogram_dist/LiveGoodsList/index.wxml +0 -1
- package/miniprogram_dist/LiveGoodsList/index.wxss +0 -6
- package/miniprogram_dist/Lottery/components/AddressCollection/index.js +11 -8
- package/miniprogram_dist/Lottery/components/CommonPopup/index.less +4 -4
- package/miniprogram_dist/Lottery/components/CommonPopup/index.wxss +4 -4
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.js +17 -11
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.wxml +2 -2
- package/miniprogram_dist/Lottery/components/LotteryPopups/index.js +19 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.js +4 -1
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.less +4 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxml +3 -4
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxss +4 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.js +2 -1
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.wxml +2 -2
- package/miniprogram_dist/Lottery/components/LotteryResult/index.js +22 -22
- package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.wxml +1 -1
- package/miniprogram_dist/Lottery/components/NobodyAttend/index.wxml +1 -1
- package/miniprogram_dist/Lottery/components/Winners/index.js +3 -1
- package/miniprogram_dist/Lottery/components/Winners/index.wxml +2 -1
- package/miniprogram_dist/Lottery/constants.js +2 -1
- package/miniprogram_dist/Lottery/store/reducer.js +6 -0
- package/miniprogram_dist/Lottery/utils.js +4 -0
- package/miniprogram_dist/PayModule/index/index.js +1 -0
- package/miniprogram_dist/SharePoster/PosterDom/index.js +37 -2
- package/miniprogram_dist/SharePoster/PosterDom/index.wxml +1 -1
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.js +35 -0
- package/{src/LiveGoodsList/GoodsItem → miniprogram_dist/SharePoster/components/unauthorizedModal}/index.json +1 -2
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxml +11 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxss +51 -0
- package/miniprogram_dist/SharePoster/sharePopup/index.js +205 -57
- package/miniprogram_dist/SharePoster/sharePopup/index.json +2 -1
- package/miniprogram_dist/SharePoster/sharePopup/index.wxml +5 -2
- package/miniprogram_dist/SharePoster/sharePopup/index.wxss +4 -3
- package/miniprogram_dist/Sku/commSelect/index.js +9 -6
- package/miniprogram_dist/TeacherGoodsList/Header/index.js +36 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.json +6 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.less +47 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.wxml +27 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.wxss +45 -0
- package/miniprogram_dist/TeacherGoodsList/README.md +10 -0
- package/miniprogram_dist/TeacherGoodsList/index.js +269 -0
- package/miniprogram_dist/TeacherGoodsList/index.json +8 -0
- package/miniprogram_dist/TeacherGoodsList/index.less +53 -0
- package/miniprogram_dist/TeacherGoodsList/index.wxml +49 -0
- package/miniprogram_dist/TeacherGoodsList/index.wxss +50 -0
- package/miniprogram_dist/common/api/confirmOrder.js +3 -3
- package/miniprogram_dist/common/api/pay.js +2 -2
- package/miniprogram_dist/common/api/payComplete.js +1 -1
- package/miniprogram_dist/common/api/sku.js +4 -4
- package/miniprogram_dist/common/utils/constants.js +2 -0
- package/miniprogram_dist/common/utils/helper.js +27 -3
- package/package.json +2 -2
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.js +85 -48
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +4 -1
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +10 -3
- package/src/AliveInvite/LiveRoomVertical/index.js +24 -3
- package/src/AliveInvite/LiveRoomVertical/index.less +8 -23
- package/src/AliveInvite/LiveRoomVertical/index.wxml +1 -1
- package/src/AliveInvite/LiveRoomVertical/index.wxss +8 -23
- package/src/ConfirmOrder/components/AddressEdit/index.wxml +2 -2
- package/src/ConfirmOrder/components/AddressManage/index.wxml +2 -2
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +11 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js +2 -20
- package/src/ConfirmOrder/components/GoodsInfo/index.js +2 -1
- package/src/ConfirmOrder/components/PickupSelect/index.less +18 -3
- package/src/ConfirmOrder/components/PickupSelect/index.wxml +4 -2
- package/src/ConfirmOrder/components/PickupSelect/index.wxss +17 -2
- package/src/ConfirmOrder/components/WechatAddress/index.js +1 -23
- package/src/{LiveGoodsList/GoodsItem → GoodsItem}/index.js +39 -28
- package/src/GoodsItem/index.json +6 -0
- package/src/GoodsItem/index.less +249 -0
- package/{miniprogram_dist/LiveGoodsList → src}/GoodsItem/index.wxml +26 -15
- package/src/{LiveGoodsList/GoodsItem → GoodsItem}/index.wxss +48 -27
- package/src/LiveGoodsList/Header/index.wxml +1 -1
- package/src/LiveGoodsList/index.js +10 -5
- package/src/LiveGoodsList/index.json +1 -1
- package/src/LiveGoodsList/index.less +0 -6
- package/src/LiveGoodsList/index.wxml +0 -1
- package/src/LiveGoodsList/index.wxss +0 -6
- package/src/Lottery/components/AddressCollection/index.js +11 -8
- package/src/Lottery/components/CommonPopup/index.less +4 -4
- package/src/Lottery/components/CommonPopup/index.wxss +4 -4
- package/src/Lottery/components/LotteryInfo/index.js +17 -11
- package/src/Lottery/components/LotteryInfo/index.wxml +2 -2
- package/src/Lottery/components/LotteryPopups/index.js +19 -0
- package/src/Lottery/components/LotteryResult/LosingLottery/index.js +4 -1
- package/src/Lottery/components/LotteryResult/LosingLottery/index.less +4 -0
- package/src/Lottery/components/LotteryResult/LosingLottery/index.wxml +3 -4
- package/src/Lottery/components/LotteryResult/LosingLottery/index.wxss +4 -0
- package/src/Lottery/components/LotteryResult/WinLottery/index.js +2 -1
- package/src/Lottery/components/LotteryResult/WinLottery/index.wxml +2 -2
- package/src/Lottery/components/LotteryResult/index.js +22 -22
- package/src/Lottery/components/MerchantContactInfo/index.wxml +1 -1
- package/src/Lottery/components/NobodyAttend/index.wxml +1 -1
- package/src/Lottery/components/Winners/index.js +3 -1
- package/src/Lottery/components/Winners/index.wxml +2 -1
- package/src/Lottery/constants.js +2 -1
- package/src/Lottery/store/reducer.js +6 -0
- package/src/Lottery/utils.js +4 -0
- package/src/PayModule/index/index.js +1 -0
- package/src/SharePoster/PosterDom/index.js +37 -2
- package/src/SharePoster/PosterDom/index.wxml +1 -1
- package/src/SharePoster/components/unauthorizedModal/index.js +35 -0
- package/{miniprogram_dist/LiveGoodsList/GoodsItem → src/SharePoster/components/unauthorizedModal}/index.json +1 -2
- package/src/SharePoster/components/unauthorizedModal/index.wxml +11 -0
- package/src/SharePoster/components/unauthorizedModal/index.wxss +52 -0
- package/src/SharePoster/sharePopup/index.js +205 -57
- package/src/SharePoster/sharePopup/index.json +2 -1
- package/src/SharePoster/sharePopup/index.wxml +5 -2
- package/src/SharePoster/sharePopup/index.wxss +4 -3
- package/src/Sku/commSelect/index.js +9 -6
- package/src/TeacherGoodsList/Header/index.js +36 -0
- package/src/TeacherGoodsList/Header/index.json +6 -0
- package/src/TeacherGoodsList/Header/index.less +47 -0
- package/src/TeacherGoodsList/Header/index.wxml +27 -0
- package/src/TeacherGoodsList/Header/index.wxss +45 -0
- package/src/TeacherGoodsList/README.md +10 -0
- package/src/TeacherGoodsList/index.js +269 -0
- package/src/TeacherGoodsList/index.json +8 -0
- package/src/TeacherGoodsList/index.less +53 -0
- package/src/TeacherGoodsList/index.wxml +49 -0
- package/src/TeacherGoodsList/index.wxss +50 -0
- package/src/common/api/confirmOrder.js +3 -3
- package/src/common/api/pay.js +2 -2
- package/src/common/api/payComplete.js +1 -1
- package/src/common/api/sku.js +4 -4
- package/src/common/utils/constants.js +2 -0
- package/src/common/utils/helper.js +27 -3
- package/miniprogram_dist/LiveGoodsList/GoodsItem/index.less +0 -228
- package/src/LiveGoodsList/GoodsItem/index.less +0 -228
package/.gitlab-ci.yml
CHANGED
|
@@ -3,7 +3,9 @@ build_test:
|
|
|
3
3
|
stage: build
|
|
4
4
|
only:
|
|
5
5
|
- dev
|
|
6
|
-
-
|
|
6
|
+
- feature/live_marketing_iteration
|
|
7
|
+
- feature/remove-error-report
|
|
8
|
+
- fix/record-lottery
|
|
7
9
|
tags:
|
|
8
10
|
- fe-group-prod-runner-2
|
|
9
11
|
script:
|
|
@@ -13,7 +15,6 @@ build_test:
|
|
|
13
15
|
- export version=${version:2:$[${#version}-4]}
|
|
14
16
|
- export message=$(git log --pretty=format:%s -1)
|
|
15
17
|
- export author=$(git log --pretty=format:%an -1)
|
|
16
|
-
- if [ $CI_COMMIT_REF_NAME != "master" ] && [ $(echo $version | grep -E "r|t" ) != "" ]; then echo "正常发包"; else exit 0; fi
|
|
17
18
|
- cnpm i
|
|
18
19
|
- npm run build
|
|
19
20
|
- cnpm publish
|
|
@@ -5,14 +5,6 @@ import {
|
|
|
5
5
|
} from "../../../../common/api/eLiveInvite";
|
|
6
6
|
Component({
|
|
7
7
|
properties: {
|
|
8
|
-
// inviteParm: {
|
|
9
|
-
// type: String,
|
|
10
|
-
// value: ''
|
|
11
|
-
// },
|
|
12
|
-
// roomInfo: {
|
|
13
|
-
// type: Object,
|
|
14
|
-
// value: {}
|
|
15
|
-
// },
|
|
16
8
|
switchToControlDialogVisible:{
|
|
17
9
|
type: Boolean,
|
|
18
10
|
value:false
|
|
@@ -38,32 +30,21 @@ Component({
|
|
|
38
30
|
isShowFriends: false,
|
|
39
31
|
count: 0, // 邀请的好友数
|
|
40
32
|
inviteParm:'',
|
|
41
|
-
|
|
33
|
+
total: 0,
|
|
34
|
+
refreshing: false,
|
|
35
|
+
finishedTxt: '加载中',
|
|
36
|
+
finished: false,
|
|
37
|
+
componentsState: 1,
|
|
38
|
+
page_size: 25,
|
|
39
|
+
page_index: 0,
|
|
40
|
+
friendList:[],
|
|
41
|
+
friendListMockData: [
|
|
42
42
|
// {
|
|
43
43
|
// wx_avatar: '../../../images/u_6182407864819_jXJGQ1pe0d.png',
|
|
44
44
|
// wx_nickname: 'wendy'
|
|
45
45
|
// }, {
|
|
46
46
|
// wx_avatar: '../../../images/u_6182407864819_jXJGQ1pe0d.png',
|
|
47
47
|
// wx_nickname: 'moira1'
|
|
48
|
-
// }, {
|
|
49
|
-
// wx_avatar: '../../../images/u_6182407864819_jXJGQ1pe0d.png',
|
|
50
|
-
// wx_nickname: 'moira2'
|
|
51
|
-
// }
|
|
52
|
-
// , {
|
|
53
|
-
// wx_avatar: '../../../images/u_6182407864819_jXJGQ1pe0d.png',
|
|
54
|
-
// wx_nickname: 'moira333333'
|
|
55
|
-
// }
|
|
56
|
-
// , {
|
|
57
|
-
// wx_avatar: '../../../images/u_6182407864819_jXJGQ1pe0d.png',
|
|
58
|
-
// wx_nickname: 'moira4'
|
|
59
|
-
// }
|
|
60
|
-
// , {
|
|
61
|
-
// wx_avatar: '../../../images/u_6182407864819_jXJGQ1pe0d.png',
|
|
62
|
-
// wx_nickname: 'moira5'
|
|
63
|
-
// }
|
|
64
|
-
// , {
|
|
65
|
-
// wx_avatar: '../../../images/u_6182407864819_jXJGQ1pe0d.png',
|
|
66
|
-
// wx_nickname: 'moira6'
|
|
67
48
|
// }
|
|
68
49
|
|
|
69
50
|
] //邀请的好友列表
|
|
@@ -72,20 +53,43 @@ Component({
|
|
|
72
53
|
switchToControlDialogVisible(val) {
|
|
73
54
|
if(val){
|
|
74
55
|
this.showFriends()
|
|
56
|
+
}else{
|
|
57
|
+
this.closeFriends()
|
|
75
58
|
}
|
|
76
|
-
// this.setData({
|
|
77
|
-
// isShowFriends:val
|
|
78
|
-
// })
|
|
79
|
-
// this.getFriendsList()
|
|
80
59
|
},
|
|
81
60
|
},
|
|
82
61
|
ready() {
|
|
83
62
|
},
|
|
84
63
|
methods: {
|
|
64
|
+
onLoad(){
|
|
65
|
+
if (this._freshing) return
|
|
66
|
+
this._freshing = true
|
|
67
|
+
this.setData({
|
|
68
|
+
finished: false,
|
|
69
|
+
page_index: 0
|
|
70
|
+
})
|
|
71
|
+
this.getFriendsList()
|
|
72
|
+
},
|
|
73
|
+
onScrolltolower(){
|
|
74
|
+
console.log(this.data.finished, this._freshing )
|
|
75
|
+
if(this.scrolling){return}
|
|
76
|
+
this.scrolling = true
|
|
77
|
+
this.setData({
|
|
78
|
+
finishedTxt: this.data.finished ? "没有更多了" : "加载中"
|
|
79
|
+
})
|
|
80
|
+
if(this.data.finished || this._freshing){
|
|
81
|
+
return
|
|
82
|
+
}
|
|
83
|
+
let onScrolltolower = true
|
|
84
|
+
this.getFriendsList(onScrolltolower)
|
|
85
|
+
},
|
|
85
86
|
closeFriends() {
|
|
86
87
|
this.setData({
|
|
87
88
|
isShowFriends: false
|
|
88
89
|
})
|
|
90
|
+
this.setData({
|
|
91
|
+
componentsState: this.data.componentsState + 1
|
|
92
|
+
})
|
|
89
93
|
},
|
|
90
94
|
showFriends() {
|
|
91
95
|
this.setData({
|
|
@@ -102,22 +106,14 @@ Component({
|
|
|
102
106
|
}
|
|
103
107
|
return base64.encode(JSON.stringify(params))
|
|
104
108
|
},
|
|
105
|
-
getFriendsList() {
|
|
106
|
-
|
|
107
|
-
// "bizData": {
|
|
108
|
-
// "inviteParm": this.data.inviteParm,
|
|
109
|
-
// "page": 0,
|
|
110
|
-
// "count": 10,
|
|
111
|
-
// },
|
|
112
|
-
// "user_id": this.properties.userId,
|
|
113
|
-
// "app_id": this.properties.appId
|
|
114
|
-
// };
|
|
109
|
+
getFriendsList(onScrolltolower = false) {
|
|
110
|
+
let state = this.data.componentsState
|
|
115
111
|
let inviteParams = this.generateBase64(2, 4, this.properties.aliveId, '')
|
|
116
112
|
let params = {
|
|
117
113
|
"bizData": {
|
|
118
114
|
"inviteParm": inviteParams,
|
|
119
|
-
"page":
|
|
120
|
-
"count":
|
|
115
|
+
"page": this.data.page_index,
|
|
116
|
+
"count": this.data.page_size,
|
|
121
117
|
},
|
|
122
118
|
"user_id": this.properties.userId,
|
|
123
119
|
"app_id": this.properties.appId
|
|
@@ -125,9 +121,36 @@ Component({
|
|
|
125
121
|
getInviteDetail(params).then(res => {
|
|
126
122
|
let DATA = res.data;
|
|
127
123
|
if (DATA.code === 0) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
// 关闭弹窗的时候返回的数据丢弃 // 上拉加载与下拉刷新一起触发时丢弃上拉加载数据
|
|
125
|
+
if(state !==this.data.componentsState || (this._freshing === true && onScrolltolower) ) {
|
|
126
|
+
return
|
|
127
|
+
}
|
|
128
|
+
var total = DATA.inviteNum
|
|
129
|
+
var finishedTxt = "加载中"
|
|
130
|
+
var finished = false
|
|
131
|
+
this.formatData(DATA.data,onScrolltolower)
|
|
132
|
+
// 下拉加载,且数据返回空
|
|
133
|
+
if(this._freshing && DATA.data.length === 0){
|
|
134
|
+
finishedTxt = "no-data"
|
|
135
|
+
}
|
|
136
|
+
else if (this.data.friendList.length >= total || DATA.data.length === 0) {
|
|
137
|
+
// 获取到所有数据
|
|
138
|
+
finished = true// 没有更多了
|
|
139
|
+
finishedTxt = "没有更多了"
|
|
140
|
+
this.setData({finishedTxt})
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
finishedTxt = "加载中"
|
|
144
|
+
}
|
|
145
|
+
this.setData({
|
|
146
|
+
refreshing: false,
|
|
147
|
+
page_index: this.data.page_index + 1,
|
|
148
|
+
finishedTxt,
|
|
149
|
+
finished,
|
|
150
|
+
total
|
|
151
|
+
})
|
|
152
|
+
this._freshing = false
|
|
153
|
+
this.scrolling = false
|
|
131
154
|
} else {
|
|
132
155
|
wx.showToast({
|
|
133
156
|
title: DATA.msg,
|
|
@@ -136,10 +159,24 @@ Component({
|
|
|
136
159
|
}
|
|
137
160
|
}).catch(err => {
|
|
138
161
|
wx.showToast({
|
|
139
|
-
title: err.
|
|
162
|
+
title: err.msg,
|
|
140
163
|
icon: 'error'
|
|
141
164
|
})
|
|
142
165
|
});
|
|
143
166
|
},
|
|
167
|
+
formatData(data,onScrolltolower){
|
|
168
|
+
//onScrolltolower代表是上拉加载的标识,网卡的时候有上拉加载与下拉刷新同时请求,上拉加载的数据也push进去的情况。
|
|
169
|
+
let friendList = this.data.friendList
|
|
170
|
+
data.forEach((item,index) => {
|
|
171
|
+
if (!this._freshing) {
|
|
172
|
+
friendList.push(item)
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
if (this._freshing && !onScrolltolower) {
|
|
176
|
+
//下拉刷新的时候直接赋值
|
|
177
|
+
friendList = JSON.parse(JSON.stringify(data))
|
|
178
|
+
}
|
|
179
|
+
this.setData({friendList})
|
|
180
|
+
},
|
|
144
181
|
}
|
|
145
182
|
})
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
class="icon-left-back"
|
|
6
6
|
src="../../../images/icon_arrow_up.png"
|
|
7
7
|
/>
|
|
8
|
-
<view class="count-style">邀请的好友{{'('+
|
|
8
|
+
<view class="count-style">邀请的好友{{'('+total+')'}}</view>
|
|
9
9
|
</view>
|
|
10
|
+
<scroll-view scroll-y="true" bindscrolltolower="onScrolltolower" refresher-triggered="{{refreshing}}" bindrefresherrefresh="onLoad" refresher-enabled="{{true}}" style="height:calc(100vh - 700rpx)">
|
|
10
11
|
<view class="friend-list">
|
|
11
12
|
<view
|
|
12
13
|
class="friend-item"
|
|
@@ -19,5 +20,7 @@
|
|
|
19
20
|
</view>
|
|
20
21
|
</view>
|
|
21
22
|
</view>
|
|
23
|
+
<view class="finished-text" wx:if="{{!refreshing && finishedTxt !== 'no-data'}}">{{finishedTxt}}</view>
|
|
24
|
+
</scroll-view>
|
|
22
25
|
</van-popup>
|
|
23
26
|
</view>
|
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
.finished-text {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
color: #999;
|
|
15
|
+
font-size: 28rpx;
|
|
16
|
+
padding-bottom: 20rpx;
|
|
17
|
+
}
|
|
11
18
|
.container-friends {
|
|
12
19
|
animation: popping ease 300ms;
|
|
13
20
|
position: fixed;
|
|
@@ -53,7 +60,7 @@
|
|
|
53
60
|
padding: 32rpx;
|
|
54
61
|
}
|
|
55
62
|
.friend-list {
|
|
56
|
-
height: calc(100vh -
|
|
63
|
+
height: calc(100vh - 748rpx);
|
|
57
64
|
/* flex: 1; */
|
|
58
65
|
overflow: scroll;
|
|
59
66
|
/* display: flex; */
|
|
@@ -53,7 +53,8 @@ Component({
|
|
|
53
53
|
timerTop3: null, // 邀请top3头像定时器
|
|
54
54
|
topHeight: 0,
|
|
55
55
|
rightPosition: 0,
|
|
56
|
-
hasPhoneChin:false
|
|
56
|
+
hasPhoneChin:false,
|
|
57
|
+
isAndroid: true // 判断是否安卓
|
|
57
58
|
},
|
|
58
59
|
ready() {
|
|
59
60
|
},
|
|
@@ -120,6 +121,22 @@ Component({
|
|
|
120
121
|
openRuleDetail() {
|
|
121
122
|
this.triggerEvent('changePosterDisplay',"rulesDialog")
|
|
122
123
|
},
|
|
124
|
+
checkIsAndroid(){
|
|
125
|
+
const that = this
|
|
126
|
+
wx.getSystemInfo({
|
|
127
|
+
success (res) {
|
|
128
|
+
if(res.system.includes('iOS')) {
|
|
129
|
+
that.setData({
|
|
130
|
+
isAndroid: false
|
|
131
|
+
})
|
|
132
|
+
} else if(res.system.includes('Android')){
|
|
133
|
+
that.setData({
|
|
134
|
+
isAndroid: true
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
})
|
|
139
|
+
},
|
|
123
140
|
// 获取排名前三的用户
|
|
124
141
|
getTop3Inviter() {
|
|
125
142
|
if (!this.properties.roomInfo.app_id) {
|
|
@@ -167,7 +184,11 @@ Component({
|
|
|
167
184
|
if (this.data.activityEndType === 1 && !this.data.isLiveOver) {
|
|
168
185
|
flag = true
|
|
169
186
|
} else if (this.data.activityEndType === 2) {
|
|
170
|
-
|
|
187
|
+
this.checkIsAndroid()
|
|
188
|
+
let endTime = new Date(this.data.activityEndTime)
|
|
189
|
+
if(!this.data.isAndroid) {
|
|
190
|
+
endTime = new Date(this.data.activityEndTime.replaceAll('-', '/'))
|
|
191
|
+
}
|
|
171
192
|
flag = Date.now() <= endTime.getTime()
|
|
172
193
|
}
|
|
173
194
|
}
|
|
@@ -185,7 +206,7 @@ Component({
|
|
|
185
206
|
this.getTopInviter()
|
|
186
207
|
const timer = setInterval(() => {
|
|
187
208
|
this.getTopInviter()
|
|
188
|
-
},
|
|
209
|
+
}, 30*1000)
|
|
189
210
|
this.timer = timer;
|
|
190
211
|
},
|
|
191
212
|
// 获取邀请用户排名列表
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
.invite-entrance-liveroom-page{
|
|
2
|
+
height:100%;
|
|
3
|
+
display:flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
1
6
|
.invite-rank-page {
|
|
2
7
|
animation: popping ease 300ms;
|
|
3
|
-
height:
|
|
8
|
+
height: 100%;
|
|
9
|
+
flex:1;
|
|
4
10
|
background-color: #fff !important;
|
|
5
11
|
background: url("https://wechatapppro-1252524126.cos.ap-shanghai.myqcloud.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
6
12
|
background-size: contain;
|
|
@@ -8,28 +14,7 @@
|
|
|
8
14
|
border-radius: 16px 16px 0 0;
|
|
9
15
|
}
|
|
10
16
|
.scrollViewHeight{
|
|
11
|
-
height:calc(
|
|
12
|
-
}
|
|
13
|
-
.scrollViewDefaultHeight{
|
|
14
|
-
height:calc(100vh - 596rpx);
|
|
15
|
-
}
|
|
16
|
-
.smallModelViewDefaultHeight{
|
|
17
|
-
height:calc(100vh - 576rpx);
|
|
18
|
-
}
|
|
19
|
-
.smallModelVeiwHeight{
|
|
20
|
-
height:calc(100vh - 698rpx);
|
|
21
|
-
}
|
|
22
|
-
.scrollViewPackUpDefaultHeight{
|
|
23
|
-
height:calc(100vh - 468rpx);
|
|
24
|
-
}
|
|
25
|
-
.scrollViewPackUpHeight{
|
|
26
|
-
height:calc(100vh - 362rpx);
|
|
27
|
-
}
|
|
28
|
-
.smallModelViewPackUpDefaultHeight{
|
|
29
|
-
height:calc(100vh - 342rpx);
|
|
30
|
-
}
|
|
31
|
-
.smallModelVeiwPackUpHeight{
|
|
32
|
-
height:calc(100vh - 464rpx);
|
|
17
|
+
height:calc(100% - 120rpx);
|
|
33
18
|
}
|
|
34
19
|
.container-ranking {
|
|
35
20
|
animation: popping ease 300ms;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<view class="invite-rank-page" wx:if="{{isShowRank}}">
|
|
4
4
|
<view class="mask-layer" bindtap="closeInvitingRank"></view>
|
|
5
5
|
<scroll-view scroll-y="true"
|
|
6
|
-
class="
|
|
6
|
+
class="scrollViewHeight">
|
|
7
7
|
<view class="container-ranking">
|
|
8
8
|
<view class="img-background">
|
|
9
9
|
<image
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
.invite-entrance-liveroom-page {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
1
6
|
.invite-rank-page {
|
|
2
7
|
animation: popping ease 300ms;
|
|
3
|
-
height:
|
|
8
|
+
height: 100%;
|
|
9
|
+
flex: 1;
|
|
4
10
|
background-color: #fff !important;
|
|
5
11
|
background: url("https://wechatapppro-1252524126.cos.ap-shanghai.myqcloud.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
6
12
|
background-size: contain;
|
|
@@ -8,28 +14,7 @@
|
|
|
8
14
|
border-radius: 16px 16px 0 0;
|
|
9
15
|
}
|
|
10
16
|
.scrollViewHeight {
|
|
11
|
-
height: calc(
|
|
12
|
-
}
|
|
13
|
-
.scrollViewDefaultHeight {
|
|
14
|
-
height: calc(100vh - 596rpx);
|
|
15
|
-
}
|
|
16
|
-
.smallModelViewDefaultHeight {
|
|
17
|
-
height: calc(100vh - 576rpx);
|
|
18
|
-
}
|
|
19
|
-
.smallModelVeiwHeight {
|
|
20
|
-
height: calc(100vh - 698rpx);
|
|
21
|
-
}
|
|
22
|
-
.scrollViewPackUpDefaultHeight {
|
|
23
|
-
height: calc(100vh - 468rpx);
|
|
24
|
-
}
|
|
25
|
-
.scrollViewPackUpHeight {
|
|
26
|
-
height: calc(100vh - 362rpx);
|
|
27
|
-
}
|
|
28
|
-
.smallModelViewPackUpDefaultHeight {
|
|
29
|
-
height: calc(100vh - 342rpx);
|
|
30
|
-
}
|
|
31
|
-
.smallModelVeiwPackUpHeight {
|
|
32
|
-
height: calc(100vh - 464rpx);
|
|
17
|
+
height: calc(100% - 120rpx);
|
|
33
18
|
}
|
|
34
19
|
.container-ranking {
|
|
35
20
|
animation: popping ease 300ms;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<view class="address-edit-content">
|
|
3
3
|
<van-dialog id="van-dialog" />
|
|
4
4
|
<!-- 获取微信收货地址 -->
|
|
5
|
-
<WechatAddress
|
|
5
|
+
<!-- <WechatAddress
|
|
6
6
|
addressList="{{ addressList }}"
|
|
7
7
|
bind:createAddress="saveAddress"
|
|
8
|
-
></WechatAddress>
|
|
8
|
+
></WechatAddress> -->
|
|
9
9
|
<view class="input-wrapper">
|
|
10
10
|
<van-field value="{{ address.receiver }}" label="收货人" placeholder="收货人姓名" maxlength="15" bind:change="changeMsg" data-type="receiver" />
|
|
11
11
|
<van-field value="{{ address.phone }}" label="手机号码" placeholder="收货人手机号" maxlength="11" type="number" bind:change="changeTel" />
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<!--src/ConfirmOrder/components/AddressManage/index.wxml-->
|
|
2
2
|
<view class="address-manage-content">
|
|
3
3
|
<!-- 获取微信收货地址 -->
|
|
4
|
-
<WechatAddress
|
|
4
|
+
<!-- <WechatAddress
|
|
5
5
|
addressList="{{ addressList }}"
|
|
6
6
|
bind:createAddress="createAddress"
|
|
7
7
|
bind:chooseAddress="chooseAddress"
|
|
8
|
-
></WechatAddress>
|
|
8
|
+
></WechatAddress> -->
|
|
9
9
|
|
|
10
10
|
<view class="address-bar" wx:for="{{ addressList }}" wx:key="key">
|
|
11
11
|
<view class="left-info" bindtap="chooseAddress" data-item="{{ item }}">
|
|
@@ -219,6 +219,17 @@ Component({
|
|
|
219
219
|
},
|
|
220
220
|
},
|
|
221
221
|
observers: {
|
|
222
|
+
distributionMode(val) {
|
|
223
|
+
if (val === 1) {
|
|
224
|
+
this.setData({
|
|
225
|
+
express_type: val
|
|
226
|
+
})
|
|
227
|
+
} else if (val === 2) {
|
|
228
|
+
this.setData({
|
|
229
|
+
express_type: val
|
|
230
|
+
})
|
|
231
|
+
}
|
|
232
|
+
},
|
|
222
233
|
marketingData(marketingData) {
|
|
223
234
|
// 这里的逻辑应该是存在拼团的时候那么payment_type就要赋值为13,如果是限时折扣或者是单买的话,payment_type不做赋值默认为2
|
|
224
235
|
if (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js
|
|
2
2
|
const computedBehavior = require('miniprogram-computed').behavior
|
|
3
|
+
const {utils} = require("live-mp-tools");
|
|
3
4
|
|
|
4
5
|
Component({
|
|
5
6
|
behaviors: [computedBehavior],
|
|
@@ -51,28 +52,9 @@ Component({
|
|
|
51
52
|
},
|
|
52
53
|
computed: {
|
|
53
54
|
realSrc(data) {
|
|
54
|
-
|
|
55
55
|
// 腾讯云图片才会支持去压缩裁剪
|
|
56
56
|
if (data.src.indexOf("myqcloud") > 0 && data.showCompress) {
|
|
57
|
-
|
|
58
|
-
const curSrc = `${formatSrc.replace("file", "picsh")}?imageView2`;
|
|
59
|
-
const compressType = data.compressType ? `/${data.compressType}` : "";
|
|
60
|
-
const compressWidth = data.compressWidth
|
|
61
|
-
? `/w/${data.compressWidth}`
|
|
62
|
-
: "";
|
|
63
|
-
const compressHeight = data.compressHeight
|
|
64
|
-
? `/h/${data.compressHeight}`
|
|
65
|
-
: "";
|
|
66
|
-
const compress = data.compress ? `/q/${data.compress}` : "";
|
|
67
|
-
const format = data.format ? `/format/${data.format}` : "";
|
|
68
|
-
return (
|
|
69
|
-
curSrc +
|
|
70
|
-
compressType +
|
|
71
|
-
compressWidth +
|
|
72
|
-
compressHeight +
|
|
73
|
-
compress +
|
|
74
|
-
format
|
|
75
|
-
);
|
|
57
|
+
return utils.replaceCDN(data.src, `?imageView2/2/w/${data.compressWidth || 400}/h/${data.compressHeight || 400}/q/${data.compress || 100}`)
|
|
76
58
|
} else {
|
|
77
59
|
return data.src;
|
|
78
60
|
}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
SPECIAL_COLUMN,
|
|
16
16
|
E_BOOK,
|
|
17
17
|
TRAINING_CAMP,
|
|
18
|
+
SERVICE_GOODS,
|
|
18
19
|
SVIP_SPU_TYPE,
|
|
19
20
|
} from "../../../common/utils/constants";
|
|
20
21
|
import {
|
|
@@ -140,7 +141,7 @@ Component({
|
|
|
140
141
|
}
|
|
141
142
|
},
|
|
142
143
|
showStepper(data) {
|
|
143
|
-
let spuTypes = [ENTITY_GOODS, VALUE_COUPON];
|
|
144
|
+
let spuTypes = [ENTITY_GOODS, VALUE_COUPON, SERVICE_GOODS];
|
|
144
145
|
return (
|
|
145
146
|
(spuTypes.includes(data.baseInfo?.spu_type) || data.sendFriend) &&
|
|
146
147
|
!data.goodsInfo.is_goods_package
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
.pickup-select-content {
|
|
2
2
|
.van-cell__value {
|
|
3
3
|
flex: 3;
|
|
4
|
-
text-align: right;
|
|
5
4
|
}
|
|
6
|
-
.
|
|
7
|
-
|
|
5
|
+
.right {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: flex-end;
|
|
9
|
+
.custom-title {
|
|
10
|
+
max-width: 450rpx;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
margin-left: 16rpx;
|
|
15
|
+
}
|
|
16
|
+
.custom-site {
|
|
17
|
+
max-width: 450rpx;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
text-overflow: ellipsis;
|
|
21
|
+
margin-left: 16rpx;
|
|
22
|
+
}
|
|
8
23
|
}
|
|
9
24
|
}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
<view slot="title">
|
|
6
6
|
<van-tag color="#EBF1FF" text-color="#105CFB">自提</van-tag>
|
|
7
7
|
</view>
|
|
8
|
-
<view class="
|
|
9
|
-
|
|
8
|
+
<view class="right">
|
|
9
|
+
<view class="custom-title">{{ setPlace_name }}</view>
|
|
10
|
+
<view class="custom-site">{{ setPlace_area }}</view>
|
|
11
|
+
</view>
|
|
10
12
|
</van-cell>
|
|
11
13
|
</van-cell-group>
|
|
12
14
|
</view>
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
.pickup-select-content .van-cell__value {
|
|
2
2
|
flex: 3;
|
|
3
|
-
text-align: right;
|
|
4
3
|
}
|
|
5
|
-
.pickup-select-content .
|
|
4
|
+
.pickup-select-content .right {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-end;
|
|
8
|
+
}
|
|
9
|
+
.pickup-select-content .right .custom-title {
|
|
10
|
+
max-width: 450rpx;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
margin-left: 16rpx;
|
|
15
|
+
}
|
|
16
|
+
.pickup-select-content .right .custom-site {
|
|
17
|
+
max-width: 450rpx;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
text-overflow: ellipsis;
|
|
6
21
|
margin-left: 16rpx;
|
|
7
22
|
}
|
|
@@ -33,29 +33,7 @@ Component({
|
|
|
33
33
|
methods: {
|
|
34
34
|
// 获取微信收货地址
|
|
35
35
|
getWechat() {
|
|
36
|
-
|
|
37
|
-
success: res => {
|
|
38
|
-
// 微信地址与地址列表匹配,不重复添加
|
|
39
|
-
res['noCheck'] = true
|
|
40
|
-
let compareRes = this.compareWechat(res)
|
|
41
|
-
if (compareRes === "") {
|
|
42
|
-
this.triggerEvent("createAddress", res)
|
|
43
|
-
} else {
|
|
44
|
-
if (this.data.pageType === "list") {
|
|
45
|
-
this.triggerEvent("chooseAddress", compareRes)
|
|
46
|
-
} else {
|
|
47
|
-
wx.showToast({
|
|
48
|
-
title: '已有相同收货地址',
|
|
49
|
-
icon: 'none',
|
|
50
|
-
duration: 2000
|
|
51
|
-
})
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
fail: err => {
|
|
56
|
-
console.log(err);
|
|
57
|
-
}
|
|
58
|
-
})
|
|
36
|
+
|
|
59
37
|
},
|
|
60
38
|
// 微信地址与地址列表匹配,不重复添加
|
|
61
39
|
compareWechat(wechatAddress) {
|