|
@@ -422,8 +422,11 @@
|
|
|
</van-row>
|
|
</van-row>
|
|
|
</van-checkbox-group>
|
|
</van-checkbox-group>
|
|
|
<van-field
|
|
<van-field
|
|
|
|
|
+ name="otherCompetitor"
|
|
|
class="otherCompetitor"
|
|
class="otherCompetitor"
|
|
|
v-model="fromValue.otherCompetitor"
|
|
v-model="fromValue.otherCompetitor"
|
|
|
|
|
+ autosize
|
|
|
|
|
+ type="textarea"
|
|
|
label="其他"
|
|
label="其他"
|
|
|
maxlength="20"
|
|
maxlength="20"
|
|
|
placeholder="请输入" />
|
|
placeholder="请输入" />
|
|
@@ -1881,8 +1884,14 @@ export default {
|
|
|
this.fromValue.myLat = this.location.lat;
|
|
this.fromValue.myLat = this.location.lat;
|
|
|
this.fromValue.myLon = this.location.lon;
|
|
this.fromValue.myLon = this.location.lon;
|
|
|
console.log(this.fromValue);
|
|
console.log(this.fromValue);
|
|
|
- if (this.fromValue.otherCompetitor)
|
|
|
|
|
- this.fromValue.storeCompetitorList.push(this.fromValue.otherCompetitor);
|
|
|
|
|
|
|
+ if (this.fromValue.otherCompetitor) {
|
|
|
|
|
+ if (this.fromValue.otherCompetitor.length < 2) {
|
|
|
|
|
+ this.$toast('主营竞品品牌其他文本信息最少2个字');
|
|
|
|
|
+ return;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.fromValue.storeCompetitorList.push(this.fromValue.otherCompetitor);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
updateStore(this.fromValue).then((res) => {
|
|
updateStore(this.fromValue).then((res) => {
|
|
|
loading1.clear();
|
|
loading1.clear();
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|