guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 1 | <template> |
| 2 | <view class="accountSafe"> |
| 3 | <view class="accountSafe-list"> |
| 4 | <u-cell-group :border="false"> |
| 5 | <u-cell-item :title="v.name" :title-style="titleStyle" :value="i===0?signed:''" @click="i?toPath(v.path):toBind()" v-for="(v,i) in list" |
| 6 | :key="i" :value-style="style"> |
| 7 | <u-icon :name="v.icon" custom-prefix="custom-icon" size="40" slot="icon" color="#666666"></u-icon> |
| 8 | </u-cell-item> |
| 9 | </u-cell-group> |
| 10 | </view> |
| 11 | </view> |
| 12 | </template> |
| 13 | |
| 14 | <script> |
| 15 | export default { |
| 16 | data() { |
| 17 | return { |
| 18 | signed:"未绑定", |
| 19 | style:{}, |
| 20 | titleStyle:{'font-family':'PingFang-SC-Medium','fontSize':'28rpx','marginLeft':'30rpx'}, |
| 21 | list:[ |
guangchao.xu | 6cdd45e | 2021-04-16 17:44:30 +0800 | [diff] [blame^] | 22 | {name:"签约绑卡",icon:"sign",path:"/pages/sub_mine/bindBankCard"}, |
| 23 | {name:"签约商户管理",icon:"shop",path:"/pages/sub_mine/shop"}, |
| 24 | {name:"指纹/手势/人脸登录",icon:"login",path:"/pages/sub_mine/otherLogin"}, |
| 25 | {name:"修改登录密码",icon:"phone",path:"/pages/sub_mine/changeLoginPwd"}, |
| 26 | {name:"设置支付密码",icon:"pay",path:"/pages/sub_mine/changePayPwd"}, |
| 27 | {name:"支付(指纹)",icon:"finger",path:"/pages/sub_mine/otherPay"}, |
| 28 | {name:"挂失",icon:"gs",path:"/pages/sub_mine/reportheLoss"}, |
| 29 | {name:"设置邮箱",icon:"email",path:"/pages/sub_mine/bindEmail"}, |
| 30 | {name:"设置密保",icon:"mibao",path:"/pages/sub_mine/question"}, |
guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 31 | ] |
| 32 | } |
| 33 | }, |
| 34 | onLoad(){ |
| 35 | |
| 36 | }, |
| 37 | methods: { |
| 38 | toBind(){ |
| 39 | let signed = uni.getStorageSync("signed") |
| 40 | let that = this |
| 41 | if(signed == "yes"){ |
| 42 | uni.navigateTo({ |
guangchao.xu | 6cdd45e | 2021-04-16 17:44:30 +0800 | [diff] [blame^] | 43 | url:'/pages/sub_mine/unbindBankCard' |
guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 44 | }) |
| 45 | }else{ |
| 46 | uni.navigateTo({ |
guangchao.xu | 6cdd45e | 2021-04-16 17:44:30 +0800 | [diff] [blame^] | 47 | url:'/pages/sub_mine/bindBankCard' |
guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 48 | }) |
| 49 | } |
| 50 | } |
| 51 | }, |
| 52 | onShow(){ |
| 53 | let that = this |
| 54 | let signed = uni.getStorageSync("signed") |
| 55 | //console.log(signed) |
| 56 | if(signed == "yes"){ |
| 57 | that.signed = "已绑定签约" |
| 58 | }else if(signed == "no"){ |
| 59 | that.signed = "已绑定未签约" |
| 60 | that.style ={'color':'#DA5961'} |
| 61 | }else{ |
| 62 | that.signed = "未绑定" |
| 63 | that.style ={'color':'#DA5961'} |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | </script> |
| 68 | |
| 69 | <style lang="scss" scoped> |
| 70 | .accountSafe{ |
| 71 | width: 100vw; |
| 72 | // height: 100vh; |
| 73 | background-color: #F3F3F3; |
| 74 | overflow: hidden; |
| 75 | padding-bottom: 30rpx; |
| 76 | &-list{ |
| 77 | margin-top: 30rpx; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | </style> |