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

1

parent e0dc0867
...@@ -123,18 +123,21 @@ ...@@ -123,18 +123,21 @@
/> />
</scroll-view> </scroll-view>
</view> </view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'goback'></auth>
</view> </view>
</template> </template>
<script> <script>
import goodList from "@/components/goods/order-good-list2"; import goodList from "@/components/goods/order-good-list2";
import auth from "../../../components/auth/index.vue";
export default { export default {
components: { components: {
goodList, goodList,
auth,
}, },
data() { data() {
return { return {
mainColor: "", mainColor: "",
contentHeight: 0, contentHeight: 0,
page: 1, page: 1,
...@@ -164,6 +167,8 @@ export default { ...@@ -164,6 +167,8 @@ export default {
marginLeft: "20px", marginLeft: "20px",
padding: "0 30rpx", padding: "0 30rpx",
}, },
showAuth:false,
u: {},
}; };
}, },
created() { created() {
...@@ -179,12 +184,24 @@ export default { ...@@ -179,12 +184,24 @@ export default {
}, },
onLoad(option) { onLoad(option) {
this.loading = true; this.loading = true;
}, },
onShow(){ onShow(){
this.page=1 this.page=1
this.g=[] this.g=[]
this.loading = true; this.loading = true;
this.init();
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
}else{
this.init();
}
}, },
methods: { methods: {
redirectToDetail(id) { redirectToDetail(id) {
...@@ -222,6 +239,14 @@ export default { ...@@ -222,6 +239,14 @@ export default {
this.status = "nomore"; this.status = "nomore";
} }
}, },
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.showAuth = false;
this.getOrderStatus();
},
goback(){
uni.navigateBack()
},
}, },
}; };
</script> </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