Commit efc66b48 by 张立顺

fix bug修复

1 parent e92ad90b
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 1;
let index = 2;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -26,6 +26,8 @@ Page({
skylight: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/skylight.png",
tricorn: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/tricorn.png",
windshield: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/windshield.png",
sideIcorn: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/sideIcon.png",
afterIcorn: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/afterIcon.png",
scanIcon:
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/ocr_icon.png",
selectIcon:
......
......@@ -19,6 +19,11 @@ Page({
IMG_URL: ImgUrl,
scanIcon:
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/ocr_icon.png',
skylight: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/skylight.png",
tricorn: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/tricorn.png",
windshield: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/windshield.png",
sideIcorn: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/sideIcon.png",
afterIcorn: "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/afterIcon.png",
name: 'createdOrder',
shortcutList: [],
phoneShow: false,
......@@ -119,7 +124,7 @@ Page({
customerSex: detail.customer.customerSex,
customerPhone: detail.customer.customerPhone,
customerCouponCode: detail.customerCoupon?.customerCouponCode,
customerCouponId: detail.customerCoupon?.customerCouponId, // 客户券id
customerCouponId: detail?.customerCouponId, // 客户券id
carBrandId: detail.customer.carBrandId,
carBrand: detail.customer.carBrand,
carChildsBrandId: detail.customer.carChildsBrandId,
......@@ -977,11 +982,11 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function (res) {},
onReady: function (res) { },
/**
* 生命周期函数--监听页面显示
*/
onShow: function (res) {},
onShow: function (res) { },
onRoute(res) {
console.log(res, 'onroute')
this.setData({ isExpiredTraffic: res?.isExpiredTraffic })
......@@ -1008,25 +1013,25 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
onUnload: () => {},
onHide: function () { },
onUnload: () => { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
onUnload: function () { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
onReachBottom: function () { },
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {}
onShareAppMessage: function () { }
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!