set.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="default_page" :style="{'height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='设置'></cus-header>
  4. <div class="box">
  5. <div class="box-item adfacjb" @click="turnPage('/pagesMy/userInfo')">
  6. <div class="box-item-left">用户信息</div>
  7. <image class="box-item-right" :src="imgBase+'my_arrow_right.png'"></image>
  8. </div>
  9. <div class="box-item adfacjb" @click="turnPage('/pagesMy/serviceAgreement')">
  10. <div class="box-item-left">服务协议</div>
  11. <image class="box-item-right" :src="imgBase+'my_arrow_right.png'"></image>
  12. </div>
  13. <div class="box-item adfacjb" @click="turnPage('/pagesMy/privacyPolicy')">
  14. <div class="box-item-left">隐私政策</div>
  15. <image class="box-item-right" :src="imgBase+'my_arrow_right.png'"></image>
  16. </div>
  17. </div>
  18. <div class="exit" @click="exitLogin">退出登录</div>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data(){
  24. return {
  25. }
  26. },
  27. methods:{
  28. turnPage(url){
  29. uni.navigateTo({
  30. url
  31. })
  32. },
  33. exitLogin(){
  34. uni.clearStorageSync();
  35. uni.reLaunch({
  36. url:'/pages/my'
  37. })
  38. }
  39. }
  40. }
  41. </script>
  42. <style scoped lang="less">
  43. .default_page{
  44. padding: 0 24rpx;
  45. box-sizing: border-box;
  46. background: #F7F7F7;
  47. .box{
  48. margin-top: 20rpx;
  49. border-radius: 24rpx;
  50. &-item{
  51. background: #FFFFFF;
  52. box-shadow: inset 0px -1px 0px 0px #EFEFEF;
  53. padding: 28rpx 24rpx;
  54. &-left{
  55. font-family: PingFangSC, PingFang SC;
  56. font-weight: 400;
  57. font-size: 30rpx;
  58. color: #002846;
  59. line-height: 42rpx;
  60. }
  61. &-right{
  62. width: 32rpx;
  63. height: 32rpx;
  64. }
  65. }
  66. }
  67. .exit{
  68. width: calc(100% - 100rpx);
  69. height: 88rpx;
  70. background: #FFFFFF;
  71. border-radius: 44rpx;
  72. font-family: PingFang-SC, PingFang-SC;
  73. font-weight: bold;
  74. font-size: 32rpx;
  75. color: #199C9C;
  76. line-height: 88rpx;
  77. text-align: center;
  78. letter-spacing: 2rpx;
  79. position: fixed;
  80. left: 50rpx;
  81. bottom: 200rpx;
  82. }
  83. }
  84. </style>