Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
闫晓茹 2023-09-22 14:07:29 +08:00
commit ffedb634a8
3 changed files with 30 additions and 8 deletions

View File

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

View File

@ -54,7 +54,7 @@
<view class="title"> <view class="title">
我的订单 我的订单
</view> </view>
<view class="righttitle"> <view class="righttitle" @tap="goorder">
查看全部 查看全部
<image src="../../static/huijiantou.png" mode=""></image> <image src="../../static/huijiantou.png" mode=""></image>
</view> </view>
@ -143,6 +143,7 @@
<image src="../../static/huijiantou.png" mode=""></image> <image src="../../static/huijiantou.png" mode=""></image>
</view> </view>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -154,6 +155,27 @@
}; };
}, },
methods: { 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() { goBehaviorpoints() {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints' url: '/pagesB/Behaviorpoints/Behaviorpoints'