@@ -83,12 +83,6 @@
}
},
onLoad() {
- // 获取订单状态数据字典
- this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
- // 获取顶部轮播图
- this.getbannerList()
- // 获取经纬度
- this.getLocation()
// 查询购物车列表
this.getCartList()
// 刷新购物车列表
@@ -113,6 +107,13 @@
})
onShow() {
+ // 获取订单状态数据字典
+ this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
+ // 获取顶部轮播图
+ this.getbannerList()
+ // 获取经纬度
+ this.getLocation()
+
// 是否登录
checkLogin().then(res => {
console.log(res,'checkLogin')