xiaoe_mp_npm 0.3.6-t220331 → 0.3.6
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 +1 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.js +85 -48
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +5 -2
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +9 -2
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.wxss +1 -1
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.js +23 -2
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.less +11 -26
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxml +2 -2
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxss +11 -26
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.less +22 -22
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxml +2 -2
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxss +22 -22
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.less +21 -21
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxml +2 -2
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxss +21 -21
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.less +16 -16
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.wxss +16 -16
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.less +3 -3
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.wxss +3 -3
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.less +3 -3
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +3 -3
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.less +42 -42
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +42 -42
- package/miniprogram_dist/ConfirmOrder/components/Header/index.less +7 -7
- package/miniprogram_dist/ConfirmOrder/components/Header/index.wxss +7 -7
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.less +13 -13
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +13 -13
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.less +2 -2
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +2 -2
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.less +2 -2
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +2 -2
- package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.less +8 -8
- package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.wxss +8 -8
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.less +3 -3
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +3 -3
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.less +4 -4
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxss +4 -4
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.less +4 -4
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxss +4 -4
- package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.less +16 -16
- package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.wxss +16 -16
- package/miniprogram_dist/ConfirmOrder/components/Shipper/index.less +19 -19
- package/miniprogram_dist/ConfirmOrder/components/Shipper/index.wxss +19 -19
- package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.less +17 -17
- package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.wxss +17 -17
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.js +1 -23
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.less +6 -6
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.wxss +6 -6
- package/miniprogram_dist/ConfirmOrder/index.less +1 -1
- package/miniprogram_dist/ConfirmOrder/index.wxss +1 -1
- package/miniprogram_dist/CustomPopup/index.less +2 -2
- package/miniprogram_dist/CustomPopup/index.wxss +2 -2
- package/miniprogram_dist/GoodsItem/index.less +85 -85
- package/miniprogram_dist/GoodsItem/index.wxss +85 -85
- package/miniprogram_dist/LiveGoodsList/Header/index.less +11 -11
- package/miniprogram_dist/LiveGoodsList/Header/index.wxss +11 -11
- package/miniprogram_dist/LiveGoodsList/index.less +13 -13
- package/miniprogram_dist/LiveGoodsList/index.wxss +13 -13
- package/miniprogram_dist/Lottery/components/CommonPopup/index.wxml +1 -0
- package/miniprogram_dist/Lottery/components/NobodyAttend/index.wxml +1 -1
- package/miniprogram_dist/Lottery/remotePic.js +11 -11
- package/miniprogram_dist/SharePoster/PosterDom/index.js +1 -1
- package/miniprogram_dist/SharePoster/libs/positionMap.js +2 -2
- package/miniprogram_dist/SharePoster/sharePopup/index.js +4 -1
- package/miniprogram_dist/SharePoster/sharePopup/index.wxml +1 -1
- package/miniprogram_dist/common/utils/image-cdn-slim/constant.js +8 -0
- package/miniprogram_dist/common/utils/image-cdn-slim/index.js +7 -0
- package/miniprogram_dist/common/utils/image-cdn-slim/utils.js +157 -0
- package/package.json +1 -1
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.js +85 -48
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +5 -2
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +11 -4
- package/src/AliveInvite/LiveRoomVertical/components/rules/rules.wxss +1 -1
- package/src/AliveInvite/LiveRoomVertical/index.js +23 -2
- package/src/AliveInvite/LiveRoomVertical/index.less +11 -26
- package/src/AliveInvite/LiveRoomVertical/index.wxml +2 -2
- package/src/AliveInvite/LiveRoomVertical/index.wxss +11 -26
- package/src/ConfirmOrder/components/AddressEdit/index.less +22 -22
- package/src/ConfirmOrder/components/AddressEdit/index.wxml +2 -2
- package/src/ConfirmOrder/components/AddressEdit/index.wxss +99 -99
- package/src/ConfirmOrder/components/AddressManage/index.less +21 -21
- package/src/ConfirmOrder/components/AddressManage/index.wxml +2 -2
- package/src/ConfirmOrder/components/AddressManage/index.wxss +98 -98
- package/src/ConfirmOrder/components/AddressSelect/index.less +16 -16
- package/src/ConfirmOrder/components/AddressSelect/index.wxss +67 -67
- package/src/ConfirmOrder/components/ChoosePicker/index.less +3 -3
- package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -18
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.less +3 -3
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +10 -10
- package/src/ConfirmOrder/components/GoodsInfo/index.less +42 -42
- package/src/ConfirmOrder/components/GoodsInfo/index.wxss +153 -153
- package/src/ConfirmOrder/components/Header/index.less +7 -7
- package/src/ConfirmOrder/components/Header/index.wxss +27 -27
- package/src/ConfirmOrder/components/IntegralSelect/index.less +13 -13
- package/src/ConfirmOrder/components/IntegralSelect/index.wxss +47 -47
- package/src/ConfirmOrder/components/Invoice/index.less +2 -2
- package/src/ConfirmOrder/components/Invoice/index.wxss +23 -23
- package/src/ConfirmOrder/components/LeaveWord/index.less +2 -2
- package/src/ConfirmOrder/components/LeaveWord/index.wxss +6 -6
- package/src/ConfirmOrder/components/ModeSelect/index.less +8 -8
- package/src/ConfirmOrder/components/ModeSelect/index.wxss +44 -44
- package/src/ConfirmOrder/components/PayBar/index.less +3 -3
- package/src/ConfirmOrder/components/PayBar/index.wxss +27 -27
- package/src/ConfirmOrder/components/PayDetail/index.less +4 -4
- package/src/ConfirmOrder/components/PayDetail/index.wxss +14 -14
- package/src/ConfirmOrder/components/PickupSelect/index.less +4 -4
- package/src/ConfirmOrder/components/PickupSelect/index.wxss +22 -22
- package/src/ConfirmOrder/components/SelectSite/index.less +16 -16
- package/src/ConfirmOrder/components/SelectSite/index.wxss +82 -82
- package/src/ConfirmOrder/components/Shipper/index.less +19 -19
- package/src/ConfirmOrder/components/Shipper/index.wxss +76 -76
- package/src/ConfirmOrder/components/ShipperEdit/index.less +17 -17
- package/src/ConfirmOrder/components/ShipperEdit/index.wxss +78 -78
- package/src/ConfirmOrder/components/WechatAddress/index.js +1 -23
- package/src/ConfirmOrder/components/WechatAddress/index.less +6 -6
- package/src/ConfirmOrder/components/WechatAddress/index.wxss +22 -22
- package/src/ConfirmOrder/index.less +1 -1
- package/src/ConfirmOrder/index.wxss +5 -5
- package/src/CustomPopup/index.less +2 -2
- package/src/CustomPopup/index.wxss +2 -2
- package/src/GoodsItem/index.less +85 -85
- package/src/GoodsItem/index.wxss +85 -85
- package/src/LiveGoodsList/Header/index.less +11 -11
- package/src/LiveGoodsList/Header/index.wxss +11 -11
- package/src/LiveGoodsList/index.less +13 -13
- package/src/LiveGoodsList/index.wxss +13 -13
- package/src/Lottery/components/CommonPopup/index.wxml +1 -0
- package/src/Lottery/components/NobodyAttend/index.wxml +1 -1
- package/src/Lottery/remotePic.js +11 -11
- package/src/SharePoster/PosterDom/index.js +1 -1
- package/src/SharePoster/libs/positionMap.js +2 -2
- package/src/SharePoster/sharePopup/index.js +4 -1
- package/src/SharePoster/sharePopup/index.wxml +1 -1
- package/src/common/utils/image-cdn-slim/constant.js +8 -0
- package/src/common/utils/image-cdn-slim/index.js +7 -0
- package/src/common/utils/image-cdn-slim/utils.js +157 -0
package/.gitlab-ci.yml
CHANGED
|
@@ -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,19 +5,22 @@
|
|
|
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"
|
|
13
14
|
wx:for="{{friendList}}"
|
|
14
15
|
>
|
|
15
16
|
<image wx:if="{{item.wx_avatar}}" class="img-avatar" src="{{item.wx_avatar}}" />
|
|
16
|
-
<image wx:else class="img-avatar" src="//wechatavator-1252524126.
|
|
17
|
+
<image wx:else class="img-avatar" src="//wechatavator-1252524126.cdn.xiaoeknow.com/aaa/default.svg" />
|
|
17
18
|
<view class="name">
|
|
18
19
|
{{ item.wx_nickname }}
|
|
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;
|
|
@@ -17,7 +24,7 @@
|
|
|
17
24
|
width: 750rpx;
|
|
18
25
|
height: calc(100vh - 494rpx);
|
|
19
26
|
background-color: #fff !important;
|
|
20
|
-
background: url("https://wechatapppro-1252524126.
|
|
27
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
21
28
|
background-size: contain;
|
|
22
29
|
background-repeat: no-repeat;
|
|
23
30
|
border-radius: 16rpx 16rpx 0 0;
|
|
@@ -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; */
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
width: 750rpx;
|
|
18
18
|
height: calc(100vh - 494rpx);
|
|
19
19
|
background-color: #fff !important;
|
|
20
|
-
background: url("https://wechatapppro-1252524126.
|
|
20
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
21
21
|
background-size: contain;
|
|
22
22
|
background-repeat: no-repeat;
|
|
23
23
|
border-radius: 16rpx 16rpx 0 0;
|
|
@@ -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
|
}
|
|
@@ -1,47 +1,32 @@
|
|
|
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
|
-
background: url("https://wechatapppro-1252524126.
|
|
11
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
6
12
|
background-size: contain;
|
|
7
13
|
background-repeat: no-repeat;
|
|
8
14
|
border-radius: 16px 16px 0 0;
|
|
9
15
|
}
|
|
10
16
|
.scrollViewHeight{
|
|
11
|
-
height:calc(
|
|
12
|
-
}
|
|
13
|
-
.scrollViewDefaultHeight{
|
|
14
|
-
height:calc(100vh - 528rpx);
|
|
15
|
-
}
|
|
16
|
-
.smallModelViewDefaultHeight{
|
|
17
|
-
height:calc(100vh - 508rpx);
|
|
18
|
-
}
|
|
19
|
-
.smallModelVeiwHeight{
|
|
20
|
-
height:calc(100vh - 630rpx);
|
|
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;
|
|
36
21
|
// height: 1035rpx;
|
|
37
22
|
background-color: #fff !important;
|
|
38
|
-
background: url("https://wechatapppro-1252524126.
|
|
23
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
39
24
|
background-size: contain;
|
|
40
25
|
background-repeat: no-repeat;
|
|
41
26
|
border-radius: 16px 16px 0 0;
|
|
42
27
|
}
|
|
43
28
|
.img-background {
|
|
44
|
-
background: url("https://wechatapppro-1252524126.
|
|
29
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2k2t0iqn.png?imageView2/2/w/200/q/60");
|
|
45
30
|
background-size: cover;
|
|
46
31
|
display: flex;
|
|
47
32
|
align-items: center;
|
|
@@ -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
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<view wx:else class="num">{{ item.ranking }}</view>
|
|
53
53
|
<view class="warp-avatar">
|
|
54
54
|
<image wx:if="{{item.avatar}}" class="img-avatar" src="{{item.avatar}}" />
|
|
55
|
-
<image wx:else class="img-avatar" src="//wechatavator-1252524126.
|
|
55
|
+
<image wx:else class="img-avatar" src="//wechatavator-1252524126.cdn.xiaoeknow.com/aaa/default.svg" />
|
|
56
56
|
<view class="name">
|
|
57
57
|
{{ item.name }}
|
|
58
58
|
</view>
|
|
@@ -1,46 +1,31 @@
|
|
|
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
|
-
background: url("https://wechatapppro-1252524126.
|
|
11
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
6
12
|
background-size: contain;
|
|
7
13
|
background-repeat: no-repeat;
|
|
8
14
|
border-radius: 16px 16px 0 0;
|
|
9
15
|
}
|
|
10
16
|
.scrollViewHeight {
|
|
11
|
-
height: calc(
|
|
12
|
-
}
|
|
13
|
-
.scrollViewDefaultHeight {
|
|
14
|
-
height: calc(100vh - 528rpx);
|
|
15
|
-
}
|
|
16
|
-
.smallModelViewDefaultHeight {
|
|
17
|
-
height: calc(100vh - 508rpx);
|
|
18
|
-
}
|
|
19
|
-
.smallModelVeiwHeight {
|
|
20
|
-
height: calc(100vh - 630rpx);
|
|
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;
|
|
36
21
|
background-color: #fff !important;
|
|
37
|
-
background: url("https://wechatapppro-1252524126.
|
|
22
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
38
23
|
background-size: contain;
|
|
39
24
|
background-repeat: no-repeat;
|
|
40
25
|
border-radius: 16px 16px 0 0;
|
|
41
26
|
}
|
|
42
27
|
.img-background {
|
|
43
|
-
background: url("https://wechatapppro-1252524126.
|
|
28
|
+
background: url("https://wechatapppro-1252524126.cdn.xiaoeknow.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2k2t0iqn.png?imageView2/2/w/200/q/60");
|
|
44
29
|
background-size: cover;
|
|
45
30
|
display: flex;
|
|
46
31
|
align-items: center;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
@import '../../../common/css/theme.wxss';
|
|
2
2
|
|
|
3
3
|
.address-edit-content {
|
|
4
|
-
padding-top:
|
|
4
|
+
padding-top: 16rpx;
|
|
5
5
|
|
|
6
6
|
.input-wrapper {
|
|
7
7
|
background: white;
|
|
8
8
|
|
|
9
9
|
.van-field__label {
|
|
10
|
-
font-size:
|
|
10
|
+
font-size: 28rpx;
|
|
11
11
|
color: #333333;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.default-wrapper {
|
|
16
|
-
margin-top:
|
|
17
|
-
height:
|
|
18
|
-
padding: 0
|
|
16
|
+
margin-top: 16rpx;
|
|
17
|
+
height: 112rpx;
|
|
18
|
+
padding: 0 32rpx;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
background: white;
|
|
21
21
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
justify-content: space-between;
|
|
24
24
|
|
|
25
25
|
.ET2 {
|
|
26
|
-
font-size:
|
|
26
|
+
font-size: 28rpx;
|
|
27
27
|
color: #333333;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
|
|
34
34
|
.van-switch__node {
|
|
35
35
|
box-shadow: none;
|
|
36
|
-
border:
|
|
36
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
37
37
|
background: rgba(255, 255, 255, 1);
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
40
|
-
top:
|
|
41
|
-
left:
|
|
38
|
+
width: 20px;
|
|
39
|
+
height: 20px;
|
|
40
|
+
top: 1px;
|
|
41
|
+
left: 1px;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
z-index: 2;
|
|
60
60
|
|
|
61
61
|
.finish-btn-wrapper {
|
|
62
|
-
padding:
|
|
62
|
+
padding: 16rpx 28rpx;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.finish {
|
|
66
|
-
padding:
|
|
67
|
-
border-radius:
|
|
66
|
+
padding: 20rpx 0;
|
|
67
|
+
border-radius: 40rpx;
|
|
68
68
|
text-align: center;
|
|
69
69
|
background: #09bb07;
|
|
70
70
|
color: white;
|
|
@@ -77,18 +77,18 @@
|
|
|
77
77
|
|
|
78
78
|
.cancel-btn {
|
|
79
79
|
text-align: center;
|
|
80
|
-
width:
|
|
81
|
-
padding:
|
|
82
|
-
margin-right:
|
|
80
|
+
width: 212rpx;
|
|
81
|
+
padding: 16rpx 0;
|
|
82
|
+
margin-right: 24rpx;
|
|
83
83
|
background: rgba(255, 255, 255, 1);
|
|
84
|
-
border-radius:
|
|
85
|
-
border:
|
|
84
|
+
border-radius: 40rpx;
|
|
85
|
+
border: 2rpx solid rgba(183, 183, 183, 1);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.finish2 {
|
|
89
|
-
width:
|
|
90
|
-
padding:
|
|
91
|
-
border-radius:
|
|
89
|
+
width: 450rpx;
|
|
90
|
+
padding: 20rpx 0;
|
|
91
|
+
border-radius: 40rpx;
|
|
92
92
|
text-align: center;
|
|
93
93
|
background: #09bb07;
|
|
94
94
|
color: #fff;
|
|
@@ -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" />
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
background-color: #9db8f1 !important;
|
|
16
16
|
}
|
|
17
17
|
.address-edit-content {
|
|
18
|
-
padding-top:
|
|
18
|
+
padding-top: 16rpx;
|
|
19
19
|
}
|
|
20
20
|
.address-edit-content .input-wrapper {
|
|
21
21
|
background: white;
|
|
22
22
|
}
|
|
23
23
|
.address-edit-content .input-wrapper .van-field__label {
|
|
24
|
-
font-size:
|
|
24
|
+
font-size: 28rpx;
|
|
25
25
|
color: #333333;
|
|
26
26
|
}
|
|
27
27
|
.address-edit-content .default-wrapper {
|
|
28
|
-
margin-top:
|
|
29
|
-
height:
|
|
30
|
-
padding: 0
|
|
28
|
+
margin-top: 16rpx;
|
|
29
|
+
height: 112rpx;
|
|
30
|
+
padding: 0 32rpx;
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
background: white;
|
|
33
33
|
display: flex;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
justify-content: space-between;
|
|
36
36
|
}
|
|
37
37
|
.address-edit-content .default-wrapper .ET2 {
|
|
38
|
-
font-size:
|
|
38
|
+
font-size: 28rpx;
|
|
39
39
|
color: #333333;
|
|
40
40
|
}
|
|
41
41
|
.address-edit-content .default-wrapper .van-switch {
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
}
|
|
45
45
|
.address-edit-content .default-wrapper .van-switch .van-switch__node {
|
|
46
46
|
box-shadow: none;
|
|
47
|
-
border:
|
|
47
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
48
48
|
background: #ffffff;
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
51
|
-
top:
|
|
52
|
-
left:
|
|
49
|
+
width: 20px;
|
|
50
|
+
height: 20px;
|
|
51
|
+
top: 1px;
|
|
52
|
+
left: 1px;
|
|
53
53
|
}
|
|
54
54
|
.address-edit-content .default-wrapper .van-switch--on {
|
|
55
55
|
background-color: #1989fa;
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
z-index: 2;
|
|
67
67
|
}
|
|
68
68
|
.address-edit-content .finish-btn .finish-btn-wrapper {
|
|
69
|
-
padding:
|
|
69
|
+
padding: 16rpx 28rpx;
|
|
70
70
|
}
|
|
71
71
|
.address-edit-content .finish-btn .finish {
|
|
72
|
-
padding:
|
|
73
|
-
border-radius:
|
|
72
|
+
padding: 20rpx 0;
|
|
73
|
+
border-radius: 40rpx;
|
|
74
74
|
text-align: center;
|
|
75
75
|
background: #09bb07;
|
|
76
76
|
color: white;
|
|
@@ -82,17 +82,17 @@
|
|
|
82
82
|
}
|
|
83
83
|
.address-edit-content .finish-btn .finish-double .cancel-btn {
|
|
84
84
|
text-align: center;
|
|
85
|
-
width:
|
|
86
|
-
padding:
|
|
87
|
-
margin-right:
|
|
85
|
+
width: 212rpx;
|
|
86
|
+
padding: 16rpx 0;
|
|
87
|
+
margin-right: 24rpx;
|
|
88
88
|
background: #ffffff;
|
|
89
|
-
border-radius:
|
|
90
|
-
border:
|
|
89
|
+
border-radius: 40rpx;
|
|
90
|
+
border: 2rpx solid #b7b7b7;
|
|
91
91
|
}
|
|
92
92
|
.address-edit-content .finish-btn .finish-double .finish2 {
|
|
93
|
-
width:
|
|
94
|
-
padding:
|
|
95
|
-
border-radius:
|
|
93
|
+
width: 450rpx;
|
|
94
|
+
padding: 20rpx 0;
|
|
95
|
+
border-radius: 40rpx;
|
|
96
96
|
text-align: center;
|
|
97
97
|
background: #09bb07;
|
|
98
98
|
color: #fff;
|