Browse Source

修改底部tab栏,新增资讯tab页

zys
杨豪 3 years ago
parent
commit
bc960c8f91
  1. 4
      App.vue
  2. 2
      config/index.js
  3. 5
      manifest.json
  4. 12
      pages.json
  5. 2
      pages/demandHall/index.vue
  6. 4
      pages/home/index.vue
  7. 4
      pages/home/index2.vue
  8. 11
      pages/information/index.vue
  9. 2
      pages/life/index.vue
  10. 2
      pages/shop/GoodsClass/index.vue
  11. 4
      pages/shop/GoodsCon/index.vue
  12. 2
      pages/user/index.vue

4
App.vue

@ -7,7 +7,7 @@ export default {
var that = this; //
this.setMenuHeight();
this.autoUpdate();
uni.hideTabBar()
// uni.hideTabBar()
},
globalData: {
baseURL: VUE_APP_API_URL+ '/',
@ -27,7 +27,7 @@ export default {
onShow(e) {
this.globalData.scene = e.scene
//tabbar
uni.hideTabBar();
// uni.hideTabBar();
var query = {};
if (e.query.q) {
//storage

2
config/index.js

@ -1,7 +1,7 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
// export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api'
// export const VUE_APP_API_URL = 'http://192.168.0.111:8092/api'
// export const VUE_APP_API_URL = 'http://10.11.32.103:8092/api'
export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'

5
manifest.json

@ -69,5 +69,10 @@
},
"mp-toutiao" : {
"usingComponents" : true
},
"h5" : {
"router" : {
"mode" : "history"
}
}
}

12
pages.json

@ -409,6 +409,12 @@
"style": {
"navigationBarTitleText": "退货列表"
}
},
{
"path": "pages/information/index",
"style": {
"navigationBarTitleText": "资讯广场"
}
}
],
"tabBar": {
@ -434,6 +440,12 @@
"iconPath": "/static/tabbarComponent/icon/tab3.png",
"selectedIconPath": "/static/tabbarComponent/icon/tab3-a.png"
},
{
"pagePath": "pages/information/index",
"text": "资讯",
"iconPath": "/static/tabbarComponent/icon/tab3.png",
"selectedIconPath": "/static/tabbarComponent/icon/tab3-a.png"
},
{
"pagePath": "pages/user/index",
"text": "我的",

2
pages/demandHall/index.vue

@ -148,7 +148,7 @@
</view>
</view>
</view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar>
<!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view>
</template>

4
pages/home/index.vue

@ -135,7 +135,7 @@
</u-waterfall>
<!-- <u-loadmore bg-color="rgb(240, 240, 240)" :status="loadStatus" @loadmore="addRandomData"></u-loadmore> -->
</view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar>
<!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view>
</template>
<script>
@ -208,7 +208,7 @@ export default {
that.$refs.skeleton.readyAction();
},
onLoad() {
uni.hideTabBar()
// uni.hideTabBar()
},
mounted: function() {
this.getIndexData()

4
pages/home/index2.vue

@ -152,7 +152,7 @@
<text>更多内容去供需大厅</text>
<image src="/static/images/home/arrow-r.png"></image>
</view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar>
<!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view>
</template>
@ -231,7 +231,7 @@ export default {
}
},
onLoad() {
uni.hideTabBar();
// uni.hideTabBar();
// app.globalData.editTabbar();
this.pagePath = '/pages/home/index'
this.getCagetoryList();

11
pages/information/index.vue

@ -0,0 +1,11 @@
<template>
<view class="">
information
</view>
</template>
<script>
</script>
<style>
</style>

2
pages/life/index.vue

@ -69,7 +69,7 @@
</u-waterfall>
<u-loadmore bg-color="rgb(240, 240, 240)" :status="loadStatus" @loadmore="addRandomData"></u-loadmore>
</view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar>
<!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view>
</template>
<script>

2
pages/shop/GoodsClass/index.vue

@ -79,7 +79,7 @@
</view>
</view>
<!-- <view style="height:100rpx;"></view> -->
<tabbar :pagePath="pagePath"></tabbar>
<!-- <tabbar :pagePath="pagePath"></tabbar> -->
</view>
</template>
<script>

4
pages/shop/GoodsCon/index.vue

@ -167,8 +167,8 @@
</view>
<text>购物车</text>
</view>
<view class="bnt acea-row">
<view class="joinCart" @click="joinCart">
<view class="bnt acea-row row-right">
<view class="joinCart" @click="joinCart" v-if="!storeInfo.virtualProductId">
<text>加入购物车</text>
</view>
<view class="buy" @click="tapBuy">

2
pages/user/index.vue

@ -214,7 +214,7 @@
</view>
</view>
</view>
<tabbar :current="currentTabIndex" tabBarClick="click"></tabbar>
<!-- <tabbar :current="currentTabIndex" tabBarClick="click"></tabbar> -->
</view>
</template>

Loading…
Cancel
Save