Browse Source

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

zys
杨豪 3 years ago
parent
commit
bc960c8f91
  1. 4
      App.vue
  2. 2
      config/index.js
  3. 147
      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'

147
manifest.json

@ -1,73 +1,78 @@
{
"name": "zhaoshangMiniApp",
"appid": "",
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
"app-plus": {
"usingComponents": true,
"nvueCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
"modules": {},
"distribute": {
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"ios": {},
"sdkConfigs": {}
}
},
"quickapp": {},
"mp-weixin": {
"appid": "wx5348e39dcbbefe1e",
"setting": {
"urlCheck": false
},
"usingComponents": true,
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"plugins": {}
},
"mp-alipay": {
"usingComponents": true
},
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao": {
"usingComponents": true
}
"name" : "zhaoshangMiniApp",
"appid" : "",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
"modules" : {},
"distribute" : {
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"ios" : {},
"sdkConfigs" : {}
}
},
"quickapp" : {},
"mp-weixin" : {
"appid" : "wx5348e39dcbbefe1e",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "你的位置信息将用于小程序位置接口的效果展示"
}
},
"plugins" : {}
},
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true
},
"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