Explorar el Código

Merge branch 'dev' of https://git.youlane.cn/weapp/C into dev

tags/江西版6.1.0
meo hace 6 años
padre
commit
0586bae10e
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
  1. +3
    -1
      ext.json
  2. +5
    -1
      pages/index/searchbar/detail/index.js

+ 3
- 1
ext.json Ver fichero

@@ -7,7 +7,9 @@
"etcpVersion": "release", "etcpVersion": "release",
"etcpCallbackUrl": "https://ciformall.youlane.cn/api/carCallback/etcpPaidCallback", "etcpCallbackUrl": "https://ciformall.youlane.cn/api/carCallback/etcpPaidCallback",
"ifHaveWebSocket": "0", "ifHaveWebSocket": "0",
"ifHaveCarModular": "1"
"ifHaveCarModular": "1",
"imgOrgUrl": "https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn",
"imgNewUrl": "https://ciformall.youlane.cn/img"
}, },
"name": "富茂客官开发", "name": "富茂客官开发",
"weappId": "wxea71200db93d756b", "weappId": "wxea71200db93d756b",


+ 5
- 1
pages/index/searchbar/detail/index.js Ver fichero

@@ -1,6 +1,9 @@
const Http = require("../../../../utils/HttpBasics"); const Http = require("../../../../utils/HttpBasics");
const imgurl = require("../../../../utils/imgurl"); const imgurl = require("../../../../utils/imgurl");
const config = require("../../../../config/config"); const config = require("../../../../config/config");
const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
let imgOrgUrl = extConfig.attr.imgOrgUrl;
let imgNewUrl = extConfig.attr.imgNewUrl;
let app = getApp(); let app = getApp();
Page({ Page({


@@ -89,8 +92,9 @@ Page({
let topImageWidth = parseInt(375 * scale) // 因为小数有时候会请求不到图片,所以转成int let topImageWidth = parseInt(375 * scale) // 因为小数有时候会请求不到图片,所以转成int
let topImageHeight = parseInt(250 * scale) let topImageHeight = parseInt(250 * scale)
let src1 = this.data.data.merchantImgUrl + `?imageView/2/w/${topImageWidth}/h/${topImageHeight}` let src1 = this.data.data.merchantImgUrl + `?imageView/2/w/${topImageWidth}/h/${topImageHeight}`
let src2 = src1.replace(imgOrgUrl, imgNewUrl)
wx.getImageInfo({ wx.getImageInfo({
src: src1,
src: src2,
success: function(res) { success: function(res) {
ctx.drawImage(res.path, 0, 0, topImageWidth, topImageHeight) ctx.drawImage(res.path, 0, 0, topImageWidth, topImageHeight)
// 覆盖黑色蒙层 // 覆盖黑色蒙层


Cargando…
Cancelar
Guardar