Explorar o código

commit -m 上线优化

zhengjinyi %!s(int64=4) %!d(string=hai) anos
pai
achega
eba3a2503a

+ 12 - 3
components/cm-module/homeIndex/hotProduct.vue

@@ -138,6 +138,15 @@
 		created(){
 			this.initData(this.list)
 		},
+		watch: {
+			list: {
+				handler: function (el) {//监听对象的变换使用 function,箭头函数容易出现this指向不正确
+					this.list = el
+					this.initData(this.list)
+				},
+				deep: true
+			}
+		},
 		computed: {
 			...mapState(['hasLogin','userInfo','isActivity'])
 		},
@@ -300,8 +309,8 @@
 						}
 					}
 					.no-price{
-						height: 54rpx;
-						line-height: 54rpx;
+						height: 70rpx;
+						line-height: 70rpx;
 						display: flex;
 						box-sizing: border-box;
 						.p-no{
@@ -316,7 +325,7 @@
 					}
 					.price{
 						color: #FF2A2A;
-						line-height:54rpx;
+						line-height:70rpx;
 						&.none{
 							text-decoration: line-through;
 							color: #999999;

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

@@ -202,6 +202,7 @@
 				height: auto;
 				border-bottom: 2rpx solid #e1e1e1;
 				padding: 10rpx;
+				box-sizing: border-box;
 			}	
 			.goods-pros-t{
 				display: flex;

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

@@ -162,6 +162,7 @@
 				display: inline-block;
 				&.same{
 					width: 45%;
+					text-align: right;
 				}
 				// &.title{
 				// 	height: 68rpx;
@@ -171,7 +172,6 @@
 				view{
 					// flex: 1;
 					color: $text-color;
-					text-align: left;
 					color: #999999;
 					.label{
 						color: #666666;

+ 1 - 1
pages/authorization/authorization.vue

@@ -147,7 +147,7 @@
 			.login-btn{
 				width: 630rpx;
 				height: 80rpx;
-				border-radius: 14rpx;
+				border-radius: 40rpx;
 				font-size: $font-size-32;
 				line-height: 80rpx;
 				color: #FFFFFF;

+ 5 - 4
pages/goods/instrument-details.vue

@@ -49,12 +49,12 @@
 			</view>	
 			<view class="product-details service" v-show="tabCurrentIndex == 0">
 				<view class="content tui-banner product-rich-text tui-skeleton-rect">
-					<parser :html="this.$api.adaptRichTextImg(crmDetailList[tabCurrentIndex].content)" :img-mode="widthFix"></parser>
+					<parser :html="html" :img-mode="widthFix"></parser>
 				</view>
 			</view>	
 			<view class="product-details service" v-show="tabCurrentIndex == 1">
 				<view class="content service" v-if="crmDetailList[tabCurrentIndex].content">
-					{{ crmDetailList[tabCurrentIndex].content }}
+					{{ crmDetailList[tabCurrentIndex].content ? crmDetailList[tabCurrentIndex].content : '' }}
 				</view>
 				<view class="content service">
 					<view class="content-none">暂无内容</view>
@@ -62,7 +62,7 @@
 			</view>	
 			<view class="product-details service" v-show="tabCurrentIndex == 2">
 				<view class="content service" v-if="crmDetailList[tabCurrentIndex].content">
-					{{ crmDetailList[tabCurrentIndex].content }}
+					{{ crmDetailList[tabCurrentIndex].content ? crmDetailList[tabCurrentIndex].content : '' }}
 				</view>
 				<view class="content service">
 					<view class="content-none">暂无内容</view>
@@ -224,6 +224,7 @@
 					this.secondFloorList = pageMap.secondFloorList
 					this.firstFloorList = pageMap.firstFloorList
 					this.crmDetailList = pageMap.crmDetailList
+					this.html = this.$api.adaptRichTextImg(this.crmDetailList[0].content)
 					this.floorList = data.floorList
 					this.skeletonShow = false
 					this.productImage=[];
@@ -661,7 +662,7 @@
 			float: left;
 			.content-tr{
 				width: 100%;
-				height: 58rpx;
+				height: auto;
 				line-height: 58rpx;
 				display: flex;
 				.content-td{

+ 7 - 4
pages/tabBar/home/index.vue

@@ -13,7 +13,7 @@
 			<view v-for="(item,index) in flootData" :key="index">
 				<template v-if="item.type === 1">
 					<!-- 推荐专区 -->
-					<hot-product :list="RecommendList" :userIdentity="userIdentity" v-if="isRequest"></hot-product>
+					<hot-product :list="RecommendList" :userIdentity="userIdentity" v-if="isRequestHot"></hot-product>
 				</template>
 				<template v-if="item.type === 3">
 					<!-- 供应商专题 -->
@@ -119,7 +119,8 @@
 					{text:'联系我们',icon:'../../../static/temp/server4@2x.png',path:''},
 				],
 				isScrollTop:false,
-				isRequest:false
+				isRequest:false,
+				isRequestHot:false
 			}
 		},
 		onLoad() {
@@ -207,6 +208,7 @@
 					this.GetHomeInit();
 					this.GetHomeRecommendInfo()
 					this.GetHomeFloorInfo()
+					this.isRequest = true
 				}).catch(error =>{
 					this.$util.msg(error.msg,2000)
 				})
@@ -227,7 +229,7 @@
 				this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
 					this.RecommendList = this.ReturnNewProducts(this.RecommendList,response.data);
 					this.skeletonShow = false;
-					this.isRequest = true
+					this.isRequestHot = true
 				}).catch(error =>{
 					this.$util.msg(error.msg,2000)
 				})
@@ -368,7 +370,8 @@
 			}
 		},
 		onShow(){
-			this.modallayer = false;
+			this.modallayer = false
+			this.isRequestHot = false
 			authorize.getSetting().then(res =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
 				if(res == 1){
 					this.getWxAuthorize()