Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
ffedb634a8
12
pages.json
12
pages.json
@ -4,6 +4,12 @@
|
|||||||
},
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://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": {}
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user