set-up.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view>
  3. <!--标题栏-->
  4. <bar-title bgColor="bg-white" isBack>
  5. <block slot="content">设置</block>
  6. </bar-title>
  7. <!--设置列表-->
  8. <!-- <view class="cu-list menu margin-top">
  9. <view class="cu-item">
  10. <view class="content">商品详情页弹幕</view>
  11. <view class="action">
  12. <switch class="switch sm red" @change="SwitchSex" :class="skin?'checked':''" :checked="skin?true:false"/>
  13. </view>
  14. </view>
  15. </view> -->
  16. <view class="cu-list menu sm-border margin-top">
  17. <view class="cu-item arrow" @tap="personalTap">
  18. <view class="content">个人资料</view>
  19. </view>
  20. <view class="cu-item arrow" @tap="realNameTap">
  21. <view class="content">实人认证</view>
  22. </view>
  23. <view class="cu-item arrow">
  24. <view class="content">隐私设置</view>
  25. </view>
  26. <view class="cu-item arrow">
  27. <view class="content">消息通知</view>
  28. </view>
  29. <view class="cu-item arrow">
  30. <view class="content">已屏蔽的人</view>
  31. </view>
  32. <view class="cu-item">
  33. <view class="content">缓存清理</view>
  34. <view class="action">
  35. <text class="cuIcon-delete text-grey"/>
  36. </view>
  37. </view>
  38. <view class="cu-item arrow">
  39. <view class="content">播放控制</view>
  40. </view>
  41. <view class="cu-item arrow">
  42. <view class="content">关于平台</view>
  43. </view>
  44. <view class="cu-item arrow">
  45. <view class="content">给一个好评吧</view>
  46. </view>
  47. </view>
  48. <!--按钮-->
  49. <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom">
  50. <view class="flex padding-sm flex-direction">
  51. <button class="cu-btn bg-red">退出登录</button>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. import barTitle from '@/components/zaiui-common/basics/bar-title';
  58. import _tool from '@/static/zaiui/util/tools.js'; //工具函数
  59. export default {
  60. components: {
  61. barTitle
  62. },
  63. data() {
  64. return {
  65. skin: true,
  66. }
  67. },
  68. onLoad() {
  69. },
  70. onReady() {
  71. _tool.setBarColor(true);
  72. uni.pageScrollTo({
  73. scrollTop: 0,
  74. duration: 0
  75. });
  76. },
  77. methods: {
  78. SwitchSex(e) {
  79. this.skin = e.detail.value
  80. },
  81. realNameTap() {
  82. uni.navigateTo({
  83. url: "/pages/real_name/index"
  84. });
  85. },
  86. personalTap() {
  87. uni.navigateTo({
  88. url: "/pages/my/personal-data"
  89. });
  90. }
  91. }
  92. }
  93. </script>
  94. <style lang="scss">
  95. /* #ifdef APP-PLUS */
  96. @import "../../static/colorui/main.css";
  97. @import "../../static/colorui/icon.css";
  98. @import "../../static/zaiui/style/app.scss";
  99. /* #endif */
  100. </style>