特易招,招聘小程序
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.

145 lines
2.9 KiB

4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 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/auth/wxLogin')"
  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/auth/switchIdentity')"
  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. iconStyle="font-size: 34rpx;"
  36. rightIconStyle="font-size: 34rpx;">
  37. <template #icon>
  38. <image src="../static/setting/1.png" mode=""
  39. style="width: 30rpx;height: 30rpx;"></image>
  40. </template>
  41. </uv-cell>
  42. </view>
  43. <view class="content">
  44. <view class="title">账号设置</view>
  45. <uv-cell
  46. icon="coupon"
  47. title="清理缓存"
  48. isLink
  49. @click="clearCache"
  50. iconStyle="font-size: 34rpx;"
  51. rightIconStyle="font-size: 34rpx;">
  52. <template #icon>
  53. <image src="../static/setting/1.png" mode=""
  54. style="width: 30rpx;height: 30rpx;"></image>
  55. </template>
  56. </uv-cell>
  57. <uv-cell
  58. icon="coupon"
  59. title="退出登录"
  60. isLink
  61. @click="$store.commit('logout')"
  62. iconStyle="font-size: 34rpx;"
  63. rightIconStyle="font-size: 34rpx;">
  64. <template #icon>
  65. <image src="../static/setting/1.png" mode=""
  66. style="width: 30rpx;height: 30rpx;"></image>
  67. </template>
  68. </uv-cell>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. export default {
  75. data() {
  76. return {
  77. }
  78. },
  79. methods: {
  80. tapItem(item, index) {
  81. if (item.text === this.$t('pageTitle.languageSwitch')) {
  82. this.$refs.changeLanguage.open();
  83. }
  84. },
  85. // 清理缓存
  86. clearCache(){
  87. uni.showModal({
  88. title: '确认清理缓存吗?',
  89. success(r) {
  90. if(r.confirm){
  91. uni.showLoading()
  92. setTimeout(() => {
  93. uni.hideLoading()
  94. uni.showToast({
  95. title: '缓存清理成功!',
  96. icon: 'none'
  97. })
  98. }, 800)
  99. }
  100. }
  101. })
  102. },
  103. },
  104. }
  105. </script>
  106. <style scoped lang="scss">
  107. .page {
  108. background-color: #FFF;
  109. height: 100vh;
  110. .frame {
  111. .content {
  112. margin: 40rpx 0;
  113. .title {
  114. font-size: 30rpx;
  115. color: #b0b0b0;
  116. padding: 0 30rpx;
  117. }
  118. .uv-cell__body{
  119. padding: 40rpx 20rpx;
  120. margin-top: 10rpx;
  121. }
  122. }
  123. }
  124. }
  125. </style>