|
@@ -26,7 +26,8 @@
|
|
|
<i-Col span="13">
|
|
<i-Col span="13">
|
|
|
<span>门店分类:</span>
|
|
<span>门店分类:</span>
|
|
|
<i-Select v-model="form.cid" style="width: 80%" multiple>
|
|
<i-Select v-model="form.cid" style="width: 80%" multiple>
|
|
|
- <i-Option v-for="item in category" :value="item.id">{{item.cate_name}}</i-Option>
|
|
|
|
|
|
|
+ <i-Option v-for="item in category" :value="item.id">{{item.cate_name}}
|
|
|
|
|
+ </i-Option>
|
|
|
</i-Select>
|
|
</i-Select>
|
|
|
</i-Col>
|
|
</i-Col>
|
|
|
</Row>
|
|
</Row>
|
|
@@ -186,7 +187,8 @@
|
|
|
type="text"></i-Input>
|
|
type="text"></i-Input>
|
|
|
</i-Col>
|
|
</i-Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
- </Form-Item> <Form-Item>
|
|
|
|
|
|
|
+ </Form-Item>
|
|
|
|
|
+ <Form-Item>
|
|
|
<Row>
|
|
<Row>
|
|
|
<i-Col span="13">
|
|
<i-Col span="13">
|
|
|
<span>提现手续费:</span>
|
|
<span>提现手续费:</span>
|
|
@@ -200,7 +202,9 @@
|
|
|
<i-Col span="13">
|
|
<i-Col span="13">
|
|
|
<span>推荐用户:</span>
|
|
<span>推荐用户:</span>
|
|
|
<i-Select v-model="form.spread_uid" style="width: 80%">
|
|
<i-Select v-model="form.spread_uid" style="width: 80%">
|
|
|
- <i-Option v-for="item in userData" :value="item.uid">{{item.nickname}}({{item.phone}})</i-Option>
|
|
|
|
|
|
|
+ <i-Option v-for="item in userData" :value="item.uid">
|
|
|
|
|
+ {{item.nickname}}({{item.phone}})
|
|
|
|
|
+ </i-Option>
|
|
|
</i-Select>
|
|
</i-Select>
|
|
|
</i-Col>
|
|
</i-Col>
|
|
|
</Row>
|
|
</Row>
|
|
@@ -223,9 +227,21 @@
|
|
|
<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
|
<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- var storeData = {:json_encode($store)};
|
|
|
|
|
- var userData = {:json_encode($users)};
|
|
|
|
|
- var category = {:json_encode($category)};
|
|
|
|
|
|
|
+ var storeData = {
|
|
|
|
|
+ :
|
|
|
|
|
+ json_encode($store)
|
|
|
|
|
+ }
|
|
|
|
|
+ ;
|
|
|
|
|
+ var userData = {
|
|
|
|
|
+ :
|
|
|
|
|
+ json_encode($users)
|
|
|
|
|
+ }
|
|
|
|
|
+ ;
|
|
|
|
|
+ var category = {
|
|
|
|
|
+ :
|
|
|
|
|
+ json_encode($category)
|
|
|
|
|
+ }
|
|
|
|
|
+ ;
|
|
|
mpFrame.start(function (Vue) {
|
|
mpFrame.start(function (Vue) {
|
|
|
$.each(city, function (key, item) {
|
|
$.each(city, function (key, item) {
|
|
|
city[key].value = item.label;
|
|
city[key].value = item.label;
|
|
@@ -255,6 +271,7 @@
|
|
|
latlng: storeData.latlng || '',
|
|
latlng: storeData.latlng || '',
|
|
|
valid_time: storeData.valid_time || [],
|
|
valid_time: storeData.valid_time || [],
|
|
|
day_time: storeData.day_time || [],
|
|
day_time: storeData.day_time || [],
|
|
|
|
|
+ cid: storeData.cid || [],
|
|
|
terminal_number: storeData.terminal_number || '',
|
|
terminal_number: storeData.terminal_number || '',
|
|
|
uid: storeData.uid || 0,
|
|
uid: storeData.uid || 0,
|
|
|
commission: storeData.commission || 0,
|
|
commission: storeData.commission || 0,
|
|
@@ -268,7 +285,7 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
changeModel(newval) {
|
|
changeModel(newval) {
|
|
|
- console.log(newval);
|
|
|
|
|
|
|
+ console.log(newval);
|
|
|
},
|
|
},
|
|
|
changeDayTime: function (date) {
|
|
changeDayTime: function (date) {
|
|
|
this.$set(this.form, 'day_time', date);
|
|
this.$set(this.form, 'day_time', date);
|
|
@@ -314,6 +331,7 @@
|
|
|
},
|
|
},
|
|
|
submit: function () {
|
|
submit: function () {
|
|
|
var that = this;
|
|
var that = this;
|
|
|
|
|
+ console.log(that.form.cid);
|
|
|
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.form.phone) return $eb.message('error', '请输入手机号码');
|
|
|
if (!that.isPhone(that.form.phone)) return $eb.message('error', '请输入正确的手机号码');
|
|
if (!that.isPhone(that.form.phone)) return $eb.message('error', '请输入正确的手机号码');
|