|
|
@@ -93,13 +93,22 @@
|
|
|
<input v-model="form.floor" placeholder-class="phcolor" class="tui-input" name="floor" placeholder="楼号门牌号" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell remark-wrap" :hover="false">
|
|
|
- <view class="tui-title">简介</view>
|
|
|
- <view class="tui-input">
|
|
|
- <textarea v-model="form.introduction" class="tui-textarea remark" placeholder-class="phcolor" placeholder="请输入简介" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- </view>
|
|
|
+ <tui-list-cell class="line-cell remark-wrap" :hover="false">
|
|
|
+ <view class="tui-title">简介</view>
|
|
|
+ <view class="tui-input">
|
|
|
+ <textarea v-model="form.introduction" class="tui-textarea remark" placeholder-class="phcolor" placeholder="请输入简介" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">充值赠送</view>
|
|
|
+ <view class="recharge-buttons">
|
|
|
+ <button class="admin-button-com big" :class="{blue: form.rechargeWeal == 0}" @click="updateRechargeWeal(0)">没有</button>
|
|
|
+ <button class="admin-button-com big" :class="{blue: form.rechargeWeal == 1}" @click="updateRechargeWeal(1)">送钱</button>
|
|
|
+ <button class="admin-button-com big" :class="{blue: form.rechargeWeal == 2}" @click="updateRechargeWeal(2)">送红包</button>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ </view>
|
|
|
|
|
|
<view class="module-com input-line-wrap goods-wrap">
|
|
|
<view class="module-tit">
|
|
|
@@ -168,7 +177,8 @@ export default {
|
|
|
mobile: '',
|
|
|
img: [],
|
|
|
default:0,
|
|
|
- superWx:[]
|
|
|
+ superWx:[],
|
|
|
+ rechargeWeal: 0
|
|
|
},
|
|
|
hasMap:0, // 是否具备地址功能 0不具备 1具备
|
|
|
showRegion: false,
|
|
|
@@ -202,10 +212,13 @@ export default {
|
|
|
init() {
|
|
|
|
|
|
},
|
|
|
- defaultChange(e){
|
|
|
- this.form.default = e.target.value ? 1 : 0
|
|
|
- },
|
|
|
- imgUploadSuccess(res) {
|
|
|
+ defaultChange(e){
|
|
|
+ this.form.default = e.target.value ? 1 : 0
|
|
|
+ },
|
|
|
+ updateRechargeWeal(value){
|
|
|
+ this.form.rechargeWeal = value
|
|
|
+ },
|
|
|
+ imgUploadSuccess(res) {
|
|
|
var imgReturn = JSON.parse(res.data)
|
|
|
if(imgReturn.code == 1){
|
|
|
this.currentImgData.push(imgReturn.data.smallUrl)
|
|
|
@@ -247,13 +260,14 @@ export default {
|
|
|
this.form.openEndTime = this.end_time
|
|
|
}
|
|
|
|
|
|
- if(!this.$util.isEmpty(data.shortSuperWx)){
|
|
|
- this.currentImgData.push(data.superWx)
|
|
|
- this.form.superWx = [data.shortSuperWx]
|
|
|
- }
|
|
|
- this.hasMap = data.hasMap || 0
|
|
|
- this.merchantName = data.merchantName||''
|
|
|
- })
|
|
|
+ if(!this.$util.isEmpty(data.shortSuperWx)){
|
|
|
+ this.currentImgData.push(data.superWx)
|
|
|
+ this.form.superWx = [data.shortSuperWx]
|
|
|
+ }
|
|
|
+ this.hasMap = data.hasMap || 0
|
|
|
+ this.merchantName = data.merchantName||''
|
|
|
+ this.form.rechargeWeal = data.rechargeWeal || 0
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
openChange(e) {
|
|
|
@@ -414,4 +428,9 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
+ .recharge-buttons {
|
|
|
+ display: flex;
|
|
|
+ gap: 20upx;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ }
|
|
|
</style>
|