|
|
|
@ -135,7 +135,12 @@ |
|
|
|
|
<u-popup :show="isPopup" round="10" @close="isPopup=false" mode="center" :closeable="true"> |
|
|
|
|
<view class="popup-qr"> |
|
|
|
|
<image :src="qr_code"></image> |
|
|
|
|
<!-- #ifdef MP-WEIXIN --> |
|
|
|
|
<u-button color="#2080F9" @click="download(qr_code)">保存相册</u-button> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
<u-button color="#2080F9" @click="download(qr_code)">立即下载</u-button> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
</view> |
|
|
|
|
</u-popup> |
|
|
|
|
</view> |
|
|
|
@ -198,6 +203,12 @@ |
|
|
|
|
this.qr_code = this.userInfo.qr_code; |
|
|
|
|
uni.removeStorageSync("isShow") |
|
|
|
|
}, |
|
|
|
|
download1(){ |
|
|
|
|
let a = document.createElement("a"); |
|
|
|
|
a.href = this.qr_code; |
|
|
|
|
a.setAttribute("download", "mytag"); |
|
|
|
|
a.click(); |
|
|
|
|
}, |
|
|
|
|
openPage(index) { |
|
|
|
|
const that = this; |
|
|
|
|
if (index == 1) { |
|
|
|
|