about.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="box">
  3. <view class="img text-center mt-50">
  4. <image src="../../static/logo-1.png" mode=""></image>
  5. </view>
  6. <view class="mt-20 mb-80 text-center gray-2">
  7. 版本号v{{version}}
  8. </view>
  9. <u-cell-item :title="item.title" v-for="(item,i) in list" :key="i" @click="goDetails(item.id)"></u-cell-item>
  10. <!-- <u-cell-item title="检查版本更新" :value="version"></u-cell-item> -->
  11. <view class="fixed-bottom text-center gray-2 pb-30">
  12. Copyright © 2011-2021
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. var _this;
  18. export default {
  19. data() {
  20. return {
  21. version:'1.0.0',
  22. list:[]
  23. }
  24. },
  25. onLoad() {
  26. _this = this;
  27. //#ifdef APP-PLUS
  28. plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
  29. _this.version = wgtinfo.version;
  30. });
  31. //#endif
  32. this.init()
  33. },
  34. methods: {
  35. init(){
  36. this.$http('/addons/ddrive/message/notice',{
  37. category_id: 5
  38. },"POST").then(data=>{
  39. console.log(data);
  40. this.list = data.list_array
  41. })
  42. },
  43. goDetails(id){
  44. uni.navigateTo({
  45. url:'/pages/my/help/details?id=' + id
  46. })
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. /deep/.u-cell_title{
  53. font-weight: 400 !important;
  54. }
  55. .box{
  56. width: 100%;
  57. height: 100vh;
  58. overflow: hidden;
  59. }
  60. .img{
  61. image{
  62. width: 224rpx;
  63. height: 224rpx;
  64. }
  65. }
  66. </style>