| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <template>
- <view class="page">
- <view class="version dis f-c a-c">
- <image src="/static/image/my/logo.png" mode=""></image>
- <text>当前版本32323</text>
- </view>
- <uni-Cell :celllist="celllist">
- <template #customContent="{ item }">
- <view v-if="item.title=='微信公众号'" class="dis a-c">
- <text style="font-size: 30rpx;color: #666;">晋掌柜科技</text>
- </view>
- </template>
- </uni-Cell>
- <u-popup :show="show" @close="show=false" :round="10" mode="center" :customStyle="{width:'90%'}">
- <view class="weChat dis f-c a-c">
- <text class="title">已复制微信公众号【掌柜鼎科技】</text>
- <text class="mt-3 mb-3" style="font-size: 30rpx;color: #666;">请打开微信,搜索并关注我们</text>
- <image src="/static/image/my/weChatOfficial.png" mode=""></image>
- <view class="btn dis a-c j-c mt-4" @click="show=false">
- 关闭
- </view>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- show: false,
- celllist: [{
- title: "微信公众号",
- icon: "/static/image/my/logo1.png",
- useSlot: true, //是否插槽
- handler: () => this.show = true
- },
- {
- title: "推荐给微信好友",
- icon: "/static/icon/my/tuijian.png",
- useSlot: false,
- }
- ]
- }
- },
- onShow() {
- },
- onLoad() {
- },
- methods: {
- //分享微信
- weixin() {
- uni.share({
- provider: "weixin",
- scene: "WXSceneSession",
- type: 0,
- href: "http://uniapp.dcloud.io/", //h5下载页面
- title: "为你推荐晋掌柜",
- summary: "晋掌柜:多家保险公司智能化报价,操作简单,快速上手的一款车险代理人出单应用。",
- imageUrl: "/static/image/my/logo.png",
- success: function(res) {
- console.log("success:" + JSON.stringify(res));
- },
- fail: function(err) {
- console.log("fail:" + JSON.stringify(err));
- }
- });
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .page {
- background-color: #F8F8F8;
- height: 100vh;
- }
- .version {
- padding: 50rpx 50rpx 40rpx;
- box-sizing: border-box;
- background: #fff;
- font-size: 30rpx;
- color: #333;
- border-bottom: 1rpx solid #eee;
- image {
- width: 160rpx;
- height: 160rpx;
- margin-bottom: 30rpx;
- }
- }
- .weChat {
- padding: 60rpx 40rpx;
- .title {
- font-size: 36rpx;
- color: #333;
- font-weight: bold;
- }
- image {
- width: 100%;
- height: 415rpx;
- }
- .btn {
- width: 100%;
- height: 80rpx;
- background: #FDE935;
- border-radius: 50rpx 50rpx 50rpx 50rpx;
- }
- }
- </style>
|