Commit 63da095b authored by 王玉鑫's avatar 王玉鑫

feat: 分享功能

parent f57133a5
...@@ -39,6 +39,16 @@ Object.defineProperty(Array.prototype, 'removeItem', { ...@@ -39,6 +39,16 @@ Object.defineProperty(Array.prototype, 'removeItem', {
enumerable: false enumerable: false
}) })
Vue.mixin({
onShareAppMessage() {
return {
title: '立业舒城,共赢发展未来',
path: '',
imageUrl: '',
}
},
})
Vue.prototype.$fetch = fetch Vue.prototype.$fetch = fetch
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -20,13 +20,14 @@ ...@@ -20,13 +20,14 @@
<slot :detail="detail"></slot> <slot :detail="detail"></slot>
</div> </div>
<div class="common-detail__bottom-cell"> <div class="common-detail__bottom-cell">
<div class="flex align-center"> <div>
<!-- todo 图标 --> <button open-type="share" class="flex align-center justify-center" style="font-size: 28rpx;background: transparent;">
<image <image
class="common-detail__icon" class="common-detail__icon"
src="@/static/img/icon-share.png" src="@/static/img/icon-share.png"
></image> ></image>
<span style="flex: none">分享</span> <span style="flex: none">分享</span>
</button>
</div> </div>
<div <div
class="flex align-center justify-center common-detail__contact-btn" class="flex align-center justify-center common-detail__contact-btn"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment