Forráskód Böngészése

三大运营商类型店铺只有到店取餐

1410417013 10 hónapja
szülő
commit
de9f2792f6
2 módosított fájl, 12 hozzáadás és 5 törlés
  1. 9 3
      pages/index/shop/confirmOrder.vue
  2. 3 2
      pages/index/shop/index.vue

+ 9 - 3
pages/index/shop/confirmOrder.vue

@@ -4,7 +4,7 @@
 		<view class="text-center text-red" v-if="isTrue && orderType == 2">超出配送距离</view>
 		<view class="food">
 			<view class="flex bg justify-between padding-lr-xl">
-				<view @click="switchTab(2)" :class="orderType == 2 ? 'select' : ''" class="tabBtn" v-if="XCXIsSelect == '是' && showReach != 1">
+				<view @click="switchTab(2)" :class="orderType == 2 ? 'select' : ''" class="tabBtn" v-if="XCXIsSelect == '是' && showReach != 1 && shopTypeName!='三大运营商'">
 					<view class="title">外卖配送</view>
 					<view :class="orderType == 2 ? 'active' : ''"></view>
 				</view>
@@ -378,11 +378,13 @@ export default {
 			// 可获得积分
 			intergral: 0,
 			// 是否显示积分模块
-			isIntegral: false
+			isIntegral: false,
+			shopTypeName:'',//店铺类型
 		}
 	},
 	onLoad(option) {
 		console.log(option, '256')
+		this.shopTypeName=option.shopTypeName
 		if (option.showReach) {
 			this.showReach = option.showReach
 		}
@@ -443,7 +445,11 @@ export default {
 		// #endif
 
 		this.shopId = option.shopId
-		this.orderType = option.orderType
+		if(option.shopTypeName=='三大运营商'){
+			this.orderType =1
+		}else{
+			this.orderType = option.orderType
+		}
 		if (option.orderId) {
 			this.orderId = option.orderId
 		}

+ 3 - 2
pages/index/shop/index.vue

@@ -1288,7 +1288,7 @@ export default {
 							if (goodstr1 == goodstr2) {
 								//检查购物车商品是否存在必须
 								uni.navigateTo({
-									url: '/pages/index/shop/confirmOrder?shopId=' + this.shopId + '&orderType=' + this.orderType
+									url: '/pages/index/shop/confirmOrder?shopId=' + this.shopId + '&orderType=' + this.orderType+'&shopTypeName='+this.shopDet.shopTypeName
 								})
 							} else {
 								uni.showToast({
@@ -1306,8 +1306,9 @@ export default {
 						}
 					}
 				} else {
+					console.log('3333fd',this.shopDet)
 					uni.navigateTo({
-						url: '/pages/index/shop/confirmOrder?shopId=' + this.shopId + '&orderType=' + this.orderType
+						url: '/pages/index/shop/confirmOrder?shopId=' + this.shopId + '&orderType=' + this.orderType+'&shopTypeName='+this.shopDet.shopTypeName
 					})
 				}
 			} else {