@alu008/test_yuanqikaixiang 1.0.0
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/App.vue +294 -0
- package/Local/en.json +3 -0
- package/Local/indian.json +3 -0
- package/Local/zh-Hans.json +3 -0
- package/Local/zh-Hant.json +3 -0
- package/README.md +1 -0
- package/androidPrivacy.json +28 -0
- package/components/ball/ball.vue +230 -0
- package/components/cardDetails/cardDetails.vue +273 -0
- package/components/confirmModal/confirmModal.vue +125 -0
- package/components/fillInfo/fillInfo.vue +255 -0
- package/components/header/header.vue +92 -0
- package/components/selectAddress/selectAddress.vue +156 -0
- package/components/signDetail/signDetail.vue +33 -0
- package/components/skeleton/skeleton.vue +62 -0
- package/index.html +20 -0
- package/index.template.html +35 -0
- package/jsconfig.json +9 -0
- package/main.js +48 -0
- package/manifest.json +159 -0
- package/package.json +14 -0
- package/pages/index/index.vue +5421 -0
- package/pages.json +173 -0
- package/project.config.json +25 -0
- package/project.private.config.json +14 -0
- package/static/fonts/Alibaba-PuHuiTi-Bold.ttf +0 -0
- package/static/fonts/Alibaba-PuHuiTi-Medium.ttf +0 -0
- package/static/fonts/Alibaba-PuHuiTi-Regular.ttf +0 -0
- package/static/fonts/fxlh.ttf +0 -0
- package/static/img/R.png +0 -0
- package/static/img/SR.png +0 -0
- package/static/img/SSR.png +0 -0
- package/static/img/bottomBgc1.png +0 -0
- package/static/img/centerBgc.png +0 -0
- package/static/img/goldBgc.png +0 -0
- package/static/img/goldText.png +0 -0
- package/static/img/home/calendar/bgc0.png +0 -0
- package/static/img/home/calendar/bgc1.png +0 -0
- package/static/img/home/calendar/bgc2.png +0 -0
- package/static/img/home/calendar/bgc3.png +0 -0
- package/static/img/home/calendar/progress0.png +0 -0
- package/static/img/home/calendar/progress1.png +0 -0
- package/static/img/home/calendar/progress2.png +0 -0
- package/static/img/home/calendar/progress3.png +0 -0
- package/static/img/kuang.gif +0 -0
- package/static/img/luckyBgc.png +0 -0
- package/static/img/lucyText.png +0 -0
- package/static/img/top_Bgc.png +0 -0
- package/subpackages/article/article.vue +64 -0
- package/subpackages/confirmSendLogistics/confirmSendLogistics.vue +1035 -0
- package/subpackages/coupon/coupon.vue +276 -0
- package/subpackages/fragment/fragment.vue +1592 -0
- package/subpackages/myAddress/myAddress.vue +656 -0
- package/subpackages/myCards/myCards.vue +1250 -0
- package/subpackages/myOrder/myOrder.vue +779 -0
- package/subpackages/myOrderDetail/myOrderDetail.vue +659 -0
- package/subpackages/poster/poster.vue +130 -0
- package/subpackages/selectCoupon/selectCoupon.vue +251 -0
- package/subpackages/sendLogistics/sendLogistics.vue +1097 -0
- package/subpackages/vote/vote.vue +877 -0
- package/uni.promisify.adaptor.js +10 -0
- package/uni.scss +114 -0
- package/uni_modules/qf-image-cropper/changelog.md +72 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.render.js +855 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue +749 -0
- package/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.wxs +727 -0
- package/uni_modules/qf-image-cropper/package.json +81 -0
- package/uni_modules/qf-image-cropper/readme.md +97 -0
- package/uni_modules/uni-data-select/changelog.md +51 -0
- package/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue +837 -0
- package/uni_modules/uni-data-select/package.json +106 -0
- package/uni_modules/uni-data-select/readme.md +8 -0
- package/uni_modules/uni-icons/changelog.md +44 -0
- package/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue +91 -0
- package/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +110 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons.css +664 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons.ttf +0 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts +664 -0
- package/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js +649 -0
- package/uni_modules/uni-icons/package.json +111 -0
- package/uni_modules/uni-icons/readme.md +8 -0
- package/uni_modules/uni-load-more/changelog.md +23 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js +8 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json +5 -0
- package/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue +404 -0
- package/uni_modules/uni-load-more/package.json +105 -0
- package/uni_modules/uni-load-more/readme.md +14 -0
- package/uni_modules/uni-scss/changelog.md +8 -0
- package/uni_modules/uni-scss/index.scss +1 -0
- package/uni_modules/uni-scss/package.json +82 -0
- package/uni_modules/uni-scss/readme.md +4 -0
- package/uni_modules/uni-scss/styles/index.scss +7 -0
- package/uni_modules/uni-scss/styles/setting/_border.scss +3 -0
- package/uni_modules/uni-scss/styles/setting/_color.scss +66 -0
- package/uni_modules/uni-scss/styles/setting/_radius.scss +55 -0
- package/uni_modules/uni-scss/styles/setting/_space.scss +56 -0
- package/uni_modules/uni-scss/styles/setting/_styles.scss +167 -0
- package/uni_modules/uni-scss/styles/setting/_text.scss +24 -0
- package/uni_modules/uni-scss/styles/setting/_variables.scss +146 -0
- package/uni_modules/uni-scss/styles/tools/functions.scss +19 -0
- package/uni_modules/uni-scss/theme.scss +31 -0
- package/uni_modules/uni-scss/variables.scss +62 -0
- package/utils/addressData.js +6042 -0
- package/utils/api.js +160 -0
- package/utils/fetch.js +548 -0
- package/utils/index.js +994 -0
- package/utils/navigator.js +17 -0
- package/utils/request.js +162 -0
|
@@ -0,0 +1,779 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="orderContent">
|
|
3
|
+
<u-sticky bgColor="#f6f6f6">
|
|
4
|
+
<Header title="中奖记录"></Header>
|
|
5
|
+
<view style="padding: 6px">
|
|
6
|
+
<u-tabs
|
|
7
|
+
:list="tabsList"
|
|
8
|
+
:activeStyle="{
|
|
9
|
+
color: '#000000',
|
|
10
|
+
fontWeight: 'bold',
|
|
11
|
+
fontSize: '32rpx',
|
|
12
|
+
}"
|
|
13
|
+
:inactiveStyle="{
|
|
14
|
+
color: '#505050',
|
|
15
|
+
fontWeight: 'bold',
|
|
16
|
+
fontSize: '28rpx',
|
|
17
|
+
}"
|
|
18
|
+
@change="changeType"
|
|
19
|
+
lineColor="linear-gradient( 90deg, #0BD690 0%, #00B0E0 100%);"
|
|
20
|
+
:current="type"
|
|
21
|
+
></u-tabs>
|
|
22
|
+
</view>
|
|
23
|
+
<view v-if="type == 1" class="subTabs">
|
|
24
|
+
<view
|
|
25
|
+
@click="changeStatus(value)"
|
|
26
|
+
v-for="value in orderTypes"
|
|
27
|
+
:key="value.status"
|
|
28
|
+
:class="['item', value.status == orderState ? 'active' : '']"
|
|
29
|
+
>
|
|
30
|
+
{{ value.name }}
|
|
31
|
+
</view>
|
|
32
|
+
</view>
|
|
33
|
+
<!-- :current="current" -->
|
|
34
|
+
</u-sticky>
|
|
35
|
+
<!-- <scroll-view
|
|
36
|
+
style="height: calc(100vh - 68px);"
|
|
37
|
+
scroll-y="true"
|
|
38
|
+
:scroll-top="scrollTop"
|
|
39
|
+
refresher-enabled="true"
|
|
40
|
+
:refresher-triggered="triggered"
|
|
41
|
+
@scrolltolower="scrollToLower"
|
|
42
|
+
@refresherrefresh="refresherrefresh"
|
|
43
|
+
> -->
|
|
44
|
+
|
|
45
|
+
<view v-if="type == 0" class="orderList">
|
|
46
|
+
<view
|
|
47
|
+
v-if="orderList.length > 0 && !isFirstLoading"
|
|
48
|
+
v-for="(value, index) in orderList"
|
|
49
|
+
:key="value.id"
|
|
50
|
+
hover-class="hoverActive"
|
|
51
|
+
|
|
52
|
+
class="item"
|
|
53
|
+
>
|
|
54
|
+
<view>
|
|
55
|
+
<view class="top">
|
|
56
|
+
<text>{{ value.createdAt }}</text>
|
|
57
|
+
</view>
|
|
58
|
+
<scroll-view
|
|
59
|
+
scroll-x="true"
|
|
60
|
+
scroll-with-animation
|
|
61
|
+
style="
|
|
62
|
+
width: 100%;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
height: 264rpx;
|
|
65
|
+
border-bottom: 1rpx dashed #f6f6f6;
|
|
66
|
+
"
|
|
67
|
+
>
|
|
68
|
+
<view v-for="(item,index) in value.item" :key="index" class="info">
|
|
69
|
+
<view
|
|
70
|
+
:style="{
|
|
71
|
+
backgroundSize:item.item.itemType == 'ItemType_Goods_GreetingCard' ? 'contain' : 'cover',
|
|
72
|
+
backgroundImage:
|
|
73
|
+
'url(' + formateUrl(item.item.itemCoverThumb) + ')',
|
|
74
|
+
}"
|
|
75
|
+
class="bgcCenter image"
|
|
76
|
+
>
|
|
77
|
+
<view class="count">x{{ item.item.itemNum }}</view>
|
|
78
|
+
</view>
|
|
79
|
+
<view class="over name">{{ item.item.name }}</view>
|
|
80
|
+
</view>
|
|
81
|
+
</scroll-view>
|
|
82
|
+
<!-- <view class="actionBtn">
|
|
83
|
+
<view class="realPay">
|
|
84
|
+
<text>合计: </text>
|
|
85
|
+
<text
|
|
86
|
+
style="
|
|
87
|
+
font-size: 28rpx;
|
|
88
|
+
color: #000000;
|
|
89
|
+
|
|
90
|
+
margin-left: 10rpx;
|
|
91
|
+
"
|
|
92
|
+
>¥{{ value.amount }}</text
|
|
93
|
+
>
|
|
94
|
+
</view>
|
|
95
|
+
</view> -->
|
|
96
|
+
</view>
|
|
97
|
+
</view>
|
|
98
|
+
</view>
|
|
99
|
+
|
|
100
|
+
<u-sticky bgColor="transparent">
|
|
101
|
+
|
|
102
|
+
<!-- :current="current" -->
|
|
103
|
+
</u-sticky>
|
|
104
|
+
|
|
105
|
+
<view v-if="type == 1" class="myOrderList">
|
|
106
|
+
<view
|
|
107
|
+
v-if="orderList.length > 0 && !isFirstLoading"
|
|
108
|
+
v-for="(value, index) in orderList"
|
|
109
|
+
:key="value.id"
|
|
110
|
+
hover-class="hoverActive"
|
|
111
|
+
@click="toDetail(value)"
|
|
112
|
+
class="item"
|
|
113
|
+
>
|
|
114
|
+
<view>
|
|
115
|
+
<view class="top">
|
|
116
|
+
<text>{{ value.createdAt }}</text>
|
|
117
|
+
<text style="color: #EB6E2A; font-weight: bold">{{
|
|
118
|
+
formateOrderStatus(value.state)
|
|
119
|
+
}}</text>
|
|
120
|
+
</view>
|
|
121
|
+
<view v-for="item in value.orderItem" :key="item.id" class="info">
|
|
122
|
+
<view
|
|
123
|
+
class="bgcCenter image"
|
|
124
|
+
:style="{
|
|
125
|
+
backgroundImage: 'url(' + formateUrl(item.itemCoverThumb) + ')',
|
|
126
|
+
}"
|
|
127
|
+
>
|
|
128
|
+
</view>
|
|
129
|
+
<!-- @click.stop.prevent="" -->
|
|
130
|
+
<view class="centerInfo">
|
|
131
|
+
<view class="title">{{ item.name }}</view>
|
|
132
|
+
<!-- <view class="type">
|
|
133
|
+
<view class="over">{{ item.itemName }}</view>
|
|
134
|
+
</view> -->
|
|
135
|
+
<view class="money">
|
|
136
|
+
<text style="color: #505050; font-size: 24rpx; font-weight: 200"
|
|
137
|
+
>x{{ item.num }}</text
|
|
138
|
+
>
|
|
139
|
+
</view>
|
|
140
|
+
</view>
|
|
141
|
+
</view>
|
|
142
|
+
</view>
|
|
143
|
+
<view class="actionBtn">
|
|
144
|
+
<view class="btn">
|
|
145
|
+
<!-- <view @click.stop.prevent="copy(value.id)" style="display: flex;
|
|
146
|
+
align-items: center;">
|
|
147
|
+
订单号:<text style="text-decoration: underline;">{{ value.id}}</text>
|
|
148
|
+
</view> -->
|
|
149
|
+
<view class="seeDetail">查看详情</view>
|
|
150
|
+
<!-- <view>
|
|
151
|
+
<button open-type="contact">
|
|
152
|
+
<view class="see"> 联系客服 </view>
|
|
153
|
+
</button>
|
|
154
|
+
</view> -->
|
|
155
|
+
|
|
156
|
+
<!-- <view
|
|
157
|
+
v-if="value.state == 'OrderState_UnDeliver' && value.type == 'OrderType_Shop'"
|
|
158
|
+
hover-stop-propagation="true"
|
|
159
|
+
@click.stop.prevent="cancelOrder(value)"
|
|
160
|
+
class="see"
|
|
161
|
+
>
|
|
162
|
+
取消订单
|
|
163
|
+
|
|
164
|
+
</view
|
|
165
|
+
>
|
|
166
|
+
<view
|
|
167
|
+
v-if="value.state == 'OrderState_UnReceive'"
|
|
168
|
+
hover-stop-propagation="true"
|
|
169
|
+
@click.stop.prevent="confirmRecieveOrder(value)"
|
|
170
|
+
class="confirm"
|
|
171
|
+
>确认收货</view
|
|
172
|
+
> -->
|
|
173
|
+
</view>
|
|
174
|
+
</view>
|
|
175
|
+
</view>
|
|
176
|
+
</view>
|
|
177
|
+
|
|
178
|
+
<!-- </scroll-view> -->
|
|
179
|
+
|
|
180
|
+
<view v-if="!isFirstLoading && orderList.length == 0" class="noData">
|
|
181
|
+
<image src="https://img.shinemang.com/static/noData.png" mode="scaleToFill" />
|
|
182
|
+
<view>没有相关记录</view>
|
|
183
|
+
|
|
184
|
+
<!-- <view @click="toShop" class="toShop">去逛逛</view> -->
|
|
185
|
+
</view>
|
|
186
|
+
</view>
|
|
187
|
+
</template>
|
|
188
|
+
|
|
189
|
+
<script>
|
|
190
|
+
import {
|
|
191
|
+
fetchMyOrderList,
|
|
192
|
+
fetchCancelOrder,
|
|
193
|
+
fetchConfirmOrder,
|
|
194
|
+
fetchSopRefund,
|
|
195
|
+
fetchWinningRecord,
|
|
196
|
+
} from "@/utils/fetch";
|
|
197
|
+
import { formateServerUrl, reportMessage } from "@/utils";
|
|
198
|
+
import { computed } from "uview-ui/libs/mixin/mixin";
|
|
199
|
+
import icon from "uview-ui/libs/config/props/icon";
|
|
200
|
+
import Header from "@/components/header/header.vue";
|
|
201
|
+
export default {
|
|
202
|
+
data() {
|
|
203
|
+
return {
|
|
204
|
+
type: 0,
|
|
205
|
+
tabsList: [
|
|
206
|
+
{
|
|
207
|
+
name: "中奖记录",
|
|
208
|
+
status: "OrderState_Nil",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "发货记录",
|
|
212
|
+
status: "OrderState_UnDeliver",
|
|
213
|
+
},
|
|
214
|
+
// {
|
|
215
|
+
// name: "待收货",
|
|
216
|
+
// status: "OrderState_UnReceive",
|
|
217
|
+
// },
|
|
218
|
+
// {
|
|
219
|
+
// name: "已完成",
|
|
220
|
+
// status: "OrderState_Finished",
|
|
221
|
+
// },
|
|
222
|
+
],
|
|
223
|
+
scrollTop: 0,
|
|
224
|
+
triggered: false,
|
|
225
|
+
|
|
226
|
+
orderState: "OrderState_Nil",
|
|
227
|
+
pageNo: 1,
|
|
228
|
+
pageSize: 10,
|
|
229
|
+
orderList: [],
|
|
230
|
+
isFirstLoading: true,
|
|
231
|
+
current: 0,
|
|
232
|
+
hasMore: true,
|
|
233
|
+
firstShowNum: 5,
|
|
234
|
+
orderTypes: [
|
|
235
|
+
{
|
|
236
|
+
name: "全部",
|
|
237
|
+
status: "OrderState_Nil",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: "待发货",
|
|
241
|
+
status: "OrderState_UnDeliver",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: "待收货",
|
|
245
|
+
status: "OrderState_UnReceive",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "已完成",
|
|
249
|
+
status: "OrderState_Finished",
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
components: {
|
|
255
|
+
Header
|
|
256
|
+
// login,
|
|
257
|
+
},
|
|
258
|
+
onLoad(options) {
|
|
259
|
+
if (options.type) {
|
|
260
|
+
this.type = Number(options.type);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (this.type == 0) {
|
|
264
|
+
this.getPayList();
|
|
265
|
+
} else {
|
|
266
|
+
if (options.state) {
|
|
267
|
+
this.orderState = options.state;
|
|
268
|
+
this.current = this.tabsList.findIndex(
|
|
269
|
+
(item) => item.status == this.orderState
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
this.getOrderList();
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
computed: {},
|
|
276
|
+
methods: {
|
|
277
|
+
copy(id){
|
|
278
|
+
uni.setClipboardData({
|
|
279
|
+
data: id,
|
|
280
|
+
success: function () {
|
|
281
|
+
uni.showToast({
|
|
282
|
+
title: '复制成功',
|
|
283
|
+
icon: 'none'
|
|
284
|
+
})
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
},
|
|
288
|
+
getPayList() {
|
|
289
|
+
fetchWinningRecord({
|
|
290
|
+
page: this.pageNo,
|
|
291
|
+
page_size: this.pageSize,
|
|
292
|
+
}).then((res) => {
|
|
293
|
+
this.orderList =
|
|
294
|
+
this.pageNo == 1 ? res.list : this.orderList.concat(res.list);
|
|
295
|
+
if (res.list && res.list.length < this.pageSize) {
|
|
296
|
+
this.hasMore = false;
|
|
297
|
+
} else {
|
|
298
|
+
this.hasMore = true;
|
|
299
|
+
}
|
|
300
|
+
this.isFirstLoading = false;
|
|
301
|
+
});
|
|
302
|
+
},
|
|
303
|
+
changeType(e) {
|
|
304
|
+
console.log(e);
|
|
305
|
+
this.isFirstLoading = true
|
|
306
|
+
this.hasMore = true;
|
|
307
|
+
this.type = e.index;
|
|
308
|
+
uni.pageScrollTo({
|
|
309
|
+
scrollTop: 0,
|
|
310
|
+
duration: 0,
|
|
311
|
+
});
|
|
312
|
+
this.pageNo = 1;
|
|
313
|
+
this.list = [];
|
|
314
|
+
|
|
315
|
+
if (this.type == 0) {
|
|
316
|
+
this.getPayList();
|
|
317
|
+
} else {
|
|
318
|
+
this.getOrderList();
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
getShowItems(value) {
|
|
322
|
+
if (value.showAll) return value.orderItem;
|
|
323
|
+
return value.orderItem.length > this.firstShowNum
|
|
324
|
+
? value.orderItem.slice(0, this.firstShowNum)
|
|
325
|
+
: value.orderItem;
|
|
326
|
+
},
|
|
327
|
+
showAll(value, index) {
|
|
328
|
+
value.showAll = !value.showAll;
|
|
329
|
+
this.orderList = [...this.orderList];
|
|
330
|
+
},
|
|
331
|
+
toShop() {
|
|
332
|
+
uni.switchTab({
|
|
333
|
+
url: "/pages/vip/vip",
|
|
334
|
+
});
|
|
335
|
+
},
|
|
336
|
+
formateUrl(url) {
|
|
337
|
+
return formateServerUrl(url);
|
|
338
|
+
},
|
|
339
|
+
|
|
340
|
+
formateOrderStatus(status) {
|
|
341
|
+
if (status == "OrderState_UnPay") {
|
|
342
|
+
return "待付款";
|
|
343
|
+
} else if (status == "OrderState_UnPayTail") {
|
|
344
|
+
return "待支付尾款";
|
|
345
|
+
} else if (status == "OrderState_UnDeliver") {
|
|
346
|
+
return "待发货";
|
|
347
|
+
} else if (status == "OrderState_UnReceive") {
|
|
348
|
+
return "待收货";
|
|
349
|
+
} else if (status == "OrderState_Finished") {
|
|
350
|
+
return "已完成";
|
|
351
|
+
} else if (status == "OrderState_AdminClose") {
|
|
352
|
+
// 管理员关闭
|
|
353
|
+
return "已关闭";
|
|
354
|
+
} else if (status == "OrderState_UserClose") {
|
|
355
|
+
// 用户关闭
|
|
356
|
+
return "已关闭";
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
|
|
360
|
+
cancelOrder(value) {
|
|
361
|
+
if (value.type == "OrderType_Shop") {
|
|
362
|
+
fetchSopRefund({
|
|
363
|
+
id: value.shopOrderId,
|
|
364
|
+
}).then((res) => {
|
|
365
|
+
uni.showToast({
|
|
366
|
+
title: "取消成功",
|
|
367
|
+
icon: "none",
|
|
368
|
+
});
|
|
369
|
+
this.pageNo = 1;
|
|
370
|
+
this.getOrderList();
|
|
371
|
+
});
|
|
372
|
+
} else {
|
|
373
|
+
fetchCancelOrder({
|
|
374
|
+
id: value.id,
|
|
375
|
+
}).then((res) => {
|
|
376
|
+
uni.showToast({
|
|
377
|
+
title: "取消成功",
|
|
378
|
+
icon: "none",
|
|
379
|
+
});
|
|
380
|
+
this.pageNo = 1;
|
|
381
|
+
this.getOrderList();
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
confirmRecieveOrder(value) {
|
|
386
|
+
fetchConfirmOrder({
|
|
387
|
+
id: value.id,
|
|
388
|
+
}).then((res) => {
|
|
389
|
+
this.pageNo = 1;
|
|
390
|
+
this.getOrderList();
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
|
|
394
|
+
getOrderList() {
|
|
395
|
+
fetchMyOrderList({
|
|
396
|
+
page: this.pageNo,
|
|
397
|
+
pageSize: this.pageSize,
|
|
398
|
+
type: "OrderType_Nil",
|
|
399
|
+
state: this.orderState,
|
|
400
|
+
}).then((res) => {
|
|
401
|
+
this.orderList =
|
|
402
|
+
this.pageNo == 1 ? res.list : this.orderList.concat(res.list);
|
|
403
|
+
|
|
404
|
+
if (res.list && res.list.length < this.pageSize) {
|
|
405
|
+
this.hasMore = false;
|
|
406
|
+
} else {
|
|
407
|
+
this.hasMore = true;
|
|
408
|
+
}
|
|
409
|
+
this.isFirstLoading = false;
|
|
410
|
+
});
|
|
411
|
+
},
|
|
412
|
+
refresherrefresh({ done }) {
|
|
413
|
+
if (!this.triggered) {
|
|
414
|
+
this.triggered = true;
|
|
415
|
+
setTimeout(() => {
|
|
416
|
+
this.triggered = false;
|
|
417
|
+
}, 5000);
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
scrollToLower() {
|
|
421
|
+
console.log("scrollToLower");
|
|
422
|
+
},
|
|
423
|
+
toLogistics() {},
|
|
424
|
+
toDetail(value) {
|
|
425
|
+
reportMessage("集好运-点击中奖记录界面-订单详情");
|
|
426
|
+
uni.navigateTo({
|
|
427
|
+
url: "/subpackages/myOrderDetail/myOrderDetail?id=" + value.id,
|
|
428
|
+
});
|
|
429
|
+
},
|
|
430
|
+
changeStatus(value) {
|
|
431
|
+
if (value.status == this.orderState) return;
|
|
432
|
+
this.orderState = value.status;
|
|
433
|
+
this.pageNo = 1;
|
|
434
|
+
uni.pageScrollTo({
|
|
435
|
+
scrollTop: 0,
|
|
436
|
+
duration: 0,
|
|
437
|
+
});
|
|
438
|
+
this.getOrderList();
|
|
439
|
+
|
|
440
|
+
// console.log(e,"sdjfsjflsjdfljsdf");
|
|
441
|
+
// this.triggered = false;
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
onShow() {
|
|
445
|
+
// const refreshOrder = uni.getStorageSync("refreshOrder");
|
|
446
|
+
// if (refreshOrder && refreshOrder == 1) {
|
|
447
|
+
// this.pageNo = 1;
|
|
448
|
+
// this.getOrderList();
|
|
449
|
+
// uni.removeStorageSync("refreshOrder");
|
|
450
|
+
// }
|
|
451
|
+
},
|
|
452
|
+
onShareAppMessage() {},
|
|
453
|
+
onShareTimeline() {},
|
|
454
|
+
|
|
455
|
+
onReachBottom() {
|
|
456
|
+
if (this.hasMore) {
|
|
457
|
+
this.pageNo++;
|
|
458
|
+
if (this.type == 0) {
|
|
459
|
+
this.getPayList();
|
|
460
|
+
} else {
|
|
461
|
+
this.getOrderList();
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
console.log("onReachBottom");
|
|
465
|
+
},
|
|
466
|
+
};
|
|
467
|
+
</script>
|
|
468
|
+
|
|
469
|
+
<style lang="less" scoped>
|
|
470
|
+
page {
|
|
471
|
+
min-height: 100vh;
|
|
472
|
+
background-color: #f6f6f6 !important;
|
|
473
|
+
}
|
|
474
|
+
.orderContent {
|
|
475
|
+
/deep/ .u-sticky__content {
|
|
476
|
+
background-color: #f6f6f6 !important;
|
|
477
|
+
}
|
|
478
|
+
.noData {
|
|
479
|
+
text-align: center;
|
|
480
|
+
margin-top: 48rpx;
|
|
481
|
+
color: #999999;
|
|
482
|
+
font-size: 28rpx;
|
|
483
|
+
image {
|
|
484
|
+
width: 370rpx;
|
|
485
|
+
height: 368rpx;
|
|
486
|
+
}
|
|
487
|
+
view {
|
|
488
|
+
margin-top: -10rpx;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.toShop {
|
|
492
|
+
width: 322rpx;
|
|
493
|
+
height: 80rpx;
|
|
494
|
+
background: #7c66ff;
|
|
495
|
+
border-radius: 864rpx 864rpx 864rpx 864rpx;
|
|
496
|
+
display: flex;
|
|
497
|
+
align-items: center;
|
|
498
|
+
justify-content: center;
|
|
499
|
+
color: #fff;
|
|
500
|
+
font-size: 32rpx;
|
|
501
|
+
margin: auto;
|
|
502
|
+
margin-top: 40rpx;
|
|
503
|
+
line-height: 80rpx;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.listContent {
|
|
508
|
+
height: calc(100% - 56px);
|
|
509
|
+
width: 100%;
|
|
510
|
+
overflow-y: scroll;
|
|
511
|
+
position: absolute;
|
|
512
|
+
}
|
|
513
|
+
.myOrderListContent {
|
|
514
|
+
position: absolute;
|
|
515
|
+
width: 100%;
|
|
516
|
+
height: calc(100% - 56px - 68rpx);
|
|
517
|
+
overflow-y: scroll;
|
|
518
|
+
}
|
|
519
|
+
.orderList {
|
|
520
|
+
padding: 24rpx 32rpx;
|
|
521
|
+
padding-top: 16rpx;
|
|
522
|
+
|
|
523
|
+
overflow-y: scroll;
|
|
524
|
+
|
|
525
|
+
// padding-bottom: 0;
|
|
526
|
+
.item {
|
|
527
|
+
width: 100%;
|
|
528
|
+
height: 345rpx;
|
|
529
|
+
background: #fff;
|
|
530
|
+
padding: 0rpx 24rpx;
|
|
531
|
+
margin-bottom: 16rpx;
|
|
532
|
+
|
|
533
|
+
border-bottom: 1rpx dashed #f6f6f6;
|
|
534
|
+
|
|
535
|
+
&:last-child {
|
|
536
|
+
margin-bottom: 32rpx;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
border-radius: 24rpx;
|
|
540
|
+
.top {
|
|
541
|
+
height: 80rpx;
|
|
542
|
+
color: #505050;
|
|
543
|
+
display: flex;
|
|
544
|
+
width: 100%;
|
|
545
|
+
line-height: 80rpx;
|
|
546
|
+
|
|
547
|
+
align-items: center;
|
|
548
|
+
border-bottom: 1rpx dashed #f6f6f6;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.info {
|
|
552
|
+
padding-top: 24rpx;
|
|
553
|
+
width: 176rpx;
|
|
554
|
+
display: inline-block;
|
|
555
|
+
margin-right: 8rpx;
|
|
556
|
+
&:last-child {
|
|
557
|
+
margin-right: 0;
|
|
558
|
+
}
|
|
559
|
+
// gap: 28rpx;
|
|
560
|
+
> .image {
|
|
561
|
+
width: 176rpx;
|
|
562
|
+
height: 176rpx;
|
|
563
|
+
border-radius: 16rpx;
|
|
564
|
+
position: relative;
|
|
565
|
+
.count {
|
|
566
|
+
position: absolute;
|
|
567
|
+
right: 8rpx;
|
|
568
|
+
bottom: 8rpx;
|
|
569
|
+
background: rgba(0, 0, 0, 0.5);
|
|
570
|
+
border-radius: 16rpx;
|
|
571
|
+
// padding: 0 14rpx;
|
|
572
|
+
width: 48rpx;
|
|
573
|
+
height: 32rpx;
|
|
574
|
+
color: #fff;
|
|
575
|
+
font-size: 24rpx;
|
|
576
|
+
line-height: 32rpx;
|
|
577
|
+
display: flex;
|
|
578
|
+
align-items: center;
|
|
579
|
+
justify-content: center;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
.name {
|
|
583
|
+
font-size: 24rpx;
|
|
584
|
+
color: 24rpx;
|
|
585
|
+
font-weight: 600;
|
|
586
|
+
margin-top: 8rpx;
|
|
587
|
+
text-align: center;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.actionBtn {
|
|
592
|
+
margin-top: 17rpx;
|
|
593
|
+
font-size: 24rpx;
|
|
594
|
+
font-weight: bold;
|
|
595
|
+
.realPay {
|
|
596
|
+
text-align: right;
|
|
597
|
+
display: flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
justify-content: flex-end;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.subTabs {
|
|
606
|
+
display: flex;
|
|
607
|
+
padding-left: 32rpx;
|
|
608
|
+
padding-top: 10rpx;
|
|
609
|
+
padding-bottom: 10rpx;
|
|
610
|
+
.item {
|
|
611
|
+
width: 120rpx;
|
|
612
|
+
height: 48rpx;
|
|
613
|
+
background: rgba(80, 80, 80, 0.1);
|
|
614
|
+
border-radius: 28rpx 28rpx 28rpx 28rpx;
|
|
615
|
+
color: #505050;
|
|
616
|
+
font-size: 24rpx;
|
|
617
|
+
display: flex;
|
|
618
|
+
line-height: 48rpx;
|
|
619
|
+
|
|
620
|
+
align-items: center;
|
|
621
|
+
justify-content: center;
|
|
622
|
+
margin-right: 16rpx;
|
|
623
|
+
&.active {
|
|
624
|
+
background: linear-gradient( 90deg, #0BD690 0%, #00B0E0 100%);;
|
|
625
|
+
color: #fff;
|
|
626
|
+
}
|
|
627
|
+
&:last-child {
|
|
628
|
+
margin-right: 0;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.myOrderList {
|
|
634
|
+
padding: 0 32rpx;
|
|
635
|
+
padding-top: 16rpx;
|
|
636
|
+
padding-bottom: 24rpx;
|
|
637
|
+
|
|
638
|
+
// padding-bottom: 0;
|
|
639
|
+
.item {
|
|
640
|
+
width:100%;
|
|
641
|
+
// height: 432rpx;
|
|
642
|
+
padding: 0rpx 24rpx;
|
|
643
|
+
margin-bottom: 16rpx;
|
|
644
|
+
|
|
645
|
+
&:last-child {
|
|
646
|
+
margin-bottom: 32rpx;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
background: #fff;
|
|
650
|
+
border-radius: 24rpx;
|
|
651
|
+
.top {
|
|
652
|
+
height: 80rpx;
|
|
653
|
+
color: #505050;
|
|
654
|
+
font-size: 24rpx;
|
|
655
|
+
display: flex;
|
|
656
|
+
width: 100%;
|
|
657
|
+
line-height: 80rpx;
|
|
658
|
+
justify-content: space-between;
|
|
659
|
+
align-items: center;
|
|
660
|
+
border-bottom: 1rpx dashed #f6f6f6;
|
|
661
|
+
}
|
|
662
|
+
.info {
|
|
663
|
+
padding-top: 24rpx;
|
|
664
|
+
display: flex;
|
|
665
|
+
border-bottom: 1rpx dashed #f6f6f6;
|
|
666
|
+
padding-bottom: 24rpx;
|
|
667
|
+
align-items: center;
|
|
668
|
+
// gap: 28rpx;
|
|
669
|
+
> .image {
|
|
670
|
+
width: 128rpx;
|
|
671
|
+
height: 128rpx;
|
|
672
|
+
border-radius: 16rpx;
|
|
673
|
+
margin-right: 24rpx;
|
|
674
|
+
}
|
|
675
|
+
.centerInfo {
|
|
676
|
+
width: 485rpx;
|
|
677
|
+
.title {
|
|
678
|
+
font-weight: bold;
|
|
679
|
+
|
|
680
|
+
font-size: 28rpx;
|
|
681
|
+
/* color: #333333; */
|
|
682
|
+
line-height: 36rpx;
|
|
683
|
+
overflow: hidden;
|
|
684
|
+
text-overflow: ellipsis;
|
|
685
|
+
display: -webkit-box;
|
|
686
|
+
-webkit-line-clamp: 2;
|
|
687
|
+
-webkit-box-orient: vertical;
|
|
688
|
+
// margin-top: 20rpx;
|
|
689
|
+
margin-bottom: 16rpx;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.money {
|
|
693
|
+
font-weight: bold;
|
|
694
|
+
|
|
695
|
+
font-size: 24rpx;
|
|
696
|
+
margin-top: 16rpx;
|
|
697
|
+
display: flex;
|
|
698
|
+
justify-content: space-between;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.actionBtn {
|
|
704
|
+
display: flex;
|
|
705
|
+
justify-content: space-between;
|
|
706
|
+
align-items: center;
|
|
707
|
+
width: 100%;
|
|
708
|
+
.btn {
|
|
709
|
+
// margin-top: 20rpx;
|
|
710
|
+
// height: 96rpx;
|
|
711
|
+
padding: 24rpx 0;
|
|
712
|
+
display: flex;
|
|
713
|
+
align-items: center;
|
|
714
|
+
justify-content: flex-end;
|
|
715
|
+
width: 100%;
|
|
716
|
+
// gap: 10rpx;
|
|
717
|
+
> view {
|
|
718
|
+
margin-right: 10rpx;
|
|
719
|
+
&:last-child {
|
|
720
|
+
margin-right: 0;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.seeDetail {
|
|
725
|
+
width: 160rpx;
|
|
726
|
+
height: 48rpx;
|
|
727
|
+
border-radius: 28rpx 28rpx 28rpx 28rpx;
|
|
728
|
+
border: 2rpx solid #13B77F;
|
|
729
|
+
color: #13B77F;
|
|
730
|
+
font-size: 24rpx;
|
|
731
|
+
display: flex;
|
|
732
|
+
align-items: center;
|
|
733
|
+
font-weight: bold;
|
|
734
|
+
justify-content: center;
|
|
735
|
+
line-height: 48rpx;
|
|
736
|
+
}
|
|
737
|
+
button {
|
|
738
|
+
border-radius: 864rpx 864rpx 864rpx 864rpx;
|
|
739
|
+
width: 160rpx;
|
|
740
|
+
height: 48rpx;
|
|
741
|
+
border: none;
|
|
742
|
+
display: flex;
|
|
743
|
+
align-items: center;
|
|
744
|
+
justify-content: center;
|
|
745
|
+
font-size: 28rpx;
|
|
746
|
+
margin: 0;
|
|
747
|
+
line-height: 48rpx;
|
|
748
|
+
padding: 0;
|
|
749
|
+
background-color: transparent;
|
|
750
|
+
}
|
|
751
|
+
.see {
|
|
752
|
+
border-radius: 864rpx 864rpx 864rpx 864rpx;
|
|
753
|
+
width: 168rpx;
|
|
754
|
+
height: 62rpx;
|
|
755
|
+
border: 2rpx solid #d6d6d6;
|
|
756
|
+
display: flex;
|
|
757
|
+
align-items: center;
|
|
758
|
+
justify-content: center;
|
|
759
|
+
font-size: 28rpx;
|
|
760
|
+
line-height: 62rpx;
|
|
761
|
+
}
|
|
762
|
+
.confirm {
|
|
763
|
+
border-radius: 864rpx 864rpx 864rpx 864rpx;
|
|
764
|
+
width: 168rpx;
|
|
765
|
+
height: 62rpx;
|
|
766
|
+
background: #7c66ff;
|
|
767
|
+
display: flex;
|
|
768
|
+
align-items: center;
|
|
769
|
+
color: #fff;
|
|
770
|
+
justify-content: center;
|
|
771
|
+
font-size: 28rpx;
|
|
772
|
+
line-height: 62rpx;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
</style>
|