店铺详情编辑修改

This commit is contained in:
GaoHao
2024-10-11 09:12:22 +08:00
parent 530ce34194
commit 3a1e8fa211
2 changed files with 7 additions and 14 deletions

View File

@@ -42,7 +42,7 @@
</view> </view>
<view class="page-cell"> <view class="page-cell">
<view class="label">桌位费<view v-if="vdata.isTableFee" class="tableFee" @tap="go.to('PAGES_SHOP_EDITVAL',{name:'tableFee',value: vdata.shopInfo.tableFee})">{{vdata.shopInfo.tableFee}}</view></view> <view class="label">桌位费<view v-if="!vdata.isTableFee" class="tableFee" @tap="go.to('PAGES_SHOP_EDITVAL',{name:'tableFee',value: vdata.shopInfo.tableFee})">{{vdata.shopInfo.tableFee}}</view></view>
<view class="right"> <view class="right">
<view> <view>
<up-checkbox-group><up-checkbox label="免桌位费" v-model:checked="vdata.isTableFee" activeColor="#0FC161" shape="circle" @change="isTableFeeChange"> </up-checkbox></up-checkbox-group> <up-checkbox-group><up-checkbox label="免桌位费" v-model:checked="vdata.isTableFee" activeColor="#0FC161" shape="circle" @change="isTableFeeChange"> </up-checkbox></up-checkbox-group>
@@ -117,6 +117,7 @@ import storageManage from '@/commons/utils/storageManage.js'
import go from '@/commons/utils/go.js' import go from '@/commons/utils/go.js'
import infoBox from '@/commons/utils/infoBox.js' import infoBox from '@/commons/utils/infoBox.js'
import { $uploadFile } from '@/http/yskApi/file.js' import { $uploadFile } from '@/http/yskApi/file.js'
import { forIn } from 'lodash';
const uploadImg = ref() const uploadImg = ref()
const phone = ref(null) const phone = ref(null)
@@ -159,6 +160,8 @@ let refreshData = (e) => {
let params = { let params = {
id : vdata.shopInfo.id, id : vdata.shopInfo.id,
} }
params[e.name] = e.value
vdata.type = e.name;
vdata.inputValue = e.value; vdata.inputValue = e.value;
updateShopInfo(params,'input') updateShopInfo(params,'input')
} }
@@ -212,18 +215,7 @@ let radioChange = (n) => {
let updateShopInfo = (params,type) => { let updateShopInfo = (params,type) => {
editShopInfo(params).then((res) => { editShopInfo(params).then((res) => {
if (type && type == "input") { if (type && type == "input") {
console.log(vdata.type) vdata.shopInfo[vdata.type] = vdata.inputValue;
switch ( vdata.type ){
case "shopName":
vdata.shopInfo.shopName = vdata.inputValue;
break;
case "phone":
vdata.shopInfo.phone = vdata.inputValue;
break;
case "tableFee":
vdata.shopInfo.tableFee = vdata.inputValue;
break;
}
} }
}) })
} }
@@ -316,6 +308,7 @@ let switchChange = ( type ) => {
params.lng = vdata.shopInfo.lng; params.lng = vdata.shopInfo.lng;
params.lat = vdata.shopInfo.lat; params.lat = vdata.shopInfo.lat;
params.address = vdata.shopInfo.address; params.address = vdata.shopInfo.address;
params.isUseVip = vdata.shopInfo.isUseVip;
break; break;
case "status": case "status":
params.status = vdata.shopInfo.status; params.status = vdata.shopInfo.status;

View File

@@ -9,7 +9,7 @@
</view> </view>
<view class="bom"> <view class="bom">
<view @click="saveImage">下载收款码</view> <view @click="saveImage">下载收款码</view>
<view>下载收款码样式</view> <!-- <view>下载收款码样式</view> -->
</view> </view>
</view> </view>