set.vue 1.7 KB

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