Просмотр исходного кода

杭州斗南鲜花批发部不显示免费配送

shish 3 лет назад
Родитель
Сommit
3fc127fc99
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      hdApp/src/admin/billing/affirmGhs.vue

+ 7 - 3
hdApp/src/admin/billing/affirmGhs.vue

@@ -55,7 +55,7 @@
 				<view class="module-com input-line-wrap">
 
 					<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
-						<button class="admin-button-com middle" :class="[form.sendType == 0 ? 'blue' : 'default']" style="width:190upx;"  @click="changeSendType(0)">免费送货</button>
+						<button v-if="ghsInfo.id != 8053" class="admin-button-com middle" :class="[form.sendType == 0 ? 'blue' : 'default']" style="width:190upx;"  @click="changeSendType(0)">免费送货</button>
 						<button class="admin-button-com middle" :class="[form.sendType == 1 ? 'blue' : 'default']" style="width:190upx;"  @click="changeSendType(1)">到店自取</button>
 						<button class="admin-button-com middle" :class="[form.sendType == 2 ? 'blue' : 'default']" style="width:150upx;" @click="changeSendType(2)">跑腿</button>
 						<button class="admin-button-com middle" :class="[form.sendType == 3 ? 'blue' : 'default']" style="width:150upx;" @click="changeSendType(3)">物流</button>
@@ -75,7 +75,7 @@
 							</block>
 						</view>
 						<view v-if="form.sendType == 1">
-							<text style="color: #3385FF;width:100%;">您自己来店里取,没有配送费</text>
+							<text style="color: #3385FF;width:100%;">到店自取,没有配送费</text>
 						</view>
 						<view v-if="form.sendType == 2">
 							<text style="color: #3385FF;width:100%;">请跑腿送货,有配送费</text>
@@ -231,7 +231,11 @@ export default {
 		};
 	},
 	onLoad() {
-		this.getGhsData(this.option.id);
+		//杭州斗南鲜花批发部不需要显示免费配送
+		if(Number(this.option.id) == 8053){
+			this.form.sendType = 1
+		}
+		this.getGhsData(this.option.id)
 	},
 	onShow() {
 		if(this.selectedHb.hbId && this.selectedHb.hbId > 0) {