This commit is contained in:
王丹 2024-09-19 10:40:01 +08:00
commit e91d9bebad
3 changed files with 59 additions and 8 deletions

View File

@ -16,6 +16,12 @@
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationBarBackgroundColor": "#39ac4f" "navigationBarBackgroundColor": "#39ac4f"
} }
}, {
"path": "pages/index-list",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#39ac4f"
}
}, },
{ {
"path": "pages/agricultural/index", "path": "pages/agricultural/index",

38
pages/index-list.vue Normal file
View File

@ -0,0 +1,38 @@
<template>
<view>横向列表页面</view>
</template>
<script>
import store from "@/store"
import plus from "@/plugins"
export default {
data() {
return {}
},
onLoad() {
// #ifdef APP-PLUS
plus.screen.lockOrientation('landscape-primary');
plus.navigator.setFullscreen(true);
// #endif
},
onShow() {},
methods: {
openLand() {
this.$refs.refLand.open();
},
change(e) {
console.log('change', e);
},
toList() {
uni.navigateTo({
url: `/pages/index-list/index-list`
})
},
toQRCode() {},
},
}
</script>
<style>
</style>

View File

@ -191,7 +191,8 @@
</u-col> </u-col>
<u-col span="5" style="align-items: flex-end;"> <u-col span="5" style="align-items: flex-end;">
<view class="fixed"> <view class="fixed">
<u-button type="success" size="mini" text="刷新" icon="reload"></u-button> <u-button type="success" size="mini" text="刷新"
icon="reload"></u-button>
</view> </view>
</u-col> </u-col>
</u-row> </u-row>
@ -233,6 +234,12 @@
onLoad() { onLoad() {
// uni.$emit("mqtt-link"); // uni.$emit("mqtt-link");
}, },
onShow() {
// #ifdef APP-PLUS
plus.screen.lockOrientation("portrait-primary");
plus.navigator.setFullscreen(false);
// #endif
},
methods: { methods: {
openLand() { openLand() {
this.$refs.refLand.open(); this.$refs.refLand.open();