Commit feb24696 by 张立顺

feat 商品功能适配

1 parent f8851b1a
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 2;
let index = 1;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -263,6 +263,10 @@ Component({
[dataAttrName + '.' + 'carSeriesId']: carSeriesId,
[dataAttrName + '.' + 'carSeriesName']: carSeriesName
})
// 是车价就重新筛选商品列表
if (carSeriesId) {
thisPage.resetGoods && thisPage.resetGoods()
}
},
/**获取园区配置 */
async getYqStoreConfig() {
......
......@@ -499,14 +499,14 @@ Page({
if (check && orderInfo.payType == 2 && carBrandList?.includes(orderInfo?.owner?.carChildsBrandId) && detail != 'cancel' && !orderInfo?.zyPayUrl && !orderInfo.resetOrder) {
// 添加流水号校验
wx.hideLoading()
let result = await checkRecord({transactionNo: orderInfo.transactionNo})
let result = await checkRecord({ transactionNo: orderInfo.transactionNo })
let { code, message } = result
if (code == 0) {
this.setData({
showPopup: false
})
reject()
return this.setData({showZyPopup: true})
return this.setData({ showZyPopup: true })
} else {
reject()
this.setData({
......@@ -790,7 +790,7 @@ Page({
getQuotationInfo(getOrderInfo, timeNum = 0) {
let { default4SStoreInfo } = wx.$util.getUserInfo();
let {
owner: { price },
owner: { price, carSeriesId },
orderInfo,
id,
} = this.data;
......@@ -802,6 +802,7 @@ Page({
quotationGoodsList({
merchantId: default4SStoreInfo.merchantId,
suitCarPrice: price ? parseFloat((price / 10000).toFixed(4)) : "",
seriesId: carSeriesId
})
.then((result) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!