chore:微信小程序分享链接
This commit is contained in:
@@ -47,9 +47,9 @@
|
||||
</view>
|
||||
<!-- 复制链接按钮:在推荐码下方居中,白色背景 -->
|
||||
<view class="rc-copy-link-row rc-copy-link-gradient" style="margin-top:24rpx;display:block;text-align:center;width:100%;">
|
||||
<view class="rc-btn rc-btn-copy rc-btn-copy-gradient" :style="gradientCopyLinkStyle" @tap="copyLink" :disabled="loadingCode">
|
||||
<button class="rc-btn rc-btn-copy rc-btn-copy-gradient" :style="gradientCopyLinkStyle" open-type="share" @tap="onShareClick" :disabled="loadingCode">
|
||||
<text>{{ value.placeholderCopyText || '立即分享链接' }}</text>
|
||||
</view>
|
||||
</button>
|
||||
</view>
|
||||
<view class="rc-action-bar">
|
||||
<view v-if="isFeatureOn(value.showButton)" class="rc-btn rc-btn-share"
|
||||
@@ -114,9 +114,9 @@
|
||||
<text class="rc-code" :style="codeTextStyle">{{ code || '暂无' }}</text>
|
||||
</view>
|
||||
<view style="margin-top:24rpx;display:block;text-align:center;width:100%;">
|
||||
<view class="rc-btn rc-btn-copy rc-copy-card rc-copy-link-card" :style="{ background: value.accentColor || '#DAA520', color: '#FFFFFF' }" @tap.stop="copyLink">
|
||||
<button class="rc-btn rc-btn-copy rc-copy-card rc-copy-link-card" :style="{ background: value.accentColor || '#DAA520', color: '#FFFFFF' }" open-type="share" @tap="onShareClick" :disabled="loadingCode">
|
||||
<text>{{ value.placeholderCopyText || '立即分享链接' }}</text>
|
||||
</view>
|
||||
</button>
|
||||
</view>
|
||||
<view class="rc-action-bar rc-action-card">
|
||||
<button v-if="isFeatureOn(value.showButton)" class="rc-btn rc-btn-share"
|
||||
@@ -150,9 +150,9 @@
|
||||
<text class="rc-code" :style="codeTextStyle">{{ code || '暂无' }}</text>
|
||||
</view>
|
||||
<view style="margin-top:24rpx;display:block;text-align:center;width:100%;">
|
||||
<view class="rc-btn rc-btn-copy rc-copy-bookgold" :style="bookGoldCopyBtnStyle" @tap.stop="copyLink">
|
||||
<button class="rc-btn rc-btn-copy rc-copy-bookgold" :style="bookGoldCopyBtnStyle" open-type="share" @tap="onShareClick" :disabled="loadingCode">
|
||||
<text>{{ value.placeholderCopyText || '立即分享链接' }}</text>
|
||||
</view>
|
||||
</button>
|
||||
</view>
|
||||
<view class="rc-action-bar rc-action-bookgold">
|
||||
<view v-if="isFeatureOn(value.allowRegenerate)" class="rc-btn rc-btn-regenerate"
|
||||
@@ -293,7 +293,6 @@ export default {
|
||||
__cid: 'rc_' + Date.now() + '_' + Math.floor(Math.random() * 10000)
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
nc() {
|
||||
const raw = (this.value && typeof this.value === 'object') ? this.value : {};
|
||||
@@ -882,7 +881,8 @@ onShareClick() {
|
||||
// #endif
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
this.copyLink();
|
||||
// open-type="share" 会自动触发 onShareAppMessage 弹出微信原生分享面板,无需手动复制链接
|
||||
return;
|
||||
// #endif
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user