set.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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/serviceAgreement')">
  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/privacyPolicy')">
  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(url){
  25. uni.navigateTo({
  26. url
  27. })
  28. },
  29. exitLogin(){
  30. uni.clearStorageSync();
  31. uni.reLaunch({
  32. url:'/pages/my'
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style scoped lang="less">
  39. .default_page{
  40. padding: 0 24rpx;
  41. box-sizing: border-box;
  42. background: #F7F7F7;
  43. .box{
  44. margin-top: 20rpx;
  45. border-radius: 24rpx;
  46. &-item{
  47. background: #FFFFFF;
  48. box-shadow: inset 0px -1px 0px 0px #EFEFEF;
  49. padding: 28rpx 24rpx;
  50. &-left{
  51. font-family: PingFangSC, PingFang SC;
  52. font-weight: 400;
  53. font-size: 30rpx;
  54. color: #002846;
  55. line-height: 42rpx;
  56. }
  57. &-right{
  58. width: 32rpx;
  59. height: 32rpx;
  60. }
  61. }
  62. }
  63. .exit{
  64. width: calc(100% - 100rpx);
  65. height: 88rpx;
  66. background: #FFFFFF;
  67. border-radius: 44rpx;
  68. font-family: PingFang-SC, PingFang-SC;
  69. font-weight: bold;
  70. font-size: 32rpx;
  71. color: #199C9C;
  72. line-height: 88rpx;
  73. text-align: center;
  74. letter-spacing: 2rpx;
  75. position: fixed;
  76. left: 50rpx;
  77. bottom: 200rpx;
  78. }
  79. }
  80. </style>