新医路健康服务平台

This commit is contained in:
2023-09-22 14:07:12 +08:00
parent 9c4c5518bf
commit e2fc505a3a
3 changed files with 30 additions and 8 deletions

View File

@ -4,6 +4,12 @@
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/myinformation/myinformation",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "pages/startup/startup",
"style": {
"navigationBarTitleText": "",
@ -15,12 +21,6 @@
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
}, {
"path": "pages/myinformation/myinformation",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "pages/homepage/homepage",
"style": {}

View File

@ -54,7 +54,7 @@
<view class="title">
我的订单
</view>
<view class="righttitle">
<view class="righttitle" @tap="goorder">
查看全部
<image src="../../static/huijiantou.png" mode=""></image>
</view>
@ -143,6 +143,7 @@
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
@ -154,6 +155,27 @@
};
},
methods: {
//
goorder() {
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
uni.navigateTo({
url: '/pagesB/CommodityOrder/CommodityOrder'
})
} else {
this.gologin();
}
},
//
gologin() {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
},
goBehaviorpoints() {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'

View File

@ -347,4 +347,4 @@
<style lang="scss">
@import "./CommodityOrder.scss";
</style>
</style>