|
|
@@ -24,18 +24,24 @@
|
|
|
<view class="form">
|
|
|
<u-form :model="form" :error-type="['message']" :rules="rules" ref="uForm" label-width="140">
|
|
|
<u-form-item prop="title" label="标题" left-icon="bookmark">
|
|
|
- <u-input v-model="form.title" placeholder="请输入标题" />
|
|
|
+ <u-input v-model="form.title" placeholder="禁止第一、含有竞争意识、夸大的宣传口号" maxlength="20"/>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="地区" prop="address" left-icon="map">
|
|
|
<u-input type="select" :select-open="regionShow" v-model="form.address" placeholder="请选择地区"
|
|
|
@click="regionShow = true"></u-input>
|
|
|
</u-form-item>
|
|
|
- <u-form-item v-if="form.address" prop="title" label="详细地址">
|
|
|
- <u-input v-model="addressDetail" placeholder="请输入详细地址" />
|
|
|
+ <u-form-item v-if="form.address" label="详细地址" prop="title">
|
|
|
+ <u-input :border="false" placeholder="请详细写到门店编号" v-model="addressDetail" ></u-input>
|
|
|
+ <view slot="right">
|
|
|
+ <u-button @click="chooseAddress" size="mini">获取地址</u-button>
|
|
|
+ </view>
|
|
|
</u-form-item>
|
|
|
- <u-form-item prop="supplyPrice" label-width="250" label="建议供应价" left-icon="rmb-circle">
|
|
|
+ <!-- <u-form-item v-if="form.address" prop="title" label="详细地址">
|
|
|
+ <u-input v-model="addressDetail" placeholder="请输入详细地址" />
|
|
|
+ </u-form-item> -->
|
|
|
+ <u-form-item prop="supplyPrice" label-width="250" label="建议售卖价" left-icon="rmb-circle">
|
|
|
<view class="flex justify-between">
|
|
|
- <u-input v-model="form.supplyPrice" placeholder="请输入建议供应价" />
|
|
|
+ <u-input v-model="form.supplyPrice" placeholder="请输入建议售卖价" />
|
|
|
<text style="color: #737373;">(%)</text>
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
@@ -173,7 +179,7 @@
|
|
|
}],
|
|
|
supplyPrice: [{
|
|
|
required: true,
|
|
|
- message: '请输入建议供应价',
|
|
|
+ message: '请输入建议售卖价',
|
|
|
trigger: ['blur', 'change']
|
|
|
}],
|
|
|
subsidy: [{
|
|
|
@@ -210,6 +216,14 @@
|
|
|
this.getShopLabelByMallId()
|
|
|
},
|
|
|
methods: {
|
|
|
+ chooseAddress() {
|
|
|
+ var _this = this
|
|
|
+ uni.chooseLocation({
|
|
|
+ success(res) {
|
|
|
+ _this.addressDetail = res.address
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
async getElInfo() {
|
|
|
let rectInfo = await this.$u.getRect('.publish');
|
|
|
let scale = rectInfo.height / rectInfo.width
|