|
|
@@ -13,7 +13,7 @@
|
|
|
<div class="box-2 fs-18 hand-cursor " :class="navType==6?'fc-755C82 bg-c-f fw-700':'fc-f fw-400'" @click="selectType(6)">{{$t('home6.nav6')}}</div>
|
|
|
</div>
|
|
|
<div class="flex-1 ">
|
|
|
- <MyMoney v-if="navType == 1" ref="myMoney"></MyMoney>
|
|
|
+ <MyMoney v-if="navType == 1" ref="myMoney" @record="openPwdPopup" :showList="showList" @success="closePwdPopup"></MyMoney>
|
|
|
<MyOrder v-else-if="navType == 2" ref="myOrder"></MyOrder>
|
|
|
<Msg v-else-if="navType == 3" ref="msg"></Msg>
|
|
|
<Secure v-else-if="navType == 4" ref="secure"></Secure>
|
|
|
@@ -21,42 +21,86 @@
|
|
|
<AboutUs v-else-if="navType == 6" ref="aboutUs"></AboutUs>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <Bounced v-if="dialogVisible" :dialogVisible="dialogVisible" :titleName="''" bouncedWidth="400px">
|
|
|
+ <template slot="from">
|
|
|
+ <div class="pwd-container">
|
|
|
+ <div class="head">
|
|
|
+ <div class="label">{{ $t('home5.text16') }}</div>
|
|
|
+ <div class="close" @click="closePwdPopup">
|
|
|
+ <img class="close-img" src="@/assets/img/close.png"></img>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <el-input v-model="payPwd" type="password" :placeholder="$t('home5.text16')"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="operates">
|
|
|
+ <div class="cancel btn" @click="closePwdPopup">{{ $t('placeholder.logoutCancel') }}</div>
|
|
|
+ <div class="confirm btn" @click="handleConfirmPwd">{{ $t('placeholder.logoutSubmit') }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </Bounced>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import store from '@/store'
|
|
|
- import MyMoney from './mod/my-money.vue';
|
|
|
- import MyOrder from './mod/my-order.vue';
|
|
|
- import Notice from './mod/notice.vue';
|
|
|
- import AboutUs from './mod/about-us.vue';
|
|
|
- import Secure from './mod/secure.vue';
|
|
|
- import Msg from './mod/msg.vue';
|
|
|
-
|
|
|
- export default {
|
|
|
- components:{MyMoney,MyOrder,AboutUs,Notice,Secure,Msg},
|
|
|
- data(){
|
|
|
- return{
|
|
|
- navType:1,
|
|
|
- }
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- let index = this.$route.query.index
|
|
|
- if(index){
|
|
|
- store.commit('user/setNavActive', 6)
|
|
|
- this.navType = index;
|
|
|
- }else{
|
|
|
- this.navType = 1;
|
|
|
- }
|
|
|
- },
|
|
|
- methods:{
|
|
|
- selectType(type){
|
|
|
- if(this.navType!= type){
|
|
|
- this.navType = type;
|
|
|
- }
|
|
|
- },
|
|
|
- },
|
|
|
+import store from '@/store'
|
|
|
+import tools from '@/utils/tools'
|
|
|
+import MyMoney from './mod/my-money.vue'
|
|
|
+import MyOrder from './mod/my-order.vue'
|
|
|
+import Notice from './mod/notice.vue'
|
|
|
+import AboutUs from './mod/about-us.vue'
|
|
|
+import Secure from './mod/secure.vue'
|
|
|
+import Msg from './mod/msg.vue'
|
|
|
+import Bounced from '@/components/Admin/bounced.vue'
|
|
|
+import { verifyPayPass_API } from '@/api/common.js'
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: { MyMoney, MyOrder, AboutUs, Notice, Secure, Msg, Bounced },
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ navType: 1,
|
|
|
+ dialogVisible: false,
|
|
|
+ payPwd: '',
|
|
|
+ showList: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ const index = this.$route.query.index
|
|
|
+ if (index) {
|
|
|
+ store.commit('user/setNavActive', 6)
|
|
|
+ this.navType = index
|
|
|
+ } else {
|
|
|
+ this.navType = 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ selectType (type) {
|
|
|
+ if (this.navType != type) {
|
|
|
+ this.navType = type
|
|
|
+ }
|
|
|
+ },
|
|
|
+ openPwdPopup () {
|
|
|
+ this.payPwd = ''
|
|
|
+ this.dialogVisible = true
|
|
|
+ },
|
|
|
+ closePwdPopup () {
|
|
|
+ this.payPwd = ''
|
|
|
+ this.dialogVisible = false
|
|
|
+ },
|
|
|
+ handleConfirmPwd () {
|
|
|
+ if (this.payPwd.length != 6) return
|
|
|
+ verifyPayPass_API({ pay_pass: this.payPwd }).then((res) => {
|
|
|
+ if (res.code === 1) {
|
|
|
+ this.showList = true
|
|
|
+ } else {
|
|
|
+ tools.error(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
@@ -65,7 +109,7 @@
|
|
|
min-height: calc(100vh - 92px);
|
|
|
padding-top: 70px;
|
|
|
background: #C1B5C5;
|
|
|
-
|
|
|
+
|
|
|
.info-box{
|
|
|
width: 100%;
|
|
|
min-height: 683px;
|
|
|
@@ -89,4 +133,81 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .pwd-container {
|
|
|
+ /* width: 400px; */
|
|
|
+ height: 200px;
|
|
|
+ margin: 0 auto;
|
|
|
+
|
|
|
+ .head {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ height: 25%;
|
|
|
+
|
|
|
+ .label {
|
|
|
+ color: #171717;
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .close {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ position: absolute;
|
|
|
+ top: 12px;
|
|
|
+ right: 10px;
|
|
|
+ z-index: 999;
|
|
|
+ width: 25px;
|
|
|
+ height: 25px;
|
|
|
+ background-color: #f1f1f1;
|
|
|
+ border-radius: 50%;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ .close-img {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .content {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 72%;
|
|
|
+ height: 30%;
|
|
|
+ margin: 0 auto;
|
|
|
+ padding: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .operates {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+ .btn {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 160px;
|
|
|
+ height: 32px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ border-radius: 10px;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ &:not(:first-child) {
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.cancel { background-color: #E0E0E0; }
|
|
|
+
|
|
|
+ &.confirm {
|
|
|
+ background-color: #C7AB7B;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|