规范小程序首页为/pages/index/index.vue
This commit is contained in:
parent
60f72cf533
commit
25b615903d
|
@ -51,7 +51,7 @@
|
||||||
store.dispatch('changeTabbar', e)
|
store.dispatch('changeTabbar', e)
|
||||||
if (e == 0) {
|
if (e == 0) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/massif'
|
url: '/pages/index/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (e == 1) {
|
if (e == 1) {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
let BASE_URL
|
let BASE_URL
|
||||||
import store from "@/store/index.js"
|
import store from "@/store/index.js"
|
||||||
// 环境
|
// 环境
|
||||||
// let env = "dev"
|
let env = "dev"
|
||||||
let env = "prod"
|
// let env = "prod"
|
||||||
|
|
||||||
|
|
||||||
let HTTP_REQUEST_URL
|
let HTTP_REQUEST_URL
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "养殖溯源",
|
"name" : "养殖溯源",
|
||||||
"appid" : "__UNI__C509A32",
|
"appid" : "__UNI__C509A32",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.4",
|
"versionName" : "1.0.5",
|
||||||
"versionCode" : 104,
|
"versionCode" : 105,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"hash": "0135f122",
|
"hash": "fd4d44ea",
|
||||||
"browserHash": "87492cc7",
|
"browserHash": "3462207e",
|
||||||
"optimized": {
|
"optimized": {
|
||||||
"uview-plus": {
|
"uview-plus": {
|
||||||
"src": "../../uview-plus/index.js",
|
"src": "../../uview-plus/index.js",
|
||||||
"file": "uview-plus.js",
|
"file": "uview-plus.js",
|
||||||
"fileHash": "d1af0ff5",
|
"fileHash": "ee10395b",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
{"type":"module"}
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
{
|
{
|
||||||
"path": "pages/index/massif",
|
"path": "pages/index/index",
|
||||||
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "首页",
|
"navigationBarTitleText": "首页",
|
||||||
|
@ -471,7 +471,7 @@
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#FFFFFF",
|
||||||
// "iconWidth": "40px",
|
// "iconWidth": "40px",
|
||||||
"list": [{
|
"list": [{
|
||||||
"pagePath": "pages/index/massif",
|
"pagePath": "pages/index/index",
|
||||||
"text": "首页",
|
"text": "首页",
|
||||||
"iconPath": "static/main/index/sy.png",
|
"iconPath": "static/main/index/sy.png",
|
||||||
"selectedIconPath": "static/main/index/sydj.png"
|
"selectedIconPath": "static/main/index/sydj.png"
|
||||||
|
|
|
@ -558,7 +558,7 @@
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
store.dispatch('changeTabbar', 0)
|
store.dispatch('changeTabbar', 0)
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/massif'
|
url: '/pages/index/index'
|
||||||
})
|
})
|
||||||
// console.log(store.state.tabbrIndex, "tabbar")
|
// console.log(store.state.tabbrIndex, "tabbar")
|
||||||
uni.$u.toast('登录成功');
|
uni.$u.toast('登录成功');
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="" style="margin-top: -5rpx;">
|
<view class="" style="margin-top: -5rpx;">
|
||||||
<Myindex url='/pages/index/massif' />
|
<Myindex url='/pages/index/index' />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
|
@ -9,7 +9,7 @@
|
||||||
牲畜管理
|
牲畜管理
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" style="margin-top: -5rpx;">
|
<view class="btn" style="margin-top: -5rpx;">
|
||||||
<Myindex url='/pages/index/massif' />
|
<Myindex url='/pages/index/index' />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<view class="btn" style="margin-top: -5rpx;">
|
<view class="btn" style="margin-top: -5rpx;">
|
||||||
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;"
|
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;"
|
||||||
@click="navTo('/pages/jump/addJump')"></u-icon>
|
@click="navTo('/pages/jump/addJump')"></u-icon>
|
||||||
<Myindex url='/pages/index/massif' />
|
<Myindex url='/pages/index/index' />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" style="margin-top: -5rpx;">
|
<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>
|
<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>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" style="margin-top: -5rpx;">
|
<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>
|
<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>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<view class="btn" style="margin-top: -5rpx;">
|
<view class="btn" style="margin-top: -5rpx;">
|
||||||
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;"
|
<u-icon name="plus" color="#fff" size="40rpx" style="margin-right: 20rpx;"
|
||||||
@click="show=true"></u-icon>
|
@click="show=true"></u-icon>
|
||||||
<Myindex url='/pages/index/massif' />
|
<Myindex url='/pages/index/index' />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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
|
@ -7,8 +7,8 @@
|
||||||
"id": "__UNI__C509A32",
|
"id": "__UNI__C509A32",
|
||||||
"name": "养殖溯源",
|
"name": "养殖溯源",
|
||||||
"version": {
|
"version": {
|
||||||
"name": "1.0.4",
|
"name": "1.0.5",
|
||||||
"code": 104
|
"code": 105
|
||||||
},
|
},
|
||||||
"description": "",
|
"description": "",
|
||||||
"developer": {
|
"developer": {
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
"uni-app": {
|
"uni-app": {
|
||||||
"control": "uni-v3",
|
"control": "uni-v3",
|
||||||
"vueVersion": "3",
|
"vueVersion": "3",
|
||||||
"compilerVersion": "3.99",
|
"compilerVersion": "4.08",
|
||||||
"nvueCompiler": "uni-app",
|
"nvueCompiler": "uni-app",
|
||||||
"renderer": "auto",
|
"renderer": "auto",
|
||||||
"nvue": {
|
"nvue": {
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#FFFFFF",
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/massif",
|
"pagePath": "pages/index/index",
|
||||||
"text": "首页",
|
"text": "首页",
|
||||||
"iconPath": "/static/main/index/sy.png",
|
"iconPath": "/static/main/index/sy.png",
|
||||||
"selectedIconPath": "/static/main/index/sydj.png"
|
"selectedIconPath": "/static/main/index/sydj.png"
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue