|
|
@@ -34,29 +34,22 @@ export default {
|
|
|
this.getappIdList = res.data
|
|
|
});
|
|
|
},
|
|
|
- downloadImg() {
|
|
|
+ downloadImg(){
|
|
|
uni.downloadFile({
|
|
|
url: this.imgUrl,
|
|
|
success: (res) => {
|
|
|
- console.log(res)
|
|
|
- uni.saveImageToPhotosAlbum({
|
|
|
- filePath: res.tempFilePath,
|
|
|
- success: function() {
|
|
|
- uni.showToast({
|
|
|
- title: '保存成功',
|
|
|
- icon: 'none'
|
|
|
- });
|
|
|
- },
|
|
|
- fail: (res) => {
|
|
|
- // this.$msg('保存失败')
|
|
|
- uni.showToast({
|
|
|
- title: '保存失败',
|
|
|
- icon: 'none'
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- })
|
|
|
+ if (res.statusCode === 200) {
|
|
|
+ console.log(res)
|
|
|
+ uni.saveImageToPhotosAlbum({
|
|
|
+ filePath: res.tempFilePath,
|
|
|
+ success: function (data) {
|
|
|
+ console.log(data)
|
|
|
+ uni.showToast({title:'下载成功!'})
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
getImg() {
|
|
|
mainGetMallPoster().then(res => {
|
|
|
@@ -66,15 +59,18 @@ export default {
|
|
|
},
|
|
|
goToMallPt (url) {
|
|
|
let self = this
|
|
|
- console.log(url + '?account=' + self.loginInfo.shopId)
|
|
|
+ console.log(url + '?account=' + self.loginInfo.shopId)
|
|
|
uni.navigateToMiniProgram({
|
|
|
- appId: this.getappIdList.mall.miniAppId,
|
|
|
- path: url + '?account=' + self.loginInfo.shopId,
|
|
|
- //develop 开发版 trial 体验版 release 正式版
|
|
|
- envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
- extraData: {
|
|
|
- 'hdShopAdminId': self.loginInfo.shopAdminId
|
|
|
- },
|
|
|
+ //姜枫-2021.04.13
|
|
|
+ appId: this.getappIdList.hd.miniAppId,
|
|
|
+ path: 'pagesPurchase/ghsProduct?shopId='+ this.loginInfo.shopId+'&id=0&ghsShopAdminId='+this.loginInfo.shopAdminId,
|
|
|
+ //develop 开发版 trial 体验版 release 正式版
|
|
|
+ envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
+ extraData: {
|
|
|
+ 'shopId': this.loginInfo.shopId,
|
|
|
+ 'id': 0,
|
|
|
+ 'name':'',
|
|
|
+ },
|
|
|
success (res) {
|
|
|
}
|
|
|
})
|