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