This commit is contained in:
parent
2b2b4c0f88
commit
f991263979
|
@ -6,8 +6,8 @@ let VUE_APP_WS_URL = `ws://${location.hostname}?type=user`
|
||||||
let openPlantGrass = '-openPlantGrass-'
|
let openPlantGrass = '-openPlantGrass-'
|
||||||
|
|
||||||
// 网络接口修改此字符 小程序域名要求https
|
// 网络接口修改此字符 小程序域名要求https
|
||||||
let httpApi = 'http://many.shop.lo' //测试
|
// let httpApi = 'http://many.shop.lo' //测试
|
||||||
// let httpApi = 'https://plus.hwms.shop' //生产
|
let httpApi = 'https://plus.hwms.shop' //生产
|
||||||
|
|
||||||
// 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer. .net
|
// 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer. .net
|
||||||
// let wsApi = 'ws://192.168.3.20:8324'
|
// let wsApi = 'ws://192.168.3.20:8324'
|
||||||
|
|
|
@ -85,8 +85,11 @@
|
||||||
"path": "pages/shop/index",
|
"path": "pages/shop/index",
|
||||||
"style": {
|
"style": {
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarTitleText": "商家联盟"
|
"navigationStyle": "custom",
|
||||||
|
// "navigationBarTitleText": "商家联盟",
|
||||||
|
"app-plus": {
|
||||||
|
"scrollIndicator": false //禁用原生导航栏
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="top-tab">
|
<view class="top-tab" :style="`padding-top:`+navtop">
|
||||||
<view class="tab-location">
|
<view class="tab-location">
|
||||||
深圳
|
深圳
|
||||||
<view class="iconfont icon-dingwei"></view>
|
<view class="iconfont icon-dingwei"></view>
|
||||||
|
@ -11,8 +11,11 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="content-map" >
|
<view class="content-map" >
|
||||||
<map class="map" :latitude="22.547" :longitude="114.085947"></map>
|
<map class="map" :latitude="22.547" :longitude="114.085947"></map>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="content-type">
|
<view class="content-type">
|
||||||
|
<!-- <cover-image src="../annex/static/vipBg.png" style="position: absolute;
|
||||||
|
top: -20px;"></cover-image> -->
|
||||||
<view class="type-item">
|
<view class="type-item">
|
||||||
<image class="type-item-img" src="@/static/images/shop/tab1.png" mode=""></image>
|
<image class="type-item-img" src="@/static/images/shop/tab1.png" mode=""></image>
|
||||||
<text class="type-item-text">餐饮美食</text>
|
<text class="type-item-text">餐饮美食</text>
|
||||||
|
@ -103,6 +106,7 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { getNavigation } from '@/api/public.js';
|
import { getNavigation } from '@/api/public.js';
|
||||||
import customTab from '@/components/customTab';
|
import customTab from '@/components/customTab';
|
||||||
export default {
|
export default {
|
||||||
|
@ -115,6 +119,7 @@
|
||||||
activeRouter: '',
|
activeRouter: '',
|
||||||
tabList:[],
|
tabList:[],
|
||||||
current:0,
|
current:0,
|
||||||
|
navtop:0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
|
@ -123,6 +128,8 @@
|
||||||
this.getNav();
|
this.getNav();
|
||||||
},
|
},
|
||||||
created(options) {
|
created(options) {
|
||||||
|
let statusBarHeight= uni.getSystemInfoSync().statusBarHeight+"px";
|
||||||
|
this.navtop=statusBarHeight;
|
||||||
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
|
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
|
||||||
let curRoute = routes[routes.length - 1].route //获取当前页面路由
|
let curRoute = routes[routes.length - 1].route //获取当前页面路由
|
||||||
this.activeRouter = '/' + curRoute
|
this.activeRouter = '/' + curRoute
|
||||||
|
|
Loading…
Reference in New Issue