Browse Source

新增提币密码

master
liaoxinyu 1 year ago
parent
commit
ffdc9373f1
  1. 4
      api/setting.js
  2. 9
      i18n/lang/de.json
  3. 9
      i18n/lang/en.json
  4. 9
      i18n/lang/fra.json
  5. 9
      i18n/lang/it.json
  6. 9
      i18n/lang/jp.json
  7. 9
      i18n/lang/kor.json
  8. 10
      i18n/lang/pt.json
  9. 9
      i18n/lang/spa.json
  10. 9
      i18n/lang/tr.json
  11. 9
      i18n/lang/zh-TW.json
  12. 3
      pages.json
  13. 24
      pages/assets/draw.vue
  14. 15
      pages/base/home.vue
  15. 11
      pages/reg/index.vue
  16. 11
      pages/safe/index.vue
  17. 59
      pages/safe/withdrawals-pwd.vue

4
api/setting.js

@ -77,6 +77,10 @@ class Setting {
static updatePassword(data,{btn}) { static updatePassword(data,{btn}) {
return Serve.post(`/user/updatePassword`, data,{btn}); return Serve.post(`/user/updatePassword`, data,{btn});
} }
static withdrawalPassword(data,{btn}) {
return Serve.post(`/user/withdrawalPassword`, data,{btn});
}
/** /**
* 绑定邮箱 * 绑定邮箱
* @param {object} data * @param {object} data

9
i18n/lang/de.json

@ -65,7 +65,11 @@
"c2": "Nummer der Version", "c2": "Nummer der Version",
"c3": "Offenbar", "c3": "Offenbar",
"c4": "Geschätzte Spanne", "c4": "Geschätzte Spanne",
"c5": "Ihre Überweisungsaufgabe wurde erfolgreich eingereicht, warten Sie bitte geduldig, und das Übertragungsergebnis wird per SMS oder E-Mail benachrichtigt. Bitte überprüfen Sie es sorgfältig. Bei Fragen wenden Sie sich bitte rechtzeitig an den Kundenservice." "c5": "Ihre Überweisungsaufgabe wurde erfolgreich eingereicht, warten Sie bitte geduldig, und das Übertragungsergebnis wird per SMS oder E-Mail benachrichtigt. Bitte überprüfen Sie es sorgfältig. Bei Fragen wenden Sie sich bitte rechtzeitig an den Kundenservice.",
"c12": "Informationen ablehnen",
"c13": "Entzugspasswort",
"c14": "Bitte geben Sie das Auszahlungspasswort ein",
"c15": "Auszahlungspasswort zurücksetzen"
}, },
"base": { "base": {
"a0": "Titel", "a0": "Titel",
@ -918,6 +922,7 @@
"hh22": "Registrieren Sie {name}, erhalten Sie Vorteile für Neueinsteiger und beginnen Sie Ihre Verschlüsselungsreise", "hh22": "Registrieren Sie {name}, erhalten Sie Vorteile für Neueinsteiger und beginnen Sie Ihre Verschlüsselungsreise",
"hh23": "Zum Herunterladen den QR-Code scannen", "hh23": "Zum Herunterladen den QR-Code scannen",
"hh24": "Die verschlüsselte Welt öffnet sich sofort", "hh24": "Die verschlüsselte Welt öffnet sich sofort",
"hh25": "Registrieren/Anmelden" "hh25": "Registrieren/Anmelden",
"hh26": "Starten Sie jetzt Ihre Geldreise"
} }
} }

9
i18n/lang/en.json

@ -68,7 +68,11 @@
"c4": "Size", "c4": "Size",
"c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.", "c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.",
"c6": "Proportion of increase", "c6": "Proportion of increase",
"c7": "Current valuation" "c7": "Current valuation",
"c12": "Rejection Information",
"c13": "Withdrawal password",
"c14": "Please fill in the withdrawal password",
"c15": "Reset withdrawal password"
}, },
"base": { "base": {
"a0": "Title", "a0": "Title",
@ -921,6 +925,7 @@
"hh22": "Register {name}, receive benefits for newcomers, and start your encryption journey", "hh22": "Register {name}, receive benefits for newcomers, and start your encryption journey",
"hh23": "Scan the QR code to download", "hh23": "Scan the QR code to download",
"hh24": "The encrypted world opens immediately", "hh24": "The encrypted world opens immediately",
"hh25": "Register/Login" "hh25": "Register/Login",
"hh26": "Start your currency journey now"
} }
} }

9
i18n/lang/fra.json

@ -65,7 +65,11 @@
"c2": "Numéro de version", "c2": "Numéro de version",
"c3": "Ouvert.", "c3": "Ouvert.",
"c4": "Marge estimée", "c4": "Marge estimée",
"c5": "votre commande de transfert a été soumise avec succès. Veuillez patienter. Les résultats du transfert seront notifiés par SMS ou e - mail. Veuillez vérifier et contacter le service à la clientèle en cas de doute." "c5": "votre commande de transfert a été soumise avec succès. Veuillez patienter. Les résultats du transfert seront notifiés par SMS ou e - mail. Veuillez vérifier et contacter le service à la clientèle en cas de doute.",
"c12": "Rejeter les informations",
"c13": "Mot de passe de retrait",
"c14": "Veuillez renseigner le mot de passe de retrait",
"c15": "Réinitialiser le mot de passe de retrait"
}, },
"base": { "base": {
"a0": "Titre", "a0": "Titre",
@ -919,6 +923,7 @@
"hh22": "Inscrivez {name}, bénéficiez d'avantages pour les nouveaux arrivants et commencez votre voyage de chiffrement", "hh22": "Inscrivez {name}, bénéficiez d'avantages pour les nouveaux arrivants et commencez votre voyage de chiffrement",
"hh23": "Scannez le code QR pour télécharger", "hh23": "Scannez le code QR pour télécharger",
"hh24": "Le monde crypté s'ouvre immédiatement", "hh24": "Le monde crypté s'ouvre immédiatement",
"hh25": "S'inscrire/Connexion" "hh25": "S'inscrire/Connexion",
"hh26": "Commencez votre voyage financier maintenant"
} }
} }

9
i18n/lang/it.json

@ -65,7 +65,11 @@
"c2": "Numero di versione", "c2": "Numero di versione",
"c3": "Aperto", "c3": "Aperto",
"c4": "Margine stimato", "c4": "Margine stimato",
"c5": "l'ordine di trasferimento è stato presentato con successo, si prega di attendere pazientemente, e il risultato di trasferimento sarà notificato via SMS o e-mail. Si prega di controllare attentamente. Se avete domande, si prega di contattare il servizio clienti in tempo." "c5": "l'ordine di trasferimento è stato presentato con successo, si prega di attendere pazientemente, e il risultato di trasferimento sarà notificato via SMS o e-mail. Si prega di controllare attentamente. Se avete domande, si prega di contattare il servizio clienti in tempo.",
"c12": "Rifiuta informazioni",
"c13": "Password di prelievo",
"c14": "Inserisci la password di prelievo",
"c15": "Reimposta password di prelievo"
}, },
"base": { "base": {
"a0": "titolo", "a0": "titolo",
@ -918,6 +922,7 @@
"hh22": "Registra {name}, ricevi vantaggi per i nuovi arrivati ​​e inizia il tuo viaggio nella crittografia", "hh22": "Registra {name}, ricevi vantaggi per i nuovi arrivati ​​e inizia il tuo viaggio nella crittografia",
"hh23": "Scansiona il codice QR per scaricare", "hh23": "Scansiona il codice QR per scaricare",
"hh24": "Il mondo criptato si apre immediatamente", "hh24": "Il mondo criptato si apre immediatamente",
"hh25": "Registrati/Accedi" "hh25": "Registrati/Accedi",
"hh26": "Inizia adesso il tuo viaggio nel denaro"
} }
} }

9
i18n/lang/jp.json

@ -65,7 +65,11 @@
"c2": "バージョン番号", "c2": "バージョン番号",
"c3": "開けてもいいです", "c3": "開けてもいいです",
"c4": "仮勘定保証金", "c4": "仮勘定保証金",
"c5": "あなたの振替注文書はすでに提出されました。待ってください。振り替え結果はメールやメールで通知されます。ご確認ください。問題があれば、すぐにカスタマーサービスに連絡してください。" "c5": "あなたの振替注文書はすでに提出されました。待ってください。振り替え結果はメールやメールで通知されます。ご確認ください。問題があれば、すぐにカスタマーサービスに連絡してください。",
"c12": "情報を拒否します",
"c13": "出金パスワード",
"c14": "出金パスワードを入力してください",
"c15": "出金パスワードをリセット"
}, },
"base": { "base": {
"a0": "タイトル", "a0": "タイトル",
@ -918,6 +922,7 @@
"hh22": "{name} に登録し、初心者向けの特典を受け取り、暗号化への取り組みを始めましょう", "hh22": "{name} に登録し、初心者向けの特典を受け取り、暗号化への取り組みを始めましょう",
"hh23": "QR コードをスキャンしてダウンロードします", "hh23": "QR コードをスキャンしてダウンロードします",
"hh24": "暗号化された世界がすぐに開きます", "hh24": "暗号化された世界がすぐに開きます",
"hh25": "登録/ログイン" "hh25": "登録/ログイン",
"hh26": "今すぐお金の旅を始めましょう"
} }
} }

9
i18n/lang/kor.json

@ -65,7 +65,11 @@
"c2": "버 전 번호", "c2": "버 전 번호",
"c3": "열 수 있 습 니 다", "c3": "열 수 있 습 니 다",
"c4": "보증금 예상", "c4": "보증금 예상",
"c5": "당신 의 이월 주문 서 는 이미 제출 되 었 습 니 다. 인내심 을 가지 고 기 다 려 주 십시오. 이월 결 과 는 문자 나 우편 으로 통지 할 것 입 니 다. 수령 에 주의 하 십시오. 궁금 한 점 이 있 으 면 즉시 고객 센터 에 연락 하 십시오." "c5": "당신 의 이월 주문 서 는 이미 제출 되 었 습 니 다. 인내심 을 가지 고 기 다 려 주 십시오. 이월 결 과 는 문자 나 우편 으로 통지 할 것 입 니 다. 수령 에 주의 하 십시오. 궁금 한 점 이 있 으 면 즉시 고객 센터 에 연락 하 십시오.",
"c12": "정보 거부",
"c13": "출금 비밀번호",
"c14": "출금 비밀번호를 입력해주세요",
"c15": "출금 비밀번호 재설정"
}, },
"base": { "base": {
"a0": "표제.", "a0": "표제.",
@ -918,6 +922,7 @@
"hh22": "{name}을(를) 등록하고 신규 사용자를 위한 혜택을 받고 암호화 여정을 시작하세요", "hh22": "{name}을(를) 등록하고 신규 사용자를 위한 혜택을 받고 암호화 여정을 시작하세요",
"hh23": "다운로드하려면 QR 코드를 스캔하세요", "hh23": "다운로드하려면 QR 코드를 스캔하세요",
"hh24": "암호화된 세계가 즉시 열립니다", "hh24": "암호화된 세계가 즉시 열립니다",
"hh25": "등록/로그인" "hh25": "등록/로그인",
"hh26": "지금 돈 여행을 시작하세요"
} }
} }

10
i18n/lang/pt.json

@ -65,7 +65,11 @@
"c2": "Número de versão", "c2": "Número de versão",
"c3": "Aberto", "c3": "Aberto",
"c4": "Margem estimada", "c4": "Margem estimada",
"c5": "Sua ordem de transfer ência FOI enviada com sucesso, por favor aguarde pacientemente, e o Resultado Da transferência será notificado por SMS ou e-mail. Por favor, verifique-o com cuidado. Se você tiver quaisquer perguntas, por favor contacte o serviço de cliente a tempo." "c5": "Sua ordem de transfer ência FOI enviada com sucesso, por favor aguarde pacientemente, e o Resultado Da transferência será notificado por SMS ou e-mail. Por favor, verifique-o com cuidado. Se você tiver quaisquer perguntas, por favor contacte o serviço de cliente a tempo.",
"c12": "Rejeitar informações",
"c13": "Senha de retirada",
"c14": "Por favor preencha a senha de saque",
"c15": "Redefinir senha de saque"
}, },
"base": { "base": {
"a0": "Título", "a0": "Título",
@ -916,6 +920,8 @@
"hh22": "Registre {name}, receba benefícios para recém-chegados e comece sua jornada de criptografia", "hh22": "Registre {name}, receba benefícios para recém-chegados e comece sua jornada de criptografia",
"hh23": "Digitalize o código QR para fazer o download", "hh23": "Digitalize o código QR para fazer o download",
"hh24": "O mundo criptografado abre imediatamente", "hh24": "O mundo criptografado abre imediatamente",
"hh25": "Registro/Login" "hh25": "Registro/Login",
"hh26": "Comece sua jornada financeira agora"
} }
} }

9
i18n/lang/spa.json

@ -65,7 +65,11 @@
"c2": "Número de versión", "c2": "Número de versión",
"c3": "abierto", "c3": "abierto",
"c4": "margen estimado", "c4": "margen estimado",
"c5": "su orden de transferencia ha sido enviada con éxito, por favor espere pacientemente, los resultados de la transferencia serán notificados por SMS o correo electrónico. Por favor, preste atención a la recepción, si tiene alguna pregunta por favor póngase en contacto con el servicio al cliente a tiempo." "c5": "su orden de transferencia ha sido enviada con éxito, por favor espere pacientemente, los resultados de la transferencia serán notificados por SMS o correo electrónico. Por favor, preste atención a la recepción, si tiene alguna pregunta por favor póngase en contacto con el servicio al cliente a tiempo.",
"c12": "Rechazar información",
"c13": "Contraseña de retiro",
"c14": "Por favor complete la contraseña de retiro",
"c15": "Restablecer contraseña de retiro"
}, },
"base": { "base": {
"a0": "Título", "a0": "Título",
@ -919,6 +923,7 @@
"hh22": "Regístrese {name}, reciba beneficios para los recién llegados y comience su viaje de cifrado", "hh22": "Regístrese {name}, reciba beneficios para los recién llegados y comience su viaje de cifrado",
"hh23": "Escanea el código QR para descargar", "hh23": "Escanea el código QR para descargar",
"hh24": "El mundo cifrado se abre inmediatamente", "hh24": "El mundo cifrado se abre inmediatamente",
"hh25": "Registrarse/Iniciar sesión" "hh25": "Registrarse/Iniciar sesión",
"hh26": "Empieza tu viaje con el dinero ahora"
} }
} }

9
i18n/lang/tr.json

@ -65,7 +65,11 @@
"c2": "Sürüm numarası", "c2": "Sürüm numarası",
"c3": "açılabilir", "c3": "açılabilir",
"c4": "tahmin edilen margin", "c4": "tahmin edilen margin",
"c5": "Taşıma emriniz başarıyla teslim edildi, lütfen sabırlı bekleyin ve aktarım sonuçları SMS veya e-posta tarafından bildirilecek. Lütfen dikkatli kontrol edin. Bir sorununuz varsa, lütfen müşteri hizmetine zamanında temas edin." "c5": "Taşıma emriniz başarıyla teslim edildi, lütfen sabırlı bekleyin ve aktarım sonuçları SMS veya e-posta tarafından bildirilecek. Lütfen dikkatli kontrol edin. Bir sorununuz varsa, lütfen müşteri hizmetine zamanında temas edin.",
"c12": "Bilgiyi reddet",
"c13": "Para çekme şifresi",
"c14": "Lütfen para çekme şifresini giriniz",
"c15": "Para çekme şifresini sıfırla"
}, },
"base": { "base": {
"a0": "Başlık", "a0": "Başlık",
@ -916,6 +920,7 @@
"hh22": "{name}'e kaydolun, yeni gelenlerin avantajlarından yararlanın ve şifreleme yolculuğunuza başlayın", "hh22": "{name}'e kaydolun, yeni gelenlerin avantajlarından yararlanın ve şifreleme yolculuğunuza başlayın",
"hh23": "İndirmek için QR kodunu tarayın", "hh23": "İndirmek için QR kodunu tarayın",
"hh24": "Şifreli dünya hemen açılıyor", "hh24": "Şifreli dünya hemen açılıyor",
"hh25": "Kayıt Ol/Giriş Yap" "hh25": "Kayıt Ol/Giriş Yap",
"hh26": "Para yolculuğunuza şimdi başlayın"
} }
} }

9
i18n/lang/zh-TW.json

@ -67,7 +67,11 @@
"c3": "可開", "c3": "可開",
"c4": "數量", "c4": "數量",
"c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服", "c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服",
"c6": "漲幅比例" "c6": "漲幅比例",
"c12": "駁回信息",
"c13": "提款密碼",
"c14": "請填写提款密碼",
"c15": "重置提款密碼"
}, },
"base": { "base": {
"a0": "標題", "a0": "標題",
@ -919,6 +923,7 @@
"hh22": "註冊{name},領新人福利,開啟加密之旅", "hh22": "註冊{name},領新人福利,開啟加密之旅",
"hh23": "掃碼下載", "hh23": "掃碼下載",
"hh24": "加密世界,即刻開啟", "hh24": "加密世界,即刻開啟",
"hh25": "註冊/登錄" "hh25": "註冊/登錄",
"hh26": "立即開始貨幣之旅"
} }
} }

3
pages.json

@ -173,6 +173,9 @@
{ {
"path": "pages/service/service" "path": "pages/service/service"
}, },
{
"path" : "pages/safe/withdrawals-pwd"
},
{ {
"path": "pages/service/index", "path": "pages/service/index",
"style": { "style": {

24
pages/assets/draw.vue

@ -111,12 +111,14 @@
<span>{{ $t("reg.a8") }}</span> <span>{{ $t("reg.a8") }}</span>
<!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> --> <!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> -->
</view> </view>
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm"> <!-- 密码 -->
<!-- <view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm">
<v-input type="password" v-model="form.password" class="p-x-ms color-light w-max fn-13 rounded-xs" :placeholder="$t('reg.a9')"> <v-input type="password" v-model="form.password" class="p-x-ms color-light w-max fn-13 rounded-xs" :placeholder="$t('reg.a9')"></v-input>
</view> -->
</v-input> <!-- 提币密码 -->
</view> <view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm">
<v-input type="password" v-model="form.withdrawal_psw" class="p-x-ms color-light w-max fn-13 rounded-xs" :placeholder="$t('common.c14')"></v-input>
</view>
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15"> <view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15">
<span>{{ $t("safe.a5") }}</span> <span>{{ $t("safe.a5") }}</span>
</view> </view>
@ -240,7 +242,7 @@ export default {
form: { form: {
coin_id: "", coin_id: "",
amount: "", amount: "",
password:"", withdrawal_psw:"",
address: "", address: "",
addressType: "", addressType: "",
code_type: 1, code_type: 1,
@ -328,8 +330,8 @@ export default {
this.$toast(this.$t('assets.c2')) this.$toast(this.$t('assets.c2'))
return return
} }
if (!this.form.password) { if (!this.form.withdrawal_psw) {
this.$toast(this.$t('reg.a9')) this.$toast(this.$t('common.c14'))
return return
} }
if(this.getEmailCodeLock){return}; if(this.getEmailCodeLock){return};
@ -366,6 +368,10 @@ export default {
this.$toast(this.$t('safe.a6')) this.$toast(this.$t('safe.a6'))
return return
} }
if (!this.form.withdrawal_psw) {
this.$toast(this.$t('common.c14'))
return
}
let data = this.withdrawFee let data = this.withdrawFee
if (data.withdraw_switch == 1) { if (data.withdraw_switch == 1) {
this.secondaryShow = true this.secondaryShow = true

15
pages/base/home.vue

@ -131,15 +131,11 @@
<view v-if="!isLogin" class="jump_btn" @click="goReg"> <view v-if="!isLogin" class="jump_btn" @click="goReg">
{{ $t("reg.b9") }} {{ $t("reg.b9") }}
</view> </view>
<view v-else class="jump_btn" @click="goMine"> <view v-if="!isLogin" class="jump_btn1" @click="goLogin">
{{ $t("reg.b9") }}
</view>
<view v-if="!isLogin" class="jump_btn1" @click="goReg">
{{ $t("exchange.d0") }} {{ $t("exchange.d0") }}
</view> </view>
<view v-else class="jump_btn1" @click="goMine"> <view v-else class="jump_btn" style="padding: 0px 100rpx;" @click="goMine">
{{ $t("exchange.d0") }} {{ $t("homeNewText.hh26") }}
</view> </view>
</view> </view>
@ -1007,6 +1003,11 @@
url: '/pages/reg/index' url: '/pages/reg/index'
}) })
}, },
goLogin() {
uni.navigateTo({
url: '/pages/login/index'
})
},
toNotice(item) { toNotice(item) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/notice/detail?id=' + item.id url: '/pages/notice/detail?id=' + item.id

11
pages/reg/index.vue

@ -106,6 +106,10 @@
<view class="label m-b-xs black">{{$t('reg.b0')}}</view> <view class="label m-b-xs black">{{$t('reg.b0')}}</view>
<v-input class="login_box3" v-model="form.password_confirmation" type="password" :placeholder="$t('reg.b1')"></v-input> <v-input class="login_box3" v-model="form.password_confirmation" type="password" :placeholder="$t('reg.b1')"></v-input>
</view> </view>
<view class="form-item m-b-md p-b-xs">
<view class="label m-b-xs black">{{$t('common.c13')}}</view>
<v-input class="login_box3" v-model="form.withdrawal_psw" type="password" :placeholder="$t('common.c14')"></v-input>
</view>
<!-- <view class="form-item m-b-md p-b-xs"> <!-- <view class="form-item m-b-md p-b-xs">
<view class="label m-b-xs">{{$t('reg.c6')}}</view> <view class="label m-b-xs">{{$t('reg.c6')}}</view>
<v-input class="color-light" v-model="form.invitationCode" type="password" :placeholder="$t('reg.c7')"></v-input> <v-input class="color-light" v-model="form.invitationCode" type="password" :placeholder="$t('reg.c7')"></v-input>
@ -159,6 +163,7 @@ export default {
account: "", account: "",
code: "", code: "",
password: "", password: "",
withdrawal_psw:"",
password_confirmation: "", password_confirmation: "",
invite_code: "", invite_code: "",
gr_code: "", gr_code: "",
@ -189,7 +194,7 @@ export default {
methods: { methods: {
register() { register() {
if (!this.form.account) { if (!this.form.account) {
this.$toast(this.$t('reg.a3')); this.$toast(this.$t('reg.a5'));
return; return;
} }
if (!this.check) { if (!this.check) {
@ -209,6 +214,10 @@ export default {
this.$toast(this.$t('reg.c7')); this.$toast(this.$t('reg.c7'));
return; return;
} }
if (!this.form.withdrawal_psw) {
this.$toast(this.$t('common.c14'));
return;
}
this.form.type=this.form.type this.form.type=this.form.type
this.form.country_code = this.country_code || 86; this.form.country_code = this.country_code || 86;

11
pages/safe/index.vue

@ -26,6 +26,17 @@
</view> </view>
<van-icon name="arrow" /> <van-icon name="arrow" />
</v-link> </v-link>
<!-- ----------提款密码---------- -->
<v-link
tag="li"
to="/pages/safe/withdrawals-pwd"
class="item link-active d-flex p-x-md p-y-md align-center border-b"
>
<view class="flex-fill d-flex justify-between m-r-xs">
<view class="color-light">{{$t('common.c13')}}</view>
</view>
<van-icon name="arrow" />
</v-link>
<!-- ----------交易密码---------- --> <!-- ----------交易密码---------- -->
<!-- <v-link <!-- <v-link
tag="li" tag="li"

59
pages/safe/withdrawals-pwd.vue

@ -0,0 +1,59 @@
<template>
<v-page class="pos-login">
<v-header :title="$t('common.c13')"></v-header>
<main class=" m-x-xl bg-panel-3 p-x-lg p-y-lg rounded-md box-shadow">
<view class="form-item border-b p-y-md color-light">
<view class="label m-b-xs">{{$t('safe.b3')}}</view>
<view class="input">
<v-input type="password" v-model="form.password" :placeholder="$t('safe.b4')"></v-input>
</view>
</view>
<view class="form-item border-b p-y-md color-light">
<view class="label m-b-xs">{{$t('safe.b5')}}</view>
<view class="input">
<v-input type="password" v-model="form.password_confirmation" :placeholder="$t('safe.b6')"></v-input>
</view>
</view>
<view class="p-md ">
<v-button class="w-max rounded-lg" block ref="btn" type="green" @click="setPassword">{{$t('safe.b7')}}</v-button>
</view>
</main>
<van-toast id="van-toast" />
</v-page>
</template>
<script>
import Member from "@/api/member";
import { mapState } from "vuex";
import Setting from "@/api/setting";
export default {
data() {
return {
form: {
password: "",
password_confirmation: ""
}
};
},
computed: {
...mapState({
user: "user",
}),
},
methods: {
setPassword() {
let data = this.form;
Setting.withdrawalPassword(data, { btn: this.$refs.btn })
.then((res) => {
if(res.code==200){
this.$back();
this.$toast.success(this.$t('safe.d3'));
}
}).catch(() => {});
},
},
};
</script>
<style lang="scss" scoped>
</style>
Loading…
Cancel
Save