aboutSet.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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>当前版本</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. fail: function(err) {}
  62. });
  63. },
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .page {
  69. background-color: #F8F8F8;
  70. height: 100vh;
  71. }
  72. .version {
  73. padding: 50rpx 50rpx 40rpx;
  74. box-sizing: border-box;
  75. background: #fff;
  76. font-size: 30rpx;
  77. color: #333;
  78. border-bottom: 1rpx solid #eee;
  79. image {
  80. width: 160rpx;
  81. height: 160rpx;
  82. margin-bottom: 30rpx;
  83. }
  84. }
  85. .weChat {
  86. padding: 60rpx 40rpx;
  87. .title {
  88. font-size: 36rpx;
  89. color: #333;
  90. font-weight: bold;
  91. }
  92. image {
  93. width: 100%;
  94. height: 415rpx;
  95. }
  96. .btn {
  97. width: 100%;
  98. height: 80rpx;
  99. background: #FDE935;
  100. border-radius: 50rpx 50rpx 50rpx 50rpx;
  101. }
  102. }
  103. </style>