|
@@ -21,20 +21,24 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
- </swiper>
|
|
|
+ </swiper>
|
|
|
+ <view class="">
|
|
|
+ 分享给好友后,你将获得100积分,100余额
|
|
|
+ </view>
|
|
|
<view class="share_save_box">
|
|
|
<!-- #ifdef MP -->
|
|
|
<button open-type="share">
|
|
|
<image src="@/static/demo/ic_pic.png" mode="aspectFit"></image>
|
|
|
- <text>发给好友</text>
|
|
|
+ <text>好友</text>
|
|
|
</button>
|
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
<button @click="onAppShare">
|
|
|
<image src="@/static/demo/ic_pic.png" mode="aspectFit"></image>
|
|
|
- <text>发给好友</text>
|
|
|
+ <text>好友</text>
|
|
|
</button>
|
|
|
- <!-- #endif -->
|
|
|
+ <!-- #endif -->
|
|
|
+
|
|
|
<button class="onSave" @click="showText">
|
|
|
<view class="lg text-gray cuIcon-formfill" style="width:70rpx;height:70rpx"></view>
|
|
|
<text>文案</text>
|
|
@@ -50,7 +54,6 @@
|
|
|
<text>海报</text>
|
|
|
</button>
|
|
|
</view>
|
|
|
- <!-- #ifdef H5 -->
|
|
|
|
|
|
|
|
|
<graceDialog :isTitle="false" :title="`长按保存海报`" :isCloseBtn="false" :show="image" closeBtnColor="#FFFFFF" v-on:closeDialog="closeImage">
|
|
@@ -72,7 +75,8 @@
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
<view slot="btns" class="grace-space-between">
|
|
|
- <text class="grace-dialog-buttons" @tap="closeText">关闭</text>
|
|
|
+ <text class="grace-dialog-buttons" @tap="closeText">关闭</text>
|
|
|
+ <text class="grace-dialog-buttons grace-blue" @tap="textLinkCopy">复制+链接</text>
|
|
|
<text class="grace-dialog-buttons grace-blue" @tap="textCopy">复制</text>
|
|
|
</view>
|
|
|
</graceDialog>
|
|
@@ -92,7 +96,6 @@
|
|
|
</view>
|
|
|
</graceDialog>
|
|
|
|
|
|
- <!-- #endif -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -189,6 +192,18 @@ export default {
|
|
|
self.Dever.alert('复制失败');
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ textLinkCopy : function() {
|
|
|
+ var self = this;
|
|
|
+ var value = this.fetch.text[this.text_index].content;
|
|
|
+ value += "\r\n" + this.fetch.info.url;
|
|
|
+ copyText.getClipboardData(value, function(res) {
|
|
|
+ if (res) {
|
|
|
+ self.Dever.alert('复制成功');
|
|
|
+ } else {
|
|
|
+ self.Dever.alert('复制失败');
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
// 轮播图变化
|
|
|
onSwiperChange(e) {
|