规范小程序首页为/pages/index/index.vue

This commit is contained in:
weipengfei 2024-04-22 17:33:28 +08:00
parent 60f72cf533
commit 25b615903d
19 changed files with 31 additions and 29 deletions

View File

@ -51,7 +51,7 @@
store.dispatch('changeTabbar', e)
if (e == 0) {
uni.switchTab({
url: '/pages/index/massif'
url: '/pages/index/index'
})
}
if (e == 1) {

View File

@ -1,8 +1,8 @@
let BASE_URL
import store from "@/store/index.js"
// 环境
// let env = "dev"
let env = "prod"
let env = "dev"
// let env = "prod"
let HTTP_REQUEST_URL

View File

@ -2,8 +2,8 @@
"name" : "养殖溯源",
"appid" : "__UNI__C509A32",
"description" : "",
"versionName" : "1.0.4",
"versionCode" : 104,
"versionName" : "1.0.5",
"versionCode" : 105,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -1,11 +1,11 @@
{
"hash": "0135f122",
"browserHash": "87492cc7",
"hash": "fd4d44ea",
"browserHash": "3462207e",
"optimized": {
"uview-plus": {
"src": "../../uview-plus/index.js",
"file": "uview-plus.js",
"fileHash": "d1af0ff5",
"fileHash": "ee10395b",
"needsInterop": false
}
},

View File

@ -1 +1,3 @@
{"type":"module"}
{
"type": "module"
}

View File

@ -10,7 +10,7 @@
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/massif",
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页",
@ -471,7 +471,7 @@
"backgroundColor": "#FFFFFF",
// "iconWidth": "40px",
"list": [{
"pagePath": "pages/index/massif",
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/main/index/sy.png",
"selectedIconPath": "static/main/index/sydj.png"

View File

@ -558,7 +558,7 @@
uni.hideLoading()
store.dispatch('changeTabbar', 0)
uni.switchTab({
url: '/pages/index/massif'
url: '/pages/index/index'
})
// console.log(store.state.tabbrIndex, "tabbar")
uni.$u.toast('登录成功');

View File

@ -32,7 +32,7 @@
</view>
<view class="" style="margin-top: -5rpx;">
<Myindex url='/pages/index/massif' />
<Myindex url='/pages/index/index' />
</view>
</view>
</view>

View File

@ -9,7 +9,7 @@
牲畜管理
</view>
<view class="btn" style="margin-top: -5rpx;">
<Myindex url='/pages/index/massif' />
<Myindex url='/pages/index/index' />
</view>
</view>
</view>

View File

@ -12,7 +12,7 @@
<view class="btn" style="margin-top: -5rpx;">
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;"
@click="navTo('/pages/jump/addJump')"></u-icon>
<Myindex url='/pages/index/massif' />
<Myindex url='/pages/index/index' />
</view>
</view>
</view>

View File

@ -11,7 +11,7 @@
</view>
<view class="btn" style="margin-top: -5rpx;">
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;" @click="navTo('/pages/leave/addLeave')"></u-icon>
<Myindex url='/pages/index/massif' />
<Myindex url='/pages/index/index' />
</view>
</view>
</view>

View File

@ -11,7 +11,7 @@
</view>
<view class="btn" style="margin-top: -5rpx;">
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;" @click="navTo('/pages/plantAdmin/addHouse')"></u-icon>
<Myindex url='/pages/index/massif' />
<Myindex url='/pages/index/index' />
</view>
</view>
</view>

View File

@ -12,7 +12,7 @@
<view class="btn" style="margin-top: -5rpx;">
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;"
@click="show=true"></u-icon>
<Myindex url='/pages/index/massif' />
<Myindex url='/pages/index/index' />
</view>
</view>
</view>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7,8 +7,8 @@
"id": "__UNI__C509A32",
"name": "养殖溯源",
"version": {
"name": "1.0.4",
"code": 104
"name": "1.0.5",
"code": 105
},
"description": "",
"developer": {
@ -131,7 +131,7 @@
"uni-app": {
"control": "uni-v3",
"vueVersion": "3",
"compilerVersion": "3.99",
"compilerVersion": "4.08",
"nvueCompiler": "uni-app",
"renderer": "auto",
"nvue": {
@ -155,7 +155,7 @@
"backgroundColor": "#FFFFFF",
"list": [
{
"pagePath": "pages/index/massif",
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/static/main/index/sy.png",
"selectedIconPath": "/static/main/index/sydj.png"

File diff suppressed because one or more lines are too long