This commit is contained in:
yangtao 2024-03-24 18:34:07 +08:00
parent 2b2b4c0f88
commit f991263979
3 changed files with 15 additions and 5 deletions

View File

@ -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'

View File

@ -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 //
}
} }
}, },
{ {

View File

@ -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