add
This commit is contained in:
parent
22fded1bee
commit
8f28955f44
|
@ -37,6 +37,10 @@
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
</up-form>
|
</up-form>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="" style="margin-top: 20rpx;color: red;" v-if="false">
|
||||||
|
审核失败,请重新提交审核
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="submit-btn">
|
<view class="submit-btn">
|
||||||
<up-button text="提交绑定" @click="submit" shape="circle" color="#50C758"></up-button>
|
<up-button text="提交绑定" @click="submit" shape="circle" color="#50C758"></up-button>
|
||||||
</view>
|
</view>
|
||||||
|
@ -78,6 +82,9 @@
|
||||||
bindCradApi,
|
bindCradApi,
|
||||||
amountAccountApi
|
amountAccountApi
|
||||||
} from "@/api/balance.js"
|
} from "@/api/balance.js"
|
||||||
|
import {
|
||||||
|
onPullDownRefresh
|
||||||
|
} from "@dcloudio/uni-app"
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive
|
reactive
|
||||||
|
@ -95,10 +102,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const bank_list = ref([])
|
const bank_list = ref([])
|
||||||
const getBanlance = () => {
|
const getBanlance = (refresh) => {
|
||||||
amountAccountApi().then(res => {
|
amountAccountApi().then(res => {
|
||||||
bank_list.value = res.data.bank_list
|
bank_list.value = res.data.bank_list
|
||||||
getFormData(form, res.data.bank_list[0])
|
getFormData(form, res.data.bank_list[0])
|
||||||
|
if (refresh) {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getBanlance()
|
getBanlance()
|
||||||
|
@ -123,7 +133,6 @@
|
||||||
form.value = {}
|
form.value = {}
|
||||||
return
|
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 || ''
|
||||||
|
@ -171,6 +180,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
getBankList()
|
getBankList()
|
||||||
|
|
||||||
|
onPullDownRefresh(() => {
|
||||||
|
getBanlance(true)
|
||||||
|
// getBanlance(true)
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,9 @@
|
||||||
ref,
|
ref,
|
||||||
reactive
|
reactive
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
import {
|
||||||
|
onPullDownRefresh
|
||||||
|
} from "@dcloudio/uni-app"
|
||||||
const emptyText = '您尚未绑定提现账户,\n点击右上角"添加账户"'
|
const emptyText = '您尚未绑定提现账户,\n点击右上角"添加账户"'
|
||||||
const showPop1 = ref(false)
|
const showPop1 = ref(false)
|
||||||
|
|
||||||
|
@ -117,12 +120,14 @@
|
||||||
const bank_list = ref([])
|
const bank_list = ref([])
|
||||||
const balance = ref(0.00)
|
const balance = ref(0.00)
|
||||||
const target_bank = ref([])
|
const target_bank = ref([])
|
||||||
const getBanlance = () => {
|
const getBanlance = (isAsync) => {
|
||||||
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)
|
if (isAsync) {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getBanlance()
|
getBanlance()
|
||||||
|
@ -142,9 +147,11 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
getBankList()
|
getBankList()
|
||||||
|
|
||||||
|
onPullDownRefresh(() => {
|
||||||
|
getBanlance(true)
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
@ -114,21 +114,21 @@
|
||||||
"path": "Balance/index",
|
"path": "Balance/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的余额",
|
"navigationBarTitleText": "我的余额",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "Balance/bindAccout",
|
"path": "Balance/bindAccout",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "绑定账户",
|
"navigationBarTitleText": "绑定账户",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "Balance/detail",
|
"path": "Balance/detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "明细",
|
"navigationBarTitleText": "明细",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ const useUserStore = defineStore("user", () => {
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
|
|
||||||
token.value = "16d487cfde6bceefdfcb28d2f1d52bf8"
|
token.value = "356b6f0615184692de99df42b9329749"
|
||||||
// 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: "16d487cfde6bceefdfcb28d2f1d52bf8"
|
token: "356b6f0615184692de99df42b9329749"
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue