|
|
@@ -81,11 +81,22 @@
|
|
|
<input type="number" placeholder="请填写,留空免运费" v-model="form.sendCost" placeholder-class="tui-placeholder"/>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+<!-- #ifdef MP-WEIXIN -->
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
<view class="tui-title">结账方式</view>
|
|
|
- <button @click="form.hasPay = 0" class="admin-button-com mini-btn" :class="form.hasPay == 0 ? 'blue' : 'default'">待结账</button>
|
|
|
- <button @tap="form.hasPay = 1" class="admin-button-com mini-btn" :class="form.hasPay == 1 ? 'blue' : 'default'">已结账</button>
|
|
|
+ <button @click="form.hasPay = 2" class="admin-button-com mini-btn" :class="form.hasPay == 2 ? 'blue' : 'default'">欠款</button>
|
|
|
+ <button @tap="form.hasPay = 1" class="admin-button-com mini-btn" :class="form.hasPay == 1 ? 'blue' : 'default'">已付款</button>
|
|
|
</tui-list-cell>
|
|
|
+<!-- #endif -->
|
|
|
+
|
|
|
+<!-- #ifdef APP-PLUS -->
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
+ <view class="tui-title">结账方式</view>
|
|
|
+ <button @click="form.hasPay = 0" class="admin-button-com mini-btn" :class="form.hasPay == 0 ? 'blue' : 'default'">待付款</button>
|
|
|
+ <button @tap="form.hasPay = 1" class="admin-button-com mini-btn" :class="form.hasPay == 1 ? 'blue' : 'default'">已付款</button>
|
|
|
+ <button @click="form.hasPay = 2" class="admin-button-com mini-btn" :class="form.hasPay == 2 ? 'blue' : 'default'">欠款</button>
|
|
|
+ </tui-list-cell>
|
|
|
+<!-- #endif -->
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="true" v-if="form.hasPay == 1">
|
|
|
<div class="tui-title">收款方式</div>
|
|
|
@@ -219,6 +230,11 @@ export default {
|
|
|
},
|
|
|
onLoad (option) {
|
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ //如果在微信端,默认欠款是首选项
|
|
|
+ this.form.hasPay = 2
|
|
|
+ // #endif
|
|
|
+
|
|
|
this.kdType = option.kdType
|
|
|
|
|
|
if (!this.getMerchantInfo) {
|