editionIntro.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // TODO 第一版本暂无此功能 后续优化以及更新
  2. <template>
  3. <view class="edition-intro">
  4. <h1> {{config.name}}</h1>
  5. <view class='vesion'>
  6. Version
  7. </view>
  8. <u-cell-group class="cell">
  9. <!-- #ifdef APP-PLUS -->
  10. <u-cell-item v-if="IosWhetherStar" @click="()=>{window.location.href = `itms-apps://itunes.apple.com/app/${config.iosAppId}?action=write-review`}" title="去评分"></u-cell-item>
  11. <!-- #endif -->
  12. <u-cell-item title="功能介绍"></u-cell-item>
  13. <!-- #ifdef APP-PLUS -->
  14. <u-cell-item title="检查更新" @click="checkUpdate"></u-cell-item>
  15. <!-- #endif -->
  16. <u-cell-item title="证照信息" @click="navigateTo('/pages/mine/help/tips?type=message')"></u-cell-item>
  17. <u-cell-item title="服务协议" @click="navigateTo('/pages/mine/help/tips?type=user')"></u-cell-item>
  18. <u-cell-item title="隐私协议" @click="navigateTo('/pages/mine/help/tips?type=privacy')"></u-cell-item>
  19. <u-cell-item title="关于我们" :border-bottom="false" @click="navigateTo('/pages/mine/help/tips?type=about')"></u-cell-item>
  20. </u-cell-group>
  21. <view class="intro">
  22. <view>客服热线:13161366885</view>
  23. <view style="margin:20rpx 0 0 0;">客服邮箱:lili@lili.com</view>
  24. <view>
  25. <view style="margin:20rpx 0; color:#003a8c;" @click="navigateTo('/pages/mine/help/tips?type=user')">《lili商城用户协议》</view>
  26. <view>CopyRight @ {{config.name}} </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import config from "@/config/config";
  33. import * as API_Message from "@/api/message.js";
  34. export default {
  35. data() {
  36. return {
  37. config,
  38. IosWhetherStar: false,
  39. editionHistory: [], //版本历史
  40. params: {
  41. pageNumber: 1,
  42. pageSize: 5,
  43. },
  44. loadStatus: "more",
  45. };
  46. },
  47. onLoad() {
  48. if (uni.getSystemInfoSync().platform === "android") {
  49. this.params.type = 0;
  50. } else {
  51. this.IosWhetherStar = true;
  52. this.params.type = 1;
  53. }
  54. this.GET_AppVersionList(true);
  55. },
  56. onReachBottom() {
  57. if (this.loadStatus != "noMore") {
  58. this.params.pageNumber++;
  59. this.GET_AppVersionList(false);
  60. }
  61. },
  62. methods: {
  63. navigateTo(url) {
  64. uni.navigateTo({
  65. url,
  66. });
  67. },
  68. GET_AppVersionList(reset) {
  69. if (reset) {
  70. this.params.pageNumber = 1;
  71. }
  72. uni.showLoading({
  73. title: "加载中",
  74. });
  75. API_Message.getAppVersionList(this.params).then((response) => {
  76. uni.hideLoading();
  77. if (response.statusCode == 200) {
  78. const { data } = response;
  79. if (data.data.length < 10) {
  80. this.loadStatus = "noMore";
  81. }
  82. this.editionHistory.push(...data.data);
  83. }
  84. });
  85. },
  86. },
  87. };
  88. </script>
  89. <style lang="scss" scoped>
  90. page {
  91. background: #fff;
  92. }
  93. .cell {
  94. width: 90%;
  95. margin: 0 auto;
  96. }
  97. .edition-intro {
  98. display: flex;
  99. flex-direction: column;
  100. justify-content: center;
  101. align-items: center;
  102. > h1 {
  103. margin: 150rpx 0 20rpx 0;
  104. letter-spacing: 2rpx;
  105. }
  106. > .vesion {
  107. font-size: 30rpx;
  108. margin-bottom: 150rpx;
  109. }
  110. }
  111. .intro {
  112. margin-top: 150rpx;
  113. font-size: 24rpx;
  114. letter-spacing: 2rpx;
  115. }
  116. </style>