add detail

This commit is contained in:
yangtao 2024-03-24 15:41:18 +08:00
parent 84a6e02dab
commit 736f1b9210
3 changed files with 15 additions and 50 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

@ -92,7 +92,6 @@
.content .content-list .list-container .list-item .list-item-left image{ .content .content-list .list-container .list-item .list-item-left image{
width: 160rpx; width: 160rpx;
height: 160rpx; height: 160rpx;
border: solid 1px red;
border-radius: 20rpx; border-radius: 20rpx;
} }
.content .content-list .list-container .list-item .list-item-right{ .content .content-list .list-container .list-item .list-item-right{

View File

@ -55,15 +55,15 @@
</view> </view>
<view class="content-list"> <view class="content-list">
<view class="list-tab"> <view class="list-tab">
<view class="action">全部商家</view> <view :class="current==0?'action':''" @click="selectCurrent(0)">全部商家</view>
<view>附近商家</view> <view :class="current==1?'action':''" @click="selectCurrent(1)">附近商家</view>
</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">
<image src="../users/static/images/level_avatar.png" mode=""></image> <image src="../users/static/images/level_avatar.png" mode=""></image>
</view> </view>
<view class="list-item-right"> <view class="list-item-right" @click="navtoDetail()">
<view class="item-title"> <view class="item-title">
特色餐厅福田店 特色餐厅福田店
</view> </view>
@ -97,55 +97,21 @@
}, },
data(){ data(){
return{ return{
// tabList:[ tabList:[],
// { current:0,
// url:'@/static/images/shop/tab1/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab2/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab3/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab4/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab5/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab6/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab7/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab8/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab9/png',
// name:''
// },
// {
// url:'@/static/images/shop/tab10/png',
// name:''
// },
// ]
} }
}, },
onLoad(){ onLoad(){
this.init();
this.loadScript();
}, },
methods:{ methods:{
selectCurrent(val){
this.current=val;
},
navtoDetail(){
uni.navigateTo({
url:'/pages/shop_details/index'
})
}
} }
} }
</script> </script>