Commit feb24696 by 张立顺

feat 商品功能适配

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