@@ -1,16 +1,16 @@ | |||||
{ | { | ||||
"ext": { | "ext": { | ||||
"attr": { | "attr": { | ||||
"configUrl": "https://c.malls.iformall.com/C/api", | |||||
"etcpAppId": "wxc07f9d67923d676d", | |||||
"configUrl": "https://ctest.malls.iformall.com/C/api", | |||||
"etcpAppId": "wx192b7d2e8dcbefd0", | |||||
"etcpVersion": "release", | "etcpVersion": "release", | ||||
"etcpCallbackUrl": "https://admin.malls.iformall.com/api/carCallback/etcpPaidCallback", | |||||
"etcpCallbackUrl": "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback", | |||||
"ifHaveWebSocket": "0", | "ifHaveWebSocket": "0", | ||||
"ifHaveCarModular": "1" | "ifHaveCarModular": "1" | ||||
}, | }, | ||||
"name": "富茂链客生产版", | |||||
"weappId": "wx6a2524a8286d687f", | |||||
"appVersion": "C.nocar.5.1.1" | |||||
"name": "富茂链客", | |||||
"weappId": "wx649b3be73c1afe47", | |||||
"appVersion": "C.test.5.2.0" | |||||
}, | }, | ||||
"debug": false, | "debug": false, | ||||
"tabBar": { | "tabBar": { | ||||
@@ -49,7 +49,7 @@ | |||||
"navigationBarTitleText": "", | "navigationBarTitleText": "", | ||||
"navigationBarBackgroundColor": "#FFFFFF" | "navigationBarBackgroundColor": "#FFFFFF" | ||||
}, | }, | ||||
"extAppid": "wx6a2524a8286d687f", | |||||
"extAppid": "wx649b3be73c1afe47", | |||||
"extEnable": true, | "extEnable": true, | ||||
"permission": { | "permission": { | ||||
"scope.userLocation": { | "scope.userLocation": { | ||||
@@ -3,7 +3,7 @@ | |||||
<swiper class="index-slide" autoplay="true" circular="false"> | <swiper class="index-slide" autoplay="true" circular="false"> | ||||
<block wx:for="{{imglist}}" wx:key="unique"> | <block wx:for="{{imglist}}" wx:key="unique"> | ||||
<swiper-item> | <swiper-item> | ||||
<image src="{{item}}" class="index-slide-image" /> | |||||
<image src="{{item}}" class="index-slide-image" mode='widthFix'/> | |||||
</swiper-item> | </swiper-item> | ||||
</block> | </block> | ||||
</swiper> | </swiper> | ||||
@@ -5,6 +5,7 @@ | |||||
margin: 0 auto; | margin: 0 auto; | ||||
overflow: hidden; | overflow: hidden; | ||||
position: relative; | position: relative; | ||||
height: 576rpx; | |||||
} | } | ||||
.index-slide-view .dots { | .index-slide-view .dots { | ||||
@@ -14,7 +14,7 @@ | |||||
}, | }, | ||||
"compileType": "miniprogram", | "compileType": "miniprogram", | ||||
"libVersion": "2.2.0", | "libVersion": "2.2.0", | ||||
"appid": "wx453ae0d37f3550d0", | |||||
"appid": "wxfa336cad86ed598d", | |||||
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", | "projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", | ||||
"isGameTourist": false, | "isGameTourist": false, | ||||
"simulatorType": "wechat", | "simulatorType": "wechat", | ||||
@@ -780,26 +780,61 @@ | |||||
} | } | ||||
} | } | ||||
} | } | ||||
ctx.draw(false, setTimeout(function () { | |||||
wx.canvasToTempFilePath({ | |||||
x: 0, | |||||
y: 0, | |||||
width: cavW, | |||||
height: cavH, | |||||
destWidth: cavW, | |||||
destHeight: cavH, | |||||
canvasId: canvas, | |||||
fail: function (res) { | |||||
console.log(res) | |||||
}, | |||||
success: function (res) { | |||||
console.log(res.tempFilePath) | |||||
if (cb) { | |||||
cb(res.tempFilePath); | |||||
}; | |||||
ctx.draw(true, function () { | |||||
// 判断绘制方法,判断手机类型 | |||||
let brand = ""; | |||||
wx.getSystemInfo({ | |||||
success:function(res){ | |||||
console.log(res.brand) | |||||
brand = res.brand; | |||||
} | } | ||||
}) | }) | ||||
},200)); | |||||
if (brand == 'iPhone') { | |||||
wx.canvasToTempFilePath({ | |||||
x: 0, | |||||
y: 0, | |||||
width: cavW, | |||||
height: cavH, | |||||
destWidth: cavW, | |||||
destHeight: cavH, | |||||
canvasId: canvas, | |||||
fail: function (res) { | |||||
console.log(res) | |||||
}, | |||||
success: function (res) { | |||||
if (cb) { | |||||
cb(res.tempFilePath); | |||||
}; | |||||
} | |||||
}) | |||||
} else { | |||||
// 延迟加载 | |||||
setTimeout(function () { | |||||
wx.canvasToTempFilePath({ | |||||
x: 0, | |||||
y: 0, | |||||
width: cavW, | |||||
height: cavH, | |||||
destWidth: cavW, | |||||
destHeight: cavH, | |||||
canvasId: canvas, | |||||
fail: function (res) { | |||||
console.log(res) | |||||
}, | |||||
success: function (res) { | |||||
if (cb) { | |||||
cb(res.tempFilePath); | |||||
}; | |||||
} | |||||
}) | |||||
}, 1000) | |||||
} | |||||
}); | |||||
} | } | ||||
} | } | ||||
module.exports = { api } | module.exports = { api } | ||||