|
@@ -77,6 +77,7 @@
|
|
|
|
|
|
<view style="margin-top: 45px">
|
|
<view style="margin-top: 45px">
|
|
<up-button type="primary" text="确定提现" @click="onSubmit"></up-button>
|
|
<up-button type="primary" text="确定提现" @click="onSubmit"></up-button>
|
|
|
|
+ <up-button type="error" text="提现历史" @click="onHistory" style="margin-top: 20rpx;"></up-button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<up-action-sheet
|
|
<up-action-sheet
|
|
@@ -219,6 +220,14 @@ const onSubmit = () => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// 进入提现历史详情
|
|
|
|
+const onHistory = () => {
|
|
|
|
+ console.log(1123)
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages_mine/pages/withdrawal/details'
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
const onMaxChange = () => {
|
|
const onMaxChange = () => {
|
|
priceData.value.price = maxPrice.value
|
|
priceData.value.price = maxPrice.value
|
|
}
|
|
}
|
|
@@ -248,44 +257,44 @@ const init = async () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-const selectNumber = async (row) => {
|
|
|
|
|
|
+const selectNumber = (row) => {
|
|
s_key.value = row.name
|
|
s_key.value = row.name
|
|
console.log('selectNumber', row)
|
|
console.log('selectNumber', row)
|
|
- if (row.name === '他人支付宝账号提现') {
|
|
|
|
- try {
|
|
|
|
- uni.showLoading({
|
|
|
|
- title: '加载历史数据...',
|
|
|
|
- mask: true
|
|
|
|
- })
|
|
|
|
|
|
+ // if (row.name === '他人支付宝账号提现') {
|
|
|
|
+ // try {
|
|
|
|
+ // uni.showLoading({
|
|
|
|
+ // title: '加载历史数据...',
|
|
|
|
+ // mask: true
|
|
|
|
+ // })
|
|
|
|
|
|
- // 首先尝试获取历史支付宝账户信息
|
|
|
|
- const res = await vonTtAlipayAccountHistory()
|
|
|
|
|
|
+ // // 首先尝试获取历史支付宝账户信息
|
|
|
|
+ // const res = await vonTtAlipayAccountHistory()
|
|
|
|
|
|
- if (res.data === null ) {
|
|
|
|
- // 获取当前提现状态的数据
|
|
|
|
- const statusRes = await getWithdrawStatus()
|
|
|
|
- if (statusRes.code === 200 && statusRes.data) {
|
|
|
|
- priceData.value.name = statusRes.data.alipayName || ''
|
|
|
|
- priceData.value.code = statusRes.data.alipayAccountNo || ''
|
|
|
|
- priceData.value.idCard = statusRes.data.takeIdCard || ''
|
|
|
|
|
|
+ // if (res.data === null ) {
|
|
|
|
+ // // 获取当前提现状态的数据
|
|
|
|
+ // const statusRes = await getWithdrawStatus()
|
|
|
|
+ // if (statusRes.code === 200 && statusRes.data) {
|
|
|
|
+ // priceData.value.name = statusRes.data.alipayName || ''
|
|
|
|
+ // priceData.value.code = statusRes.data.alipayAccountNo || ''
|
|
|
|
+ // priceData.value.idCard = statusRes.data.takeIdCard || ''
|
|
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- } catch (error) {
|
|
|
|
- console.error('获取账户信息失败:', error)
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '获取账户信息失败',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
- } finally {
|
|
|
|
- uni.hideLoading()
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- // 切回本人时清空第三方账号信息
|
|
|
|
- priceData.value.name = ''
|
|
|
|
- priceData.value.code = ''
|
|
|
|
- priceData.value.idCard = ''
|
|
|
|
- }
|
|
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // } catch (error) {
|
|
|
|
+ // console.error('获取账户信息失败:', error)
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: '获取账户信息失败',
|
|
|
|
+ // icon: 'none'
|
|
|
|
+ // })
|
|
|
|
+ // } finally {
|
|
|
|
+ // uni.hideLoading()
|
|
|
|
+ // }
|
|
|
|
+ // } else {
|
|
|
|
+ // // 切回本人时清空第三方账号信息
|
|
|
|
+ // priceData.value.name = ''
|
|
|
|
+ // priceData.value.code = ''
|
|
|
|
+ // priceData.value.idCard = ''
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
|
|
|
|
onShow(() => {
|
|
onShow(() => {
|