This commit is contained in:
yangtao 2024-03-24 17:43:00 +08:00
parent 31ff647fdf
commit 9707fd2963
6 changed files with 45 additions and 7 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

@ -22,7 +22,7 @@
</view> </view>
<view class="type-item"> <view class="type-item">
<image class="type-item-img" src="@/static/images/shop/tab3.png" mode=""></image> <image class="type-item-img" src="@/static/images/shop/tab3.png" mode=""></image>
<text class="type-item-text">娱乐</text> <text class="type-item-text">娱乐</text>
</view> </view>
<view class="type-item"> <view class="type-item">
<image class="type-item-img" src="@/static/images/shop/tab4.png" mode=""></image> <image class="type-item-img" src="@/static/images/shop/tab4.png" mode=""></image>
@ -45,7 +45,7 @@
<text class="type-item-text">汽车服务</text> <text class="type-item-text">汽车服务</text>
</view> </view>
<view class="type-item"> <view class="type-item">
<image class="type-item-img" src="@/static/images/shop/tab8.png" mode=""></image> <image class="type-item-img" src="@/static/images/shop/tab9.png" mode=""></image>
<text class="type-item-text">家装</text> <text class="type-item-text">家装</text>
</view> </view>
<view class="type-item"> <view class="type-item">
@ -60,8 +60,17 @@
</view> </view>
<view class="list-container"> <view class="list-container">
<view class="list-item" v-for="(item,index) in 20" :key='index'> <view class="list-item" v-for="(item,index) in 20" :key='index'>
<view class="list-item-left"> <view class="list-item-left" v-if="index==1">
<image src="../users/static/images/level_avatar.png" mode=""></image> <image src="@/static/images/shop/1.jpg" mode=""></image>
</view>
<view class="list-item-left" v-else-if="index==2">
<image src="@/static/images/shop/2.jpg" mode=""></image>
</view>
<view class="list-item-left" v-else-if="index==3">
<image src="@/static/images/shop/3.png" mode=""></image>
</view>
<view class="list-item-left" v-else>
<image src="@/static/images/shop/4.jpg" mode=""></image>
</view> </view>
<view class="list-item-right" @click="navtoDetail()"> <view class="list-item-right" @click="navtoDetail()">
<view class="item-title"> <view class="item-title">
@ -88,22 +97,51 @@
</view> </view>
</view> </view>
</view> </view>
<!--自定义底部tab栏-->
<customTab :newData="newData" :activeRouter="activeRouter"></customTab>
</view> </view>
</template> </template>
<script> <script>
import { getNavigation } from '@/api/public.js';
import customTab from '@/components/customTab';
export default { export default {
components:{ components:{
customTab,
}, },
data(){ data(){
return{ return{
newData: {},
activeRouter: '',
tabList:[], tabList:[],
current:0, current:0,
} }
}, },
onLoad(){ onLoad(){
}, },
onShow(){
this.getNav();
},
created(options) {
let routes = getCurrentPages(); //
let curRoute = routes[routes.length - 1].route //
this.activeRouter = '/' + curRoute
},
methods:{ methods:{
getNav(){
getNavigation().then(res => {
this.newData = res.data
if (this.newData.status && this.newData.status.status) {
uni.hideTabBar()
} else {
uni.showTabBar()
}
})
},
created(options) {
let routes = getCurrentPages(); //
let curRoute = routes[routes.length - 1].route //
this.activeRouter = '/' + curRoute
},
selectCurrent(val){ selectCurrent(val){
this.current=val; this.current=val;
}, },

BIN
static/images/shop/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
static/images/shop/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
static/images/shop/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

BIN
static/images/shop/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB