|
|
@@ -38,9 +38,23 @@
|
|
|
<view class="module-com input-line-wrap">
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
|
- <button v-if="account != 4805" class="admin-button-com big" :class="[form.sendType == 2 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(2)">代叫跑腿</button>
|
|
|
- <button class="admin-button-com big" :class="[form.sendType == 1 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(1)">到店自取</button>
|
|
|
- <button v-if="account != 4805 && account != 4609" class="admin-button-com big" :class="[form.sendType == 0 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(0)">送货上门</button>
|
|
|
+ <block v-if="account == 4805">
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 1 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(1)">到店自取</button>
|
|
|
+ </block>
|
|
|
+ <block v-else-if="account == 4609">
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 2 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(2)">代叫跑腿</button>
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 1 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(1)">到店自取</button>
|
|
|
+ </block>
|
|
|
+ <block v-else-if="account == 27829">
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 0 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(0)">送货上门</button>
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 2 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(2)">代叫跑腿</button>
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 1 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(1)">到店自取</button>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 2 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(2)">代叫跑腿</button>
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 1 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(1)">到店自取</button>
|
|
|
+ <button class="admin-button-com big" :class="[form.sendType == 0 ? 'blue' : 'default']" style="width:180upx;border:none;" @click="changeSendType(0)">送货上门</button>
|
|
|
+ </block>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
@@ -60,7 +74,7 @@
|
|
|
</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="true" v-if="form.sendType == 2" @click="modifyAddress">
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="true" v-if="form.sendType == 2 || form.sendType == 0" @click="modifyAddress">
|
|
|
<view class="tui-title">收花地址</view>
|
|
|
<view v-if="!$util.isEmpty(userInfo.lat) && !$util.isEmpty(userInfo.long)">
|
|
|
<view><text>{{userInfo.fullAddress}}</text></view>
|
|
|
@@ -223,6 +237,9 @@ export default {
|
|
|
if(this.account == 4805){
|
|
|
this.form.sendType = 1
|
|
|
}
|
|
|
+ if(this.account == 27829){
|
|
|
+ this.form.sendType = 0
|
|
|
+ }
|
|
|
}
|
|
|
this.getUserInfo()
|
|
|
},
|
|
|
@@ -287,7 +304,7 @@ export default {
|
|
|
});
|
|
|
let hdId = this.option.hdId ? this.option.hdId : 0
|
|
|
let params = { product: JSON.stringify(product),...this.form,hdId:hdId }
|
|
|
- if(this.form.sendType == 2){
|
|
|
+ if(this.form.sendType == 2 || this.form.sendType == 0){
|
|
|
if(this.$util.isEmpty(this.userInfo.lat) || this.$util.isEmpty(this.userInfo.long)){
|
|
|
this.$msg('请填写地址')
|
|
|
return false
|