|
|
@@ -2,10 +2,50 @@
|
|
|
<html lang="zh-CN">
|
|
|
<head>
|
|
|
{include file="public/head"}
|
|
|
+
|
|
|
<link href="/system/frame/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
|
|
|
<link href="/system/frame/css/style.min.css?v=3.0.0" rel="stylesheet">
|
|
|
<title>{$title|default=''}</title>
|
|
|
- <style></style>
|
|
|
+ <style>
|
|
|
+ /* 样式微调 */
|
|
|
+ .demo-upload-list {
|
|
|
+ display: inline-block;
|
|
|
+ width: 58px;
|
|
|
+ height: 58px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 58px;
|
|
|
+ border: 1px solid transparent;
|
|
|
+ border-radius: 4px;
|
|
|
+ overflow: hidden;
|
|
|
+ background: #fff;
|
|
|
+ position: relative;
|
|
|
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
|
|
|
+ margin-right: 4px;
|
|
|
+ }
|
|
|
+ .demo-upload-list img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+ }
|
|
|
+ .demo-upload-list-cover {
|
|
|
+ display: none;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ background: rgba(0, 0, 0, .6);
|
|
|
+ }
|
|
|
+ .demo-upload-list:hover .demo-upload-list-cover {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ .demo-upload-list-cover i {
|
|
|
+ color: #fff;
|
|
|
+ font-size: 20px;
|
|
|
+ cursor: pointer;
|
|
|
+ margin: 0 2px;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="wrapper wrapper-content">
|
|
|
@@ -16,7 +56,7 @@
|
|
|
<h5>门店设置</h5>
|
|
|
</div>
|
|
|
<div id="store-attr" class="mp-form" v-cloak="">
|
|
|
- <i-Form :label-width="80" style="width: 100%">
|
|
|
+ <i-Form :label-width="100" style="width: 100%">
|
|
|
<template>
|
|
|
<Alert type="warning">除门店简介外其他选项都是必填项</Alert>
|
|
|
<Form-Item>
|
|
|
@@ -59,19 +99,23 @@
|
|
|
</i-Col>
|
|
|
</Row>
|
|
|
</Form-Item>
|
|
|
- <!-- <Form-Item>
|
|
|
+ <Form-Item>
|
|
|
<Row>
|
|
|
<i-Col span="13">
|
|
|
- <span>核销时效:</span>
|
|
|
- <Date-picker type="daterange" @on-change="changeValidTime" placeholder="选择日期" :value="form.valid_time"></Date-picker>
|
|
|
+ <span>营业时间:</span>
|
|
|
+ <Time-picker type="timerange" @on-change="changeDayTime" placement="bottom-end" :value="form.day_time" placeholder="选择时间"></Time-picker>
|
|
|
</i-Col>
|
|
|
</Row>
|
|
|
- </Form-Item> -->
|
|
|
+ </Form-Item>
|
|
|
+
|
|
|
<Form-Item>
|
|
|
<Row>
|
|
|
<i-Col span="13">
|
|
|
- <span>营业时间:</span>
|
|
|
- <Time-picker type="timerange" @on-change="changeDayTime" placement="bottom-end" :value="form.day_time" placeholder="选择时间"></Time-picker>
|
|
|
+ <span>**门店自提:**</span>
|
|
|
+ <i-Radio-group v-model="form.is_pick">
|
|
|
+ <i-Radio label="1"><span>支持自提</span></i-Radio>
|
|
|
+ <i-Radio label="0"><span>不支持自提</span></i-Radio>
|
|
|
+ </i-Radio-group>
|
|
|
</i-Col>
|
|
|
</Row>
|
|
|
</Form-Item>
|
|
|
@@ -101,29 +145,6 @@
|
|
|
</i-Col>
|
|
|
</Row>
|
|
|
</Form-Item>
|
|
|
- <!-- <Form-Item>
|
|
|
- <Row>
|
|
|
- <i-Col span="13">
|
|
|
- <span style="float: left">经纬度:</span>
|
|
|
- <Tooltip content="请点击查找位置进行选择位置">
|
|
|
- <i-Input placeholder="经纬度" v-model="form.latlng" :readonly="true" style="width: 80%">
|
|
|
- <span slot="append" @click="openWindows('查找位置','{:Url('select_address')}',{w:400,h:700})" style="cursor:pointer">查找位置</span>
|
|
|
- </i-Input>
|
|
|
- </Tooltip>
|
|
|
- </i-Col>
|
|
|
- </Row>
|
|
|
- </Form-Item> -->
|
|
|
- <Form-Item>
|
|
|
- <Row>
|
|
|
- <i-Col span="13">
|
|
|
- <span>是否支持门店自提:</span>
|
|
|
- <i-RadioGroup v-model="form.is_pick">
|
|
|
- <i-Radio label="1">是</i-Radio>
|
|
|
- <i-Radio label="0">否</i-Radio>
|
|
|
- </i-RadioGroup>
|
|
|
- </i-Col>
|
|
|
- </Row>
|
|
|
- </Form-Item>
|
|
|
</template>
|
|
|
<Form-Item>
|
|
|
<Row>
|
|
|
@@ -170,7 +191,8 @@
|
|
|
latlng:storeData.latlng || '',
|
|
|
valid_time:storeData.valid_time || [],
|
|
|
day_time:storeData.day_time || [],
|
|
|
- is_pick: String(storeData.is_pick) || '0', // 根据实际情况设置默认值
|
|
|
+ // *** 新增:is_pick 字段,默认值为 1 (支持自提) ***
|
|
|
+ is_pick:String(storeData.is_pick) || '1',
|
|
|
},
|
|
|
visible:false,
|
|
|
}
|
|
|
@@ -220,15 +242,21 @@
|
|
|
},
|
|
|
submit:function () {
|
|
|
var that = this;
|
|
|
- if(!that.form.name) return $eb.message('error','请填写门店名称');
|
|
|
+ if(!that.form.name) return $eb.message('error','请填写门店行名称');
|
|
|
if(!that.form.phone) return $eb.message('error','请输入手机号码');
|
|
|
if(!that.isPhone(that.form.phone)) return $eb.message('error','请输入正确的手机号码');
|
|
|
if(!that.form.address) return $eb.message('error','请选择门店地址');
|
|
|
if(!that.form.detailed_address) return $eb.message('error','请填写门店详细地址');
|
|
|
if(!that.form.image) return $eb.message('error','请选择门店logo');
|
|
|
- if(!that.form.valid_time) return $eb.message('error','请选择核销时效');
|
|
|
+ // if(!that.form.valid_time) return $eb.message('error','请选择核销时效'); // 这一行被注释,暂不启用必填校验
|
|
|
if(!that.form.day_time) return $eb.message('error','请选择门店营业时间');
|
|
|
- if(!that.form.latlng) return $eb.message('error','请选择门店经纬度!');
|
|
|
+ // if(!that.form.latlng) return $eb.message('error','请选择门店经纬度!'); // 这一行被注释,暂不启用必填校验
|
|
|
+
|
|
|
+ // *** 新增:is_pick 字段校验 (作为非必填,仅检查是否存在) ***
|
|
|
+ if(that.form.is_pick === undefined || that.form.is_pick === null) {
|
|
|
+ return $eb.message('error','请选择是否支持门店自提');
|
|
|
+ }
|
|
|
+
|
|
|
var index = layer.load(1, {
|
|
|
shade: [0.5,'#fff']
|
|
|
});
|
|
|
@@ -242,7 +270,7 @@
|
|
|
})
|
|
|
},
|
|
|
selectAdderss:function (data) {
|
|
|
- // lat 纬度 lng 经度
|
|
|
+ //lat 纬度 lng 经度
|
|
|
this.form.latlng=data.latlng.lat+','+data.latlng.lng;
|
|
|
}
|
|
|
},
|
|
|
@@ -253,3 +281,5 @@
|
|
|
}).$mount(document.getElementById('store-attr'))
|
|
|
})
|
|
|
</script>
|
|
|
+</body>
|
|
|
+</html>
|