|
|
|
@ -160,8 +160,18 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</block> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="newsDetail"> |
|
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
<button class="bnt bg-color" hover-class='none' @click="listenerActionSheet">我的分享链接</button> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
<!-- #ifdef MP --> |
|
|
|
|
<button class="bnt bg-color" open-type="share" hover-class='none'>我的分享链接</button> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="menus-list-item" v-if="!userInfo.topService && userInfo.service" @click="toService(0)"> |
|
|
|
|
<view class="item-text"> |
|
|
|
|
<view class="title"> |
|
|
|
@ -227,7 +237,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<shareInfo @setShareInfoStatus="setShareInfoStatus" :shareInfoStatus="shareInfoStatus"></shareInfo> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
@ -246,6 +256,7 @@ |
|
|
|
|
import { orderData } from '@/api/order.js' |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
import authorize from '@/components/Authorize'; |
|
|
|
|
import shareInfo from '@/components/shareInfo'; |
|
|
|
|
import dayjs from '@/plugin/dayjs/dayjs.min.js'; |
|
|
|
|
import Cache from '@/utils/cache'; |
|
|
|
|
// #ifndef H5 |
|
|
|
@ -261,6 +272,7 @@ |
|
|
|
|
passwordPopup, |
|
|
|
|
// #endif |
|
|
|
|
authorize, |
|
|
|
|
shareInfo, |
|
|
|
|
}, |
|
|
|
|
computed: configMap({ |
|
|
|
|
mer_intention_open: 0, |
|
|
|
@ -317,6 +329,7 @@ |
|
|
|
|
// }, |
|
|
|
|
], |
|
|
|
|
imgUrls: [{url:'',pic:''}], |
|
|
|
|
shareInfoStatus:false, |
|
|
|
|
userMenu: [], |
|
|
|
|
skeletonMenu: [], |
|
|
|
|
personalMenu: [ |
|
|
|
@ -552,6 +565,12 @@ |
|
|
|
|
that.is_promoter = res.data.is_promoter; |
|
|
|
|
that.extension_status = res.data.extension_status; |
|
|
|
|
that.getMyMenus(); |
|
|
|
|
|
|
|
|
|
// #ifdef H5 |
|
|
|
|
if (that.$wechat.isWeixin()) { |
|
|
|
|
that.setShareInfo(); |
|
|
|
|
} |
|
|
|
|
// #endif |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 订单数字 |
|
|
|
@ -633,11 +652,49 @@ |
|
|
|
|
this.openAuto() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
listenerActionSheet() { |
|
|
|
|
if(this.isLogin) { |
|
|
|
|
this.shareInfoStatus = true |
|
|
|
|
}else{ |
|
|
|
|
this.openAuto() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
setShareInfo: function() { |
|
|
|
|
let configAppMessage = { |
|
|
|
|
desc: "快来加入我的分享链接吧~", |
|
|
|
|
title: "快来加入我的分享链接吧~", |
|
|
|
|
link: "https://shop.freelycar.cn", |
|
|
|
|
success: function() { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
this.$wechat.wechatEvevt([ |
|
|
|
|
"updateAppMessageShareData", |
|
|
|
|
"updateTimelineShareData" |
|
|
|
|
], configAppMessage).then(res => { |
|
|
|
|
}).catch(err => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
setShareInfoStatus() { |
|
|
|
|
this.shareInfoStatus = false |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
|
.newsDetail .bnt { |
|
|
|
|
color: #fff; |
|
|
|
|
font-size: 30rpx; |
|
|
|
|
width: 690rpx; |
|
|
|
|
height: 90rpx; |
|
|
|
|
border-radius: 45rpx; |
|
|
|
|
margin: 48rpx auto; |
|
|
|
|
text-align: center; |
|
|
|
|
line-height: 90rpx; |
|
|
|
|
} |
|
|
|
|
.cardVipA { |
|
|
|
|
position: absolute; |
|
|
|
|
background: linear-gradient(145deg, #F8E3A8 0%, #E8C077 100%); |
|
|
|
|