liujiaxin 3 semanas atrás
pai
commit
f09f862c8b

+ 17 - 17
common/request.js

@@ -14,9 +14,8 @@ export default class Request {
 		let path2 = 'https://userapp.klbycp.com'; //百域承品
 
 
-
-		// let path = 'http://j9d5863c.natappfree.cc/store';//百域承品
-		// let path2 = 'http://j9d5863c.natappfree.cc';//百域承品
+		// let path = 'http://qeeaf625.natappfree.cc/store'; //本地
+		// let path2 = 'http://qeeaf625.natappfree.cc'; //本地
 
 		let type = 0
 		uni.setStorageSync('requestPath', path2)
@@ -28,26 +27,28 @@ export default class Request {
 			path = 'https://im.fhhx.runtzh.com';
 		}
 
-		if (router.indexOf("/live") !== -1||router.indexOf("/liveAPP") !== -1) {
-			path = 'https://userapp.klbycp.com';
-			// console.log("在live里面>>>>.",`${path}${router}`)
+		if (router.indexOf("/live") !== -1 || router.indexOf("/liveAPP") !== -1) {
+			// path = 'https://userapp.klbycp.com';
+			path = path2
 			router = router.replace('/liveAPP', '')
-			type=4
+			type = 4
 			token = uni.getStorageSync('AppToken');
 		}
-		
+
 		if (router.indexOf("/patient/getPatientList") !== -1) {
-			path = 'https://userapp.klbycp.com';
-			// path = 'http://j9d5863c.natappfree.cc';
+			// path = 'https://userapp.klbycp.com';
+			path = path2
 		}
 		if (router.indexOf("/getGotoWxAppLiveLink") !== -1) {
-			path = 'https://userapp.klbycp.com/companyapp';
+			// path = 'https://userapp.klbycp.com/companyapp';
+			path = `${path2}/companyapp`;
 		}
 
 		let token = uni.getStorageSync('AppToken');
 		if (router.indexOf("/companyapp") != -1) {
 			// router =router.replace('/companyapp','')
-			path = 'https://userapp.klbycp.com' //百域承品
+			// path = 'https://userapp.klbycp.com' //百域承品
+			path = path2 //本地
 			type = 1
 			token = uni.getStorageSync('ManageToken');
 		}
@@ -57,17 +58,16 @@ export default class Request {
 		if (router.indexOf("/course_auto") != -1) {
 			type = 2
 			router = router.replace('/course_auto', '')
-			// path = 'http://w43fa358.natappfree.cc'
-			path = 'https://userapp.klbycp.com' //百域承品
+			// path = 'https://userapp.klbycp.com' //百域承品
+			path = path2 //本地
 			token = uni.getStorageSync(TOKEN_KEYAuto)
 			console.log("TOKEN_KEYAuto===", TOKEN_KEYAuto, token)
 		}
 		if (router.indexOf("/course_uniapp") != -1) {
 			type = 3
 			router = router.replace('/course_uniapp', '')
-			//张玉朋
-			// let path = 'http://192.168.10.158:8113'//
-			path = 'https://userapp.klbycp.com' //百域承品
+			// path = 'https://userapp.klbycp.com' //百域承品
+			path = path2
 			token = uni.getStorageSync('TOKEN_WEXIN')
 		}
 

+ 60 - 20
pages/shopping/cart.vue

@@ -10,7 +10,7 @@
 				<view class="info-box">
 					<view>
 						<view class="title-box">
-							<view class="tag">{{utils.getDictLabelName("storeProductType",item.productType)}}</view>
+							<!-- <view class="tag">{{utils.getDictLabelName("storeProductType",item.productType)}}</view> -->
 							<view class="title ellipsis">{{ item.productName }}</view>
 						</view>
 						<view class="intro ellipsis">{{item.productAttrName}}</view>
@@ -25,7 +25,8 @@
 								<image v-if="item.cartNum <= 1" src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/jian.png" mode=""></image>
 								<image v-else src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/jian2.png" mode=""></image>
 							</view>
-							<input  type="number" @change="changeNum($event,item)" :value="item.cartNum"   />
+							<!-- <input  type="number" @change="changeNum($event,item)" :value="item.cartNum"   /> -->
+							<input type="number" @blur="changeNum($event,item)" v-model="item.cartNum" />
 							<view class="img-box" @click="addNum(item)">
 								<image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/add.png" mode=""></image>
 							</view>
@@ -146,24 +147,24 @@
 				this.checkAll = this.carts.every(item=>item.checked)
 				this.computedMoney();
 			},
-			changeNum(e,item) {
-				item.cartNum = e.detail.value.replace(/\D/g, '')
-				if (item.cartNum <= 1) {
-				  uni.showToast({
-				    title: "已经是底线啦!",
-				    icon: "none",
-				    duration: 2000
-				  });
-				  return;
-				}
-				if(item.cartNum < 1) {
-					item.cartNum = 1
-				}
-				if(item.cartNum>=item.stock){
-					item.cartNum=item.stock;
-				}
-				this.changeCartNum(item)
-			},
+			// changeNum(e,item) {
+			// 	item.cartNum = e.detail.value.replace(/\D/g, '')
+			// 	if (item.cartNum <= 1) {
+			// 	  uni.showToast({
+			// 	    title: "已经是底线啦!",
+			// 	    icon: "none",
+			// 	    duration: 2000
+			// 	  });
+			// 	  return;
+			// 	}
+			// 	if(item.cartNum < 1) {
+			// 		item.cartNum = 1
+			// 	}
+			// 	if(item.cartNum>=item.stock){
+			// 		item.cartNum=item.stock;
+			// 	}
+			// 	this.changeCartNum(item)
+			// },
 			changeCartNum(item){
 				let data = {number:item.cartNum,id:item.id};
 				cartNum(data).then(
@@ -186,6 +187,45 @@
 					rej => {}
 				);
 			},
+			changeNum(e, item) {
+			    let value = e.detail.value.replace(/\D/g, '')
+			    
+			    // 转换为数字
+			    let num = parseInt(value)
+			    
+			    // 检查是否为有效数字
+			    if (isNaN(num) || value === '') {
+			        num = 1
+			        uni.showToast({
+			            title: "数量不能为空",
+			            icon: "none",
+			            duration: 2000
+			        });
+			    }
+			    
+			    // 限制最小值
+			    if (num < 1) {
+			        num = 1
+			        uni.showToast({
+			            title: "最小数量为1",
+			            icon: "none",
+			            duration: 2000
+			        });
+			    }
+			    
+			    // 限制最大值(库存)
+			    if (num > item.stock) {
+			        num = item.stock
+			        uni.showToast({
+			            title: "库存不足,已设为最大库存",
+			            icon: "none",
+			            duration: 2000
+			        });
+			    }
+			    
+			    item.cartNum = num
+			    this.changeCartNum(item)
+			},
 			getCarts(){
 				getCarts().then(
 					res => {

+ 2 - 2
pages/user/index.vue

@@ -181,12 +181,12 @@
 
 
 							<!-- 测试用下面的 -->
-							<!-- <view class="item no-marin-bottom align-top" @click="navgetTo('/pages_course/livingList')">
+							<view class="item no-marin-bottom align-top" @click="navgetTo('/pages_course/livingList')">
 								<image
 									src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/integral.png"
 									mode=""></image>
 								<text class="text">直播</text>
-							</view> -->
+							</view>
 
 							<view class="item no-marin-bottom" @click="toManager()">
 								<image

+ 21 - 12
pages_course/living.vue

@@ -179,7 +179,7 @@
 
 					<!-- 底部输入和操作区域 -->
 					<view class="input-actions-container" :class="{ 'input-actions-focused': isFocus }">
-						<view class="input-container" :class="{ 
+						<view v-if="liveItem.status!=3" class="input-container" :class="{ 
 									'input-container-focused': isFocus,
 									'input-container-normal': !isFocus
 								}">
@@ -194,10 +194,11 @@
 								placeholder-class="placeholder-style" class="chat-input"
 								:class="{ 'input-focused': isFocus }" @focus="inputFocus" @blur="inputBlur"
 								cursor-spacing="100" :adjust-position="false" :disabled="isEnd" />
-
-							<view v-if="isFocus&&!isIOS" class="send-button" @click="sendMsg()">发送</view>
+							<!-- v-if="isFocus&&!isIOS" -->
+							<view class="send-button" :class="liveItem.showType == 1 ? 'send2' : ''" @click="sendMsg()">发送</view>
 						</view>
-						<view class="action-buttons" :class="{ 'action-buttons-hidden': isFocus }">
+						<!--  :class="{ 'action-buttons-hidden': isFocus }" -->
+						<view class="action-buttons" v-if="!isFocus">
 							<view class="action-button-group" v-if="!isFocus">
 								<view
 									:class="[liveItem.showType === 1 ? 'horizontal' : 'vertical','icon-button','ml20']"
@@ -222,7 +223,7 @@
 									</button>
 								</view>
 							</view>
-							<view class="icon-button ml20" @tap="openCart()">
+							<view class="icon-button " @tap="openCart()">
 								<image
 									src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/shopping.png"
 									class="cart-icon" />
@@ -573,7 +574,8 @@
 								mode="widthFix" />
 							<input placeholder="请搜索商品" v-model="inputInfo" @input="handleSearchInput" />
 						</view>
-						<view class="shopping-action-button" @click="navgetTo('/pages_shopping/live/order')">
+						<view class="x-f">
+						<view class="shopping-action-button mr30" @click="navgetTo('/pages_shopping/live/order')">
 							<image class="action-button-icon"
 								src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/carts.png" />
 							<view class="action-button-label">订单</view>
@@ -583,6 +585,7 @@
 								src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/search2.png" />
 							<view class="action-button-label">更多</view>
 						</view>
+						</view>
 					</view>
 
 					<scroll-view enable-flex scroll-y class="products-list">
@@ -4720,7 +4723,7 @@
 						perspective: 1000px;
 
 						&.input-container-normal {
-							padding: 18rpx 32rpx;
+							padding: 18rpx 20rpx;
 							width: auto;
 							max-width: auto;
 							margin-right: 0;
@@ -4729,10 +4732,10 @@
 
 						&.input-container-focused {
 							padding: 10rpx 10rpx 10rpx 20rpx;
-							width: calc(100% - 20rpx);
+							width: 100%;
 							max-width: calc(100% - 20rpx);
 							margin-right: 20rpx;
-							flex: 1;
+							// flex: 1;
 							justify-content: flex-start;
 						}
 
@@ -4748,7 +4751,7 @@
 							margin-left: 20rpx;
 
 							&.input-focused {
-								width: auto !important;
+								width: 100% !important;
 								flex: 1 !important;
 								min-width: 0 !important;
 								margin-left: 10rpx !important;
@@ -4765,15 +4768,21 @@
 							min-width: 80rpx;
 							text-align: center;
 							flex-shrink: 0;
+							&.send2 {
+								background-color: #2fa9f1;
+								color: #ffffff;
+							}
 						}
+						
 					}
 
 					.action-buttons {
 						display: flex;
 						justify-content: space-between;
 						align-items: center;
-						margin-right: 15rpx;
+						// margin-right: 15rpx;
 						transform: translateZ(0);
+						justify-content: flex-end;
 
 						&.action-buttons-hidden {
 							opacity: 0;
@@ -4795,7 +4804,7 @@
 							justify-content: center;
 							align-items: center;
 							transition: transform 0.2s ease;
-							margin-left: 20rpx;
+							margin-left: 10rpx;
 
 							&.like-container {
 								display: flex;

+ 120 - 81
pages_shopping/live/confirmCreateOrder.vue

@@ -9,7 +9,8 @@
 					</view>
 				</view>
 				<view class="arrow-box">
-					<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow_gray.png" mode=""></image>
+					<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow_gray.png"
+						mode=""></image>
 				</view>
 			</view>
 			<view class="address-box" v-if="address!=null" @click="openAddress()">
@@ -23,7 +24,8 @@
 					</view>
 				</view>
 				<view class="arrow-box">
-					<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow_gray.png" mode=""></image>
+					<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow_gray.png"
+						mode=""></image>
 				</view>
 			</view>
 
@@ -45,7 +47,8 @@
 					</view>
 					<view class="right">
 						<text class="text">{{couponText}}</text>
-						<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow4.png" mode=""></image>
+						<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow4.png"
+							mode=""></image>
 					</view>
 				</view>
 				<view class="points">
@@ -58,6 +61,13 @@
 						<text class="text" v-if="address==null">--</text>
 					</view>
 				</view>
+
+				<!-- 备注 -->
+				<view class="remarks">
+					<input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
+				</view>
+
+
 				<view class="points">
 					<view class="left">
 						<text class="text">合计</text>
@@ -89,9 +99,11 @@
 					<div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
 						<div class="money">
 							<image v-if="item.status==0&&item.useMinPrice<=orderData.totalPrice" class="img"
-								src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/coupon1.png" mode="widthFix"></image>
+								src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/coupon1.png"
+								mode="widthFix"></image>
 							<image v-if="item.status!=0||item.useMinPrice>orderData.totalPrice" class="img"
-								src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/coupon2.png" mode="widthFix"></image>
+								src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/coupon2.png"
+								mode="widthFix"></image>
 							<div style="z-index: 999;">
 								¥<span class="num">{{ item.couponPrice }}</span>
 							</div>
@@ -114,7 +126,8 @@
 					</div>
 				</div>
 				<view v-if="couponsList.length == 0" class="no-data-box">
-					<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/no_data.png" mode="aspectFit"></image>
+					<image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/no_data.png"
+						mode="aspectFit"></image>
 					<view class="empty-title">暂无数据</view>
 				</view>
 			</view>
@@ -142,7 +155,7 @@
 		data() {
 			return {
 				orderData: {
-					totalPrice:null
+					totalPrice: null
 				},
 				cityId: null,
 				address: null,
@@ -163,21 +176,21 @@
 				confirmParam: [],
 				type: '',
 				isFirstLoad: true,
-				recordId:''
+				recordId: ''
 			}
 		},
 
 		onLoad(options) {
 			console.log("确认订单", options)
-			this.orderKey = options.orderKey||'';
-			this.liveId = options.liveId||'';
-			this.goodsId = options.goodsId||'';
-			this.productId = options.productId||'';
+			this.orderKey = options.orderKey || '';
+			this.liveId = options.liveId || '';
+			this.goodsId = options.goodsId || '';
+			this.productId = options.productId || '';
 			this.totalNum = Number(options.totalNum) || 0;
 			this.type = options.type;
 			this.isFirstLoad = true;
-			this.recordId=options.recordId||'';
-			
+			this.recordId = options.recordId || '';
+
 			if (options.type == 'win') {
 				this.getKey()
 			}
@@ -189,7 +202,7 @@
 				this.address = e;
 				this.addressId = e.addressId;
 				this.cityId = e.cityId;
-				console.log("地址",e.cityId)
+				console.log("地址", e.cityId)
 			});
 		},
 		mounted() {
@@ -285,14 +298,14 @@
 			computedRewardOrder() {
 				let data = {
 					cityId: this.cityId || '',
-					productId: this.productId ,
+					productId: this.productId,
 					orderKey: this.orderKey,
 					totalNum: 1,
 				}
 				computedReward(data).then(res => {
 						if (res.code == 200) {
 							console.log("查询创建订单信息>>>>", res.data)
-							this.orderData = res.data||{}
+							this.orderData = res.data || {}
 						} else {
 							uni.showToast({
 								title: res.msg,
@@ -324,47 +337,48 @@
 
 				}
 
-				return createliveOrder(data).then(res => { 
+				return createliveOrder(data).then(res => {
 					if (res.code == 200) {
 						this.orderList = res.order;
-						return res.order; 
+						return res.order;
 					} else {
 						uni.showToast({
 							title: res.msg,
 							icon: 'none'
 						});
-						throw new Error(res.msg); 
+						throw new Error(res.msg);
 					}
 				});
 			},
 			// 创建抽奖订单
 			createRewardOrder() {
-			    let data = {
-			        cityId: this.cityId,
-			        liveId: this.liveId,
-			        orderKey: this.orderKey,
-			        userName: this.address.realName,
-			        userPhone: this.address.phone,
-			        userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' + this.address.detail,
-			        cartId: "5",
-			        productId: this.productId,
-			        totalNum: 1,
-			        couponUserId: this.couponUserId,
-					recordId:this.recordId
-			    }
-			
-			    return createReward(data).then(res => {
-			        if (res.code == 200) {
-			            this.orderList = res.order || {};
-			            return res.order || {};
-			        } else {
-			            uni.showToast({
-			                title: res.msg,
-			                icon: 'none'
-			            });
-			            throw new Error(res.msg);
-			        }
-			    });
+				let data = {
+					cityId: this.cityId,
+					liveId: this.liveId,
+					orderKey: this.orderKey,
+					userName: this.address.realName,
+					userPhone: this.address.phone,
+					userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
+						this.address.detail,
+					cartId: "5",
+					productId: this.productId,
+					totalNum: 1,
+					couponUserId: this.couponUserId,
+					recordId: this.recordId
+				}
+
+				return createReward(data).then(res => {
+					if (res.code == 200) {
+						this.orderList = res.order || {};
+						return res.order || {};
+					} else {
+						uni.showToast({
+							title: res.msg,
+							icon: 'none'
+						});
+						throw new Error(res.msg);
+					}
+				});
 			},
 			couponSelect(item) {
 				this.couponText = "-¥" + (item.couponPrice || 0).toFixed(2);
@@ -382,7 +396,7 @@
 				if (this.couponsList.length === 0 || !this.isFirstLoad) {
 					return;
 				}
-				const availableCoupons = this.couponsList.filter(item => 
+				const availableCoupons = this.couponsList.filter(item =>
 					item.status === 0 && item.useMinPrice <= (this.orderData.totalPrice || 0)
 				);
 				if (availableCoupons.length === 0) {
@@ -392,7 +406,7 @@
 				const maxCoupon = availableCoupons[0];
 				this.couponText = "-¥" + (maxCoupon.couponPrice || 0).toFixed(2);
 				this.couponUserId = maxCoupon.id;
-				
+
 				console.log('自动选择最大优惠券:', maxCoupon);
 				this.isFirstLoad = false;
 				// 重新计算订单价格
@@ -428,39 +442,39 @@
 			},
 			// 提交订单
 			async submitOrder() {
-			    try {
-			        if (this.orderKey == null) {
-			            uni.showToast({
-			                icon: 'none',
-			                title: '订单KEY不存在',
-			            });
-			            return;
-			        }
-			        if (this.address == null) {
-			            uni.showToast({
-			                icon: 'none',
-			                title: '收货地址不能为空',
-			            });
-			            return;
-			        }
-			        let orderList;
-			        if (this.type == "win") {  
-			            orderList = await this.createRewardOrder(); // 中奖订单
-			        } else {
-			            orderList = await this.createLiveOrder(); // 购买订单
-			        }
-			        console.log("orderList>>", orderList)
-			        const orderListStr = encodeURIComponent(JSON.stringify(orderList));
-			        uni.navigateTo({
-			            url: `/pages_shopping/live/paymentOrder?orderList=${orderListStr}&couponUserId=${this.couponUserId}&type=${this.type}`
-			        });
-			    } catch (error) {
-			        console.error('提交订单错误:', error);
-			        uni.showToast({
-			            title: error.message || '提交订单失败',
-			            icon: 'none'
-			        });
-			    }
+				try {
+					if (this.orderKey == null) {
+						uni.showToast({
+							icon: 'none',
+							title: '订单KEY不存在',
+						});
+						return;
+					}
+					if (this.address == null) {
+						uni.showToast({
+							icon: 'none',
+							title: '收货地址不能为空',
+						});
+						return;
+					}
+					let orderList;
+					if (this.type == "win") {
+						orderList = await this.createRewardOrder(); // 中奖订单
+					} else {
+						orderList = await this.createLiveOrder(); // 购买订单
+					}
+					console.log("orderList>>", orderList)
+					const orderListStr = encodeURIComponent(JSON.stringify(orderList));
+					uni.navigateTo({
+						url: `/pages_shopping/live/paymentOrder?orderList=${orderListStr}&couponUserId=${this.couponUserId}&type=${this.type}`
+					});
+				} catch (error) {
+					console.error('提交订单错误:', error);
+					uni.showToast({
+						title: error.message || '提交订单失败',
+						icon: 'none'
+					});
+				}
 			},
 		}
 	}
@@ -549,6 +563,31 @@
 			}
 		}
 
+		.remarks {
+			height: 88upx;
+			padding: 0 30upx;
+			background: #FFFFFF;
+			border-radius: 16upx;
+			margin-top: 20upx;
+			display: flex;
+			align-items: center;
+
+			input {
+				width: 100%;
+				font-size: 28upx;
+				font-family: PingFang SC;
+				font-weight: 500;
+				color: #000000;
+			}
+
+			.input {
+				font-size: 28upx;
+				font-family: PingFang SC;
+				font-weight: 500;
+				color: #999999;
+			}
+		}
+
 		.points {
 			height: 88rpx;
 			padding: 0 30rpx;

+ 19 - 0
pages_shopping/live/goods.vue

@@ -78,6 +78,25 @@
 						</view>
 					</view>
 				</view>
+				
+				
+				<!-- 规格 -->
+				<view class="spec-box">
+					<view v-for="(item,index) in attrs" :key="index">
+						<view class="title">{{item.attrName}}</view>
+						<view class="spec-list">
+							<view 
+								v-for="(subItem,subindex) in item.values" 
+								:key="subindex" 
+								:class="subindex==item.index?'item active':'item'" 
+								@click="choseSpec(index,subindex)">
+								{{ subItem }}
+							</view>
+						</view>
+					</view>
+				</view>
+				
+				
 
 				<view class="price-num">
 					<view class="label">数量</view>

+ 1 - 1
pages_shopping/live/order.vue

@@ -176,7 +176,7 @@
 
 				} else {
 					uni.navigateTo({
-						url: './storeOrderDetail?orderId=' + item.orderId
+						url: './storeOrderDetail?orderId=' + item.orderId+'&liveId='+item.liveId
 					})
 				}
 

+ 3 - 5
pages_shopping/live/storeOrderDetail.vue

@@ -160,10 +160,6 @@
 							</view>
 						</view>
 					</view>
-
-
-
-
 					<!-- 订单信息 -->
 					<view class="order-info">
 						<view class="title">订单信息</view>
@@ -269,6 +265,7 @@
 	export default {
 		data() {
 			return {
+				liveId:null,
 				product: {},
 				isAfterSales: 0,
 				payLimitTime: null,
@@ -283,6 +280,7 @@
 		},
 		onLoad(option) {
 			this.orderId = option.orderId
+			this.liveId=option.liveId
 			if (!option.orderCode) {}
 		},
 		onShow() {
@@ -322,7 +320,7 @@
 			openDetails(item) {
 				console.log(item.productId)
 				uni.navigateTo({
-					url: '/pages_shopping/live/goods?productId=' + item.productId
+					url: '/pages_shopping/live/goods?productId=' + item.productId+'&liveId='+this.liveId
 				})
 			},
 			// addPrescribe() {