diff --git a/app.js b/app.js index f062e34..caeee4c 100644 --- a/app.js +++ b/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(() => { diff --git a/pages/info/foodProductInfo/index.js b/pages/info/foodProductInfo/index.js index 316515d..105a45f 100644 --- a/pages/info/foodProductInfo/index.js +++ b/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 diff --git a/pages/info/foodProductInfo/index.wxml b/pages/info/foodProductInfo/index.wxml index 52d4c9c..3491c6f 100644 --- a/pages/info/foodProductInfo/index.wxml +++ b/pages/info/foodProductInfo/index.wxml @@ -93,7 +93,28 @@ - + + + + + + + {{info.scene_name}} + + + + + {{info.scene_address}} + + + + + + + + + + 套餐详情 diff --git a/pages/info/foodProductInfo/index.wxss b/pages/info/foodProductInfo/index.wxss index 3043e62..90c2938 100644 --- a/pages/info/foodProductInfo/index.wxss +++ b/pages/info/foodProductInfo/index.wxss @@ -1278,4 +1278,47 @@ font-size: 23rpx; 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; } \ No newline at end of file