Browse Source

美食详情

master
jiazhipeng 6 months ago
parent
commit
c61abe2cf7
  1. 2
      app.js
  2. 16
      pages/info/foodProductInfo/index.js
  3. 23
      pages/info/foodProductInfo/index.wxml
  4. 43
      pages/info/foodProductInfo/index.wxss

2
app.js

@ -38,7 +38,7 @@ App({
// 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest139? true : false;
data.isTest = data.isTest131? true : false;
data.indexSeason = null
this.globalData.configJson = data
}).then(() => {

16
pages/info/foodProductInfo/index.js

@ -213,6 +213,22 @@ Page({
}
},
gotolocation: function () {
let info = this.data.info;
wx.openLocation({
latitude: Number(info.scene_lat),
longitude: Number(info.scene_lon),
name:info.scene_name,
address:info.scene_address
})
},
callPhone :function () {
wx.makePhoneCall({
phoneNumber: this.data.info.scene_tel,
})
},
changeAllowance: function () {
this.setData({
showAllowance: !this.data.showAllowance

23
pages/info/foodProductInfo/index.wxml

@ -93,7 +93,28 @@
<view class="scroll-all-box" id="menus" wx:if="{{info}}">
<view style="height:85rpx" wx:if="{{fixed}}"></view>
<view class="shop-info">
<image class="supplier-headImg" wx:if="{{info.scene_img}}" src="{{info.scene_img}}" mode="aspectFill"></image>
<view class="content">
<view style="display: flex;align-items: flex-start;">
<view class="shop-title shop-com-width textOver2">{{info.scene_name}}</view>
<!-- <image style="height: 25rpx;margin: 10rpx 68rpx 0 13rpx;" mode="heightFix" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/postDetail/rightIcon.png"></image> -->
<image wx:if="{{info.scene_tel}}" class="icon-phone" catch:tap="callPhone" src="https://static.ticket.sz-trip.com/uploads/20250926/6d69afa7a2f955f60fd7cd5475e2b119.png"></image>
</view>
<view class="address" style="display: flex;align-items: center;justify-content: space-between;">
<view class="shop-com-width textOver" style="padding-right: 98rpx;">{{info.scene_address}}</view>
<image class="icon-phone" catch:tap="gotolocation" src="https://static.ticket.sz-trip.com/uploads/20250926/6ce5e0467e0745e5f1140b6757ada213.png"></image>
</view>
</view>
</view>
<view style="height: 20rpx;width: 100%;background: #F7F7F7;"></view>
<view class="info-box" id="box1">
<view class="info-title">套餐详情</view>
<rich-text class="details" nodes="{{tool.formateRichText(info.content)}}"></rich-text>

43
pages/info/foodProductInfo/index.wxss

@ -1279,3 +1279,46 @@ color: #FFFFFF;
display: inline-block;
margin-right: 10rpx;
}
.shop-info{
display: flex;
align-items: center;
justify-content: space-between;
background: white;
padding:30rpx 28rpx;
box-sizing: border-box;
word-break: break-all;
}
.shop-info .supplier-headImg{
width: 113rpx;
height: 113rpx;
background: #BCBCBC;
border-radius: 13rpx;
flex-shrink: 0;
}
.shop-info .content{
flex: 1;
height: 113rpx;
width: 1rpx;
padding-left: 12rpx;
font-weight: bold;
font-size: 31rpx;
color: #010101;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.shop-info .content .address{
font-weight: 500;
font-size: 24rpx;
color: #999999;
}
.shop-info .icon-phone{
width: 47.33rpx;
height: 46.67rpx;
flex-shrink: 0;
}
.shop-info .shop-com-width{
width: 100rpx;
flex: 1;
}
Loading…
Cancel
Save