This commit is contained in:
weicw
2023-08-11 14:30:03 +08:00
parent 7a73b38bd5
commit 81ecfd9df0
9 changed files with 176 additions and 10 deletions

View File

@@ -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("下单成功")