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; // var that = this; //
this.setMenuHeight(); this.setMenuHeight();
this.autoUpdate(); this.autoUpdate();
uni.hideTabBar() // uni.hideTabBar()
}, },
globalData: { globalData: {
baseURL: VUE_APP_API_URL+ '/', baseURL: VUE_APP_API_URL+ '/',
@ -27,7 +27,7 @@ export default {
onShow(e) { onShow(e) {
this.globalData.scene = e.scene this.globalData.scene = e.scene
//tabbar //tabbar
uni.hideTabBar(); // uni.hideTabBar();
var query = {}; var query = {};
if (e.query.q) { if (e.query.q) {
//storage //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 = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.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.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 = 'https://cloud.api.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api' // export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'

5
manifest.json

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

12
pages.json

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

2
pages/demandHall/index.vue

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

4
pages/home/index.vue

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

4
pages/home/index2.vue

@ -152,7 +152,7 @@
<text>更多内容去供需大厅</text> <text>更多内容去供需大厅</text>
<image src="/static/images/home/arrow-r.png"></image> <image src="/static/images/home/arrow-r.png"></image>
</view> </view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> <!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view> </view>
</template> </template>
@ -231,7 +231,7 @@ export default {
} }
}, },
onLoad() { onLoad() {
uni.hideTabBar(); // uni.hideTabBar();
// app.globalData.editTabbar(); // app.globalData.editTabbar();
this.pagePath = '/pages/home/index' this.pagePath = '/pages/home/index'
this.getCagetoryList(); 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-waterfall>
<u-loadmore bg-color="rgb(240, 240, 240)" :status="loadStatus" @loadmore="addRandomData"></u-loadmore> <u-loadmore bg-color="rgb(240, 240, 240)" :status="loadStatus" @loadmore="addRandomData"></u-loadmore>
</view> </view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> <!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view> </view>
</template> </template>
<script> <script>

2
pages/shop/GoodsClass/index.vue

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

4
pages/shop/GoodsCon/index.vue

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

2
pages/user/index.vue

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

Loading…
Cancel
Save