修改工作台

This commit is contained in:
2025-10-10 14:10:50 +08:00
parent 612dd4eac1
commit 5e2b2dcfda
6 changed files with 22 additions and 10 deletions

View File

@@ -56,6 +56,11 @@ Page({
url: '/pages/workBenchNew/components/workBenchReading/index',
})
},
jumpToHome() {
wx.switchTab({
url: '/pages/home/index',
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@@ -2,7 +2,8 @@
"usingComponents": {
"navigator": "/components/navigator/index",
"van-row": "@vant/weapp/row/index",
"van-col": "@vant/weapp/col/index"
"van-col": "@vant/weapp/col/index",
"van-button": "@vant/weapp/button/index"
},
"navigationStyle": "custom"
}

View File

@@ -1,5 +1,5 @@
<!--pages/workBench/index.wxml-->
<navigator title="工作台" canBack="{{true}}" />
<navigator title="工作台" canBack="{{false}}" />
<view class="wrapper">
<van-row gutter="10">
@@ -74,4 +74,7 @@
</view>
</van-col>
</van-row>
<view class="operate">
<van-button type="info" block bind:click="jumpToHome"> 回到首页 </van-button>
</view>
</view>

View File

@@ -41,4 +41,8 @@
page {
background-color: rgb(242,243,245);
}
.operate {
padding-bottom: 24rpx;
}