diff --git a/src/pages-sub/invest-immediately/index.vue b/src/pages-sub/invest-immediately/index.vue
index 7df416b..bf19d34 100644
--- a/src/pages-sub/invest-immediately/index.vue
+++ b/src/pages-sub/invest-immediately/index.vue
@@ -24,9 +24,9 @@
- 支付密码
+ 提现密码
-
+
diff --git a/src/pages-sub/pay-password/index.vue b/src/pages-sub/pay-password/index.vue
new file mode 100644
index 0000000..cdd2272
--- /dev/null
+++ b/src/pages-sub/pay-password/index.vue
@@ -0,0 +1,136 @@
+
+{
+ style: {
+ navigationBarTitleText: '设置提现密码',
+ navigationStyle: 'custom',
+ },
+ notNeedLogin: true,
+}
+
+
+
+
+
+
+
+
+ 姓名
+
+
+
+ 身份证号
+
+
+
+
+ 提现密码
+
+
+
+ 确认提现密码
+
+
+
+
+ 确认
+
+
+
+
+
+
+
+
diff --git a/src/pages-sub/withdrawal/index.vue b/src/pages-sub/withdrawal/index.vue
index 73a5c0b..e8095f8 100644
--- a/src/pages-sub/withdrawal/index.vue
+++ b/src/pages-sub/withdrawal/index.vue
@@ -47,6 +47,18 @@
+ 提现密码
+
+
+
+
提现说明(TIPS)
1、如遇到系统结算繁忙,结算将会延迟到账
@@ -78,6 +90,7 @@ const userStore = useUserStore()
const form = ref({
money: '',
+ tixianpass: '',
})
const onWithdrawalDetail = () => {
@@ -105,6 +118,20 @@ const onSubmit = async () => {
})
}
+ if (!currentBank.value) {
+ return uni.showToast({
+ title: '请选择收款方式',
+ icon: 'none',
+ })
+ }
+
+ if (!form.value.tixianpass) {
+ return uni.showToast({
+ title: '请输入提现密码',
+ icon: 'none',
+ })
+ }
+
await showModal('确认提现?')
const res = await submitWithdrawalAPI(form.value)
await showModal(res.msg ? res.msg : '提交成功')
diff --git a/src/pages.json b/src/pages.json
index 43b51bc..b30fd1c 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -231,6 +231,15 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pay-password/index",
+ "type": "page",
+ "style": {
+ "navigationBarTitleText": "设置提现密码",
+ "navigationStyle": "custom"
+ },
+ "notNeedLogin": true
+ },
{
"path": "realname/index",
"type": "page",
diff --git a/src/pages/edit-password/index.vue b/src/pages/edit-password/index.vue
index 36aa3aa..a65fb50 100644
--- a/src/pages/edit-password/index.vue
+++ b/src/pages/edit-password/index.vue
@@ -60,7 +60,7 @@
placeholder-class="text-#889BC6"
type="password"
class="text-right flex-1 text-14"
- placeholder="请输入支付密码"
+ placeholder="请输入提现密码"
/>
@@ -69,7 +69,7 @@
placeholder-class="text-#889BC6"
type="password"
class="text-right flex-1 text-14"
- placeholder="请再次输入支付密码"
+ placeholder="请再次输入提现密码"
/>
diff --git a/src/pages/my/index.vue b/src/pages/my/index.vue
index 13f697c..b810888 100644
--- a/src/pages/my/index.vue
+++ b/src/pages/my/index.vue
@@ -170,7 +170,7 @@ const commonList = [
handle: handleWithdrawalDetail,
},
{
- title: '支付密码',
+ title: '提现密码',
icon: CommonIcon3,
handle: handlePayPassword,
},
diff --git a/src/service/index.ts b/src/service/index.ts
index f55fb0b..e8bcc46 100644
--- a/src/service/index.ts
+++ b/src/service/index.ts
@@ -229,3 +229,18 @@ export const getBankCardRecoverAPI = (data) =>
method: 'POST',
data,
})
+// 设置提现密码
+export const setWithdrawalPasswordAPI = (data) =>
+ http({
+ url: '/api/user/settixianpass',
+ method: 'POST',
+ data,
+ })
+
+// 忘记提现密码
+export const resetForgetWithdrawalPasswordAPI = (data) =>
+ http({
+ url: '/api/user/forgettixianpass',
+ method: 'POST',
+ data,
+ })
diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts
index d411cfb..c3eee5e 100644
--- a/src/types/uni-pages.d.ts
+++ b/src/types/uni-pages.d.ts
@@ -25,6 +25,7 @@ interface NavigateToOptions {
"/pages-sub/news/index" |
"/pages-sub/news-detail/index" |
"/pages-sub/official-community/index" |
+ "/pages-sub/pay-password/index" |
"/pages-sub/realname/index" |
"/pages-sub/team/index" |
"/pages-sub/withdrawal/index" |