|
@@ -54,12 +54,12 @@
|
|
|
<view class="module-com user-address_bx">
|
|
<view class="module-com user-address_bx">
|
|
|
<view class="address-tit" style="position: relative;">
|
|
<view class="address-tit" style="position: relative;">
|
|
|
地址
|
|
地址
|
|
|
- <button class="admin-button-com mini-btn blue" @click="downloadCode()" style="position:absolute;right:200upx;top:-6upx;font-size:29upx;">下载收款码</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle blue" @click="downloadCode()" style="position:absolute;right:200upx;top:-15upx;font-size:29upx;">下载收款码</button>
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
- <button class="admin-button-com mini-btn blue" open-type="share" style="position: absolute;right:16upx;top:-6upx;font-size:29upx;">邀请结账</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle blue" open-type="share" style="position: absolute;right:16upx;top:-15upx;font-size:29upx;">邀请结账</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
- <button class="admin-button-com mini-btn blue" @click="inviteToPay()" style="position: absolute;right:16upx;top:-6upx;font-size:29upx;">邀请结账</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle blue" @click="inviteToPay()" style="position: absolute;right:16upx;top:-15upx;font-size:29upx;">邀请结账</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
</view>
|
|
</view>
|
|
|
<view class="address-des_bx">
|
|
<view class="address-des_bx">
|
|
@@ -118,7 +118,7 @@
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">线上赊账</div>
|
|
|
|
|
|
|
+ <div class="tui-title">线上自助挂账</div>
|
|
|
<div class="switch_bx">
|
|
<div class="switch_bx">
|
|
|
<text v-if="form.debt == 0">禁止</text>
|
|
<text v-if="form.debt == 0">禁止</text>
|
|
|
<text v-else>允许</text>
|
|
<text v-else>允许</text>
|
|
@@ -128,13 +128,15 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">授信额度</div>
|
|
<div class="tui-title">授信额度</div>
|
|
|
- <input v-model="debtLimit" @click="debtLimit=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="digit" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
|
|
- <button class="admin-button-com blue mini-btn" @tap="amendMoney">确定</button>
|
|
|
|
|
|
|
+ <input v-model="debtLimit" @click="debtLimit=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="digit" style="width:47%;border:1upx solid #ddd;margin-right:12upx;height:70upx;text-align:center;" />
|
|
|
|
|
+ <button class="admin-button-com blue middle" @tap="amendMoney">确定</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="true" :arrow="true" @click="changeLevelPrice()">
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">享受价格</div>
|
|
<div class="tui-title">享受价格</div>
|
|
|
- <view class="tui-input" style="text-align:center;">{{ form.level == 0 ? '零售价':form.level == 1 ? '批发价':form.level == 2 ? '大客价':'-' }}</view>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle" :class="[form.level == 0 ? 'blue' : 'default']" @click="changeLevelBtn(0)">零售价</button>
|
|
|
|
|
+ <button class="admin-button-com middle" :class="[form.level == 1 ? 'blue' : 'default']" @click="changeLevelBtn(1)" style="margin-left:15upx;margin-right:15upx;">批发价</button>
|
|
|
|
|
+ <button class="admin-button-com middle" :class="[form.level == 2 ? 'blue' : 'default']" @click="changeLevelBtn(2)">大客价</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
@@ -157,10 +159,10 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" v-if="form.home == 1">
|
|
<tui-list-cell class="line-cell" :hover="false" v-if="form.home == 1">
|
|
|
<div class="tui-title">上门最低消费</div>
|
|
<div class="tui-title">上门最低消费</div>
|
|
|
- <button class="admin-button-com mini-btn" :class="[userInfo.homeType == 0 ? 'blue' : 'default']" @click="userInfo.homeType=0">金额</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn" :class="[userInfo.homeType == 1 ? 'blue' : 'default']" @click="userInfo.homeType=1" style="margin-left:6upx;margin-right:6upx;">扎数</button>
|
|
|
|
|
- <input v-model="userInfo.homeAmount" @click="userInfo.homeAmount=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="不限填0" type="digit" style="width:100upx;border:1upx solid #ddd;margin-right:6upx;height:52upx;text-align:center;" />
|
|
|
|
|
- <button class="admin-button-com blue mini-btn" @tap="changeHomeAmount">确定</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle" :class="[userInfo.homeType == 0 ? 'blue' : 'default']" @click="userInfo.homeType=0">金额</button>
|
|
|
|
|
+ <button class="admin-button-com middle" :class="[userInfo.homeType == 1 ? 'blue' : 'default']" @click="userInfo.homeType=1" style="margin-left:5upx;margin-right:5upx;">扎数</button>
|
|
|
|
|
+ <input v-model="userInfo.homeAmount" @click="userInfo.homeAmount=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="不限填0" type="digit" style="width:100upx;border:1upx solid #ddd;margin-right:5upx;height:70upx;text-align:center;" />
|
|
|
|
|
+ <button class="admin-button-com blue middle" @tap="changeHomeAmount">确定</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
@@ -183,21 +185,21 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">短名称</div>
|
|
<div class="tui-title">短名称</div>
|
|
|
- <input v-model="userInfo.shortName" @click="userInfo.shortName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
|
|
- <button class="admin-button-com blue mini-btn" @tap="changeShortName">确定</button>
|
|
|
|
|
|
|
+ <input v-model="userInfo.shortName" @click="userInfo.shortName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:12upx;height:70upx;text-align:center;" />
|
|
|
|
|
+ <button class="admin-button-com blue middle" @tap="changeShortName">确定</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">配送物流</div>
|
|
<div class="tui-title">配送物流</div>
|
|
|
- <input v-model="userInfo.wlName" @click="userInfo.wlName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
|
|
- <button class="admin-button-com blue mini-btn" @tap="changeWlFn">确定</button>
|
|
|
|
|
|
|
+ <input v-model="userInfo.wlName" @click="userInfo.wlName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:12upx;height:70upx;text-align:center;" />
|
|
|
|
|
+ <button class="admin-button-com blue middle" @tap="changeWlFn">确定</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">货位号</div>
|
|
<div class="tui-title">货位号</div>
|
|
|
- <input v-model="userInfo.seatSn" @click="userInfo.seatSn=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="number" style="width:22%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
|
|
|
|
|
- <button class="admin-button-com blue mini-btn" @tap="modifySeatSn">修改</button>
|
|
|
|
|
- <button class="admin-button-com blue mini-btn" @tap="createSeatSn" style="margin-left:10upx;">自动生成</button>
|
|
|
|
|
|
|
+ <input v-model="userInfo.seatSn" @click="userInfo.seatSn=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="number" style="width:22%;border:1upx solid #ddd;margin-right:12upx;height:70upx;text-align:center;" />
|
|
|
|
|
+ <button class="admin-button-com blue middle" @tap="modifySeatSn">修改</button>
|
|
|
|
|
+ <button class="admin-button-com blue middle" @tap="createSeatSn" style="margin-left:10upx;">自动生成</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="true" :arrow="true" @click="changeIntroducer()">
|
|
<tui-list-cell class="line-cell" :hover="true" :arrow="true" @click="changeIntroducer()">
|
|
@@ -434,19 +436,15 @@ export default {
|
|
|
changeIntroducer(){
|
|
changeIntroducer(){
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- changeLevelPrice(){
|
|
|
|
|
- const that = this;
|
|
|
|
|
- uni.showActionSheet({
|
|
|
|
|
- itemList: ['零售价', '批发价', '大客价'],
|
|
|
|
|
- success: e => {
|
|
|
|
|
- changeLevel({customId:that.userInfo.id,level:e.tapIndex}).then(res=>{
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- that.form.level = e.tapIndex
|
|
|
|
|
- that.$msg(res.msg)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ changeLevelBtn(level) {
|
|
|
|
|
+ const that = this;
|
|
|
|
|
+ if (this.form.level === level) return;
|
|
|
|
|
+ changeLevel({ customId: that.userInfo.id, level }).then(res => {
|
|
|
|
|
+ if (res.code == 1) {
|
|
|
|
|
+ that.form.level = level;
|
|
|
|
|
+ that.$msg(res.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
modifySeatSn(){
|
|
modifySeatSn(){
|
|
|
if(this.$util.isEmpty(this.userInfo.seatSn)){
|
|
if(this.$util.isEmpty(this.userInfo.seatSn)){
|