index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view>
  3. <!-- #ifdef MP-ALIPAY -->
  4. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们" leftIconSize="0"></u-navbar>
  5. <!-- #endif -->
  6. <!-- #ifdef MP-WEIXIN -->
  7. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们"></u-navbar>
  8. <!-- #endif -->
  9. <!-- #ifndef MP-WEIXIN || MP-ALIPAY -->
  10. <view v-if="pagesNum > 1">
  11. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们" />
  12. </view>
  13. <view v-else>
  14. <u-navbar leftIconSize="0" :placeholder="true" bgColor="#fff" :border="true" title="关于我们">
  15. <view class="nav-left flex" slot="left" @click="$toIndex()">
  16. <u-icon name="arrow-left" size="20" color="#333"></u-icon>
  17. </view>
  18. </u-navbar>
  19. </view>
  20. <!-- #endif -->
  21. <view class="about">
  22. <view class="flex about-logo">
  23. <image src="../../static/public/logo.png" mode="scaleToFill"></image>
  24. <!-- #ifndef MP-ALIPAY -->
  25. <view class="edition">v 1.2.2</view>
  26. <!-- #endif -->
  27. <!-- #ifdef MP-ALIPAY -->
  28. <view class="edition">v 2.2.6</view>
  29. <!-- #endif -->
  30. </view>
  31. <view class="about-action">
  32. <u-cell-group :border="false">
  33. <u-cell title="隐私保护声明" :isLink="true" :url="'/packageOther/about/conceal'"></u-cell>
  34. <u-cell title="用户使用协议" :isLink="true" :url="'/packageOther/about/protect'"></u-cell>
  35. </u-cell-group>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. pagesNum: '',
  45. };
  46. },
  47. onShow() {
  48. this.pagesNum = getCurrentPages().length
  49. },
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. ::v-deep .u-cell__body {
  54. padding: 20rpx 0;
  55. }
  56. </style>
  57. <style lang="scss" scoped>
  58. .about {
  59. min-height: calc(100vh - 44px - var(--status-bar-height));
  60. background-color: #FFFFFF;
  61. &-logo {
  62. flex-direction: column;
  63. image {
  64. width: 164rpx;
  65. height: 164rpx;
  66. line-height: 164rpx;
  67. border-radius: 10rpx;
  68. margin-top: 88rpx;
  69. }
  70. .edition{
  71. line-height: 40rpx;
  72. margin-top: 18rpx;
  73. }
  74. }
  75. &-action{
  76. padding: 20rpx 34rpx;
  77. }
  78. }
  79. </style>