Commit 9858c4db by 张立顺

fix bug修复

1 parent 84ab6e19
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 0;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -117,14 +117,14 @@ Page({ ...@@ -117,14 +117,14 @@ Page({
let { detail } = e let { detail } = e
console.log(detail, 'detail') console.log(detail, 'detail')
let { selectCustomIndex } = this.data let { selectCustomIndex } = this.data
let prop = `notUpgradeOrderList[${selectCustomIndex}].customer` let propCustomer = `notUpgradeOrderList[${selectCustomIndex}].customer`
let prop = `notUpgradeOrderList[${selectCustomIndex}]`
this.setData({ this.setData({
[prop]: { [propCustomer]: {
customerName: detail.customer.customerName, customerName: detail.customer.customerName,
customerSex: detail.customer.customerSex, customerSex: detail.customer.customerSex,
customerPhone: detail.customer.customerPhone, customerPhone: detail.customer.customerPhone,
customerCouponCode: detail.customerCoupon?.customerCouponCode,
customerCouponId: detail?.customerCouponId, // 客户券id
carBrandId: detail.customer.carBrandId, carBrandId: detail.customer.carBrandId,
carBrand: detail.customer.carBrand, carBrand: detail.customer.carBrand,
carChildsBrandId: detail.customer.carChildsBrandId, carChildsBrandId: detail.customer.carChildsBrandId,
...@@ -134,7 +134,9 @@ Page({ ...@@ -134,7 +134,9 @@ Page({
standNo: detail.customer.standNo, standNo: detail.customer.standNo,
plateNumber: detail.customer.plateNumber, plateNumber: detail.customer.plateNumber,
experienceFlag: detail.customer.experienceFlag || 'Y' experienceFlag: detail.customer.experienceFlag || 'Y'
} },
[prop + '.customerCouponCode']: detail.customerCoupon?.customerCouponCode,
[prop + '.customerCouponId']: detail?.customerCouponId, // 客户券id
}) })
}, },
showCustomPop(e) { showCustomPop(e) {
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</block> </block>
</block> </block>
<block wx:if="{{ sideBeforeRearGearArr.length }}"> <block wx:if="{{ sideBeforeRearGearArr.length }}">
<gl-cell border valueAlign="right" label="前侧窗玻璃" logoSrc="{{ tricorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="2" /> <gl-cell border valueAlign="right" label="前侧窗玻璃" logoSrc="{{ tricorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-index="{{ ind }}" data-type="2" data-positionnnum="2" />
<block wx:if="{{ goodsList.length > 0 }}"> <block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box"> <view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index"> <block wx:for="{{ goodsList }}" wx:key="index">
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
</block> </block>
</block> </block>
<block wx:if="{{ sideRearGearArr.length }}"> <block wx:if="{{ sideRearGearArr.length }}">
<gl-cell border valueAlign="right" label="后侧窗玻璃" logoSrc="{{ sideIcorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="3" /> <gl-cell border valueAlign="right" label="后侧窗玻璃" logoSrc="{{ sideIcorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-index="{{ ind }}" data-type="2" data-positionnnum="3" />
<block wx:if="{{ goodsList.length > 0 }}"> <block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box"> <view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index"> <block wx:for="{{ goodsList }}" wx:key="index">
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
</block> </block>
</block> </block>
<block wx:if="{{ sideAfterRearGearArr.length }}"> <block wx:if="{{ sideAfterRearGearArr.length }}">
<gl-cell border valueAlign="right" label="后档" logoSrc="{{ afterIcorn }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="4" /> <gl-cell border valueAlign="right" label="后档" logoSrc="{{ afterIcorn }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-index="{{ ind }}" data-type="2" data-positionnnum="4" />
<block wx:if="{{ goodsList.length > 0 }}"> <block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box"> <view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index"> <block wx:for="{{ goodsList }}" wx:key="index">
......
...@@ -62,7 +62,8 @@ const domain_items = { ...@@ -62,7 +62,8 @@ const domain_items = {
// dj: 'http://192.168.1.104:8292', //叶立庆 // dj: 'http://192.168.1.104:8292', //叶立庆
// dj: "http://192.168.1.169:8292", //蔡远明 // dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣 // dj: 'http://192.168.1.174:8292',//范富荣
dj: 'http://192.168.1.89:8292', //周杭 // dj: 'http://192.168.1.89:8292', //周杭
dj: 'http://192.168.1.89:8292', //璐琦
// dj: 'http://192.168.1.116:8292',//陈希 // dj: 'http://192.168.1.116:8292',//陈希
// dj: 'http://192.168.1.60:8292',//周立明 // dj: 'http://192.168.1.60:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺 // dj: 'http://192.168.148.235:8292',// 熊正顺
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!