Sfoglia il codice sorgente

[修改二维码得问题,修改门店详情banner显示]

tags/江西版6.1.0
meo 6 anni fa
parent
commit
c25a876517
5 ha cambiato i file con 63 aggiunte e 27 eliminazioni
  1. +7
    -7
      ext.json
  2. +1
    -1
      pages/index/detail/index.wxml
  3. +1
    -0
      pages/index/detail/index.wxss
  4. +1
    -1
      project.config.json
  5. +53
    -18
      utils/memberqrcode.js

+ 7
- 7
ext.json Vedi File

@@ -1,16 +1,16 @@
{
"ext": {
"attr": {
"configUrl": "https://c.malls.iformall.com/C/api",
"etcpAppId": "wxc07f9d67923d676d",
"configUrl": "https://ctest.malls.iformall.com/C/api",
"etcpAppId": "wx192b7d2e8dcbefd0",
"etcpVersion": "release",
"etcpCallbackUrl": "https://admin.malls.iformall.com/api/carCallback/etcpPaidCallback",
"etcpCallbackUrl": "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback",
"ifHaveWebSocket": "0",
"ifHaveCarModular": "1"
},
"name": "富茂链客生产版",
"weappId": "wx6a2524a8286d687f",
"appVersion": "C.nocar.5.1.1"
"name": "富茂链客",
"weappId": "wx649b3be73c1afe47",
"appVersion": "C.test.5.2.0"
},
"debug": false,
"tabBar": {
@@ -49,7 +49,7 @@
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF"
},
"extAppid": "wx6a2524a8286d687f",
"extAppid": "wx649b3be73c1afe47",
"extEnable": true,
"permission": {
"scope.userLocation": {


+ 1
- 1
pages/index/detail/index.wxml Vedi File

@@ -3,7 +3,7 @@
<swiper class="index-slide" autoplay="true" circular="false">
<block wx:for="{{imglist}}" wx:key="unique">
<swiper-item>
<image src="{{item}}" class="index-slide-image" />
<image src="{{item}}" class="index-slide-image" mode='widthFix'/>
</swiper-item>
</block>
</swiper>


+ 1
- 0
pages/index/detail/index.wxss Vedi File

@@ -5,6 +5,7 @@
margin: 0 auto;
overflow: hidden;
position: relative;
height: 576rpx;
}

.index-slide-view .dots {


+ 1
- 1
project.config.json Vedi File

@@ -14,7 +14,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.2.0",
"appid": "wx453ae0d37f3550d0",
"appid": "wxfa336cad86ed598d",
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"isGameTourist": false,
"simulatorType": "wechat",


+ 53
- 18
utils/memberqrcode.js Vedi File

@@ -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 }


Caricamento…
Annulla
Salva