|
@@ -1,23 +1,24 @@
|
|
<template>
|
|
<template>
|
|
<view class="content">
|
|
<view class="content">
|
|
-
|
|
|
|
- <view class="">
|
|
|
|
- <view style='margin:20rpx;'>
|
|
|
|
|
|
+ <view style="padding: 20rpx;">
|
|
|
|
+ <view>
|
|
<u-search placeholder="搜索美食" v-model="keyword" clearabled :show-action='false'></u-search>
|
|
<u-search placeholder="搜索美食" v-model="keyword" clearabled :show-action='false'></u-search>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="head flex">
|
|
<view class="head flex">
|
|
<image :src="dataObj.coverImage" style="width:60rpx;height:60rpx;border-radius:50%;"></image>
|
|
<image :src="dataObj.coverImage" style="width:60rpx;height:60rpx;border-radius:50%;"></image>
|
|
<view class="right">
|
|
<view class="right">
|
|
{{dataObj.shopNames}}
|
|
{{dataObj.shopNames}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="wrap" v-if="dataObj.dishClassifyInfoList&&dataObj.dishClassifyInfoList.length>0">
|
|
|
|
- <view class="item1" v-for="item in dataObj.dishClassifyInfoList" v-if="item.foodDishesInfoList&&item.foodDishesInfoList.length>0">
|
|
|
|
|
|
+ <view class="wrap1" v-if="dataObj.dishClassifyInfoList&&dataObj.dishClassifyInfoList.length>0">
|
|
|
|
+ <view class="item1" v-for="item in dataObj.dishClassifyInfoList"
|
|
|
|
+ v-if="item.foodDishesInfoList&&item.foodDishesInfoList.length>0">
|
|
<view style='font-weight:600;' class="row">
|
|
<view style='font-weight:600;' class="row">
|
|
{{item.classifyName}}
|
|
{{item.classifyName}}
|
|
</view>
|
|
</view>
|
|
- <view style='flex-wrap: wrap;' class="flex" v-if="item.foodDishesInfoList&&item.foodDishesInfoList.length>0">
|
|
|
|
|
|
+ <view style='flex-wrap: wrap;' class="flex"
|
|
|
|
+ v-if="item.foodDishesInfoList&&item.foodDishesInfoList.length>0">
|
|
<view class="item2" v-for="item1 in item.foodDishesInfoList">
|
|
<view class="item2" v-for="item1 in item.foodDishesInfoList">
|
|
<image :src="item1.dishImage" mode="" class="img"></image>
|
|
<image :src="item1.dishImage" mode="" class="img"></image>
|
|
<view class="bottom">
|
|
<view class="bottom">
|
|
@@ -31,7 +32,7 @@
|
|
暂无价格
|
|
暂无价格
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -42,9 +43,9 @@
|
|
<text>营业时间:</text>
|
|
<text>营业时间:</text>
|
|
<text>{{dataObj.startDate}}~{{dataObj.startDate}}</text>
|
|
<text>{{dataObj.startDate}}~{{dataObj.startDate}}</text>
|
|
</view>
|
|
</view>
|
|
- <view @click='toTel' v-if='dataObj.contactsPhone' class="right flex align-item-center">
|
|
|
|
- <view style='position:relative;top:4rpx;'><u-icon name="phone" color='#fff'></u-icon></view>
|
|
|
|
- <view>电话订餐</view>
|
|
|
|
|
|
+ <view @click='toTel' v-if='dataObj.contactsPhone' class="right flex align-item-center">
|
|
|
|
+ <view style=''><u-icon name="phone" color='#fff' size="20"></u-icon></view>
|
|
|
|
+ <view style="font-size: 36rpx;">电话订餐</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -69,26 +70,33 @@
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- toTel(){
|
|
|
|
|
|
+ toTel() {
|
|
that.$request.baseRequest('admin.tourism.phoneRecordInfo', 'add', {
|
|
that.$request.baseRequest('admin.tourism.phoneRecordInfo', 'add', {
|
|
- commonId:uni.getStorageSync("userInfo").id,
|
|
|
|
- phone:this.dataObj.contactsPhone
|
|
|
|
-
|
|
|
|
|
|
+ phoneRecordInfo: JSON.stringify({
|
|
|
|
+ commonId: uni.getStorageSync("userInfo").id,
|
|
|
|
+ phone: this.dataObj.contactsPhone
|
|
|
|
+ })
|
|
}, failres => {
|
|
}, failres => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: "none",
|
|
icon: "none",
|
|
title: failres.errmsg,
|
|
title: failres.errmsg,
|
|
duration: 3000
|
|
duration: 3000
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
}).then(res => {
|
|
}).then(res => {
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ uni.makePhoneCall({
|
|
|
|
+ phoneNumber: this.dataObj.contactsPhone, // 成功回调
|
|
|
|
+ success: (res) => {
|
|
|
|
+ console.log('调用成功!')
|
|
|
|
+ },
|
|
|
|
+ // 失败回调
|
|
|
|
+ fail: (res) => {
|
|
|
|
+ console.log('调用失败!')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
})
|
|
})
|
|
- // uni.makePhoneCall({phoneNumber: this.dataObj.contactsPhone, // 成功回调
|
|
|
|
- // success: (res) => {console.log('调用成功!') },
|
|
|
|
- // // 失败回调
|
|
|
|
- // fail: (res) => {console.log('调用失败!')}})
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
init() {
|
|
init() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -118,86 +126,95 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss">
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
page {
|
|
page {
|
|
background: #fff;
|
|
background: #fff;
|
|
}
|
|
}
|
|
|
|
|
|
.content {
|
|
.content {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
+ background: #fff;
|
|
|
|
+ padding-bottom: 200rpx;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
.head {
|
|
.head {
|
|
- padding: 20rpx;
|
|
|
|
|
|
+ padding: 20rpx 0;
|
|
|
|
|
|
.right {
|
|
.right {
|
|
margin-left: 20rpx;
|
|
margin-left: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .wrap {
|
|
|
|
- .item1{
|
|
|
|
- // margin-bottom: 20rpx;
|
|
|
|
- }
|
|
|
|
- .item1 .row{
|
|
|
|
|
|
+ .wrap1 {
|
|
|
|
+ .item1 .row {
|
|
position: relative;
|
|
position: relative;
|
|
padding-left: 20rpx;
|
|
padding-left: 20rpx;
|
|
margin: 20rpx;
|
|
margin: 20rpx;
|
|
}
|
|
}
|
|
- .item1 .row:before{
|
|
|
|
|
|
+
|
|
|
|
+ .item1 .row:before {
|
|
position: absolute;
|
|
position: absolute;
|
|
content: '';
|
|
content: '';
|
|
background: #fbb612;
|
|
background: #fbb612;
|
|
width: 6rpx;
|
|
width: 6rpx;
|
|
height: 40rpx;
|
|
height: 40rpx;
|
|
- top: 2px;
|
|
|
|
- left: 0px;
|
|
|
|
|
|
+ top: 2px;
|
|
|
|
+ left: 0px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.item2 {
|
|
.item2 {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: calc(50vw - 60rpx);
|
|
|
|
|
|
+ width: calc(50vw - 40rpx);
|
|
margin: 10rpx;
|
|
margin: 10rpx;
|
|
box-shadow: 0px 1px 2px 0px #ccc;
|
|
box-shadow: 0px 1px 2px 0px #ccc;
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
- .bottom{
|
|
|
|
|
|
+
|
|
|
|
+ .bottom {
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
- .name{
|
|
|
|
|
|
+
|
|
|
|
+ .name {
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
}
|
|
- .price{
|
|
|
|
|
|
+
|
|
|
|
+ .price {
|
|
color: #fbb612;
|
|
color: #fbb612;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.img {
|
|
.img {
|
|
- border-radius: 20rpx 20rpx 0 0 ;
|
|
|
|
- width: calc(50vw - 60rpx);
|
|
|
|
- height: calc(50vw - 60rpx);
|
|
|
|
|
|
+ border-radius: 20rpx 20rpx 0 0;
|
|
|
|
+ width: calc(50vw - 40rpx);
|
|
|
|
+ height: calc(50vw - 40rpx);
|
|
// width: 344rpx;
|
|
// width: 344rpx;
|
|
// height: 344rpx;
|
|
// height: 344rpx;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- .bottom-wrap{
|
|
|
|
|
|
+
|
|
|
|
+ .bottom-wrap {
|
|
position: fixed;
|
|
position: fixed;
|
|
width: 100vw;
|
|
width: 100vw;
|
|
bottom: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
display: flex;
|
|
- .left{
|
|
|
|
-
|
|
|
|
|
|
+ background-color: red;
|
|
|
|
+
|
|
|
|
+ .left {
|
|
|
|
+
|
|
padding: 40rpx;
|
|
padding: 40rpx;
|
|
background: #f7f4ed;
|
|
background: #f7f4ed;
|
|
width: 60vw;
|
|
width: 60vw;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
- .right{
|
|
|
|
|
|
+
|
|
|
|
+ .right {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 40rpx;
|
|
padding: 40rpx;
|
|
width: 40vw;
|
|
width: 40vw;
|
|
background: #fbb612;
|
|
background: #fbb612;
|
|
- color:#fff;
|
|
|
|
|
|
+ color: #fff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|