about.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="about">
  3. <view
  4. class="list-cell b-b"
  5. v-for="item in navList"
  6. :key="item.title"
  7. @tap="
  8. navTo(`/pages/set/about/detail?field=${item.url}&title=${item.title}`)
  9. "
  10. hover-class="cell-hover"
  11. :hover-stay-time="50"
  12. >
  13. <text class="cell-tit">{{ item.title }}</text>
  14. <text class="cell-tip">{{ item.content }}</text>
  15. <text class="cell-more iconfont iconyou"></text>
  16. </view>
  17. <view class="history-section icon">
  18. <view class="sec-header">
  19. <i class="iconfont iconshare"></i>
  20. <text>二维码</text>
  21. </view>
  22. <view class="qrcode-wrapper">
  23. <view class="qrcode-img-wrapper">
  24. <oa-image class="qrcode-img" :src="aboutInfo.qrcode || ''" ></oa-image>
  25. </view>
  26. <text class="info">扫码后在浏览器打开</text>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. aboutInfo: {},
  36. navList: [
  37. { title: '关于我们', url: 'about_me' },
  38. { title: '注册协议', url: 'protocol_register' },
  39. { title: '隐私协议', url: 'protocol_privacy' }
  40. ],
  41. appName: this.$mSettingConfig.appName,
  42. };
  43. },
  44. onShow() {
  45. uni.setNavigationBarColor({
  46. frontColor: '#ffffff',
  47. backgroundColor: this.themeColor.color,
  48. animation: {
  49. duration: 400,
  50. timingFunc: 'easeIn'
  51. }
  52. })
  53. },
  54. onLoad() {
  55. this.initData();
  56. },
  57. methods: {
  58. // 初始化数据
  59. initData() {
  60. uni.setNavigationBarTitle({ title: `关于维博网络` });
  61. const userInfo = uni.getStorageSync('userInfo') || {};
  62. },
  63. // 统一跳转接口
  64. navTo(route) {
  65. this.$mRouter.push({ route });
  66. }
  67. }
  68. };
  69. </script>
  70. <style lang="scss">
  71. page {
  72. position: relative;
  73. background-color: #f5f5f5;
  74. }
  75. /*关于商城*/
  76. .about {
  77. padding: 20upx 0;
  78. .history-section {
  79. padding: 30upx 0 0;
  80. margin-top: 20upx;
  81. background: #fff;
  82. border-radius: 10upx;
  83. .sec-header {
  84. display: flex;
  85. align-items: center;
  86. font-size: $font-base;
  87. color: $font-color-dark;
  88. line-height: 40upx;
  89. margin-left: 30upx;
  90. .iconfont {
  91. font-size: 44upx;
  92. color: #5eba8f;
  93. margin-right: 16upx;
  94. line-height: 40upx;
  95. }
  96. }
  97. .qrcode-wrapper {
  98. padding: $spacing-lg 0;
  99. text-align: center;
  100. .qrcode-img-wrapper {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. }
  105. .qrcode {
  106. height: 280upx;
  107. }
  108. .qrcode-img {
  109. width: 300upx;
  110. height: 300upx;
  111. image {
  112. width: 300upx;
  113. height: 300upx;
  114. }
  115. }
  116. .info {
  117. display: block;
  118. }
  119. }
  120. }
  121. }
  122. </style>