浏览代码

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

tags/江西版6.1.0
meo 6 年前
父节点
当前提交
c25a876517
共有 5 个文件被更改,包括 63 次插入27 次删除
  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 查看文件

@@ -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": {


+ 1
- 1
pages/index/detail/index.wxml 查看文件

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


+ 1
- 0
pages/index/detail/index.wxss 查看文件

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


+ 1
- 1
project.config.json 查看文件

@@ -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",


+ 53
- 18
utils/memberqrcode.js 查看文件

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


正在加载...
取消
保存