diff --git a/commons/base.css b/commons/base.css index 80b9731..089d4a0 100644 --- a/commons/base.css +++ b/commons/base.css @@ -68,12 +68,14 @@ .wh44{width: 44rpx;height: 44rpx;} button:after{content: none!important;} -.borbot{border-bottom: 2rpx solid #E6E6E6;} +.borbot{border-bottom: 2rpx solid #EEEEEE;} .borbot:last-child{border-bottom: none;} .bbot{border-bottom: 2rpx solid #EEEEEE;} +.tbot{border-top: 2rpx solid #EEEEEE;} .borbot-df{border: 2rpx solid #DFDFDF;} .borbot-cc{border: 2rpx solid #CCCCCC;} .bleft {border-left: 2rpx solid #EEEEEE;} +.bbt-d9{border-bottom: 2rpx solid #d9d9d9;} /* 行高 */ .line-h30{line-height: 30rpx;} diff --git a/jsFile/img/yy-img.js b/jsFile/img/yy-img.js index f2c4dd6..9ad288f 100644 --- a/jsFile/img/yy-img.js +++ b/jsFile/img/yy-img.js @@ -90,10 +90,34 @@ const imgTools = { * @param {String} src */ saveImg(src) { + // #ifdef APP-PLUS uni.saveImageToPhotosAlbum({ filePath: src, - success: ()=> {} + success:(resimg)=> {} }); + // #endif + // #ifdef MP-WEIXIN + let exist = src.slice(0,4); + if(exist=='http') { + uni.downloadFile({ + url: src, + success: (res) => { + uni.saveImageToPhotosAlbum({ + filePath: res.tempFilePath, + success: ()=> {}, + fail: () => { + uni.showToast({title:'保存失败',icon:'error'}) + } + }); + } + }) + } else { + wx.saveFile({ + tempFilePath: src, + success:(wximg)=> {} + }) + } + // #endif }, /** * @description 压缩图片