参数修改

This commit is contained in:
刘英东 2025-01-05 19:11:49 +08:00
parent 4bc0294829
commit 674e656d5b
1 changed files with 59 additions and 28 deletions

View File

@ -205,30 +205,61 @@
// //
function release() { function release() {
durianlApi.fruitForSale({ //
query: { if (!form.fruitAmount) {
totalPrice: form.totalPrice, util.alert('请输入榴莲果数量')
sellNum: form.sellNum, return
type: typeList[typeIndex.value].id }
if (!form.fruitAmount) {
util.alert('请输入总价')
return
}
if (!form.orderPaytype) {
util.alert('请选择支付方式')
return
}
const config = {
1: {
userId: userinfo.value.id,
// id
targetUserId: form.targetUserId,
},
2: {
userId: userinfo.value.id,
// id
targetUserId: form.targetUserId,
}
}
//
api.durian.consume({
data: {
// id
userId: config[type].userId,
// id
targetUserId: config[type].targetUserId,
//
transactionType: 10,
//
fruitAmount: form.fruitAmount,
//
name: `${form.first}${form.name}`,
//
account: form.account,
//
secondPassword: ev
} }
}).then(rs => { }).then(rs => {
if (rs.code === 200) { if (rs.code === 200) {
//
proxy.$refs.saleRef.close()
setTimeout(() => {
Object.assign(form, new Form())
}, 500)
util.getPurse()
// //
getList() util.getPurse()
} else { return
util.alert({
content: rs.msg,
showCancel: false,
})
} }
util.alert({
content: rs.msg,
showCancel: false,
})
}) })
} }
</script> </script>
@ -334,15 +365,15 @@
<!-- 发起方决定收款方式 单种 多种 --> <!-- 发起方决定收款方式 单种 多种 -->
<view class="inputBox rows mtb10 ptb10 plr30"> <view class="inputBox rows mtb10 ptb10 plr30">
<view class="key">支付方式</view> <view class="key">支付方式</view>
<view class="f1 tar"> <view class="f1 tar">
<picker :range="orderPaytype" range-key="name"> <picker :range="orderPaytype" range-key="name">
<view class="rows"> <view class="rows">
<view class="f1">积分</view> <view class="f1">积分</view>
<uni-icons type="right" /> <uni-icons type="right" />
</view> </view>
</picker> </picker>
</view> </view>
</view> </view>
<view class="hint mtb30 tac c999 f28"> <view class="hint mtb30 tac c999 f28">