|
@@ -11,7 +11,7 @@
|
|
|
<view class="orders box">
|
|
|
<view class="o_top">
|
|
|
<text>订单管理</text>
|
|
|
- <view @click="navigatorAllOrder()">
|
|
|
+ <view @click="toTurn('/pagesMy/orderList/orderList')">
|
|
|
<text>全部</text>
|
|
|
<u-icon name="arrow-right" color="#999999" size="28"></u-icon>
|
|
|
</view>
|
|
@@ -23,7 +23,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="menu box" @click="stayInfo()">
|
|
|
+ <view class="menu box" @click="toTurn('/pagesMy/stayInfo/stayInfo')">
|
|
|
<text>酒店民宿信息</text>
|
|
|
<u-icon name="arrow-right" color="#999999" size="28"></u-icon>
|
|
|
</view>
|
|
@@ -35,7 +35,7 @@
|
|
|
<u-icon name="arrow-right" color="#999999" size="28"></u-icon>
|
|
|
</view>
|
|
|
</navigator>
|
|
|
- <view class="menu box">
|
|
|
+ <view class="menu box" @tap="toTurn('/pagesMy/code/index')">
|
|
|
<text>预订二维码</text>
|
|
|
<u-icon name="arrow-right" color="#999999" size="28"></u-icon>
|
|
|
</view>
|
|
@@ -53,7 +53,7 @@
|
|
|
color: '#FFFFFF'
|
|
|
},
|
|
|
avatar: 'https://i.ringzle.com/file/20240107/d61321708599457bbcca1c089154e635.png',
|
|
|
- name: '吴彦霖',
|
|
|
+ name: '未知',
|
|
|
menus: [{
|
|
|
img: 'https://i.ringzle.com/file/20240107/83bca90dfb3f4b1fba36115dc7269219.png',
|
|
|
title: '待确认',
|
|
@@ -77,28 +77,21 @@
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ mounted() {
|
|
|
+ if(uni.getStorageSync('userInfo')){
|
|
|
+ this.name = JSON.parse(uni.getStorageSync('userInfo')).realName;
|
|
|
+ this.avatar = JSON.parse(uni.getStorageSync('userInfo')).headUrl;
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
specifiedOrder(index) {
|
|
|
uni.navigateTo({
|
|
|
url: '/pagesMy/orderList/orderList?Type='+index
|
|
|
})
|
|
|
},
|
|
|
- navigatorAllOrder() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pagesMy/orderList/orderList'
|
|
|
- })
|
|
|
- },
|
|
|
- stayInfo() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pagesMy/stayInfo/stayInfo'
|
|
|
- })
|
|
|
- },
|
|
|
- // goRoomType(){
|
|
|
- // uni.navigateTo({
|
|
|
- // url:'/pages/my/roomType'
|
|
|
- // })
|
|
|
- // }
|
|
|
+ toTurn(url){
|
|
|
+ uni.navigateTo({ url })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|