@@ -1,4 +1,4 @@
-const environmentVariable = "test";
+const environmentVariable = "dev";
const apiUrlInfo = {
dev: "https://dev.kt.colexiu.com",
test: "https://test.kt.colexiu.com",
@@ -194,9 +194,6 @@ Page({
wx.navigateTo({
url: `../orders/order-detail?orderInfo=${info}&instrumentsInfo=${instrumentsInfo}&memberInfo=${memberInfo}`,
success: () => {
- that.setData({
- memberInfo: {}
- })
}
})
}, 300)()
@@ -229,6 +226,9 @@ Page({
onShow() {
if (!this.data.isFromPreviewImage && !this.data.popupShow) {
this.onInit()
+ this.setData({
+ memberInfo: {}
+ })
} else {
this.setData({
isFromPreviewImage: false
@@ -128,7 +128,7 @@ Page({
// 清除上一个页面的弹窗 有弹窗的时候数据返回回去数据才会刷新
const pages = getCurrentPages();
const prevPage = pages[pages.length - 2];
- prevPage.setData({ popupShow: false });
+ prevPage.setData({ popupShow: false, memberInfo: {} });
try {
const { salePrice, shopId, name, id, orderNo } = this.data.goodsInfo
if (orderNo) {
@@ -238,7 +238,16 @@ Page({
this.onExecutePay(paymentConfig, paymentType, orderNo)
this.onPayError()
- this.getList()
+ this.setData(
+ {
+ page: 1,
+ maxPage: 1,
+ recordList: [],
+ },
+ () => {
+ this.getList();
+ }
+ );
} catch {
wx.hideLoading()
@@ -259,7 +268,16 @@ Page({
if (res.data.code === 200) {
this.onPaying(paymentType, res.data.data.reqParams, orderNo)
this.onPayError(res.data.message)
},