|  |  | @@ -1,6 +1,9 @@ | 
		
	
		
			
			|  |  |  | const Http = require("../../../../utils/HttpBasics"); | 
		
	
		
			
			|  |  |  | const imgurl = require("../../../../utils/imgurl"); | 
		
	
		
			
			|  |  |  | const config = require("../../../../config/config"); | 
		
	
		
			
			|  |  |  | const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} | 
		
	
		
			
			|  |  |  | let imgOrgUrl = extConfig.attr.imgOrgUrl; | 
		
	
		
			
			|  |  |  | let imgNewUrl = extConfig.attr.imgNewUrl; | 
		
	
		
			
			|  |  |  | let app = getApp(); | 
		
	
		
			
			|  |  |  | Page({ | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
				|  |  | @@ -87,8 +90,9 @@ Page({ | 
		
	
		
			
			|  |  |  | let topImageWidth = parseInt(375 * scale) // 因为小数有时候会请求不到图片,所以转成int | 
		
	
		
			
			|  |  |  | let topImageHeight = parseInt(250 * scale) | 
		
	
		
			
			|  |  |  | let src1 = this.data.data.merchantImgUrl + `?imageView/2/w/${topImageWidth}/h/${topImageHeight}` | 
		
	
		
			
			|  |  |  | let src2 = src1.replace(imgOrgUrl, imgNewUrl) | 
		
	
		
			
			|  |  |  | wx.getImageInfo({ | 
		
	
		
			
			|  |  |  | src: src1, | 
		
	
		
			
			|  |  |  | src: src2, | 
		
	
		
			
			|  |  |  | success: function(res) { | 
		
	
		
			
			|  |  |  | ctx.drawImage(res.path, 0, 0, topImageWidth, topImageHeight) | 
		
	
		
			
			|  |  |  | // 覆盖黑色蒙层 | 
		
	
	
		
			
				|  |  | 
 |