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-'
// 网络接口修改此字符 小程序域名要求https
let httpApi = 'http://many.shop.lo' //测试
// let httpApi = 'https://plus.hwms.shop' //生产
// let httpApi = 'http://many.shop.lo' //测试
let httpApi = 'https://plus.hwms.shop' //生产
// 聊天接口修改此字符 小程序聊天要求wss 例如wss://mer. .net
// let wsApi = 'ws://192.168.3.20:8324'

View File

@ -85,8 +85,11 @@
"path": "pages/shop/index",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": "商家联盟"
"navigationStyle": "custom",
// "navigationBarTitleText": "商家联盟",
"app-plus": {
"scrollIndicator": false //
}
}
},
{

View File

@ -1,7 +1,7 @@
<template>
<view class="content">
<view class="top-tab">
<view class="top-tab" :style="`padding-top:`+navtop">
<view class="tab-location">
深圳
<view class="iconfont icon-dingwei"></view>
@ -11,8 +11,11 @@
</view>
<view class="content-map" >
<map class="map" :latitude="22.547" :longitude="114.085947"></map>
</view>
<view class="content-type">
<!-- <cover-image src="../annex/static/vipBg.png" style="position: absolute;
top: -20px;"></cover-image> -->
<view class="type-item">
<image class="type-item-img" src="@/static/images/shop/tab1.png" mode=""></image>
<text class="type-item-text">餐饮美食</text>
@ -103,6 +106,7 @@
</view>
</template>
<script>
import { getNavigation } from '@/api/public.js';
import customTab from '@/components/customTab';
export default {
@ -115,6 +119,7 @@
activeRouter: '',
tabList:[],
current:0,
navtop:0,
}
},
onLoad(){
@ -123,6 +128,8 @@
this.getNav();
},
created(options) {
let statusBarHeight= uni.getSystemInfoSync().statusBarHeight+"px";
this.navtop=statusBarHeight;
let routes = getCurrentPages(); //
let curRoute = routes[routes.length - 1].route //
this.activeRouter = '/' + curRoute