dxz1228 2 年之前
父节点
当前提交
a047ab3d51

+ 8 - 8
src/components/CXBBackTop/CXBBackTop.vue

@@ -49,26 +49,26 @@ const scrollToTop = function () {
49 49
 
50 50
 <style scoped>
51 51
 .backtop1{
52
-  width: 40px;
53
-  height: 40px;
52
+  width: 100rpx;
53
+  height: 100rpx;
54 54
   position: fixed;
55 55
   border-radius: 50%;
56 56
   z-index: 999;
57
-  right: 15px;
57
+  right: 1%;
58 58
   bottom: 8%;
59 59
 }
60 60
 .backtop2{
61
-  width: 40px;
62
-  height: 40px;
61
+  width: 100rpx;
62
+  height: 100rpx;
63 63
   position: fixed;
64 64
   border-radius: 50%;
65 65
   z-index: 999;
66
-  right: 15px;
66
+  right: 1%;
67 67
   bottom: 14%;
68 68
 }
69 69
 .backTopImg{
70
-  width: 40px;
71
-  height: 40px;
70
+  width: 100rpx;
71
+  height: 100rpx;
72 72
   border-radius: 50%;
73 73
 }
74 74
 </style>

+ 15 - 9
src/components/CXBSkuPopup/CXBSkuPopup.vue

@@ -193,15 +193,15 @@ function handleCountChange(value) {
193 193
         </FButton>
194 194
 
195 195
       </div>
196
-      <div class="flex box_1 flex-row justify-between text-sm text-white gap-3 pr-3" v-if="isTo == 2">
197
-        <FButton @click="handleJiaCart" size="small"
198
-          :exClass="['bg-[#FFA319] rounded-full w-1/3 flex justify-center items-center h-9']" block>
196
+      <div class="flex box_1 flex-row justify-between text-sm text-white gap-3 " v-if="isTo == 2">
197
+        <button @click="handleJiaCart" size="small"
198
+          class="bg-[#FFA319] rounded-full w-60 flex justify-center items-center h-9 clor">
199 199
           加入购物车
200
-        </FButton>
201
-        <FButton @click="handleBuyNow" size="small"
202
-          :exClass="['bg-[#F94032] rounded-full w-1/3 flex justify-center items-center h-9']" block>
200
+        </button>
201
+        <button @click="handleBuyNow" size="small"
202
+          class="bg-[#F94032] rounded-full w-60 flex justify-center items-center h-9 clor ">
203 203
           立即购买
204
-        </FButton>
204
+        </button>
205 205
 
206 206
       </div>
207 207
     </div>
@@ -210,7 +210,13 @@ function handleCountChange(value) {
210 210
 </template>
211 211
 <style scoped>
212 212
 .box_1 {
213
-  margin-bottom: 40rpx;
214
-  border-top:1px solid #b6b9c0
213
+  padding-top: 10rpx;
214
+  padding-bottom: 30rpx;
215
+  border-top: 1px solid rgba(182, 185, 192, 50%);
216
+}
217
+
218
+.clor {
219
+  color: aliceblue;
220
+  font-size: 28rpx;
215 221
 }
216 222
 </style>

文件差异内容过多而无法显示
+ 1 - 887
src/pages.json


+ 53 - 29
src/pages/order_addcart/index.vue

@@ -54,13 +54,13 @@ const state = reactive({
54 54
   shareId: '',
55 55
   status: '',
56 56
 })
57
-let uniqueclone=ref('')
57
+let uniqueclone = ref('')
58 58
 const detail: any = ref(null)
59 59
 
60 60
 
61
-function onSelectedSku(currentSku : any ) {
62
-  console.log("item",currentSku);
63
-  
61
+function onSelectedSku(currentSku: any) {
62
+  console.log("item", currentSku);
63
+
64 64
   state.currentSku = currentSku
65 65
 
66 66
 }
@@ -95,12 +95,12 @@ function handleCreateShopping() {
95 95
     //     state.isShowSku = false
96 96
     //   }
97 97
     // }
98
-    
98
+
99 99
     if (res.status === 200) {
100 100
       state.isShowSku = false
101
-      console.log("修改后",state.currentSku);
102
-      console.log('我是uniqueclone',uniqueclone);
103
-      detail.value.unique=uniqueclone.value
101
+      console.log("修改后", state.currentSku);
102
+      console.log('我是uniqueclone', uniqueclone);
103
+      detail.value.unique = uniqueclone.value
104 104
     }
105 105
 
106 106
     uni.$on('cart-reload', () => {
@@ -285,8 +285,8 @@ function shopCheck(shopItem) {
285 285
 }
286 286
 
287 287
 function handleShopTitleClick(shopItem) {
288
-  console.log('shopItem',shopItem);
289
-  
288
+  console.log('shopItem', shopItem);
289
+
290 290
   if (shopItem.allCheck) {
291 291
     shopItem.list.forEach((good, index) => {
292 292
       good.check = true
@@ -340,7 +340,7 @@ function cartAllCheck(type: 'single' | 'all') {
340 340
         allArr.push(goods)
341 341
       }
342 342
     }
343
-    
343
+
344 344
     // 总金额|总数
345 345
     goods.list.forEach(goodItem => {
346 346
       if (goodItem.check) {
@@ -350,7 +350,7 @@ function cartAllCheck(type: 'single' | 'all') {
350 350
       }
351 351
     })
352 352
   })
353
-  
353
+
354 354
   isAllSelect.value = allArr.length === shopping.value?.list.length
355 355
   // state.totalCartCount = totalNum
356 356
   state.totalPrice = totalMoney
@@ -528,13 +528,13 @@ function openTestLog(element) {
528 528
   state.isShowSku = true
529 529
   state.changeSkuCart_id = element.cart_id
530 530
   console.log('用户点击sku', element.product_attr_unique)
531
-  uniqueclone.value=''
531
+  uniqueclone.value = ''
532 532
   getProductDetail(element.product_id).then(res => {
533
-    console.log('res>>>',res);
534
-    uniqueclone.value=element.product_attr_unique
533
+    console.log('res>>>', res);
534
+    uniqueclone.value = element.product_attr_unique
535 535
     detail.value = res.data
536
-    detail.value.unique=uniqueclone.value
537
-    console.log(detail.value,'点击sku获取的商品信息,存储的detail')
536
+    detail.value.unique = uniqueclone.value
537
+    console.log(detail.value, '点击sku获取的商品信息,存储的detail')
538 538
     state.shareImage = detail.value.image
539 539
     if (res && res.mer_id && res.mer_id === '148') {
540 540
       if (detail.value && detail.value.price) {
@@ -566,7 +566,7 @@ function openTestLog(element) {
566 566
 </script>
567 567
 <template>
568 568
   <div class="">
569
-     <CXBBackTop :Scroll_X="Scroll_X"  :isCss="1" />
569
+    <CXBBackTop :Scroll_X="Scroll_X" :isCss="1" />
570 570
     <div v-if="hasShopping" class="bg-white h-10 fixed top-0 w-full z-1 flex justify-end ">
571 571
       <div class="pr-3">
572 572
         <FButton size="small" @click="handleManageCart">
@@ -608,9 +608,16 @@ function openTestLog(element) {
608 608
               <div @click="handleProductItemClick(goodItem)" class="  text-overflow line-clamp-1 text-xs">{{
609 609
                 goodItem.product.store_name }}</div>
610 610
               <div class="flex flex-col justify-start gap-1">
611
-                <div class="text-[10px] text-gray min-w-5  p-1  items-center flex "
612
-                  v-if="goodItem.productAttr.sku" @click="openTestLog(goodItem)">
613
-                  <div class="skushadow" >{{ goodItem.productAttr.sku }} <span class="m-lift" >v</span> </div>
611
+                <div class="text-[10px] text-gray min-w-5  p-1  items-center flex " v-if="goodItem.productAttr.sku"
612
+                  @click="openTestLog(goodItem)">
613
+                  <div class="skushadow">
614
+                    <span class="m-live">
615
+                      {{ goodItem.productAttr.sku }}
616
+                    </span>
617
+                    <span class="m-lift">
618
+                      <img class="thumbnail_1" referrerpolicy="no-referrer" src="../../static/icon/下拉.png" />
619
+                    </span>
620
+                  </div>
614 621
                 </div>
615 622
                 <div class="flex">
616 623
                   <CXBYaojinTag :amount="goodItem.yanglao" />
@@ -628,7 +635,7 @@ function openTestLog(element) {
628 635
       </div>
629 636
     </div>
630 637
 
631
-    <div class="pb-12" v-if="!hasShopping" >
638
+    <div class="pb-12" v-if="!hasShopping">
632 639
       <div class="flex flex-row justify-center items-center gap-3 font-bold text-sm p-3 ">
633 640
         <image :src="like_adorn_220628Image" mode="widthFix" class="w-6 h-6"></image>
634 641
         <div>
@@ -657,8 +664,8 @@ function openTestLog(element) {
657 664
       </div>
658 665
     </div>
659 666
   </div>
660
-  <CXBSkuPopup  v-model:show="state.isShowSku" :detail="detail" @selected:item="onSelectedSku"
661
-    @submit="handleCreateShopping" @count-change="handleCountChange"   />
667
+  <CXBSkuPopup :isTo=1 v-model:show="state.isShowSku" :detail="detail" @selected:item="onSelectedSku"
668
+    @submit="handleCreateShopping" @count-change="handleCountChange" />
662 669
   <div v-if="hasShopping" class="fixed bottom-0 w-full z-3">
663 670
     <div class="bg-white h-10 flex justify-between" v-if="shopping && shopping.list">
664 671
       <div class="flex justify-center items-center gap-2 pl-3" @tap.stop="handleSelectAll">
@@ -689,13 +696,30 @@ page {
689 696
 .skushadow {
690 697
   background-color: rgb(240, 240, 240);
691 698
   border-radius: 10px;
692
-  height: 100%;
699
+  height: 38rpx;
700
+  line-height: 38rpx;
701
+  font-size: 28rpx;
702
+  color: #666666;
703
+  display: flex;
704
+}
705
+
706
+.m-live {
707
+  max-width: 350rpx;
708
+  margin-left: 4rpx;
709
+  margin-right: 4rpx;
710
+  overflow: hidden; /* 溢出内容隐藏 */
711
+  white-space: nowrap; /* 不换行 */
712
+  text-overflow: ellipsis; /* 超出部分显示省略号 */
713
+}
714
+
715
+.m-lift {
716
+  margin-left: 4rpx;
717
+  margin-right: 4rpx;
693 718
 }
694 719
 
695
-.m-lift{
696
-  margin-left: 2px;
697
-  margin-right:1px;
698
-  color: black;
720
+.thumbnail_1 {
721
+  width: 24rpx;
722
+  height: 14rpx;
699 723
 }
700 724
 </style>
701 725
 <route lang="yaml">

+ 5 - 5
src/pages/store/nearby/index.vue

@@ -362,18 +362,18 @@ page {
362 362
   --nut-menu-item-active-text-color: #FE0032;
363 363
 
364 364
   .back-top {
365
-    width: 40px;
366
-    height: 40px;
365
+    width: 100rpx;
366
+    height: 100rpx;
367 367
     position: fixed;
368 368
     border-radius: 50%;
369 369
     z-index: 999;
370
-    right: 15px;
370
+    right: 1%;
371 371
     bottom: 60px;
372 372
   }
373 373
 
374 374
   .back-TopImg {
375
-    width: 40px;
376
-    height: 40px;
375
+    width: 100rpx;
376
+    height: 100rpx;
377 377
     border-radius: 50%;
378 378
   }
379 379
 

+ 9 - 2
src/pages/store/product/detail.vue

@@ -15,7 +15,7 @@ import {
15 15
   TaobaoProductThirdPartyWaresModel, VipProductModel
16 16
 } from "~/apis/model/product.model";
17 17
 import { DcProductModel } from "~/apis/model/dacang.model";
18
-import { CDN_URL } from "~/config/app";
18
+import { CDN_URL,CDM_URL } from "~/config/app";
19 19
 import dayjs from "dayjs";
20 20
 import { getShareId } from "~/apis/product";
21 21
 import { debounce } from "lodash-es";
@@ -82,6 +82,13 @@ onShow(() => {
82 82
   loadCartCount()
83 83
 
84 84
 })
85
+//下架图片
86
+const outImg = computed(() => {
87
+  if(isShow){
88
+    return  CDM_URL+'/image/2023-11-24/20231124182002679.png'
89
+  }
90
+
91
+})
85 92
 
86 93
 uni.showShareMenu({
87 94
   withShareTicket: true,
@@ -797,7 +804,7 @@ onPageScroll((page) => {
797 804
     <div class="box-out">
798 805
       <div class="flex-box pb-3 px-3 ">
799 806
         <div class="img-div">
800
-          <image lazy-load src="../../../static/icon/商品下架不存在@3x.png" mode="widthFix" class=" top-0 right-0 sold-out ">
807
+          <image lazy-load :src="outImg" mode="widthFix" class=" top-0 right-0 sold-out ">
801 808
           </image>
802 809
         </div>
803 810
         <div class="out-conter">该商品下架不存在</div>

+ 7 - 1
src/pages/to-coupon/to-coupon.vue

@@ -3,7 +3,7 @@
3 3
 		<div class="block_1 flex-col"></div>
4 4
 		<div class="flex-box">
5 5
 			<div class="img-div">
6
-				<image lazy-load class="image_2" mode="widthFix" src="../../static/youhuiquan@3x.png" />
6
+				<image lazy-load class="image_2" mode="widthFix" :src="outImg" />
7 7
 			</div>
8 8
 
9 9
 			<div class="text_3">暂无可用优惠券</div>
@@ -15,9 +15,15 @@
15 15
 <script lang="ts" setup >
16 16
 
17 17
 import { ref, reactive } from 'vue'
18
+import { CDN_URL,CDM_URL } from "~/config/app";
18 19
 const isShow = ref(true)
19 20
 
21
+const outImg = computed(() => {
22
+  if(isShow){
23
+    return  CDM_URL+'/image/2023-11-24/20231124181903347.png'
24
+  }
20 25
 
26
+})
21 27
 
22 28
 </script>
23 29
 

+ 10 - 15
src/pages/user/index.vue

@@ -92,11 +92,7 @@ const myServiceList = [{
92 92
   icon: CDN_URL + '/static/assets/dianpuruzhu_220620.png',
93 93
   text: '商铺入驻',
94 94
   url: ''
95
-}, {
96
-  icon: '/static/icon/bangfu.png',
97
-  text: '帮扶中心',
98
-  url: '/pages/bangfuzhongxin/index'
99
-}, {
95
+},  {
100 96
   icon: CDN_URL + '/static/assets/mine_setting_220620.png',
101 97
   text: '设置',
102 98
   url: '/pages/setting/index'
@@ -296,7 +292,7 @@ const AlholderType = computed(() => {
296 292
 })
297 293
 // '':普通用户 district-区/县代 city-市代',
298 294
 const areaType = computed(() => {
299
-  if (userStore.userInfo?.area_manage.area_name.length>0) {
295
+  if (userStore.userInfo?.area_manage?.area_name) {
300 296
     const areamanage = userStore.userInfo?.area_manage_type
301 297
     // 县/区代理
302 298
     if (areamanage == 'district') {
@@ -411,21 +407,21 @@ function handleShowMyRulePage() {
411 407
                 {{ encodePhone(userStore.userInfo.phone) }}
412 408
               </div>
413 409
             </div>
414
-            <div class="btm flex gap-1 px-1">
410
+            <div class="btm flex gap-1 ">
415 411
               <!-- 用户 -->
416 412
               <div v-if="userType" @click="handleShowMyRulePage()"
417
-                class="flex rounded-full  text-[12px] text-white w-12 h-5  w-fit px-1">
418
-                <image lazy-load class="vip_img" :src="userType"></image>
413
+                class="flex rounded-full  text-[12px] text-white w-12 h-5  w-fit ">
414
+                <image mode="heightFix" lazy-load class="vip_img" :src="userType"></image>
419 415
               </div>
420 416
               <!-- 市区县代理 -->
421 417
               <div @click="openPopup" v-if="areaType"
422
-                class="flex rounded-full  text-[12px] text-white w-12 h-5  w-fit px-1">
423
-                <image lazy-load class="vip_img" :src="areaType"></image>
418
+                class="flex rounded-full  text-[12px] text-white w-12 h-5  w-fit ">
419
+                <image mode="heightFix" lazy-load class="vip_img" :src="areaType"></image>
424 420
               </div>
425 421
               <!-- 股东 -->
426 422
               <div v-if="AlholderType" 
427
-                class="flex rounded-full  text-[12px] text-white w-12 h-5   w-fit px-1">
428
-                <image lazy-load class="vip_img" :src="AlholderType"></image>
423
+                class="flex rounded-full  text-[12px] text-white w-12 h-5   w-fit">
424
+                <image mode="heightFix" lazy-load class="vip_img" :src="AlholderType"></image>
429 425
               </div>
430 426
             </div>
431 427
           </div>
@@ -589,8 +585,7 @@ page {
589 585
 }
590 586
 
591 587
 .vip_img {
592
-  width: 116rpx;
593
-  height: 58rpx;
588
+  height: 56rpx;
594 589
 }
595 590
 
596 591
 .box_2 {

+ 7 - 12
src/pages/vip/index.vue

@@ -2,7 +2,8 @@
2 2
   <!--  <CXBBasePage :show="true" title="">-->
3 3
 
4 4
   <div class="flex flex-col gap-3 ">
5
-    <div style="background-color: transparent" class="overflow-hidden fixed top-0 w-full z-10">
5
+    <div style="height: 80rpx;" >
6
+ <div style="background-color: transparent  " class="overflow-hidden fixed top-0 w-full z-10">
6 7
       <nut-searchbar v-model="state.keyword" @search="loadList('reload')" @clear="loadList('reload')">
7 8
         <!--      <template v-slot:leftout>-->
8 9
         <!--        <div @tap="navBack">-->
@@ -16,10 +17,12 @@
16 17
         </template>
17 18
       </nut-searchbar>
18 19
     </div>
20
+    </div>
21
+   
19 22
     
20 23
     <!--      <image :src="homeBanner" mode="widthFix" class="h-10 w-full "></image>-->
21 24
 
22
-    <div class="w-screen h-45" style="margin-top: 80rpx;" >
25
+    <div class="w-screen h-45"  >
23 26
       <swiper v-if="state.banners" :indicator-dots="state.indicatorDots" indicator-active-color="#e93323"
24 27
         :autoplay="state.autoplay" :circular="state.circular" :interval="state.interval" :duration="state.duration"
25 28
         class="w-full h-full">
@@ -42,10 +45,10 @@
42 45
               <div class="line-clamp-1">
43 46
                 {{ item.store_name }}
44 47
               </div>
45
-              <div class="border border-solid border-1 border-red rounded flex text-xs items-center text-[#FE0032] w-fit">
48
+              <div  v-if="item.type!=15" class="border border-solid border-1 border-red rounded flex text-xs items-center text-[#FE0032] w-fit">
46 49
                 <image src="https://cdn.bjtdba.com/vod/image/2023-09-15/20230915160858609.png" mode="widthFix"
47 50
                   class="!w-8 "></image>
48
-                <div class="px-2 flex items-center jusitify-center">
51
+                <div  class="px-2 flex items-center jusitify-center">
49 52
                   <div>
50 53
                     养老金 ¥{{ item.yanglao }}
51 54
                   </div>
@@ -62,14 +65,6 @@
62 65
 
63 66
                 </div>
64 67
 
65
-                <div
66
-                  class="bg-[#202020] text-[#FFDD99] rounded-t-lg rounded-br-lg text-10px leading-none px-1 flex items-center justify-center h-4">
67
-
68
-                  <div>
69
-                    大仓
70
-                  </div>
71
-                </div>
72
-
73 68
               </div>
74 69
 
75 70
               <div class="line-through text-xs font-bold flex ">

二进制
src/static/icon/下拉.png


二进制
src/static/youhuiquan@3x.png


二进制
src/static/商品下架不存在@3x.png