Browse Source

修改首页 添加应用按钮

master
邓宏 11 months ago
parent
commit
b8e824eb85
  1. 6
      pages/home/app.vue
  2. 7
      pages/home/index.vue
  3. 11
      router/home.js
  4. 11
      router/patrolGarden.js
  5. 8
      uni.scss

6
pages/patrolGarden/app.vue → pages/home/app.vue

@ -48,15 +48,15 @@
<view class="card"> <view class="card">
<view class="_title">所有应用</view> <view class="_title">所有应用</view>
<view class="content"> <view class="content">
<view> <view @click="$u.route({url:'pages/stock/mana'})">
<image src="/static/patrolGarden/inventory.svg"/> <image src="/static/patrolGarden/inventory.svg"/>
<text class="name">库存</text> <text class="name">库存</text>
</view> </view>
<view> <view @click="$u.route({url:'pages/purchase/apply'})">
<image src="/static/patrolGarden/procure.svg"/> <image src="/static/patrolGarden/procure.svg"/>
<text class="name">采购</text> <text class="name">采购</text>
</view> </view>
<view> <view @click="$u.route({url:'/pages/patrolGarden/record'})">
<image src="/static/patrolGarden/tour.svg"/> <image src="/static/patrolGarden/tour.svg"/>
<text class="name">巡园</text> <text class="name">巡园</text>
</view> </view>

7
pages/home/index.vue

@ -281,13 +281,12 @@
</view> </view>
<text class="line"/> <text class="line"/>
<text class="plant-nongzi" style="margin-right:64rpx;" @click="$u.route({url:'pages/stock/mana'})">库存</text> <text class="PA-yingyong" @click="$u.route({url:'pages/home/app'})">应用</text>
<text class="plant-caigou" @click="$u.route({url:'pages/purchase/apply'})">采购</text> <!-- <text class="plant-nongzi" style="margin-right:64rpx;" @click="$u.route({url:'pages/stock/mana'})">库存</text>
<text class="plant-caigou" @click="$u.route({url:'pages/purchase/apply'})">采购</text> -->
</view> </view>
</view> </view>
<view @click="$u.route({url:'/pages/patrolGarden/record'})">巡园记录</view>
<view style="display:flex;"> <view style="display:flex;">
<view class="card mana"> <view class="card mana">
<view class="title"> <view class="title">

11
router/home.js

@ -17,6 +17,17 @@ module.exports=[
} }
} }
}, },
{
path:"pages/home/app",
style:{
navigationBarTitleText:"应用",
navigationBarBackgroundColor:"#10C176",
navigationBarTextStyle:"white",
"app-plus":{
"titleNView":true
}
}
},
{ {
path:"pages/home/my", path:"pages/home/my",
style:{ style:{

11
router/patrolGarden.js

@ -30,17 +30,6 @@ module.exports=[
} }
} }
}, },
{
path:"pages/patrolGarden/app",
style:{
navigationBarTitleText:"巡园应用",
navigationBarBackgroundColor:"#10C176",
navigationBarTextStyle:"white",
"app-plus":{
"titleNView":true
}
}
},
{ {
path:"pages/patrolGarden/abnoReport", path:"pages/patrolGarden/abnoReport",
style:{ style:{

8
uni.scss

@ -85,6 +85,14 @@ $uni-font-size-paragraph:15px;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
@import url('https://at.alicdn.com/t/c/font_4432735_8j85lsm6nhc.css');
[class*=PA-]{
font-family: "plantApp" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.card{ .card{
background:#fff; background:#fff;

Loading…
Cancel
Save