|
|
@@ -2,7 +2,7 @@
|
|
2
|
2
|
import { useUserStore } from "~/stores/userStore";
|
|
3
|
3
|
import CXBAuthorize from "~/components/CXBAuthorize/CXBAuthorize.vue";
|
|
4
|
4
|
import { getAgentInfo, getUserInfo } from "~/apis/user";
|
|
5
|
|
-import { CDN_URL } from "~/config/app";
|
|
|
5
|
+import { CDN_URL,CDM_URL } from "~/config/app";
|
|
6
|
6
|
import Routine from "~/libs/routine";
|
|
7
|
7
|
import { totalOrderNumber } from "~/apis/order.api";
|
|
8
|
8
|
import type { OrderQuantityModel } from "~/apis/model/order.model";
|
|
|
@@ -55,6 +55,10 @@ const contactUsList = [{
|
|
55
|
55
|
//市/区代表弹框标识
|
|
56
|
56
|
const showValue = ref(false)
|
|
57
|
57
|
|
|
|
58
|
+//https://cdn.bjtdba.com/vod/image/2023-11-24/20231124154421388.png
|
|
|
59
|
+
|
|
|
60
|
+
|
|
|
61
|
+//https://cdn.bjtdba.com/vod/image/2023-11-24/20231124154612477.png
|
|
58
|
62
|
|
|
59
|
63
|
const myServiceList = [{
|
|
60
|
64
|
icon: CDN_URL + '/static/assets/wodeyaoqing_220620.png',
|
|
|
@@ -241,38 +245,39 @@ function handleShowMyAllOrder(tab?: number) {
|
|
241
|
245
|
|
|
242
|
246
|
const userType = computed(() => {
|
|
243
|
247
|
const userRichType = userStore.userInfo?.user_rich_type
|
|
|
248
|
+
|
|
244
|
249
|
// console.log(userStore.userInfo)
|
|
245
|
250
|
// 普通用户
|
|
246
|
251
|
if (userRichType == 0) {
|
|
247
|
252
|
|
|
248
|
|
- return ['../../static/img-hy/用户.png']
|
|
|
253
|
+ return '../../static/img-hy/用户.png'
|
|
249
|
254
|
}
|
|
250
|
255
|
// 会员
|
|
251
|
256
|
if (userRichType == 1) {
|
|
252
|
257
|
|
|
253
|
|
- return ['../../static/img-hy/会员.png']
|
|
|
258
|
+ return '../../static/img-hy/会员.png'
|
|
254
|
259
|
|
|
255
|
260
|
}
|
|
256
|
261
|
if (userRichType == 3) {
|
|
257
|
262
|
|
|
258
|
|
- return ['../../static/img-hy/创始人.png']
|
|
|
263
|
+ return '../../static/img-hy/创始人.png'
|
|
259
|
264
|
}
|
|
260
|
265
|
// 高级会员
|
|
261
|
266
|
if (userRichType == 4) {
|
|
262
|
267
|
|
|
263
|
|
- return ['../../static/img-hy/高级会员.png']
|
|
|
268
|
+ return '../../static/img-hy/高级会员.png'
|
|
264
|
269
|
}
|
|
265
|
270
|
if (userRichType == 8) {
|
|
266
|
271
|
|
|
267
|
|
- return ['../../static/img-hy/合伙人.png']
|
|
|
272
|
+ return '../../static/img-hy/合伙人.png'
|
|
268
|
273
|
}
|
|
269
|
274
|
if (userRichType == 9) {
|
|
270
|
275
|
|
|
271
|
|
- return ['../../static/img-hy/联合创始人.png']
|
|
|
276
|
+ return '../../static/img-hy/联合创始人.png'
|
|
272
|
277
|
}
|
|
273
|
278
|
if (!userRichType) {
|
|
274
|
279
|
|
|
275
|
|
- return ['']
|
|
|
280
|
+ return ''
|
|
276
|
281
|
}
|
|
277
|
282
|
})
|
|
278
|
283
|
|
|
|
@@ -281,11 +286,11 @@ const AlholderType = computed(() => {
|
|
281
|
286
|
const stockholder = userStore.userInfo?.stockholder
|
|
282
|
287
|
// 普通用户
|
|
283
|
288
|
if (stockholder == 0) {
|
|
284
|
|
- return ['']
|
|
|
289
|
+ return ''
|
|
285
|
290
|
}
|
|
286
|
291
|
// 股东
|
|
287
|
292
|
if (stockholder == 1) {
|
|
288
|
|
- return ['../../static/img-hy/股东.png']
|
|
|
293
|
+ return '../../static/img-hy/股东.png'
|
|
289
|
294
|
}
|
|
290
|
295
|
|
|
291
|
296
|
})
|
|
|
@@ -295,15 +300,15 @@ const areaType = computed(() => {
|
|
295
|
300
|
const areamanage = userStore.userInfo?.area_manage_type
|
|
296
|
301
|
// 县/区代理
|
|
297
|
302
|
if (areamanage == 'district') {
|
|
298
|
|
- return ['../../static/img-hy/district.png']
|
|
|
303
|
+ return '../../static/img-hy/district.png'
|
|
299
|
304
|
}
|
|
300
|
305
|
// 市代理
|
|
301
|
306
|
if (areamanage == 'city') {
|
|
302
|
|
- return ['../../static/img-hy/city.png']
|
|
|
307
|
+ return '../../static/img-hy/city.png'
|
|
303
|
308
|
}
|
|
304
|
309
|
//普通用户
|
|
305
|
310
|
if (!areamanage) {
|
|
306
|
|
- return ['']
|
|
|
311
|
+ return ''
|
|
307
|
312
|
}
|
|
308
|
313
|
|
|
309
|
314
|
}
|
|
|
@@ -326,11 +331,11 @@ const backImg = computed(() => {
|
|
326
|
331
|
const areamanage = userStore.userInfo?.area_manage_type
|
|
327
|
332
|
// 县/区代理
|
|
328
|
333
|
if (areamanage == 'district') {
|
|
329
|
|
- return ['../../static/dl/xqdl.png']
|
|
|
334
|
+ return CDM_URL+'/image/2023-11-24/20231124154421388.png'
|
|
330
|
335
|
}
|
|
331
|
336
|
// 市代理
|
|
332
|
337
|
if (areamanage == 'city') {
|
|
333
|
|
- return ['../../static/dl/city.png']
|
|
|
338
|
+ return CDM_URL+'/image/2023-11-24/20231124154612477.png'
|
|
334
|
339
|
}
|
|
335
|
340
|
}
|
|
336
|
341
|
|
|
|
@@ -408,31 +413,31 @@ function handleShowMyRulePage() {
|
|
408
|
413
|
</div>
|
|
409
|
414
|
<div class="btm flex gap-1 px-1">
|
|
410
|
415
|
<!-- 用户 -->
|
|
411
|
|
- <div v-for="(item, index) in userType" :key="index" @click="handleShowMyRulePage()"
|
|
|
416
|
+ <div v-if="userType" @click="handleShowMyRulePage()"
|
|
412
|
417
|
class="flex rounded-full text-[12px] text-white w-12 h-5 w-fit px-1">
|
|
413
|
|
- <image class="vip_img" :src="item"></image>
|
|
|
418
|
+ <image lazy-load class="vip_img" :src="userType"></image>
|
|
414
|
419
|
</div>
|
|
415
|
420
|
<!-- 市区县代理 -->
|
|
416
|
|
- <div @click="openPopup" v-for="(item, index) in areaType" :key="index"
|
|
|
421
|
+ <div @click="openPopup" v-if="areaType"
|
|
417
|
422
|
class="flex rounded-full text-[12px] text-white w-12 h-5 w-fit px-1">
|
|
418
|
|
- <image class="vip_img" :src="item"></image>
|
|
|
423
|
+ <image lazy-load class="vip_img" :src="areaType"></image>
|
|
419
|
424
|
</div>
|
|
420
|
425
|
<!-- 股东 -->
|
|
421
|
|
- <div v-for="(item, index) in AlholderType" :key="index"
|
|
|
426
|
+ <div v-if="AlholderType"
|
|
422
|
427
|
class="flex rounded-full text-[12px] text-white w-12 h-5 w-fit px-1">
|
|
423
|
|
- <image class="vip_img" :src="item"></image>
|
|
|
428
|
+ <image lazy-load class="vip_img" :src="AlholderType"></image>
|
|
424
|
429
|
</div>
|
|
425
|
430
|
</div>
|
|
426
|
431
|
</div>
|
|
427
|
432
|
<FPopup v-model:show="showValue" position="center" exClass="box_2 ">
|
|
428
|
433
|
<div class="box_2 flex-row">
|
|
429
|
|
- <div class="box_2" v-for="(item, index) in backImg " :key="index">
|
|
430
|
|
- <image class="img_1" :src="item"></image>
|
|
|
434
|
+ <div class="box_2" v-if="backImg" >
|
|
|
435
|
+ <image lazy-load class="img_1" :src="backImg"></image>
|
|
431
|
436
|
</div>
|
|
432
|
437
|
<div class="group_2 flex-col lolr ">
|
|
433
|
438
|
<div class="div_box pong1 ">
|
|
434
|
439
|
<div class="blue_1">
|
|
435
|
|
- <image class="off_3" src="../../static/dl/DLqy.png" />
|
|
|
440
|
+ <image lazy-load class="off_3" src="../../static/img-hy/DLqy.png" />
|
|
436
|
441
|
<span class="pan">代理区域</span>
|
|
437
|
442
|
</div>
|
|
438
|
443
|
<div class="blue_2 height1 ">
|
|
|
@@ -441,7 +446,7 @@ function handleShowMyRulePage() {
|
|
441
|
446
|
</div>
|
|
442
|
447
|
<div class="div_box pong2 ">
|
|
443
|
448
|
<div class="blue_1">
|
|
444
|
|
- <image class="off_3" src="../../static/dl/QYDL.png" />
|
|
|
449
|
+ <image lazy-load class="off_3" src="../../static/img-hy/QYDL.png" />
|
|
445
|
450
|
<span class="pan">代理权益</span>
|
|
446
|
451
|
</div>
|
|
447
|
452
|
<div class="block_1 flex-col blue_2 height2 ">
|
|
|
@@ -454,7 +459,7 @@ function handleShowMyRulePage() {
|
|
454
|
459
|
</div>
|
|
455
|
460
|
</div>
|
|
456
|
461
|
<div @click="onCancel" class="off_1">
|
|
457
|
|
- <image class="off_2" src="../../static/dl/关闭.png" />
|
|
|
462
|
+ <image lazy-load class="off_2" src="../../static/img-hy/关闭.png" />
|
|
458
|
463
|
</div>
|
|
459
|
464
|
</FPopup>
|
|
460
|
465
|
|
|
|
@@ -635,7 +640,7 @@ page {
|
|
635
|
640
|
}
|
|
636
|
641
|
|
|
637
|
642
|
.pan {
|
|
638
|
|
- font-size: 14rpx;
|
|
|
643
|
+ font-size: 28rpx;
|
|
639
|
644
|
margin-left: 10rpx;
|
|
640
|
645
|
font-family: SourceHanSansCN, SourceHanSansCN;
|
|
641
|
646
|
font-weight: 500;
|