diff --git a/src/views/shop/config/components/shopInfo.vue b/src/views/shop/config/components/shopInfo.vue
index dc81dfa..3268e20 100644
--- a/src/views/shop/config/components/shopInfo.vue
+++ b/src/views/shop/config/components/shopInfo.vue
@@ -3,14 +3,25 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
开启后,用户只能在店铺附近xx公里内点餐
+
+
+
+ 开启后,用户只能在店铺附近xx公里内点餐
+
- form.orderFenceDistance = filterNumberInput(e)" style="width: 250px;"
- input-style="text-align: center;">
+ (form.orderFenceDistance = filterNumberInput(e))"
+ style="width: 250px"
+ input-style="text-align: center;"
+ >
限制:
公里
+
+
+
+
+
+ 起菜到上菜的时间间隔,开启后会有超时提示
+
+
+
+ (form.serveTime = filterNumberInput(e))"
+ style="width: 250px"
+ input-style="text-align: center;"
+ >
+ 限制:
+ 分钟
+
+
+
+
营业中
@@ -185,11 +285,24 @@
-
-
+
+
点击上传
请勿上传违法文件,且文件不超过15M
@@ -209,7 +322,7 @@ import { ElMessage } from "element-plus";
import QRCode from "qrcode";
import img_download_error from "@/assets/images/img_download_error.png";
import ShopApi from "@/api/account/shop";
-import { filterNumberInput } from '@/utils/index'
+import { filterNumberInput } from "@/utils/index";
// import { tbShopInfo, tbShopInfoPut } from "@/api/user";
// import { geocode } from "@/api/shop";
export default {
@@ -260,14 +373,17 @@ export default {
{
trigger: "blur",
validator: (rule, value, callback) => {
- if (this.form.isOrderFence === 1 && (!this.form.orderFenceDistance || this.form.orderFenceDistance <= 0)) {
+ if (
+ this.form.isOrderFence === 1 &&
+ (!this.form.orderFenceDistance || this.form.orderFenceDistance <= 0)
+ ) {
callback(new Error("请输入限制公里数"));
} else {
callback();
}
},
- }
- ]
+ },
+ ],
},
fileList: [],
files: [],
@@ -371,7 +487,7 @@ export default {
const shopId = localStorage.getItem("shopId");
const res = await ShopApi.get();
this.form = { ...res, eatModel: res.eatModel ? res.eatModel.split(",") : [] };
- this.form.orderFenceDistance = res.orderFenceDistance / 1000
+ this.form.orderFenceDistance = res.orderFenceDistance / 1000;
if (res.businessTime) {
const businessTime = res.businessTime.split("-");
this.startTime = businessTime[0];
@@ -399,10 +515,10 @@ export default {
this.form.businessTime = `${this.startTime}-${this.endTime}`;
}
- const data = { ...this.form }
+ const data = { ...this.form };
if (this.form.isOrderFence == 1) {
- data.orderFenceDistance = this.form.orderFenceDistance * 1000
+ data.orderFenceDistance = this.form.orderFenceDistance * 1000;
}
await ShopApi.edit({
@@ -433,7 +549,7 @@ export default {
handleBeforeRemove(file, fileList) {
for (let i = 0; i < this.files.length; i++) {
if (this.files[i].uid === file.uid) {
- crudQiNiu.del([this.files[i].id]).then((res) => { });
+ crudQiNiu.del([this.files[i].id]).then((res) => {});
return true;
}
}