分销
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit">
|
||||
<u-input v-model="dealerId" :disabled="disabled" placeholder="请输入推荐人用户ID" />
|
||||
<u-input v-model="dealerPhone" :disabled="disabled" placeholder="请输入推荐人手机号" />
|
||||
</view>
|
||||
<view class="submit">
|
||||
<u-button type="primary" :disabled="!agree" @click="onBuy">立即下单</u-button>
|
||||
@@ -142,7 +142,7 @@
|
||||
mode: 'range',
|
||||
month: 6,
|
||||
agree: false,
|
||||
dealerId: '',
|
||||
dealerPhone: '',
|
||||
price: {
|
||||
batteryRent: 300,
|
||||
batteryDeposit: 300,
|
||||
@@ -235,7 +235,7 @@
|
||||
},
|
||||
onBuy(){
|
||||
const app = this
|
||||
const { record,dealerId } = this
|
||||
const { record,dealerPhone } = this
|
||||
let total = 0.0
|
||||
// 未登录状态
|
||||
if(!uni.getStorageSync('userId')) {
|
||||
@@ -271,7 +271,7 @@
|
||||
batteryInsurance: record.batteryInsurance,
|
||||
orderSource: record.equipmentCategory,
|
||||
orderSourceId: record.goodsId,
|
||||
dealerId
|
||||
dealerPhone
|
||||
}).then(res => {
|
||||
const { orderId } = res.data
|
||||
app.$success("下单成功")
|
||||
|
||||
Reference in New Issue
Block a user