aboutSet.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="page">
  3. <view class="version dis f-c a-c">
  4. <image src="/static/image/my/logo.png" mode=""></image>
  5. <text>当前版本32323</text>
  6. </view>
  7. <uni-Cell :celllist="celllist">
  8. <template #customContent="{ item }">
  9. <view v-if="item.title=='微信公众号'" class="dis a-c">
  10. <text style="font-size: 30rpx;color: #666;">晋掌柜科技</text>
  11. </view>
  12. </template>
  13. </uni-Cell>
  14. <u-popup :show="show" @close="show=false" :round="10" mode="center" :customStyle="{width:'90%'}">
  15. <view class="weChat dis f-c a-c">
  16. <text class="title">已复制微信公众号【掌柜鼎科技】</text>
  17. <text class="mt-3 mb-3" style="font-size: 30rpx;color: #666;">请打开微信,搜索并关注我们</text>
  18. <image src="/static/image/my/weChatOfficial.png" mode=""></image>
  19. <view class="btn dis a-c j-c mt-4" @click="show=false">
  20. 关闭
  21. </view>
  22. </view>
  23. </u-popup>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. show: false,
  31. celllist: [{
  32. title: "微信公众号",
  33. icon: "/static/image/my/logo1.png",
  34. useSlot: true, //是否插槽
  35. handler: () => this.show = true
  36. },
  37. {
  38. title: "推荐给微信好友",
  39. icon: "/static/icon/my/tuijian.png",
  40. useSlot: false,
  41. }
  42. ]
  43. }
  44. },
  45. onShow() {
  46. },
  47. onLoad() {
  48. },
  49. methods: {
  50. //分享微信
  51. weixin() {
  52. uni.share({
  53. provider: "weixin",
  54. scene: "WXSceneSession",
  55. type: 0,
  56. href: "http://uniapp.dcloud.io/", //h5下载页面
  57. title: "为你推荐晋掌柜",
  58. summary: "晋掌柜:多家保险公司智能化报价,操作简单,快速上手的一款车险代理人出单应用。",
  59. imageUrl: "/static/image/my/logo.png",
  60. success: function(res) {
  61. console.log("success:" + JSON.stringify(res));
  62. },
  63. fail: function(err) {
  64. console.log("fail:" + JSON.stringify(err));
  65. }
  66. });
  67. },
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .page {
  73. background-color: #F8F8F8;
  74. height: 100vh;
  75. }
  76. .version {
  77. padding: 50rpx 50rpx 40rpx;
  78. box-sizing: border-box;
  79. background: #fff;
  80. font-size: 30rpx;
  81. color: #333;
  82. border-bottom: 1rpx solid #eee;
  83. image {
  84. width: 160rpx;
  85. height: 160rpx;
  86. margin-bottom: 30rpx;
  87. }
  88. }
  89. .weChat {
  90. padding: 60rpx 40rpx;
  91. .title {
  92. font-size: 36rpx;
  93. color: #333;
  94. font-weight: bold;
  95. }
  96. image {
  97. width: 100%;
  98. height: 415rpx;
  99. }
  100. .btn {
  101. width: 100%;
  102. height: 80rpx;
  103. background: #FDE935;
  104. border-radius: 50rpx 50rpx 50rpx 50rpx;
  105. }
  106. }
  107. </style>