积分商品展示的部分问题

This commit is contained in:
lemon橪
2021-07-28 09:53:41 +08:00
parent a9db24d1ad
commit 436dd56e54
6 changed files with 39 additions and 13 deletions

View File

@@ -151,6 +151,7 @@
parms.clientType = this.paymentType;
API_Trade.getCashierData(parms).then((res) => {
if(res.data.success){
this.cashierParams = res.data.result;
// #ifdef MP-WEIXIN
@@ -187,6 +188,15 @@
this.walletValue = res.data.result.walletValue;
this.autoCancel =
(res.data.result.autoCancel - new Date().getTime()) / 1000;
}
else if(res.data.code == 32000){
setTimeout(()=>{
uni.redirectTo({
url: `/pages/order/myOrder?status=0`
});
},500)
}
});
},

View File

@@ -25,7 +25,7 @@
<view>{{ item.content }}</view>
<view>{{ item.createTime}}</view>
</view>
<view><span>{{item.pointType == "1" ? '+' : '-'}}</span>{{ item.variablePoint }}</view>
<view><span>{{item.pointType == "INCREASE" ? '+' : '-'}}</span>{{ item.variablePoint }}</view>
</view>
<uni-load-more :status="count.loadStatus"></uni-load-more>
</div>

View File

@@ -219,6 +219,7 @@ export default {
if (status == 0) {
this.loadData(status);
}
},
watch: {

View File

@@ -96,8 +96,21 @@ export default {
}
},
},
async mounted() {
async onShow() {
//获取顶级分类
this.categoryIndexData = [
{
categoryId: 0,
name: "全部",
loadStatus: "more",
goods: [],
params: {
pageNumber: 1,
pageSize: 10,
pointsGoodsCategoryId: "",
},
},
];
let response = await getPointsCategory();