浏览代码

修复协销立即下单

zhengjinyi 5 年之前
父节点
当前提交
3534b8e5e4
共有 2 个文件被更改,包括 6 次插入7 次删除
  1. 3 6
      components/cm-module/listTemplate/immediatelyList.vue
  2. 3 1
      seller/pages/cart/immediately.vue

+ 3 - 6
components/cm-module/listTemplate/immediatelyList.vue

@@ -31,7 +31,7 @@
 		<view class="product-container" v-else >
 			<view :class="tabIndex" v-if="tabIndex === 0"  :style="{paddingTop:searchStatus?'128rpx':''}">
 				<scroll-view :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower(tabIndex)" scroll-y v-if="listData.length > 0">
-					<view v-for="(item,index) in listData" :key="index" :id="item.id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.productID)"  >
+					<view v-for="(item,index) in listData" :key="index" :id="item.id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.pid)"  >
 					    <image mode='widthFix' :src="item.image"  class="list-img" alt="list-img"></image>
 						<view class="list-details-info">
 							<text class="list-details-title">{{isInterceptHtmlFn(item.name)}}</text>
@@ -215,7 +215,8 @@
 				this.scrollHeight = windowHeight - 1;
 			},
 			getProductAgainInfo(loadMore) {
-				this.showLoading = true;
+				this.showLoading = true;
+				this.priceLoading = true;
 				this.loadingNow = true;
 				this.loadingText = '加载中';
 				this.isShowEmpty = false;				
@@ -224,14 +225,12 @@
 				queryNewSearchProduct(params).then(response =>{
 					this.isShowWrapper = true
 					const resData = JSON.parse(response.data);
-					console.log(resData)
 					const resList = resData.items;
 					if(resList && resList.length > 0){
 						this.totalPage = resData.total;
 						this.showEmpty = false;
 						if(loadMore) {
 							this.listData = [...this.listData,...resList];
-							console.log(this.listData)
 							this.setProductPrice()
 						} else {
 							this.listData = [...resList];
@@ -263,7 +262,6 @@
 				this.listData.map(item=>{
 					productIdArr.push(item.pid) 
 				})
-				console.log(productIdArr)
 				this.productIds = productIdArr.join(",");
 				querySearchProductPrice({userId: this.clubUserId,productIds:this.productIds}).then(response =>{
 					if (response.data) {
@@ -292,7 +290,6 @@
 								}
 							}
 						});
-						console.log(this.listData)
 					}
 					this.priceLoading = false;
 				}).catch(error =>{

+ 3 - 1
seller/pages/cart/immediately.vue

@@ -136,6 +136,8 @@
 			hanldChangeTab(index){
 				if(index == 1){
 					this.$refs.productList.getcombinationProduct()
+				}else{
+					this.$refs.productList.getProductAgainInfo();
 				}
 			},
 			hanldalertjietiConfim(data){
@@ -265,7 +267,7 @@
 			},
 			getAddProductCart(){//增加购物车成功和toast弹窗提示成功
 				let params ={
-						productId:this.handleData.productID,
+						productId:this.handleData.pid,
 						clubId:this.clubID,
 						serviceProviderId:this.serviceProviderId,
 						num:this.number