From 3a1e8fa21165537c60c90184cbdb5a198ca85b5a Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Fri, 11 Oct 2024 09:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=AF=A6=E6=83=85=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shopSetUp/index.vue | 19 ++++++------------- pages/shopSetUp/shopQRcode.vue | 2 +- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/pages/shopSetUp/index.vue b/pages/shopSetUp/index.vue index a00e09b..afca7b0 100644 --- a/pages/shopSetUp/index.vue +++ b/pages/shopSetUp/index.vue @@ -42,7 +42,7 @@ - 桌位费{{vdata.shopInfo.tableFee}} + 桌位费{{vdata.shopInfo.tableFee}} @@ -117,6 +117,7 @@ import storageManage from '@/commons/utils/storageManage.js' import go from '@/commons/utils/go.js' import infoBox from '@/commons/utils/infoBox.js' import { $uploadFile } from '@/http/yskApi/file.js' +import { forIn } from 'lodash'; const uploadImg = ref() const phone = ref(null) @@ -159,6 +160,8 @@ let refreshData = (e) => { let params = { id : vdata.shopInfo.id, } + params[e.name] = e.value + vdata.type = e.name; vdata.inputValue = e.value; updateShopInfo(params,'input') } @@ -212,18 +215,7 @@ let radioChange = (n) => { let updateShopInfo = (params,type) => { editShopInfo(params).then((res) => { if (type && type == "input") { - console.log(vdata.type) - 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; - } + vdata.shopInfo[vdata.type] = vdata.inputValue; } }) } @@ -316,6 +308,7 @@ let switchChange = ( type ) => { params.lng = vdata.shopInfo.lng; params.lat = vdata.shopInfo.lat; params.address = vdata.shopInfo.address; + params.isUseVip = vdata.shopInfo.isUseVip; break; case "status": params.status = vdata.shopInfo.status; diff --git a/pages/shopSetUp/shopQRcode.vue b/pages/shopSetUp/shopQRcode.vue index c75c11a..49a9d1e 100644 --- a/pages/shopSetUp/shopQRcode.vue +++ b/pages/shopSetUp/shopQRcode.vue @@ -9,7 +9,7 @@ 下载收款码 - 下载收款码样式 +