Browse Source

bug修改

喻文俊 3 years ago
parent
commit
ee5e5605a7
37 changed files with 170 additions and 118 deletions
  1. 4 2
      App.vue
  2. 1 1
      common/css/common.scss
  3. 26 21
      components/cm-module/cm-coupon-list/cm-coupon-list.vue
  4. 6 2
      components/cm-module/cm-drawer/cm-drawer.vue
  5. 3 0
      components/cm-module/cm-goods-nav/cm-goods-nav.vue
  6. 13 1
      components/cm-module/cm-product-params/cm-product-params.vue
  7. 1 0
      components/cm-module/cm-product/cm-product.vue
  8. 2 2
      components/cm-module/createOrder/goodsList.vue
  9. 1 1
      components/cm-module/createOrder/sellerFreight.vue
  10. 1 1
      components/cm-module/createOrder/sellerInvoice.vue
  11. 1 1
      components/cm-module/createOrder/sellerRegulations.vue
  12. 4 4
      components/cm-module/listTemplate/productList.vue
  13. 1 1
      components/cm-module/orderDetails/goodsList.vue
  14. 2 2
      components/cm-module/orderDetails/orderInformation.vue
  15. 1 1
      components/cm-module/orderDetails/paymentRecord.vue
  16. 1 1
      components/cm-module/orderDetails/refundRecord.vue
  17. 1 1
      components/cm-module/productDetails/cm-activipopu.vue
  18. 1 1
      components/cm-module/productDetails/cm-price-activity.vue
  19. 1 1
      components/cm-module/productDetails/cm-price.vue
  20. 1 1
      components/thorui/tui-tag/tui-tag.vue
  21. 1 0
      components/uni-components/uni-goods-nav/uni-goods-nav.vue
  22. 1 1
      pages/goods/list.vue
  23. 3 4
      pages/goods/product-activi.vue
  24. 1 0
      pages/goods/product-detail.vue
  25. 3 4
      pages/goods/product.vue
  26. 0 1
      pages/goods/search.vue
  27. 0 2
      pages/tabBar/index/index.vue
  28. 3 1
      pages/user/activity/activity.vue
  29. 4 2
      pages/user/activity/coupon-find-list.vue
  30. 6 6
      pages/user/activity/coupon-list.vue
  31. 19 17
      pages/user/address/address.vue
  32. 44 22
      pages/user/order/create-order.vue
  33. 1 1
      pages/user/order/order-details.vue
  34. 1 1
      pages/user/order/order-list-retail.vue
  35. 1 1
      pages/user/order/order-list.vue
  36. 6 6
      pages/user/order/order-payment.vue
  37. 4 4
      pages/user/order/search-order.vue

+ 4 - 2
App.vue

