|
|
@@ -3,13 +3,14 @@
|
|
|
<view class="img_box">
|
|
|
<image :src="imgUrl" class="img_url"></image>
|
|
|
</view>
|
|
|
- <!-- 确认 -->
|
|
|
<div class="confirm-btn">
|
|
|
<button class="admin-button-com big blue" @click="downloadImg">保存图片分享</button>
|
|
|
</div>
|
|
|
+ <!-- #ifdef MP-WEIXIN -->
|
|
|
<div class="confirm-btn1">
|
|
|
<button class="admin-button-com big blue" @click="goToMallPt()">直接打开分享</button>
|
|
|
</div>
|
|
|
+ <!-- #endif -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -42,17 +43,10 @@ export default {
|
|
|
uni.saveImageToPhotosAlbum({
|
|
|
filePath: res.tempFilePath,
|
|
|
success: function() {
|
|
|
- uni.showToast({
|
|
|
- title: '保存成功',
|
|
|
- icon: 'none'
|
|
|
- });
|
|
|
+ uni.showToast({ title: '保存成功', icon: 'none' })
|
|
|
},
|
|
|
fail: (res) => {
|
|
|
- // this.$msg('保存失败')
|
|
|
- uni.showToast({
|
|
|
- title: '保存失败',
|
|
|
- icon: 'none'
|
|
|
- });
|
|
|
+ uni.showToast({ title: '保存失败', icon: 'none' })
|
|
|
}
|
|
|
})
|
|
|
},
|