about.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view class="content">
  3. <view class="logo">
  4. <image :src="logoimg"></image>
  5. <p>{{imgname}}</p>
  6. </view>
  7. <view class="set-box">
  8. <!-- <view class="item" @click="callPhone()">
  9. <view class="left">
  10. <text class="text">联系我们</text>
  11. </view>
  12. <image class="right" :src="imgPath+'/app/images/right_arrow.png'" mode="aspectFill"></image>
  13. </view> -->
  14. <view style="height: 1px;background-color: #F7F7F7;"></view>
  15. <view class="item">
  16. <view class="left">
  17. <text class="text">版本号</text>
  18. </view>
  19. <view class="right-text">
  20. <text class="text">v{{version}}</text>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import { mapGetters } from 'vuex';
  28. export default {
  29. data() {
  30. return {
  31. tel:undefined,
  32. version:"1.0.0"
  33. }
  34. },
  35. onLoad() {
  36. var that=this;
  37. // that.version = widgetinfo.version
  38. },
  39. computed: {
  40. imgPath() {
  41. return this.$store.state.imgpath
  42. },
  43. imgname() {
  44. return this.$store.state.logoname
  45. },
  46. ...mapGetters(['logoimg']),
  47. },
  48. watch: {
  49. logoimg: {
  50. immediate: true, // 页面一进入就检查一次
  51. handler(val) {
  52. return val
  53. }
  54. },
  55. },
  56. methods: {
  57. callPhone(){
  58. uni.makePhoneCall({
  59. phoneNumber: "4000717770"
  60. })
  61. },
  62. submit(){
  63. }
  64. }
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. page{
  69. height: 100%;
  70. background-color: #f5f5f5;
  71. }
  72. .content{
  73. height: 100%;
  74. }
  75. .logo{
  76. padding-top: 15%;
  77. text-align: center;
  78. image{
  79. padding: 15rpx;
  80. width: 120rpx;
  81. height: 120rpx;
  82. border-radius: 10rpx;
  83. box-shadow:0px 0px 20rpx rgba(0,0,0,0.2);
  84. }
  85. p{
  86. margin: 10px 0px;
  87. font-size: 14px;
  88. }
  89. }
  90. .set-box{
  91. margin-top: 30upx;
  92. background: #fff;
  93. padding: 0 40upx;
  94. .item{
  95. position: relative;
  96. display: flex;
  97. align-items: center;
  98. justify-content: space-between;
  99. padding: 25upx 0;
  100. .left{
  101. display: flex;
  102. align-items: center;
  103. .text{
  104. font-size: 28upx;
  105. color: #666;
  106. }
  107. }
  108. .right{
  109. width: 10upx;
  110. height: 20upx;
  111. }
  112. .right-text{
  113. }
  114. }
  115. }
  116. .contact-btn {
  117. position: absolute;
  118. width: 100%;
  119. display: flex;
  120. opacity: 0;
  121. }
  122. </style>