@@ -9,9 +9,11 @@ export default {
         this.initSystemInfo()
         this.initSystemInfo()
         // 判断优惠券弹窗是否显示
         // 判断优惠券弹窗是否显示
         this.checkShowCouponPopup()
         this.checkShowCouponPopup()
+        this.wechatlogin()
     },
     },
     methods: {
     methods: {
         ...mapActions('app', ['setWindowHeight', 'setVariableFun']),
         ...mapActions('app', ['setWindowHeight', 'setVariableFun']),
+        ...mapActions('user', ['wechatlogin']),
         ...mapMutations('coupon', ['setCouponPopupStatus']),
         ...mapMutations('coupon', ['setCouponPopupStatus']),
         ...mapMutations('app', ['setWindowHeight']),
         ...mapMutations('app', ['setWindowHeight']),
         // 验证是否需要显示优惠券入口弹窗
         // 验证是否需要显示优惠券入口弹窗
@@ -29,7 +31,9 @@ export default {
                 success: function(e) {
                 success: function(e) {
                     let modelmes = e.model
                     let modelmes = e.model
                     self.setWindowHeight(e.windowHeight)
                     self.setWindowHeight(e.windowHeight)
+                    console.log(modelmes)
                     // iphone x以上的版本都要控制下巴高度
                     // iphone x以上的版本都要控制下巴高度
+                    console.log(/iphone [1|x]\s?/i.test(modelmes))
                     if (/iphone [1|x]\s?/i.test(modelmes)) {
                     if (/iphone [1|x]\s?/i.test(modelmes)) {
                         self.setVariableFun(true)
                         self.setVariableFun(true)
                     } else {
                     } else {
@@ -49,10 +53,8 @@ export default {
                     // #ifdef MP-WEIXIN || MP-QQ
                     // #ifdef MP-WEIXIN || MP-QQ
                     if (e.platform == 'android') {
                     if (e.platform == 'android') {
                         Vue.prototype.platformClass = 'left'
                         Vue.prototype.platformClass = 'left'
-                        self.setVariableFun(false)
                     } else {
                     } else {
                         Vue.prototype.platformClass = 'center'
                         Vue.prototype.platformClass = 'center'
-                        self.setVariableFun(true)
                     }
                     }
                     Vue.prototype.StatusBar = e.statusBarHeight
                     Vue.prototype.StatusBar = e.statusBarHeight
                     Vue.prototype.fontSizeSetting = e.fontSizeSetting
                     Vue.prototype.fontSizeSetting = e.fontSizeSetting

+ 1 - 1
common/css/common.scss

@@ -265,7 +265,7 @@ button::after {
     margin-top: 74rpx;
     margin-top: 74rpx;
     font-size: 26rpx;
     font-size: 26rpx;
     .asterisk {
     .asterisk {
-        color: #ff2a2a;
+        color: #ff457b;
         margin-right: 10rpx;
         margin-right: 10rpx;
     }
     }
 }
 }

+ 26 - 21
components/cm-module/cm-coupon-list/cm-coupon-list.vue

@@ -52,11 +52,11 @@
                             :image="baseUrl + 'icon-coupon-empty.png'"
                             :image="baseUrl + 'icon-coupon-empty.png'"
                             :offset="-12"
                             :offset="-12"
                         ></cm-empty>
                         ></cm-empty>
-                        <!-- 使用优惠券按钮 -->
-                        <view class="btn" @click="confirm" v-if="listType === 'use'">确定</view>
                         <!-- IPhoneX 以上版本适配 -->
                         <!-- IPhoneX 以上版本适配 -->
-                        <view :style="{ height: isIphoneX ? '40rpx' : 0 }"></view>
+                        <view :style="{ height: isIphoneX ? '44rpx' : 0 }"></view>
                     </view>
                     </view>
+                    <!-- 使用优惠券按钮 -->
+                    <view class="btn" @click="confirm" v-if="listType === 'use'">确定</view>
                 </view>
                 </view>
             </uni-transition>
             </uni-transition>
         </view>
         </view>
@@ -159,10 +159,11 @@ $grid: 24rpx;
 $title-top: 50rpx;
 $title-top: 50rpx;
 $title-bottom: 28rpx;
 $title-bottom: 28rpx;
 $title-line-height: 50rpx;
 $title-line-height: 50rpx;
-$other-line-height: 40rpx;
 $tabs-height: 80rpx;
 $tabs-height: 80rpx;
+$unset-height: 30rpx;
 $main-height: 1028rpx;
 $main-height: 1028rpx;
 $base-scroll-height: $main-height - $title-top - $title-bottom - $title-line-height;
 $base-scroll-height: $main-height - $title-top - $title-bottom - $title-line-height;
+$btn-height: 90rpx;
 .mask {
 .mask {
     position: fixed;
     position: fixed;
     bottom: 0;
     bottom: 0;
@@ -187,10 +188,14 @@ $base-scroll-height: $main-height - $title-top - $title-bottom - $title-line-hei
             background: #fff;
             background: #fff;
             .close {
             .close {
                 position: absolute;
                 position: absolute;
-                top: 36rpx;
-                right: 36rpx;
+                top: 26rpx;
+                right: 26rpx;
                 font-size: 34rpx;
                 font-size: 34rpx;
                 color: #b2b2b2;
                 color: #b2b2b2;
+                width: 60rpx;
+                height: 60rpx;
+                text-align: center;
+                line-height: 60rpx;
             }
             }
             .title {
             .title {
                 padding: $title-top 0 $title-bottom;
                 padding: $title-top 0 $title-bottom;
@@ -202,13 +207,13 @@ $base-scroll-height: $main-height - $title-top - $title-bottom - $title-line-hei
             }
             }
             .other {
             .other {
                 padding: 0 $grid $grid;
                 padding: 0 $grid $grid;
-                line-height: $other-line-height;
                 .unset {
                 .unset {
                     display: flex;
                     display: flex;
                     justify-content: space-between;
                     justify-content: space-between;
                     align-items: center;
                     align-items: center;
                     padding-right: 30rpx;
                     padding-right: 30rpx;
                     font-size: 30rpx;
                     font-size: 30rpx;
+                    line-height: $unset-height;
                     color: #333333;
                     color: #333333;
                     .radio-flag {
                     .radio-flag {
                         color: #ff457b;
                         color: #ff457b;
@@ -247,7 +252,7 @@ $base-scroll-height: $main-height - $title-top - $title-bottom - $title-line-hei
                 overflow-y: scroll;
                 overflow-y: scroll;
                 // 查看优惠券
                 // 查看优惠券
                 &.scroll-search {
                 &.scroll-search {
-                    height: $base-scroll-height - $tabs-height;
+                    height: $base-scroll-height - $tabs-height - $grid;
                 }
                 }
                 // 领取优惠券
                 // 领取优惠券
                 &.scroll-receive {
                 &.scroll-receive {
@@ -255,21 +260,21 @@ $base-scroll-height: $main-height - $title-top - $title-bottom - $title-line-hei
                 }
                 }
                 // 使用优惠券
                 // 使用优惠券
                 &.scroll-use {
                 &.scroll-use {
-                    height: $base-scroll-height - $other-line-height - $grid;
-                }
-                .btn {
-                    width: 600rpx;
-                    height: 90rpx;
-                    margin: $grid auto;
-                    background: linear-gradient(90deg, #fc32b4 0%, #f83c6c 100%);
-                    opacity: 1;
-                    border-radius: 45rpx;
-                    line-height: 90rpx;
-                    text-align: center;
-                    font-size: 30rpx;
-                    color: #ffffff;
+                    height: $base-scroll-height - $unset-height - $btn-height - 3 * $grid;
                 }
                 }
             }
             }
+            .btn {
+                width: 600rpx;
+                height: $btn-height;
+                margin: $grid auto;
+                background: linear-gradient(90deg, #fc32b4 0%, #f83c6c 100%);
+                opacity: 1;
+                border-radius: 45rpx;
+                line-height: $btn-height;
+                text-align: center;
+                font-size: 30rpx;
+                color: #ffffff;
+            }
         }
         }
     }
     }
 }
 }

+ 6 - 2
components/cm-module/cm-drawer/cm-drawer.vue

@@ -140,10 +140,14 @@ $drawer-size: 100rpx;
             padding: 24rpx;
             padding: 24rpx;
             .close {
             .close {
                 position: absolute;
                 position: absolute;
-                top: 36rpx;
-                right: 36rpx;
+                top: 26rpx;
+                right: 26rpx;
                 font-size: 34rpx;
                 font-size: 34rpx;
                 color: #b2b2b2;
                 color: #b2b2b2;
+                width: 60rpx;
+                height: 60rpx;
+                text-align: center;
+                line-height: 60rpx;
             }
             }
             .title {
             .title {
                 width: 100%;
                 width: 100%;

+ 3 - 0
components/cm-module/cm-goods-nav/cm-goods-nav.vue

@@ -103,6 +103,9 @@ export default {
             if (newVal) this.processActivityPrice()
             if (newVal) this.processActivityPrice()
         }
         }
     },
     },
+    created() {
+        this.options[2].info = this.kindCount
+    },
     methods: {
     methods: {
         ...mapActions('cart', ['addToCart', 'getCartNumber']),
         ...mapActions('cart', ['addToCart', 'getCartNumber']),
         ...mapMutations('user', ['setInviteUserId']),
         ...mapMutations('user', ['setInviteUserId']),

+ 13 - 1
components/cm-module/cm-product-params/cm-product-params.vue

@@ -20,6 +20,7 @@
                 <view class="content-td">{{ item.paramsName }}:</view>
                 <view class="content-td">{{ item.paramsName }}:</view>
                 <view class="content-th">{{ item.paramsContent }}</view>
                 <view class="content-th">{{ item.paramsContent }}</view>
             </view>
             </view>
+            <view class="btn" @click="$emit('close')">了解</view>
         </scroll-view>
         </scroll-view>
     </cm-drawer>
     </cm-drawer>
 </template>
 </template>
@@ -39,7 +40,7 @@ export default {
             type: Boolean,
             type: Boolean,
             default: false
             default: false
         }
         }
-    },
+    }
 }
 }
 </script>
 </script>
 
 
@@ -72,4 +73,15 @@ export default {
         }
         }
     }
     }
 }
 }
