瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
3.0 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="设置与管理" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="frame">
  5. <view class="content">
  6. <view class="title">账号管理</view>
  7. <uv-cell
  8. icon="coupon"
  9. title="地址管理"
  10. isLink
  11. @click="$utils.navigateTo('/pages_order/mine/address')"
  12. iconStyle="font-size: 34rpx;"
  13. rightIconStyle="font-size: 34rpx;">
  14. <template #icon>
  15. <!-- <image src="../static/setting/1.png" mode="" -->
  16. <!-- style="width: 30rpx;height: 30rpx;"></image> -->
  17. </template>
  18. </uv-cell>
  19. <uv-cell
  20. icon="coupon"
  21. title="订单管理"
  22. isLink
  23. @click="$utils.navigateTo('/pages_order/order/order')"
  24. iconStyle="font-size: 34rpx;"
  25. rightIconStyle="font-size: 34rpx;">
  26. <template #icon>
  27. <!-- <image src="../static/setting/1.png" mode=""
  28. style="width: 30rpx;height: 30rpx;"></image> -->
  29. </template>
  30. </uv-cell>
  31. <uv-cell
  32. icon="coupon"
  33. title="修改个人信息"
  34. isLink
  35. @click="$utils.navigateTo('/pages_order/auth/wxUserInfo?back=1')"
  36. iconStyle="font-size: 34rpx;"
  37. rightIconStyle="font-size: 34rpx;">
  38. <template #icon>
  39. <!-- <image src="../static/setting/1.png" mode=""
  40. style="width: 30rpx;height: 30rpx;"></image> -->
  41. </template>
  42. </uv-cell>
  43. <uv-cell
  44. icon="coupon"
  45. title="退出登录"
  46. isLink
  47. @click="$store.commit('logout')"
  48. iconStyle="font-size: 34rpx;"
  49. rightIconStyle="font-size: 34rpx;">
  50. <template #icon>
  51. <!-- <image src="../static/setting/1.png" mode=""
  52. style="width: 30rpx;height: 30rpx;"></image> -->
  53. </template>
  54. </uv-cell>
  55. </view>
  56. <view class="content">
  57. <view class="title">系统设置</view>
  58. <uv-cell
  59. icon="coupon"
  60. title="清理缓存"
  61. isLink
  62. @click="clearCache"
  63. iconStyle="font-size: 34rpx;"
  64. rightIconStyle="font-size: 34rpx;">
  65. <template #icon>
  66. <!-- <image src="../static/setting/1.png" mode=""
  67. style="width: 30rpx;height: 30rpx;"></image> -->
  68. </template>
  69. </uv-cell>
  70. </view>
  71. </view>
  72. </view>
  73. </template>
  74. <script>
  75. export default {
  76. data() {
  77. return {
  78. }
  79. },
  80. methods: {
  81. tapItem(item, index) {
  82. if (item.text === this.$t('pageTitle.languageSwitch')) {
  83. this.$refs.changeLanguage.open();
  84. }
  85. },
  86. // 清理缓存
  87. clearCache(){
  88. uni.showModal({
  89. title: '确认清理缓存吗?',
  90. success(r) {
  91. if(r.confirm){
  92. uni.showLoading()
  93. setTimeout(() => {
  94. uni.hideLoading()
  95. uni.showToast({
  96. title: '缓存清理成功!',
  97. icon: 'none'
  98. })
  99. }, 800)
  100. }
  101. }
  102. })
  103. },
  104. },
  105. }
  106. </script>
  107. <style scoped lang="scss">
  108. .page {
  109. background-color: #FFF;
  110. height: 100vh;
  111. .frame {
  112. .content {
  113. margin: 40rpx 0;
  114. .title {
  115. font-size: 30rpx;
  116. color: #b0b0b0;
  117. padding: 0 30rpx;
  118. }
  119. .uv-cell__body{
  120. padding: 40rpx 20rpx;
  121. margin-top: 10rpx;
  122. }
  123. }
  124. }
  125. }
  126. </style>