add
This commit is contained in:
parent
9d664f62d2
commit
22fded1bee
|
@ -5,6 +5,7 @@
|
||||||
提现至
|
提现至
|
||||||
</view>
|
</view>
|
||||||
<view style="font-weight: bold;">
|
<view style="font-weight: bold;">
|
||||||
|
{{form.is_own}}
|
||||||
<!-- 请选择提现账户 -->
|
<!-- 请选择提现账户 -->
|
||||||
{{form.is_own?'对公账户':'个人账户'}}
|
{{form.is_own?'对公账户':'个人账户'}}
|
||||||
</view>
|
</view>
|
||||||
|
@ -15,7 +16,7 @@
|
||||||
<view class="form">
|
<view class="form">
|
||||||
<up-form labelPosition="left" borderBottom :label-style="{fontSize:'30rpx'}" labelWidth='70'>
|
<up-form labelPosition="left" borderBottom :label-style="{fontSize:'30rpx'}" labelWidth='70'>
|
||||||
<up-form-item label="开户银行" prop="userInfo.name" borderBottom ref="item1" @click="showPop=true">
|
<up-form-item label="开户银行" prop="userInfo.name" borderBottom ref="item1" @click="showPop=true">
|
||||||
<text style="padding-left: 20rpx;" v-if="form.bank_id">{{form.bank_name}}</text>
|
<text style="padding-left: 20rpx;" v-if="form.bank_name">{{form.bank_name}}</text>
|
||||||
<text v-else style="color: #20B128;padding-left: 20rpx;">点击选择开户银行</text>
|
<text v-else style="color: #20B128;padding-left: 20rpx;">点击选择开户银行</text>
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item label="账户名称" prop="userInfo.name" borderBottom ref="item1">
|
<up-form-item label="账户名称" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
@ -118,6 +119,11 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
const getFormData = (form, target) => {
|
const getFormData = (form, target) => {
|
||||||
|
if (!target) {
|
||||||
|
form.value = {}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
form.name = target.name || ''
|
form.name = target.name || ''
|
||||||
form.bank_id = target.bank_id || ''
|
form.bank_id = target.bank_id || ''
|
||||||
form.bank_name = target.bank_name || ''
|
form.bank_name = target.bank_name || ''
|
||||||
|
@ -130,6 +136,7 @@
|
||||||
|
|
||||||
const choseAccount = (type) => {
|
const choseAccount = (type) => {
|
||||||
getFormData(form, bank_list.value[type])
|
getFormData(form, bank_list.value[type])
|
||||||
|
form.is_own = type
|
||||||
showPop1.value = false
|
showPop1.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import hDatetimePicker from "@/components/h-datetime-picker/components/h-datetime-picker/h-datetime-picker.vue"
|
// import hDatetimePicker from "@/components/h-datetime-picker/components/h-datetime-picker/h-datetime-picker.vue"
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive
|
reactive
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
账户总余额(元)
|
账户总余额(元)
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 36rpx;">
|
<view style="font-size: 36rpx;">
|
||||||
¥{{balance}}
|
¥{{balance||0.00}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="action">
|
<view class="action">
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<text>更换账户</text> <up-icon color="#20B128" name="arrow-right"></up-icon>
|
<text>更换账户</text> <up-icon color="#20B128" name="arrow-right"></up-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form" v-if='true'>
|
<view class="form" v-if='target_bank.bank_name'>
|
||||||
<up-form labelPosition="left" borderBottom :label-style="{fontSize:'30rpx'}" ref="form1" labelWidth='70'>
|
<up-form labelPosition="left" borderBottom :label-style="{fontSize:'30rpx'}" ref="form1" labelWidth='70'>
|
||||||
<up-form-item label="银行卡" prop="userInfo.name" borderBottom ref="item1">
|
<up-form-item label="银行卡" prop="userInfo.name" borderBottom ref="item1">
|
||||||
<up-input style="border: none;" v-model="target_bank.bank_name" />
|
<up-input style="border: none;" v-model="target_bank.bank_name" />
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
const showPop1 = ref(false)
|
const showPop1 = ref(false)
|
||||||
|
|
||||||
const choseAccount = (type) => {
|
const choseAccount = (type) => {
|
||||||
target_bank.value = bank_list.value[type]
|
target_bank.value = bank_list.value[type] || {}
|
||||||
console.log(target_bank.value)
|
console.log(target_bank.value)
|
||||||
showPop1.value = false
|
showPop1.value = false
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
amountAccountApi().then(res => {
|
amountAccountApi().then(res => {
|
||||||
balance.value = res.data.balance
|
balance.value = res.data.balance
|
||||||
bank_list.value = res.data.bank_list
|
bank_list.value = res.data.bank_list
|
||||||
target_bank.value = res.data.bank_list[0]
|
target_bank.value = res.data.bank_list[0] || {}
|
||||||
console.log(target_bank.value)
|
console.log(target_bank.value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -378,6 +378,9 @@
|
||||||
order_id: datas.value.id
|
order_id: datas.value.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
uni.$u.toast('已加入购物车');
|
uni.$u.toast('已加入购物车');
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/cart/cart'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,9 +42,9 @@
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
<orderCanclePopup :show="showCancel" @close="showCancel=false" @change="submitCancel" />
|
<orderCanclePopup :show="showCancel" @close="showCancel=false" @change="submitCancel" />
|
||||||
<modal :show="showTake" title="确认收货" content="请确认您已收到货" @close="showTake=false" @change="confirmReceipt">
|
<modal :show="showTake" title="确认收货" content="请确认您已收到货" @close="showTake=false" @change="confirmReceipt">
|
||||||
</modal>
|
</modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
@ -142,6 +142,9 @@
|
||||||
order_id: e.id
|
order_id: e.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
uni.$u.toast('已加入购物车');
|
uni.$u.toast('已加入购物车');
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/cart/cart'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ const useUserStore = defineStore("user", () => {
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
|
|
||||||
token.value = "f8503407982ed2391ff3dc740da26596"
|
token.value = "16d487cfde6bceefdfcb28d2f1d52bf8"
|
||||||
// token.value = "95b24dd6d2dda836fe07854b08ba0944"
|
// token.value = "95b24dd6d2dda836fe07854b08ba0944"
|
||||||
userInfo.value = {
|
userInfo.value = {
|
||||||
avatar: "https://lihaiim.oss-cn-chengdu.aliyuncs.com/image/admin/default_avatar.png",
|
avatar: "https://lihaiim.oss-cn-chengdu.aliyuncs.com/image/admin/default_avatar.png",
|
||||||
|
@ -35,7 +35,7 @@ const useUserStore = defineStore("user", () => {
|
||||||
mobile: "19330904744",
|
mobile: "19330904744",
|
||||||
nickname: "用户1714964250",
|
nickname: "用户1714964250",
|
||||||
supplier: null,
|
supplier: null,
|
||||||
token: "f8503407982ed2391ff3dc740da26596"
|
token: "16d487cfde6bceefdfcb28d2f1d52bf8"
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue