Commit 952b3cdb authored by 黄媛媛's avatar 黄媛媛

1

parent e0dc0867
......@@ -123,18 +123,21 @@
/>
</scroll-view>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'goback'></auth>
</view>
</template>
<script>
import goodList from "@/components/goods/order-good-list2";
import auth from "../../../components/auth/index.vue";
export default {
components: {
goodList,
auth,
},
data() {
return {
mainColor: "",
contentHeight: 0,
page: 1,
......@@ -164,6 +167,8 @@ export default {
marginLeft: "20px",
padding: "0 30rpx",
},
showAuth:false,
u: {},
};
},
created() {
......@@ -179,12 +184,24 @@ export default {
},
onLoad(option) {
this.loading = true;
},
onShow(){
this.page=1
this.g=[]
this.loading = true;
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
}else{
this.init();
}
},
methods: {
redirectToDetail(id) {
......@@ -222,6 +239,14 @@ export default {
this.status = "nomore";
}
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.showAuth = false;
this.getOrderStatus();
},
goback(){
uni.navigateBack()
},
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment