Commit 12b47549 by zhangzhen

细节优化

parent b5cecb6f
<template>
<view class="store-list-content">
<scroll-view class="scroll-view" scroll-y="true">
<view class="store-list">
<view class="flex-col" v-for="(val,i) in list" :key="i" @tap.stop="onNavToHome(val)">
<view class="flex-row">
......@@ -24,14 +26,15 @@
<view class="flex-between part-title">
<view class='cu-tag radius line-pink'>距离{{Number(val.distance).toFixed(2)}}km</view>
<view class="location">
<button class="cu-btn bg-pink" >去预定</button>
<button class="cu-btn bg-pink">去预定</button>
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</template>
<script>
......@@ -52,7 +55,7 @@
return {
assetsPath: config.assetsPath,
list: [],
storeTypeEnum:{},
storeTypeEnum: {},
};
},
watch: {
......@@ -65,14 +68,14 @@
},
mounted() {
let dicts = JSON.parse(uni.getStorageSync('dicts'))
this.storeTypeEnum = getDictItem(dicts,"store_type");
this.storeTypeEnum = getDictItem(dicts, "store_type");
},
methods: {
onLoading() {
this.list = this.value;
},
onNavToHome(val){
this.$emit("change",val.id)
onNavToHome(val) {
this.$emit("change", val.id)
},
onPreview(item) {
uni.previewImage({
......@@ -86,7 +89,7 @@
longitude: Number(val.longitude),
scale: 18,
name: val.address,
address:val.address,
address: val.address,
success: (res) => {
console.log(res)
},
......@@ -100,10 +103,24 @@
</script>
<style lang="scss" scoped>
.store-list-content{
width: 100%;
height: 100%;
}
.scroll-view {
position: relative;
width: 100%;
height: 100%;
}
.store-list {
position: absolute;
top: 0;
left: 2%;
display: flex;
flex-direction: column;
width: 100%;
width: 96%;
>.flex-col {
display: flex;
flex-direction: column;
......@@ -114,6 +131,7 @@
overflow: hidden;
padding: 12upx;
margin: 12upx 0;
.room-img-box {
display: flex;
width: 200upx;
......@@ -121,6 +139,7 @@
border-radius: 12upx;
overflow: hidden;
margin: 0 20upx 0 0;
image {
height: 100%;
}
......@@ -196,12 +215,14 @@
}
}
}
.nav-icon{
.nav-icon {
display: flex;
justify-content: center;
align-items: center;
width: 80upx;
image{
image {
display: block;
width: 100%;
height: auto;
......
......@@ -183,11 +183,11 @@
</view>
</view>
<view class="tip-text">
<text class="text-title text-lg">本店当前时段所有包厢已被占用,您可以预约本店的其他时段,或者预定凑角附近的其它门店。</text>
<text class="text-title text-lg">本店当前时段所有包厢已被预定,您可以预约本店的其他时段,或者预定凑角附近的其它门店。</text>
</view>
<!-- 展示所有房间列表 -->
<view class="store-box">
<StoreList v-model="popStoreList" @change="onStoreChage"></StoreList>
<StoreList style="width: 100%;" v-model="popStoreList" @change="onStoreChage"></StoreList>
</view>
</view>
</uni-popup>
......
......@@ -1899,10 +1899,17 @@
font-size: 32upx;
}
.line-black{
border: 1px solid #e03997;
color: #e03997;
}
.line-black::after{
border-color: transparent;
}
.line-pink {
display: flex;
align-items: center;
// border-color: #e03997;
.cuIcon-edit {
margin-bottom: 7upx;
margin-left: 12upx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment