master
jevononlie 5 months ago
parent c13c9c495b
commit 3f1288715b

@ -87,10 +87,16 @@
} }
}, },
{ {
"path": "pages/recyclingCabinet/recyclingCabinet", "path": "pages/selectDustbin/selectDustbin",
"style": { "style": {
"navigationBarTitleText": "选择身份" "navigationBarTitleText": "选择身份"
} }
},
{
"path": "pages/dustbin/dustbin",
"style": {
"navigationBarTitleText": "垃圾袋编码"
}
} }
], ],
"globalStyle": { "globalStyle": {

@ -0,0 +1,58 @@
<!--
* @Author: jevononlie 728254585@qq.com
* @Date: 2024-05-16 16:30:17
* @LastEditors: jevononlie 728254585@qq.com
* @LastEditTime: 2024-05-27 13:37:53
* @FilePath: /app-nx-personal/src/pages/recyclingCabinet/recyclingCabinet.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script setup lang="ts">
import { ref, reactive, computed } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
//
const { safeAreaInsets } = uni.getSystemInfoSync()
onShow(() => {
//
})
onLoad(() => {
//
})
const handleIndex = () => {
wx.navigator({
url: 'pages/index/index',
})
}
const handleStaff = () => {
uni.navigateToMiniProgram({
appId: 'wxf82bcc798891a29d',
path: 'pages/index/index?id=123',
extraData: {
'data1': 'test'
},
success(res) {
//
}
})
}
</script>
<template>
<view class="viewport">
<view class="todo">todo</view>
</view>
</template>
<style lang="scss">
page {
height: 100%;
overflow: hidden;
background-color: #f7f7f8;
}
.viewport {
position: relative;
height: 100%;
padding: 32rpx;
}
</style>

@ -2,7 +2,7 @@
* @Author: jevononlie 728254585@qq.com * @Author: jevononlie 728254585@qq.com
* @Date: 2024-05-16 16:30:17 * @Date: 2024-05-16 16:30:17
* @LastEditors: jevononlie 728254585@qq.com * @LastEditors: jevononlie 728254585@qq.com
* @LastEditTime: 2024-05-27 11:19:35 * @LastEditTime: 2024-05-27 13:36:51
* @FilePath: /app-nx-personal/src/pages/recyclingCabinet/recyclingCabinet.vue * @FilePath: /app-nx-personal/src/pages/recyclingCabinet/recyclingCabinet.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
@ -14,19 +14,18 @@ const { safeAreaInsets } = uni.getSystemInfoSync()
onShow(() => { onShow(() => {
// //
}) })
onLoad((options) => {
onLoad(() => { console.log('options垃圾箱扫描过来参数', JSON.stringify(options, null, 4))
//
}) })
const handleIndex = () => { const handleDustbin = () => {
wx.switchTab({ uni.redirectTo({
url: 'pages/index/index', url: '/pages/dustbin/dustbin',
}) })
} }
const handleStaff = () => { const handleStaff = () => {
uni.navigateToMiniProgram({ uni.navigateToMiniProgram({
appId: 'wxf82bcc798891a29d', appId: 'wxf82bcc798891a29d',
path: 'pages/index/index?id=123', path: '/pages/index/index?id=123',
extraData: { extraData: {
'data1': 'test' 'data1': 'test'
}, },
@ -41,7 +40,7 @@ const handleStaff = () => {
<view class="viewport"> <view class="viewport">
<image src="@/static/images/select-people.png" mode="aspectFit" class="select-people"></image> <image src="@/static/images/select-people.png" mode="aspectFit" class="select-people"></image>
<view class="cont"> <view class="cont">
<image class="select-item" src="@/static/images/select-custom.png" mode="aspectFit" @click="handleIndex"> <image class="select-item" src="@/static/images/select-custom.png" mode="aspectFit" @click="handleDustbin">
</image> </image>
<image class="select-item" src="@/static/images/select-staff.png" mode="aspectFit" @click="handleStaff"> <image class="select-item" src="@/static/images/select-staff.png" mode="aspectFit" @click="handleStaff">
</image> </image>

@ -2,7 +2,7 @@
* @Author: * @Author:
* @Date: 2024-01-04 12:54:56 * @Date: 2024-01-04 12:54:56
* @LastEditors: jevononlie 728254585@qq.com * @LastEditors: jevononlie 728254585@qq.com
* @LastEditTime: 2024-04-10 13:42:30 * @LastEditTime: 2024-05-27 13:30:53
* @FilePath: /app-nx-personal/src/services/constants.ts * @FilePath: /app-nx-personal/src/services/constants.ts
* @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@ -40,15 +40,9 @@ export const weightMenuList = [
export const bannerList = [ export const bannerList = [
{ {
id: '1', id: '1',
imgUrl: '/static/images/banner1.jpg', imgUrl: '/static/images/banner.jpg',
hrefUrl: '1013001', hrefUrl: '1013001',
type: '1', type: '1',
}, }
{
id: '2',
imgUrl: '/static/images/banner1.jpg',
hrefUrl: '1019000',
type: '1',
},
] ]

Before

Width:  |  Height:  |  Size: 508 KiB

After

Width:  |  Height:  |  Size: 508 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 749 KiB

Loading…
Cancel
Save