|
@@ -1,6 +1,19 @@
|
|
|
<template>
|
|
|
- <button @click="showShareMenu" type="default" class="phone-white-btn bz-tel-btn">分享</button>
|
|
|
-
|
|
|
+ <button @click="showShareMenu" type="default" class="phone-white-btn bz-tel-btn fx-btn-box">分享</button>
|
|
|
+ <!-- 答题卡 -->
|
|
|
+ <uni-popup ref="downPopupRef" background-color="#fff" :animation="false" :is-mask-click="false" :mask-click="false">
|
|
|
+ <view class="share-haibao-box">
|
|
|
+ <view class="phone-line-title">分享</view>
|
|
|
+ <view class="share-list-box">
|
|
|
+ <view class="share-item-box" @click="downHb">
|
|
|
+ <view class="share-icon-box">
|
|
|
+ <icon></icon>
|
|
|
+ </view>
|
|
|
+ <text>下载图片</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -11,16 +24,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ downHb(){
|
|
|
+ console.log('下载图片');
|
|
|
+ },
|
|
|
showShareMenu() {
|
|
|
- uni.showActionSheet({
|
|
|
+ this.$refs.downPopupRef.open('bottom')
|
|
|
+ /* uni.showActionSheet({
|
|
|
itemList: ['下载图片'],
|
|
|
success: (res) => {
|
|
|
if (res.tapIndex === 0) {
|
|
|
this.downloadImage();
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
+ }); */
|
|
|
},
|
|
|
|
|
|
|