+.btn {
+    width: 100%;
+    height: 88rpx;
+    margin-top: 32px;
+    background: #ff457b;
+    line-height: 88rpx;
+    text-align: center;
+    color: #ffffff;
+    font-size: 28rpx;
+    border-radius: 44rpx;
+}
 </style>
 </style>

+ 1 - 0
components/cm-module/cm-product/cm-product.vue

@@ -64,6 +64,7 @@ $grid: 24rpx;
     height: $height;
     height: $height;
     background: #fff;
     background: #fff;
     border-radius: $radius;
     border-radius: $radius;
+    overflow: hidden;
     .recommend {
     .recommend {
         position: absolute;
         position: absolute;
         top: 0;
         top: 0;

+ 2 - 2
components/cm-module/createOrder/goodsList.vue

@@ -233,7 +233,7 @@
 						line-height: 54rpx;
 						line-height: 54rpx;
 						font-size: $font-size-28;
 						font-size: $font-size-28;
 						width: 48%;
 						width: 48%;
-						color: #FF2A2A;
+						color: #ff457b;
 						float: left;
 						float: left;
 						&.disabled{
 						&.disabled{
 							color: #999999;
 							color: #999999;
@@ -351,7 +351,7 @@
 					display: flex;
 					display: flex;
 					justify-content: flex-end;
 					justify-content: flex-end;
 					.money{
 					.money{
-						color: #FF2A2A;
+						color: #ff457b;
 						font-size: $font-size-28;
 						font-size: $font-size-28;
 					}
 					}
 				}
 				}

+ 1 - 1
components/cm-module/createOrder/sellerFreight.vue

@@ -496,7 +496,7 @@
 				line-height: 44rpx;
 				line-height: 44rpx;
 				font-size: $font-size-28;
 				font-size: $font-size-28;
 				.p{
 				.p{
-					color: #FF2A2A;
+					color: #ff457b;
 				}
 				}
 				.p:first-child{
 				.p:first-child{
 					margin-left: 30rpx;
 					margin-left: 30rpx;

+ 1 - 1
components/cm-module/createOrder/sellerInvoice.vue

@@ -679,7 +679,7 @@
 				line-height: 44rpx;
 				line-height: 44rpx;
 				font-size: $font-size-28;
 				font-size: $font-size-28;
 				.p{
 				.p{
-					color: #FF2A2A;
+					color: #ff457b;
 				}
 				}
 				.p:first-child{
 				.p:first-child{
 					margin-left: 30rpx;
 					margin-left: 30rpx;

+ 1 - 1
components/cm-module/createOrder/sellerRegulations.vue

@@ -426,7 +426,7 @@
 				line-height: 44rpx;
 				line-height: 44rpx;
 				font-size: $font-size-28;
 				font-size: $font-size-28;
 				.p{
 				.p{
-					color: #FF2A2A;
+					color: #ff457b;
 				}
 				}
 				.p:first-child{
 				.p:first-child{
 					margin-left: 30rpx;
 					margin-left: 30rpx;

+ 4 - 4
components/cm-module/listTemplate/productList.vue

@@ -355,12 +355,12 @@ export default {
 			border-radius: 6rpx;
 			border-radius: 6rpx;
 			background-color: #FFFFFF;
 			background-color: #FFFFFF;
 			line-height: 28rpx;
 			line-height: 28rpx;
-			color: #ff2a2a;
+			color: #ff457b;
 			text-align: center;
 			text-align: center;
 			display: inline-block;
 			display: inline-block;
 			padding:0 5rpx;
 			padding:0 5rpx;
 			font-size: $font-size-20;
 			font-size: $font-size-20;
-			border: 1px solid #ff2a2a;
+			border: 1px solid #ff457b;
 			float: left;
 			float: left;
 		}
 		}
 	}
 	}
@@ -394,7 +394,7 @@ export default {
 		.price-small {
 		.price-small {
 			font-size: $font-size-24;
 			font-size: $font-size-24;
 			line-height: 40rpx;
 			line-height: 40rpx;
-			color: #ff2a2a;
+			color: #ff457b;
 		}
 		}
 	}
 	}
 	.list-shop {
 	.list-shop {
@@ -402,7 +402,7 @@ export default {
 		float: left;
 		float: left;
 		.list-price {
 		.list-price {
 			width: 100%;
 			width: 100%;
-			color: #ff2a2a;
+			color: #ff457b;
 			float: left;
 			float: left;
 			line-height: 54rpx;
 			line-height: 54rpx;
 			align-items: center;
 			align-items: center;

+ 1 - 1
components/cm-module/orderDetails/goodsList.vue

@@ -266,7 +266,7 @@
 						line-height: 48rpx;
 						line-height: 48rpx;
 						font-size: $font-size-28;
 						font-size: $font-size-28;
 						width: 48%;
 						width: 48%;
-						color: #FF2A2A;
+						color: #ff457b;
 						float: left;
 						float: left;
 					}
 					}
 					.count{
 					.count{

+ 2 - 2
components/cm-module/orderDetails/orderInformation.vue

@@ -202,12 +202,12 @@ export default {
             // 	font-weight: bold;
             // 	font-weight: bold;
             // }
             // }
             .red {
             .red {
-                color: #ff2a2a;
+                color: #ff457b;
             }
             }
             .view-type {
             .view-type {
                 float: right;
                 float: right;
                 text-align: right;
                 text-align: right;
-                color: #ff2a2a;
+                color: #ff457b;
                 flex: 4;
                 flex: 4;
             }
             }
             .clipboard {
             .clipboard {

+ 1 - 1
components/cm-module/orderDetails/paymentRecord.vue

@@ -102,7 +102,7 @@
 				.record-title-r{
 				.record-title-r{
 					float: right;
 					float: right;
 					.red{
 					.red{
-						color: #FF2A2A;
+						color: #ff457b;
 						font-weight: bold;
 						font-weight: bold;
 					}
 					}
 				}
 				}

+ 1 - 1
components/cm-module/orderDetails/refundRecord.vue

@@ -81,7 +81,7 @@
 				.record-title-r{
 				.record-title-r{
 					float: right;
 					float: right;
 					.red{
 					.red{
-						color: #FF2A2A;
+						color: #ff457b;
 						font-weight: bold;
 						font-weight: bold;
 					}
 					}
 				}
 				}

+ 1 - 1
components/cm-module/productDetails/cm-activipopu.vue

@@ -122,7 +122,7 @@ export default {
         text-align: left;
         text-align: left;
         line-height: 56rpx;
         line-height: 56rpx;
         .txt {
         .txt {
-            color: #ff2a2a;
+            color: #ff457b;
         }
         }
     }
     }
     .box-product {
     .box-product {

+ 1 - 1
components/cm-module/productDetails/cm-price-activity.vue

@@ -251,7 +251,7 @@ export default {
         text-align: left;
         text-align: left;
         line-height: 56rpx;
         line-height: 56rpx;
         .txt {
         .txt {
-            color: #ff2a2a;
+            color: #ff457b;
         }
         }
     }
     }
     .box-product {
     .box-product {

+ 1 - 1
components/cm-module/productDetails/cm-price.vue

@@ -250,7 +250,7 @@ export default {
         text-align: left;
         text-align: left;
         line-height: 56rpx;
         line-height: 56rpx;
         .txt {
         .txt {
-            color: #ff2a2a;
+            color: #ff457b;
         }
         }
     }
     }
     .box-product {
     .box-product {

+ 1 - 1
components/thorui/tui-tag/tui-tag.vue

@@ -120,7 +120,7 @@ export default {
 }
 }
 
 
 .tui-red {
 .tui-red {
-	background-color: #ff2a2a !important;
+	background-color: #ff457b !important;
 	color: #fff;
 	color: #fff;
 }
 }
 
 

+ 1 - 0
components/uni-components/uni-goods-nav/uni-goods-nav.vue

@@ -11,6 +11,7 @@
                         :key="index"
                         :key="index"
                         @click="onClick(index, item)"
                         @click="onClick(index, item)"
                         v-if="item.type === 'contact'"
                         v-if="item.type === 'contact'"
+                        open-type="contact"
                     >
                     >
                         <view class="uni-tab__icon">
                         <view class="uni-tab__icon">
                             <uni-icons :type="item.icon" size="18" color="#666"></uni-icons>
                             <uni-icons :type="item.icon" size="18" color="#666"></uni-icons>

+ 1 - 1
pages/goods/list.vue

@@ -411,7 +411,7 @@ page {
             line-height: 44rpx;
             line-height: 44rpx;
             font-size: $font-size-32;
             font-size: $font-size-32;
             .p {
             .p {
-                color: #ff2a2a;
+                color: #ff457b;
             }
             }
             // .p:first-child{
             // .p:first-child{
             // 	margin-left: 30rpx;
             // 	margin-left: 30rpx;

+ 3 - 4
pages/goods/product-activi.vue

@@ -363,7 +363,6 @@ export default {
         if (this.isShareType == 'share') {
         if (this.isShareType == 'share') {
             // 收集分享信息
             // 收集分享信息
             this.setInviteUserId(option.inviteUserId)
             this.setInviteUserId(option.inviteUserId)
-            wxLogin.wxLoginAuthorize()
         }
         }
         if (option.page == 2) {
         if (option.page == 2) {
             this.backPage = option.page
             this.backPage = option.page
@@ -843,7 +842,7 @@ page {
         }
         }
         .wrap-main-text {
         .wrap-main-text {
             line-height: 56rpx;
             line-height: 56rpx;
-            color: #ff2a2a;
+            color: #ff457b;
             font-size: $font-size-26;
             font-size: $font-size-26;
             display: block;
             display: block;
             float: left;
             float: left;
@@ -1248,7 +1247,7 @@ page {
             }
             }
             .animation-num {
             .animation-num {
                 font-size: $font-size-32;
                 font-size: $font-size-32;
-                color: #ff2a2a;
+                color: #ff457b;
                 position: absolute;
                 position: absolute;
                 top: -12rpx;
                 top: -12rpx;
                 right: 4rpx;
                 right: 4rpx;
@@ -1654,7 +1653,7 @@ page {
             line-height: 44rpx;
             line-height: 44rpx;
             font-size: $font-size-28;
             font-size: $font-size-28;
             .p {
             .p {
-                color: #ff2a2a;
+                color: #ff457b;
             }
             }
             .p:first-child {
             .p:first-child {
                 margin-left: 30rpx;
                 margin-left: 30rpx;

+ 1 - 0
pages/goods/product-detail.vue

@@ -351,6 +351,7 @@ $swiper-width: 750rpx;
                 border: 1rpx solid #ff457b;
                 border: 1rpx solid #ff457b;
                 border-radius: 8rpx;
                 border-radius: 8rpx;
                 margin-left: 8rpx;
                 margin-left: 8rpx;
+                box-sizing: border-box;
             }
             }
             .iconfont {
             .iconfont {
                 margin-left: 24rpx;
                 margin-left: 24rpx;

+ 3 - 4
pages/goods/product.vue

@@ -389,7 +389,6 @@ export default {
         if (this.isShareType == 'share') {
         if (this.isShareType == 'share') {
             // 收集分享信息
             // 收集分享信息
             this.setInviteUserId(option.inviteUserId)
             this.setInviteUserId(option.inviteUserId)
-            wxLogin.wxLoginAuthorize()
         }
         }
         if (option.page == 2) {
         if (option.page == 2) {
             this.backPage = option.page
             this.backPage = option.page
@@ -856,7 +855,7 @@ page {
         }
         }
         .wrap-main-text {
         .wrap-main-text {
             line-height: 56rpx;
             line-height: 56rpx;
-            color: #ff2a2a;
+            color: #ff457b;
             font-size: $font-size-26;
             font-size: $font-size-26;
             display: block;
             display: block;
             float: left;
             float: left;
@@ -1297,7 +1296,7 @@ page {
             }
             }
             .animation-num {
             .animation-num {
                 font-size: $font-size-32;
                 font-size: $font-size-32;
-                color: #ff2a2a;
+                color: #ff457b;
                 position: absolute;
                 position: absolute;
                 top: -12rpx;
                 top: -12rpx;
                 right: 4rpx;
                 right: 4rpx;
@@ -1703,7 +1702,7 @@ page {
             line-height: 44rpx;
             line-height: 44rpx;
             font-size: $font-size-28;
             font-size: $font-size-28;
             .p {
             .p {
-                color: #ff2a2a;
+                color: #ff457b;
             }
             }
             .p:first-child {
             .p:first-child {
                 margin-left: 30rpx;
                 margin-left: 30rpx;

+ 0 - 1
pages/goods/search.vue

@@ -148,7 +148,6 @@ export default {
         if (option.type == 'share') {
         if (option.type == 'share') {
             // 收集分享信息
             // 收集分享信息
             this.setInviteUserId(option.inviteUserId)
             this.setInviteUserId(option.inviteUserId)
-            wxLogin.wxLoginAuthorize()
         }
         }
         this.listQuery.userId = this.userId
         this.listQuery.userId = this.userId
         if (option.keyWord) {
         if (option.keyWord) {

+ 0 - 2
pages/tabBar/index/index.vue

@@ -118,11 +118,9 @@ export default {
     methods: {
     methods: {
         ...mapMutations('coupon', ['updatePopupType']),
         ...mapMutations('coupon', ['updatePopupType']),
         ...mapMutations('user', ['setInviteUserId']),
         ...mapMutations('user', ['setInviteUserId']),
-        ...mapActions('user', ['wechatlogin']),
         ...mapActions('cart', ['getCartNumber']),
         ...mapActions('cart', ['getCartNumber']),
         // 首页初始化
         // 首页初始化
         async init() {
         async init() {
-            this.wechatlogin()
             try {
             try {
                 await this.GetHomeBanner() // 轮播图
                 await this.GetHomeBanner() // 轮播图
                 await this.GetHomeProductList() // 楼层
                 await this.GetHomeProductList() // 楼层

+ 3 - 1
pages/user/activity/activity.vue

@@ -64,7 +64,9 @@ export default {
     },
     },
     onLoad(option) {
     onLoad(option) {
         // 收集分享信息
         // 收集分享信息
-        if (option.type && option.type === 'share') this.setInviteUserId(option.inviteUserId)
+        if (option.type && option.type === 'share') {
+            this.setInviteUserId(option.inviteUserId)
+        }
         this.listQuery.activityId = option.activityId
         this.listQuery.activityId = option.activityId
         this.listQuery.userId = this.userId
         this.listQuery.userId = this.userId
         this.activityName = option.name
         this.activityName = option.name

+ 4 - 2
pages/user/activity/coupon-find-list.vue

@@ -55,6 +55,7 @@
 
 
 <script>
 <script>
 import MessagePopup from '@/components/message-popup/message-popup.vue'
 import MessagePopup from '@/components/message-popup/message-popup.vue'
+import CmDrawer from '@/components/cm-module/cm-drawer/cm-drawer.vue'
 import CmCoupon from '@/components/cm-module/cm-coupon/cm-coupon.vue'
 import CmCoupon from '@/components/cm-module/cm-coupon/cm-coupon.vue'
 import CmEmpty from '@/components/cm-module/cm-empty/cm-empty.vue'
 import CmEmpty from '@/components/cm-module/cm-empty/cm-empty.vue'
 import { mapGetters } from 'vuex'
 import { mapGetters } from 'vuex'
@@ -62,7 +63,8 @@ export default {
     components: {
     components: {
         MessagePopup,
         MessagePopup,
         CmCoupon,
         CmCoupon,
-        CmEmpty
+        CmEmpty,
+        CmDrawer
     },
     },
     data() {
     data() {
         return {
         return {
@@ -132,7 +134,7 @@ export default {
 $tip-height: 80rpx;
 $tip-height: 80rpx;
 $grid: 24rpx;
 $grid: 24rpx;
 .coupon-find-list {
 .coupon-find-list {
-    min-height: 100%;
+    min-height: 100vh;
     box-sizing: border-box;
     box-sizing: border-box;
     padding-top: $tip-height;
     padding-top: $tip-height;
     background: #f7f7f7;
     background: #f7f7f7;

+ 6 - 6
pages/user/activity/coupon-list.vue

@@ -109,9 +109,9 @@ export default {
         ...mapGetters(['isIphoneX', 'userId', 'unusedNum', 'expiredNum', 'usedNum']),
         ...mapGetters(['isIphoneX', 'userId', 'unusedNum', 'expiredNum', 'usedNum']),
         swiperHeight() {
         swiperHeight() {
             if (this.isIphoneX) {
             if (this.isIphoneX) {
-                return this.windowHeight - 120
+                return this.windowHeight - 144
             }
             }
-            return this.windowHeight - 80
+            return this.windowHeight - 120
             // return this.swiperHeight
             // return this.swiperHeight
         },
         },
         // 当前选中tab对应的优惠券列表信息
         // 当前选中tab对应的优惠券列表信息
@@ -205,19 +205,19 @@ export default {
                 console.log('触底了')
                 console.log('触底了')
                 this.fetchCouponList()
                 this.fetchCouponList()
             }, 200)
             }, 200)
-        }
+        },
+        couponClick(){}
     }
     }
 }
 }
 </script>
 </script>
 
 
 <style lang="scss" scoped>
 <style lang="scss" scoped>
-page {
+.coupon-find-list {
     width: 100%;
     width: 100%;
-    height: 100%;
+    min-height: 100vh;
     background: #f7f7f7;
     background: #f7f7f7;
 }
 }
 .swiper {
 .swiper {
-    height: 800rpx;
     background: #f7f7f7;
     background: #f7f7f7;
     .coupon-list {
     .coupon-list {
         height: 100%;
         height: 100%;

+ 19 - 17
pages/user/address/address.vue

@@ -59,6 +59,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
+import { mapGetters } from 'vuex'    
 export default {
 export default {
     data() {
     data() {
         return {
         return {
@@ -88,6 +89,9 @@ export default {
         }
         }
         this.setScrollHeight()
         this.setScrollHeight()
     },
     },
+    computed:{
+        ...mapGetters(['userId'])
+    },
     methods: {
     methods: {
         setScrollHeight() {
         setScrollHeight() {
             // 窗口高度 - 底部距离
             // 窗口高度 - 底部距离
@@ -105,23 +109,21 @@ export default {
         },
         },
         GetAddressList() {
         GetAddressList() {
             // 初始化地址列表
             // 初始化地址列表
-            this.$api.getComStorage('userInfo').then(resolve => {
-                this.listQuery.userId = resolve.userId ? resolve.userId : 0
-                this.UserService.QueryAddressList(this.listQuery)
-                    .then(response => {
-                        const data = response.data
-                        if (data.list && data.list.length > 0) {
-                            this.isEmpty = false
-                            this.addressList = data.list
-                            this.hasNextPage = data.hasNextPage
-                        } else {
-                            this.isEmpty = true
-                        }
-                    })
-                    .catch(error => {
-                        this.$util.msg(error.msg, 2000)
-                    })
-            })
+            this.listQuery.userId = this.userId
+            this.UserService.QueryAddressList(this.listQuery)
+                .then(response => {
+                    const data = response.data
+                    if (data.list && data.list.length > 0) {
+                        this.isEmpty = false
+                        this.addressList = data.list
+                        this.hasNextPage = data.hasNextPage
+                    } else {
+                        this.isEmpty = true
+                    }
+                })
+                .catch(error => {
+                    this.$util.msg(error.msg, 2000)
+                })
         },
         },
         GetOnReachBottomAddressList() {
         GetOnReachBottomAddressList() {
             //上滑加载
             //上滑加载

+ 44 - 22
pages/user/order/create-order.vue

@@ -24,6 +24,7 @@
                 :showStatus="false"
                 :showStatus="false"
                 :couponList="receiveCouponList"
                 :couponList="receiveCouponList"
                 @chooseCoupon="chooseCoupon"
                 @chooseCoupon="chooseCoupon"
+                @confirm="closeCouponList"
                 :currentId="currentCouponId"
                 :currentId="currentCouponId"
             ></cm-coupon-list>
             ></cm-coupon-list>
             <!-- 运费 -->
             <!-- 运费 -->
@@ -37,7 +38,9 @@
                     <view class="footer-price">
                     <view class="footer-price">
                         <view class="sum" :class="totalFullReduction == 0 ? 'none' : ''">
                         <view class="sum" :class="totalFullReduction == 0 ? 'none' : ''">
                             <view class="price">总价:¥{{ payAllPrice | NumFormat }}</view>
                             <view class="price">总价:¥{{ payAllPrice | NumFormat }}</view>
-                            <view class="discount" v-if="discountedPrice > 0">共减 ¥{{ discountedPrice | NumFormat }}</view>
+                            <view class="discount" v-if="discountedPrice > 0"
+                                >共减 ¥{{ discountedPrice | NumFormat }}</view
+                            >
                         </view>
                         </view>
                     </view>
                     </view>
                 </view>
                 </view>
@@ -84,7 +87,7 @@ export default {
             addressData: {}, //初始化地址信息
             addressData: {}, //初始化地址信息
             goodsData: [], //初始化商品信息
             goodsData: [], //初始化商品信息
             freightData: {}, //邮费数据
             freightData: {}, //邮费数据
-            productsList: [],
+            productList: [],
             params: {
             params: {
                 userId: 0
                 userId: 0
             },
             },
@@ -101,7 +104,9 @@ export default {
             receiveCouponList: [],
             receiveCouponList: [],
             currentCouponId: -1,
             currentCouponId: -1,
             currentCoupon: null,
             currentCoupon: null,
-            loadingText: '正在创建订单'
+            loadingText: '正在创建订单',
+            canUseCouponList:[],
+            notUseCouponList:[],
         }
         }
     },
     },
     onLoad(option) {
     onLoad(option) {
@@ -136,13 +141,13 @@ export default {
         // 支付金额
         // 支付金额
         payAllPrice() {
         payAllPrice() {
             const payAllPrice = this.allPrice - this.couponAmount
             const payAllPrice = this.allPrice - this.couponAmount
-            return  payAllPrice < 0 ? 0 : payAllPrice
+            return payAllPrice < 0 ? 0 : payAllPrice
         },
         },
         hanldOrder() {
         hanldOrder() {
             return {
             return {
                 order: this.orderInfo
                 order: this.orderInfo
             }
             }
-        }
+        },
     },
     },
     filters: {
     filters: {
         NumFormat(value) {
         NumFormat(value) {
@@ -151,9 +156,6 @@ export default {
         }
         }
     },
     },
     methods: {
     methods: {
-        closeCouponList() {
-            this.couponVisible = false
-        },
         // 获取可用优惠券
         // 获取可用优惠券
         fetchCouponList() {
         fetchCouponList() {
             this.CouponService.GetCouponByProductIds({ userId: this.userId, productIds: this.productIds }).then(res => {
             this.CouponService.GetCouponByProductIds({ userId: this.userId, productIds: this.productIds }).then(res => {
@@ -163,33 +165,51 @@ export default {
         },
         },
         // 对优惠券进行分类排序
         // 对优惠券进行分类排序
         filterCouponList() {
         filterCouponList() {
-            const productList = []
-            this.goodsData.forEach(shop => productList.push(...shop.productList.map(prod => prod)))
-            let canUseCouponList = [] // 可以使用的优惠券
-            let notUseCouponList = [] // 需要凑单使用的优惠券
+            this.goodsData.forEach(shop => this.productList.push(...shop.productList.map(prod => prod)))
+            this.canUseCouponList = [] // 可以使用的优惠券
+            this.notUseCouponList = [] // 需要凑单使用的优惠券
             this.receiveCouponList.forEach(coupon => {
             this.receiveCouponList.forEach(coupon => {
                 if (
                 if (
                     coupon.noThresholdFlag === 1 ||
                     coupon.noThresholdFlag === 1 ||
-                    (coupon.productType === 1 && allProdoceUseCheck(productList, coupon)) ||
-                    (coupon.productType === 2 && someProductUseCheck(productList, coupon))
+                    (coupon.productType === 1 && allProdoceUseCheck(this.productList, coupon)) ||
+                    (coupon.productType === 2 && someProductUseCheck(this.productList, coupon))
                 ) {
                 ) {
                     coupon.canSelect = true
                     coupon.canSelect = true
-                    canUseCouponList.push(coupon)
+                    this.canUseCouponList.push(coupon)
                 } else {
                 } else {
                     coupon.canSelect = false
                     coupon.canSelect = false
-                    notUseCouponList.push(coupon)
+                    this.notUseCouponList.push(coupon)
                 }
                 }
             })
             })
             // 金额高的排前面
             // 金额高的排前面
-            this.receiveCouponList = [...couponSort(canUseCouponList), ...couponSort(notUseCouponList)]
+            this.receiveCouponList = [...couponSort(this.canUseCouponList), ...couponSort(this.notUseCouponList)]
             // 当有可用优惠券时 默认选取第一个最优惠的
             // 当有可用优惠券时 默认选取第一个最优惠的
-            if (this.receiveCouponList.length > 0) {
+            if (this.canUseCouponList.length > 0) {
                 this.currentCouponId = this.receiveCouponList[0].couponId
                 this.currentCouponId = this.receiveCouponList[0].couponId
                 this.currentCoupon = this.receiveCouponList[0]
                 this.currentCoupon = this.receiveCouponList[0]
             }
             }
             // 显示界面
             // 显示界面
             this.isRequest = false
             this.isRequest = false
         },
         },
+        // 处理优惠券列表
+        resetCouponList(){
+            // 2将当前选中的优惠券从列表中删除
+            // 3将当前选中的优惠券放入最前面
+            // 4返回最新的优惠券列表
+            // 查找选中优惠券的索引
+            const index = this.canUseCouponList.findIndex(coupon=>coupon.couponId === this.currentCouponId)
+            // 从列表中删除
+            const currentCoupon = this.canUseCouponList.splice(index, 1)
+            // 重新排序 将选中的优惠券放到最前面
+            this.canUseCouponList = [...currentCoupon, ...couponSort(this.canUseCouponList)]
+            // 重新生成receiveCouponList
+            this.receiveCouponList = [...this.canUseCouponList, ...this.notUseCouponList]
+        },
+        // 确认选中
+        closeCouponList(){
+            this.couponVisible = false
+            this.resetCouponList()
+        },
         // 选中优惠券
         // 选中优惠券
         chooseCoupon(coupon) {
         chooseCoupon(coupon) {
             if (coupon.couponId > -1) {
             if (coupon.couponId > -1) {
@@ -199,7 +219,7 @@ export default {
                 this.currentCoupon = null
                 this.currentCoupon = null
                 this.currentCouponId = -1
                 this.currentCouponId = -1
             }
             }
-            this.couponVisible = false
+            // this.couponVisible = false
         },
         },
         //确认订单初始化信息
         //确认订单初始化信息
         getInitCrearOrder(params) {
         getInitCrearOrder(params) {
@@ -208,6 +228,7 @@ export default {
                     let data = response.data
                     let data = response.data
                     this.goodsData = data.shopList
                     this.goodsData = data.shopList
                     this.allPrice = data.totalPrice
                     this.allPrice = data.totalPrice
+                    
                     this.fetchCouponList()
                     this.fetchCouponList()
                 })
                 })
                 .catch(error => {
                 .catch(error => {
@@ -235,8 +256,6 @@ export default {
         orderSubmitMit() {
         orderSubmitMit() {
             //提交订单
             //提交订单
             if (this.isSubLoading) return
             if (this.isSubLoading) return
-            this.isSubLoading = true
-            this.loadingText = '正在创建订单...'
             if (this.subParams.addressId == '') return this.$util.msg('请先添加收货地址~', 2000)
             if (this.subParams.addressId == '') return this.$util.msg('请先添加收货地址~', 2000)
             // 选中的优惠券id
             // 选中的优惠券id
             this.subParams.couponId = this.currentCouponId === -1 ? '' : this.currentCouponId
             this.subParams.couponId = this.currentCouponId === -1 ? '' : this.currentCouponId
@@ -253,6 +272,8 @@ export default {
                 })
                 })
                 return { shopId: el.shopId, note: el.note ? el.note : '', productInfo: productInfo }
                 return { shopId: el.shopId, note: el.note ? el.note : '', productInfo: productInfo }
             })
             })
+            this.isSubLoading = true
+            this.loadingText = '正在创建订单...'
             this.OrderService.CreatedOrderSubmit(this.subParams)
             this.OrderService.CreatedOrderSubmit(this.subParams)
                 .then(response => {
                 .then(response => {
                     const data = response.data
                     const data = response.data
@@ -260,6 +281,7 @@ export default {
                     this.miniWxPayFor(data)
                     this.miniWxPayFor(data)
                 })
                 })
                 .catch(error => {
                 .catch(error => {
+                    this.isSubLoading = false
                     this.$util.msg(error.msg, 2000)
                     this.$util.msg(error.msg, 2000)
                     this.isSubLoading = false
                     this.isSubLoading = false
                 })
                 })
@@ -407,7 +429,7 @@ page {
             width: 100%;
             width: 100%;
             line-height: 58rpx;
             line-height: 58rpx;
             font-size: $font-size-24;
             font-size: $font-size-24;
-            color: #ff2a2a;
+            color: #ff457b;
             text-align: right;
             text-align: right;
             float: right;
             float: right;
         }
         }

+ 1 - 1
pages/user/order/order-details.vue

@@ -511,7 +511,7 @@ page {
             width: 100%;
             width: 100%;
             line-height: 58rpx;
             line-height: 58rpx;
             font-size: $font-size-24;
             font-size: $font-size-24;
-            color: #ff2a2a;
+            color: #ff457b;
             text-align: right;
             text-align: right;
             float: right;
             float: right;
         }
         }

+ 1 - 1
pages/user/order/order-list-retail.vue

@@ -830,7 +830,7 @@ page {
             font-size: $font-size-28;
             font-size: $font-size-28;
             line-height: 48rpx;
             line-height: 48rpx;
             text-align: right;
             text-align: right;
-            color: #ff2a2a;
+            color: #ff457b;
         }
         }
     }
     }
 }
 }

+ 1 - 1
pages/user/order/order-list.vue

@@ -808,7 +808,7 @@ page {
             font-size: $font-size-28;
             font-size: $font-size-28;
             line-height: 48rpx;
             line-height: 48rpx;
             text-align: right;
             text-align: right;
-            color: #ff2a2a;
+            color: #ff457b;
         }
         }
     }
     }
 }
 }

+ 6 - 6
pages/user/order/order-payment.vue

@@ -504,7 +504,7 @@ page {
                 float: left;
                 float: left;
                 text-align: center;
                 text-align: center;
                 .iconfont {
                 .iconfont {
-                    color: #ff2a2a;
+                    color: #ff457b;
                     font-size: $font-size-36;
                     font-size: $font-size-36;
                     line-height: 20rpx;
                     line-height: 20rpx;
                 }
                 }
@@ -515,7 +515,7 @@ page {
                 float: left;
                 float: left;
                 line-height: 40rpx;
                 line-height: 40rpx;
                 font-size: $font-size-26;
                 font-size: $font-size-26;
-                color: #ff2a2a;
+                color: #ff457b;
                 text-align: justify;
                 text-align: justify;
             }
             }
         }
         }
@@ -553,7 +553,7 @@ page {
                 line-height: 44rpx;
                 line-height: 44rpx;
                 text-align: center;
                 text-align: center;
                 &.bg-color {
                 &.bg-color {
-                    color: #ff2a2a;
+                    color: #ff457b;
                     line-height: 88rpx;
                     line-height: 88rpx;
                 }
                 }
             }
             }
@@ -569,7 +569,7 @@ page {
                 }
                 }
                 &.bg-color {
                 &.bg-color {
                     line-height: 44rpx;
                     line-height: 44rpx;
-                    color: #ff2a2a;
+                    color: #ff457b;
                 }
                 }
                 .clipboard {
                 .clipboard {
                     width: 84rpx;
                     width: 84rpx;
@@ -603,7 +603,7 @@ page {
                 line-height: 44rpx;
                 line-height: 44rpx;
                 text-align: center;
                 text-align: center;
                 &.bg-color {
                 &.bg-color {
-                    color: #ff2a2a;
+                    color: #ff457b;
                     line-height: 88rpx;
                     line-height: 88rpx;
                 }
                 }
             }
             }
@@ -634,7 +634,7 @@ page {
                 }
                 }
                 &.bg-color {
                 &.bg-color {
                     line-height: 44rpx;
                     line-height: 44rpx;
-                    color: #ff2a2a;
+                    color: #ff457b;
                 }
                 }
                 .clipboard {
                 .clipboard {
                     width: 84rpx;
                     width: 84rpx;

+ 4 - 4
pages/user/order/search-order.vue

@@ -892,7 +892,7 @@ page {
             font-size: $font-size-28;
             font-size: $font-size-28;
             line-height: 48rpx;
             line-height: 48rpx;
             text-align: right;
             text-align: right;
-            color: #ff2a2a;
+            color: #ff457b;
         }
         }
     }
     }
 }
 }
@@ -997,7 +997,7 @@ page {
             line-height: 48rpx;
             line-height: 48rpx;
             font-size: $font-size-28;
             font-size: $font-size-28;
             width: 48%;
             width: 48%;
-            color: #ff2a2a;
+            color: #ff457b;
             float: left;
             float: left;
             font-weight: bold;
             font-weight: bold;
             &.disabled {
             &.disabled {
@@ -1026,12 +1026,12 @@ page {
             border-radius: 6rpx;
             border-radius: 6rpx;
             background-color: #ffffff;
             background-color: #ffffff;
             line-height: 28rpx;
             line-height: 28rpx;
-            color: #ff2a2a;
+            color: #ff457b;
             text-align: center;
             text-align: center;
             display: inline-block;
             display: inline-block;
             padding: 0 5rpx;
             padding: 0 5rpx;
             font-size: $font-size-20;
             font-size: $font-size-20;
-            border: 1px solid #ff2a2a;
+            border: 1px solid #ff457b;
             float: left;
             float: left;
         }
         }
     }
     }