diff --git a/src/api/user/index.ts b/src/api/user/index.ts index fddf85c..59e0852 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -1,7 +1,7 @@ /** * 用户信息相关接口 */ -import type { CouponBean, LoginParams, LoginResult, RegisterParams, TerminalBean, SetPayPasswordParams, PayPasswordResponse } from './types'; +import type { CouponBean, LoginParams, LoginResult, RegisterParams, TerminalBean, SetPayPasswordParams} from './types'; import { get, post } from '@/utils/request'; import { UserBean } from '@/store/modules/user/types'; @@ -35,7 +35,6 @@ enum URL { cardLink = '/wc/wechat/get_card_url', registerCoupon = '/couponsStrategy/wx_register_coupon', setPayPassword = '/app/pay/set_paypwd', - payPasswordStatus = '/user/pay-password/status', } export const getUserProfile = () => get({ url: URL.profile }); @@ -86,10 +85,3 @@ export const setPayPassword = (data: SetPayPasswordParams) => post get<{ hasPassword: boolean }>({ - url: URL.payPasswordStatus -}); diff --git a/src/api/user/types.ts b/src/api/user/types.ts index 261e687..39aa857 100644 --- a/src/api/user/types.ts +++ b/src/api/user/types.ts @@ -120,12 +120,7 @@ export interface TerminalBean { } export interface SetPayPasswordParams { - paywithpwd: number + paywithpwd: number // 0: 开启支付密码, 1: 关闭支付密码 oldpwd: string, newpwd: string } - -export interface PayPasswordResponse { - success: boolean - message: string -} diff --git a/src/components/pay-password-dialog.vue b/src/components/pay-password-dialog.vue index ec9ddcc..84e24f0 100644 --- a/src/components/pay-password-dialog.vue +++ b/src/components/pay-password-dialog.vue @@ -2,19 +2,29 @@ - 设置支付密码 + {{ getDialogTitle }} + + + 关闭支付密码 + + + - - 旧密码: + + 原密码: - - - 新密码: - - - + +