Commit 5d7ca99ca706c2e4c2a61e36a9b1e72a26a37f2e

Authored by pengye
1 parent a8fa3018

模板8以及加珍珠白

@@ -65,7 +65,8 @@ @@ -65,7 +65,8 @@
65 "pages/customer/detail_owner_invitation4", 65 "pages/customer/detail_owner_invitation4",
66 "pages/customer/detail_owner_invitation5", 66 "pages/customer/detail_owner_invitation5",
67 "pages/customer/detail_owner_invitation6", 67 "pages/customer/detail_owner_invitation6",
68 - "pages/customer/detail_owner_invitation7" 68 + "pages/customer/detail_owner_invitation7",
  69 + "pages/customer/detail_owner_invitation8"
69 ], 70 ],
70 "requiredPrivateInfos": [ 71 "requiredPrivateInfos": [
71 "getLocation", 72 "getLocation",
1 -// pages/customer/detail_owner1.js 1 +// pages/customer/detail_owner_invitation1.js
2 var mta = require('mta-wechat-analysis') 2 var mta = require('mta-wechat-analysis')
3 import util from '../../utils/util'; 3 import util from '../../utils/util';
4 import App from '../../utils/api'; 4 import App from '../../utils/api';
1 -<!--pages/customer/detail_owner1.wxml--> 1 +<!--pages/customer/detail_owner_invitation1.wxml-->
2 <wxs src="../../utils/util.wxs" module="util" /> 2 <wxs src="../../utils/util.wxs" module="util" />
3 <import src="../../tpl/invitation"></import> 3 <import src="../../tpl/invitation"></import>
4 <nav backgroundColor="rgba(0,0,0,0)" hasHome style="position: fixed;z-index: 1;" class="navhome" place="{{true}}"> 4 <nav backgroundColor="rgba(0,0,0,0)" hasHome style="position: fixed;z-index: 1;" class="navhome" place="{{true}}">
1 -/* pages/customer/detail_customer.wxss1 */ 1 +/* pages/customer/detail_owner_invitation1.wxss1 */
2 @import "../tpl/tpls.wxss"; 2 @import "../tpl/tpls.wxss";
3 3
4 .pages { 4 .pages {
1 <!--pages/customer/detail_owner_invitation2.wxml--> 1 <!--pages/customer/detail_owner_invitation2.wxml-->
2 <import src="../tpl/invitation"></import> 2 <import src="../tpl/invitation"></import>
3 -<nav hasHome backgroundColor="{{themeSixteen}}" class="navhome" place="{{true}}">  
4 -</nav> 3 +<nav hasHome backgroundColor="{{themeSixteen}}" class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
5 <scroll-view scroll-y class="{{themeColor}}"> 4 <scroll-view scroll-y class="{{themeColor}}">
6 <view class="positioningBox"> 5 <view class="positioningBox">
7 <view class="positioning" bindtap="looklocation"> 6 <view class="positioning" bindtap="looklocation">
1 <!--pages/customer/detail_owner_invitation3.wxml--> 1 <!--pages/customer/detail_owner_invitation3.wxml-->
2 <import src="../tpl/invitation"></import> 2 <import src="../tpl/invitation"></import>
3 -<nav hasHome class="navhome" place="{{true}}"></nav> 3 +<nav hasHome class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
4 <scroll-view scroll-y class="{{themeColor}}"> 4 <scroll-view scroll-y class="{{themeColor}}">
5 <view class="reservationInfo"> 5 <view class="reservationInfo">
6 <view class="titleImg"> 6 <view class="titleImg">
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
62 </view> 62 </view>
63 <view class="positioning" bindtap="looklocation"> 63 <view class="positioning" bindtap="looklocation">
64 <view class="name"> 64 <view class="name">
65 - <image src="https://qn.colorcun.com/mapIcon.png" mode="" /> 65 + <image src="{{themeColor=='pearlWhite'?'https://qn.colorcun.com/whiteAddress.png':'https://qn.colorcun.com/mapIcon.png'}}" mode="" />
66 <text class="font36r">{{seller.addr|| reserev.seller.map_address}}</text> 66 <text class="font36r">{{seller.addr|| reserev.seller.map_address}}</text>
67 </view> 67 </view>
68 </view> 68 </view>
@@ -723,4 +723,32 @@ @@ -723,4 +723,32 @@
723 .moroccanBlue .chefText, 723 .moroccanBlue .chefText,
724 .moroccanBlue .rubric { 724 .moroccanBlue .rubric {
725 color: #19516A; 725 color: #19516A;
  726 +}
  727 +
  728 +/* 珍珠白 */
  729 +.pearlWhite .reservationInfo {
  730 + background: #fbf6f1;
  731 +}
  732 +
  733 +.pearlWhite .rubric {
  734 + color: #0143A3;
  735 +}
  736 +
  737 +.pearlWhite .handlePhone,
  738 +.pearlWhite .welcome,
  739 +.pearlWhite .begin,
  740 +.pearlWhite .title,
  741 +.pearlWhite .info,
  742 +.pearlWhite .reservationInfo .flex-11 {
  743 + color: #515151;
  744 +}
  745 +
  746 +.pearlWhite .brownFont {
  747 + color: #515151;
  748 + border: 2rpx solid #515151;
  749 +}
  750 +
  751 +.pearlWhite .positioning {
  752 + background: #515151;
  753 + color: #FBF6F1;
726 } 754 }
1 <!--pages/customer/detail_owner_invitation4.wxml--> 1 <!--pages/customer/detail_owner_invitation4.wxml-->
2 -<nav hasHome class="navhome" place="{{true}}"></nav> 2 +<nav hasHome class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
3 <scroll-view scroll-y class="{{themeColor}}"> 3 <scroll-view scroll-y class="{{themeColor}}">
4 <view class="reservationInfo"> 4 <view class="reservationInfo">
5 <image src="{{whiteBj?'https://qn.colorcun.com/whiteBj1.png':'https://qn.colorcun.com/leaf.png'}}" class="titleIcon"></image> 5 <image src="{{whiteBj?'https://qn.colorcun.com/whiteBj1.png':'https://qn.colorcun.com/leaf.png'}}" class="titleIcon"></image>
@@ -685,4 +685,19 @@ @@ -685,4 +685,19 @@
685 .moroccanBlue .chefText, 685 .moroccanBlue .chefText,
686 .moroccanBlue .rubric { 686 .moroccanBlue .rubric {
687 color: #19516A; 687 color: #19516A;
  688 +}
  689 +
  690 +/* 珍珠白 */
  691 +.pearlWhite .reservationInfo {
  692 + background: #fbf6f1;
  693 +}
  694 +
  695 +.pearlWhite .title,
  696 +.pearlWhite .infoBoxRight,
  697 +.pearlWhite .leftInfo {
  698 + color: #515151;
  699 +}
  700 +
  701 +.pearlWhite .rubric {
  702 + color: #0143A3;
688 } 703 }
1 <!--pages/customer/detail_owner_invitation5.wxml--> 1 <!--pages/customer/detail_owner_invitation5.wxml-->
2 -<nav hasHome class="navhome" place="{{true}}"></nav> 2 +<nav hasHome class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
3 <scroll-view scroll-y class="{{themeColor}}"> 3 <scroll-view scroll-y class="{{themeColor}}">
4 <view class="reservationInfo"> 4 <view class="reservationInfo">
5 <image src="{{whiteBj?'https://qn.colorcun.com/whiteBj1.png':'https://qn.colorcun.com/leaf.png'}}" class="titleIcon"></image> 5 <image src="{{whiteBj?'https://qn.colorcun.com/whiteBj1.png':'https://qn.colorcun.com/leaf.png'}}" class="titleIcon"></image>
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <view class="leftInfo font32r over">{{seller.tablesText}}</view> 14 <view class="leftInfo font32r over">{{seller.tablesText}}</view>
15 <view class="leftInfo font32r" wx:if="{{detail.seller.phone}}">预订台 {{detail.seller.phone}}</view> 15 <view class="leftInfo font32r" wx:if="{{detail.seller.phone}}">预订台 {{detail.seller.phone}}</view>
16 <view class="font32r addressInfo" bindtap="looklocation" wx:if="{{seller.addr|| reserev.seller.map_address}}"> 16 <view class="font32r addressInfo" bindtap="looklocation" wx:if="{{seller.addr|| reserev.seller.map_address}}">
17 - <image src="https://qn.colorcun.com/whiteAddress.png" mode="" /> 17 + <image src="{{themeColor=='pearlWhite'?'https://qn.colorcun.com/mapIcon.png':'https://qn.colorcun.com/whiteAddress.png'}}" mode="" />
18 <text>{{seller.addr|| reserev.seller.map_address}}</text> 18 <text>{{seller.addr|| reserev.seller.map_address}}</text>
19 </view> 19 </view>
20 </view> 20 </view>
@@ -672,4 +672,27 @@ @@ -672,4 +672,27 @@
672 672
673 .moroccanBlue .rubric { 673 .moroccanBlue .rubric {
674 color: #19516A; 674 color: #19516A;
  675 +}
  676 +
  677 +/* 珍珠白 */
  678 +.pearlWhite .reservationInfo {
  679 + background: #fbf6f1;
  680 +}
  681 +
  682 +.pearlWhite .handlePhone,
  683 +.pearlWhite .chefText,
  684 +.pearlWhite .title,
  685 +.pearlWhite .infoBoxRight,
  686 +.pearlWhite .leftInfo,
  687 +.pearlWhite .addressInfo {
  688 + color: #515151;
  689 +}
  690 +
  691 +.pearlWhite .rubric {
  692 + color: #0143A3;
  693 +}
  694 +
  695 +.pearlWhite .brownFont {
  696 + color: #515151;
  697 + border: 2rpx solid #515151;
675 } 698 }
1 <!--pages/customer/detail_owner_invitation6.wxml--> 1 <!--pages/customer/detail_owner_invitation6.wxml-->
2 <import src="../tpl/invitation"></import> 2 <import src="../tpl/invitation"></import>
3 -<nav hasHome class="navhome" place="{{true}}">  
4 -</nav> 3 +<nav hasHome class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
5 <scroll-view scroll-y class="{{themeColor}}"> 4 <scroll-view scroll-y class="{{themeColor}}">
6 <view class="titleImg"> 5 <view class="titleImg">
7 <image src="{{whiteBj?'https://qn.colorcun.com/whiteBj1.png':'https://qn.colorcun.com/leaf.png'}}" class="titleIcon"></image> 6 <image src="{{whiteBj?'https://qn.colorcun.com/whiteBj1.png':'https://qn.colorcun.com/leaf.png'}}" class="titleIcon"></image>
@@ -722,7 +722,6 @@ @@ -722,7 +722,6 @@
722 background: #C67B3A; 722 background: #C67B3A;
723 } 723 }
724 724
725 -  
726 .golden .title, 725 .golden .title,
727 .golden .info { 726 .golden .info {
728 color: #fff; 727 color: #fff;
@@ -733,8 +732,17 @@ @@ -733,8 +732,17 @@
733 background: #0143A3; 732 background: #0143A3;
734 } 733 }
735 734
736 -  
737 /* 摩洛哥蓝 */ 735 /* 摩洛哥蓝 */
738 .moroccanBlue .titleImg { 736 .moroccanBlue .titleImg {
739 background: #19516A; 737 background: #19516A;
  738 +}
  739 +
  740 +/* 珍珠白 */
  741 +.pearlWhite .titleImg {
  742 + background: #fbf6f1;
  743 +}
  744 +
  745 +.pearlWhite .title,
  746 +.pearlWhite .info {
  747 + color: #515151;
740 } 748 }
1 <!--pages/customer/detail_owner_invitation7.wxml--> 1 <!--pages/customer/detail_owner_invitation7.wxml-->
2 <import src="../tpl/invitation"></import> 2 <import src="../tpl/invitation"></import>
3 -<nav hasHome class="navhome" place="{{true}}"></nav> 3 +<nav hasHome class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
4 <scroll-view scroll-y class="{{themeColor}}"> 4 <scroll-view scroll-y class="{{themeColor}}">
5 <view class="reservationInfo"> 5 <view class="reservationInfo">
6 <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image> 6 <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
@@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
18 .centerBox { 18 .centerBox {
19 text-align: center; 19 text-align: center;
20 margin-top: 20rpx; 20 margin-top: 20rpx;
  21 + font-weight: 600;
21 } 22 }
22 23
23 .reservationInfo { 24 .reservationInfo {
@@ -680,4 +681,30 @@ @@ -680,4 +681,30 @@
680 .moroccanBlue .chefText, 681 .moroccanBlue .chefText,
681 .moroccanBlue .rubric { 682 .moroccanBlue .rubric {
682 color: #19516A; 683 color: #19516A;
  684 +}
  685 +
  686 +/* 珍珠白 */
  687 +.pearlWhite .reservationInfo {
  688 + background: #fbf6f1;
  689 +}
  690 +
  691 +.pearlWhite .chefText,
  692 +.pearlWhite .rubric {
  693 + color: #0143A3;
  694 +}
  695 +
  696 +.pearlWhite .handlePhone,
  697 +.pearlWhite .welcome,
  698 +.pearlWhite .begin,
  699 +.pearlWhite .reservationInfo .flex-11 {
  700 + color: #515151;
  701 +}
  702 +
  703 +.pearlWhite .brownFont {
  704 + color: #515151;
  705 + border: 2rpx solid #515151;
  706 +}
  707 +
  708 +.pearlWhite .positioning {
  709 + background: #F8F9FD;
683 } 710 }
  1 +// pages/customer/detail_owner_invitation8.js
  2 +var mta = require('mta-wechat-analysis')
  3 +import util from '../../utils/util';
  4 +import App from '../../utils/api';
  5 +import TP from '../../utils/tpls';
  6 +import RS from '../../utils/reserveStatus'
  7 +Page({
  8 + /**
  9 + * 页面的初始数据
  10 + */
  11 + data: {
  12 + options: {
  13 + tplid: ''
  14 + },
  15 + tableNum: 0,
  16 + detail: {},
  17 + staffinfo: {},
  18 + between: false,
  19 + chef: {},
  20 + marketing: {},
  21 + home: {},
  22 + reserve: {},
  23 + signboard: {},
  24 + store: {},
  25 + recharge_data: {},
  26 + coupon_dataList: [],
  27 + stringifyUse: '',
  28 + current: 0,
  29 + seller: {
  30 + name: '',
  31 + tablesText: '',
  32 + date: '',
  33 + addr: ''
  34 + },
  35 + priceInfo: '',
  36 + scoreInfo: '',
  37 + discount: '',
  38 + certificate: '',
  39 + dataStr: Date.now() * 1 / 1000,
  40 + swich_phone: '0',
  41 + is_comments: '0',
  42 + is_user_comments: false,
  43 + tableinfo: [],
  44 + StyleType: '',
  45 + showMoreTip: true,
  46 + themeColor: '',
  47 + screenHeight: '',
  48 + },
  49 + tablestr: '',
  50 + urlsValue: [],
  51 + screenHeight: '',
  52 + /**
  53 + * 生命周期函数--监听页面加载
  54 + */
  55 + onLoad(options) {
  56 + this.id = options.id
  57 + let param = {
  58 + options: options,
  59 + hasOwner: options.hasSellerShare == 1, //是否为发起人
  60 + }
  61 + param.tpls = [TP.tpls(options.tplid)]
  62 + console.log(param);
  63 + console.log(options);
  64 + this.setData(param)
  65 + mta.Page.init({
  66 + "appID": "500667280",
  67 + "eventID": "500667287",
  68 + "statPullDownFresh": true,
  69 + "statShareApp": true,
  70 + "statReachBottom": true,
  71 + "lauchOpts": options, //渠道分析
  72 + });
  73 + const systemInfo = wx.getSystemInfoSync();
  74 + this.screenHeight = systemInfo.windowHeight; // 获取屏幕高度
  75 + },
  76 + // 页面滚动事件
  77 + onPageScroll: function (event) {
  78 + const scrollTop = event.scrollTop * 1 + this.screenHeight - 80; // 获取滚动的距离
  79 + if (scrollTop < this.screenHeight) {
  80 + this.setData({
  81 + showMoreTip: true
  82 + });
  83 + } else {
  84 + this.setData({
  85 + showMoreTip: false
  86 + });
  87 + }
  88 + },
  89 + // 点击了解更多会员优惠政策
  90 + gotoFavourableList() {
  91 + let url = util.http_build_query({
  92 + sellerName: this.data.seller.name,
  93 + sellerid: this.data.seller.sid,
  94 + oid: this.data.detail.id,
  95 + types: '1'
  96 + }, '/pack-cookbook/pages/favourableList')
  97 + wx.navigateTo({
  98 + url
  99 + })
  100 + },
  101 + // 去评价
  102 + evaluateFun() {
  103 + let url = util.http_build_query({
  104 + sellerName: this.data.seller.name,
  105 + sellerid: this.data.seller.sid,
  106 + oid: this.data.detail.id,
  107 + types: '1',
  108 + previousPage: '1',
  109 + }, '/pages/pinglun/createOpinion')
  110 + wx.navigateTo({
  111 + url
  112 + })
  113 + },
  114 + /**
  115 + * 用户点击右上角分享
  116 + */
  117 + onShareAppMessage: function () {
  118 + return this.sharesetting();
  119 + },
  120 + /**
  121 + * 监听用户点击分享到朋友圈按钮的操作
  122 + */
  123 + onShareTimeline() {
  124 + return this.sharesetting();
  125 + },
  126 + /**
  127 + * 生命周期函数--监听页面显示
  128 + */
  129 + onShow: function () {
  130 + this.getDetail()
  131 + },
  132 + // 复制微信号
  133 + copyWeChat() {
  134 + if (this.data.staffinfo.wechat) {
  135 + wx.setClipboardData({
  136 + data: this.data.staffinfo.wechat,
  137 + success(res) {
  138 + wx.getClipboardData({
  139 + success(res) {
  140 + console.log(res.data) // data
  141 + }
  142 + })
  143 + }
  144 + })
  145 + } else {
  146 + console.log('无微信号')
  147 + }
  148 + },
  149 + // 拨打电话
  150 + call() {
  151 + wx.reportMonitor('1012', 1)
  152 + wx.makePhoneCall({
  153 + phoneNumber: this.data.staffinfo.phone
  154 + })
  155 + },
  156 + // 导航
  157 + looklocation: function () {
  158 + wx.reportMonitor('1015', 1)
  159 + wx.openLocation({
  160 + latitude: Number(this.data.seller.lat),
  161 + longitude: Number(this.data.seller.long),
  162 + scale: 17,
  163 + address: this.data.seller.addr,
  164 + success: function (res) {
  165 + console.log(res)
  166 + }
  167 + })
  168 + },
  169 + // 获取包间图片列表
  170 + getroomimage(sellerid) {
  171 + App.Tables.GetTablesPhoto({
  172 + sellerid,
  173 + tableids: this.tablestr
  174 + }).then((json) => {
  175 + if (json.ret == 200) {
  176 + this.setData({
  177 + roomimage: json.data
  178 + })
  179 + var urlsArr = [];
  180 + json.data.forEach((v, i) => {
  181 + urlsArr.push(v.url);
  182 + })
  183 + this.urlsValue = urlsArr;
  184 + console.log('urlsArr', urlsArr)
  185 + console.log('roomimage', json.data)
  186 + }
  187 + })
  188 + },
  189 + // 预览包间图片
  190 + lookroom(e) {
  191 + const item = e.currentTarget.dataset['item'];
  192 + wx.previewImage({
  193 + current: item.url, // 当前显示图片的http链接
  194 + urls: this.urlsValue, // 需要预览的图片http链接列表
  195 + })
  196 + },
  197 + // 获取店铺详情
  198 + getDetail() {
  199 + App.Reserve.Detail({
  200 + openid: getApp().openid,
  201 + rid: this.data.options.id
  202 + }).then(res => {
  203 + let tablesText = '', //桌子信息
  204 + tableNum = 0;
  205 + let tableinfo = util.determine(res.data.tableinfo);
  206 + console.log('tableinfo', tableinfo);
  207 + res.data.tables.forEach((t, i) => {
  208 + tableNum += t.table_pnum * 1
  209 + tablesText += t.rname + t.name + (i == (res.data.tables.length - 1) ? '' : '、');
  210 + })
  211 + let tabaleids = [];
  212 + res.data.tables.forEach(t => {
  213 + tabaleids.push(t.id);
  214 + })
  215 + this.tablestr = tabaleids.toString();
  216 + let reserev = RS.reserve(res.data)
  217 + let dateSmart
  218 + if (res.data.type == 1) {
  219 + dateSmart = util.unixtoTime(reserev.ddate, 'YYYY年MM月DD日 星期WW')
  220 + if (res.data.is_set_ddate == 1) {
  221 + dateSmart += ' ' + util.unixtoTime(reserev.ddate, 'YYYY年MM月DD日 星期WW')
  222 + } else {
  223 + dateSmart += ' ' + reserev.soltName
  224 + }
  225 + } else {
  226 + dateSmart = util.unixtoTime(reserev.ddate, 'YYYY年MM月DD日 星期WW')
  227 + }
  228 + console.log('dateSmart', dateSmart);
  229 + this.setData({
  230 + detail: this.formatDatail(reserev, dateSmart),
  231 + tableNum,
  232 + tableinfo,
  233 + is_user_comments: res.data.is_user_comments,
  234 + seller: {
  235 + name: reserev.seller.sellername,
  236 + sid: reserev.sid,
  237 + date: dateSmart,
  238 + tablesText,
  239 + addr: reserev.seller.real_address || reserev.seller.map_address,
  240 + image: reserev.image_url,
  241 + hasOwner: true,
  242 + type: reserev.type,
  243 + is_set_ddate: reserev.is_set_ddate,
  244 + hasUpTime: reserev.type == 1 && reserev.hasRunning && reserev.status != 2,
  245 + tel: reserev.seller.seller_tel.split(',')[0],
  246 + soltName: reserev.soltName,
  247 + time: util.unixtoTime(reserev.ddate, '星期WW HH:II'),
  248 + lat: reserev.seller.lat,
  249 + long: reserev.seller.long,
  250 + }
  251 + })
  252 + console.log('reserev reserev', reserev);
  253 + console.log('seller seller', this.data.seller);
  254 + console.log('detail detail', this.data.detail);
  255 + setTimeout(() => {
  256 + this.getSellerTemplateConfFun(reserev.sid);
  257 + this.getstaffinfo(res.data.uid)
  258 + this.getroomimage(reserev.sid)
  259 + }, 0);
  260 + }).catch(res => {
  261 + console.log(res, '详情请求失败');
  262 + })
  263 + },
  264 + // 客户经理获取基本信息
  265 + getstaffinfo(uid) {
  266 + console.log('sellerid', this.data.detail.seller.id);
  267 + App.Activity.GetCustomerActivityBaseinfo({
  268 + sellerid: this.data.detail.seller.id,
  269 + uid
  270 + }).then((json) => {
  271 + if (json.ret == 200) {
  272 + console.log('staffinfostaffinfostaffinfo', json.data)
  273 + this.setData({
  274 + staffinfo: json.data
  275 + })
  276 + }
  277 + })
  278 + },
  279 + // 提前点餐
  280 + cookbook() {
  281 + if (this.data.detail.order && this.data.detail.order.cookbooklist.length > 0) {
  282 + let data = {
  283 + rid: this.id,
  284 + oid: this.data.detail.order.id,
  285 + sellerName: this.data.seller.name,
  286 + sid: this.data.seller.sid,
  287 + identity: '1',
  288 + hasSuccess: '1',
  289 + }
  290 + wx.navigateTo({
  291 + url: `/pack-cookbook/pages/success_new?hasSuccess=${data.hasSuccess}&identity=${data.identity}&oid=${data.oid}&rid=${data.rid}&sellerName=${data.sellerName}&sid=${data.sid}`,
  292 + })
  293 + } else {
  294 + App.Advance.CreateOrder({
  295 + rid: this.id,
  296 + openid: getApp().openid,
  297 + }).then(res => {
  298 + if (res.ret != 200) {
  299 + return util.toast(res.msg, 'none')
  300 + }
  301 + wx.navigateTo({
  302 + url: util.http_build_query({
  303 + rid: this.id,
  304 + oid: res.data.id,
  305 + sid: res.data.sellerid,
  306 + sellerName: this.data.seller.name,
  307 + identity: '1',
  308 + }, '/pack-cookbook/pages/index_new')
  309 + });
  310 + })
  311 + }
  312 + },
  313 + // 分享
  314 + sharesetting() {
  315 + wx.reportMonitor('1017', 1)
  316 + let parmdata = {
  317 + id: this.id,
  318 + fromid: getApp().openid,
  319 + hasInvitation: 1,
  320 + tplid: this.data.options.tplid
  321 + }
  322 + if (this.data.options.uid) {
  323 + parmdata.uid = this.data.options.uid;
  324 + }
  325 + console.log('seller_imageseller_imageseller_imageseller_imageseller_image', this.data.detail.seller.seller_image);
  326 + return {
  327 + title: '邀请您于' + this.data.seller.date + '一起共进' + this.data.seller.soltName + '。点击查看详情',
  328 + path: util.http_build_query(parmdata, '/pages/customer/index'),
  329 + imageUrl: this.data.detail.seller.seller_image,
  330 + }
  331 + },
  332 + // 修改detail数据
  333 + formatDatail(detail, dateSmart) {
  334 + detail.rdateStr = dateSmart;
  335 + detail.tableFirst = detail.tables[0].name;
  336 + if (detail.tables.length > 1) {
  337 + detail.tableSubInfo = '等' + (detail.tables.length) + '个' +
  338 + (detail.tables[0].tid == 2 ? '包间' : '');
  339 + }
  340 + if (detail.rname && detail.sex != 3) {
  341 + detail.rnameStr = detail.rname.substr(0, 1) + (detail.sex == 1 ? '先生' : '女士')
  342 + } else {
  343 + detail.rnameStr = detail.rname
  344 + }
  345 + detail.eatStr = '邀请您共进晚餐';
  346 + let hi = util.unixtoTime(detail.ddate, 'HHII');
  347 + if (hi < '10:00') {
  348 + detail.eatStr = '邀请您共进早餐';
  349 + } else if (hi < '15:00') {
  350 + detail.eatStr = '邀请您共进午餐';
  351 + }
  352 + return detail;
  353 + },
  354 + // 获取商家设置营销信息
  355 + getSellerTemplateConfFun(sid) {
  356 + console.log(sid, 'sidsidsidsid');
  357 + App.Seller.GetSellerTemplateConf({
  358 + sid
  359 + }).then(res => {
  360 + let data = res.data
  361 + console.log('data', data);
  362 + let coupon_dataList = []
  363 + let themeColor, StyleType, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
  364 + chef = util.determine(data.chef);
  365 + reserve = util.determine(data.reserve);
  366 + marketing = util.determine(data.marketing);
  367 + signboard = util.determine(data.signboard);
  368 + store = util.determine(data.store);
  369 + home = util.determine(data.home);
  370 + themeColor = data.lite_class;
  371 + StyleType = data.type;
  372 + swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
  373 + if (marketing) {
  374 + is_comments = marketing.is_comments ? marketing.is_comments : '';
  375 + coupon = marketing.coupon_data ? util.determine(marketing.coupon_data) : '';
  376 + }
  377 + // is_cash 代金券 is_discount折扣券 is_dish菜品券 只有代金券有几折显示
  378 + if (coupon && util.getType(coupon) == 'object') {
  379 + coupon.stringifyUse = JSON.stringify(coupon.use)
  380 + if (marketing.is_coupon == '1' && coupon && (!coupon.use.is_cash || coupon.use.is_cash == '1')) {
  381 + let cash = coupon.use.cash * 1;
  382 + let price = coupon.price * 1;
  383 + console.log('cash', cash + '---' + 'price', price + '---' + 'discount', ((price / cash) * 10).toFixed(1));
  384 + coupon.discount = cash != 0 ? ((price / cash) * 10).toFixed(1) : '';
  385 + }
  386 + coupon_dataList.push(coupon);
  387 + }
  388 + if (coupon && util.getType(coupon) == 'array') {
  389 + if (coupon.length > 0) {
  390 + coupon.forEach(item => {
  391 + item.stringifyUse = JSON.stringify(item.use)
  392 + if ((!item.use.is_cash || item.use.is_cash == '1')) {
  393 + let cash = item.use.cash * 1;
  394 + let price = item.price * 1;
  395 + console.log('cash', cash + '---' + 'price', price + '---' + 'discount', ((price / cash) * 10).toFixed(1));
  396 + item.discount = cash != 0 ? ((price / cash) * 10).toFixed(1) : '';
  397 + }
  398 + })
  399 + }
  400 + coupon_dataList = coupon;
  401 + }
  402 + let obj = {
  403 + chef,
  404 + reserve,
  405 + marketing,
  406 + signboard,
  407 + store,
  408 + home,
  409 + stringifyUse,
  410 + coupon,
  411 + coupon_dataList,
  412 + swich_phone,
  413 + is_comments,
  414 + StyleType,
  415 + themeColor,
  416 + }
  417 + console.log('获取数据', {
  418 + ...obj
  419 + });
  420 + if (marketing && marketing.is_recharge == '1' && marketing.recharge_data) {
  421 + let recharge_data = marketing.recharge_data
  422 + recharge_list = marketing.recharge_data.recharge_list
  423 + if (recharge_list.is_price == '1') priceInfo = '会员充值满' + recharge_data.recharge_money + '元赠送' + recharge_list.price + '元余额';
  424 + if (recharge_list.is_score == '1') scoreInfo = '会员充值满' + recharge_data.recharge_money + '元赠送' + recharge_list.score + '积分';
  425 + if (recharge_list.is_coupons == '1' && recharge_data.recharge_list.coupons_names.length > 0) certificate = recharge_data.recharge_list.coupons_names.join('、');
  426 + console.log('scoreInfo', scoreInfo);
  427 + console.log('priceInfo', priceInfo);
  428 + this.setData({
  429 + recharge_data: marketing.recharge_data,
  430 + certificate
  431 + })
  432 + console.log('recharge_data', recharge_data);
  433 + }
  434 + this.setData({
  435 + coupon_dataList,
  436 + stringifyUse
  437 + })
  438 + if (store && store.images.length > 0) store.images = util.determine(store.images);
  439 + if (signboard && signboard.images) signboard.images = util.determine(signboard.images);
  440 + if (marketing && marketing.is_online_book == '1' && marketing.is_transpond == '1') {
  441 + this.setData({
  442 + between: true
  443 + })
  444 + }
  445 + this.setData({
  446 + chef,
  447 + marketing,
  448 + home,
  449 + reserve,
  450 + signboard,
  451 + store,
  452 + priceInfo,
  453 + scoreInfo,
  454 + swich_phone,
  455 + is_comments,
  456 + StyleType,
  457 + themeColor,
  458 + })
  459 + }).catch(res => {
  460 + console.log('GetSellerTemplateConf请求失败');
  461 + })
  462 + },
  463 + // 再次预订
  464 + secondbook() {
  465 + wx.reportMonitor('1013', 1)
  466 + wx.redirectTo({
  467 + url: '../reserve/detail?id=' + this.data.detail.seller.id
  468 + })
  469 + },
  470 + /**
  471 + * 生命周期函数--监听页面隐藏
  472 + */
  473 + onHide() {
  474 +
  475 + },
  476 +
  477 + /**
  478 + * 生命周期函数--监听页面卸载
  479 + */
  480 + onUnload() {
  481 +
  482 + },
  483 +
  484 + /**
  485 + * 页面相关事件处理函数--监听用户下拉动作
  486 + */
  487 + onPullDownRefresh() {
  488 +
  489 + },
  490 +
  491 + /**
  492 + * 页面上拉触底事件的处理函数
  493 + */
  494 + onReachBottom() {
  495 +
  496 + },
  497 +})
  1 +{
  2 + "navigationBarBackgroundColor": "#ffffff",
  3 + "navigationBarTextStyle": "white",
  4 + "navigationBarTitleText": "",
  5 + "usingComponents": {
  6 + "nav": "/components/nav/nav"
  7 + }
  8 + }
  1 +<!--pages/customer/detail_owner_invitation8.wxml-->
  2 +<import src="../tpl/invitation"></import>
  3 +<nav hasHome class="navhome" place="{{true}}">{{seller.name||reserve.seller_name}}</nav>
  4 +<scroll-view scroll-y class="{{themeColor}}">
  5 + <view class="reservationInfo">
  6 + <view class="infoImg">
  7 + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
  8 + </view>
  9 + <view class="infoItem" wx:if="{{seller.date}}">
  10 + <view class="label font28r">【宴会日期】</view>
  11 + <view class="contentData font40r">{{seller.date}}</view>
  12 + </view>
  13 + <view class="infoItem" wx:if="{{seller.soltName}}">
  14 + <view class="label font28r">【宴会时间】</view>
  15 + <view class="contentData font40r">{{seller.soltName}}</view>
  16 + </view>
  17 + <view class="infoItem" wx:if="{{seller.tablesText}}">
  18 + <view class="label font28r">【宴会位置】</view>
  19 + <view class="contentData font40r">{{seller.tablesText}}</view>
  20 + </view>
  21 + <view class="infoItem" wx:if="{{detail.actual_pum || tableNum}}">
  22 + <view class="label font28r">【人数】</view>
  23 + <view class="contentData font40r">{{detail.actual_pum?detail.actual_pum:tableNum}}位</view>
  24 + </view>
  25 + <view wx:if="{{roomimage && roomimage.length>0}}" class="{{roomimage.length=='1'?'pageSpacing':'pageSpacing1'}}">
  26 + <view wx:for="{{roomimage}}" class="imgs" wx:key="index" bindtap="lookroom" data-item="{{item}}">
  27 + <image class="imageStyle" mode="aspectFill" src="{{item.url}}"></image>
  28 + <text>{{item.name}}</text>
  29 + </view>
  30 + </view>
  31 + <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}">
  32 + <view class="handleInfo">
  33 + <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image>
  34 + <view class="handle handlePhone">
  35 + <view>专属服务:{{staffinfo.name}}</view>
  36 + <view>服务电话:{{staffinfo.phone}}</view>
  37 + </view>
  38 + <view class="handle">
  39 + <view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view>
  40 + <view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信号</view>
  41 + </view>
  42 + </view>
  43 + </block>
  44 + <view wx:if="{{marketing && marketing.wecomle}}" class="welcome font36r">
  45 + {{marketing.wecomle}}
  46 + </view>
  47 + <view class="positioning" bindtap="looklocation">
  48 + <view class="name">
  49 + <image src="https://qn.colorcun.com/address.png" mode="" />
  50 + <text class="font36r">{{seller.addr|| reserev.seller.map_address}}</text>
  51 + </view>
  52 + </view>
  53 + </view>
  54 + <view class="preferential" wx:if="{{marketing && marketing.is_coupon=='1' && coupon_dataList.length>0}}">
  55 + <block wx:for="{{coupon_dataList}}" wx:key="index" wx:for-index="index">
  56 + <view class="preferentialItems" wx:if="{{dataStr<(item.etime*1)}}">
  57 + <view class="itemLeft">
  58 + <view class="itemTop">
  59 + <text class="font28r">{{item.aname}}</text>
  60 + <view class="priceText font24r" wx:if="{{item.price}}">
  61 + <view class="icons font24r">¥</view>{{item.price}}
  62 + </view>
  63 + <!-- is_cash 代金券 is_discount折扣券 is_dish菜品券 只有代金券有几折显示 -->
  64 + <text wx:if="{{item.discount!='0.00' && (item.use.is_cash=='1' || item.use.is_cash) && item.discount}}" class="discountText font24r">{{item.discount}}折</text>
  65 + </view>
  66 + <view wx:if="{{item.exp_date.is_week=='1' || item.exp_date.is_week===true}}" class="bottom font24r">
  67 + {{item.exp_date.week_show?item.exp_date.week_show+'可用':''}}{{item.desc?','+item.desc+'。':'。'}}
  68 + </view>
  69 + <view wx:if="{{item.exp_date.is_none=='1' || item.exp_date.is_none===true}}" class="bottom font24r">
  70 + 无限制{{item.desc?','+item.desc+'。':'。'}}
  71 + </view>
  72 + <view wx:if="{{item.exp_date.is_birthday=='1' || item.exp_date.is_birthday===true}}" class="bottom font24r">
  73 + 会员生日当天可用{{item.desc?','+item.desc+'。':'。'}}
  74 + </view>
  75 + </view>
  76 + <navigator url="/pack-activity/pack/buyCoupon?id={{item.id}}&name={{seller.name}}&use={{item.stringifyUse}}&sid={{seller.sid}}&oid={{detail.id}}&types=1&StyleType={{StyleType}}" hover-class="navigator-hover">
  77 + <view class="font24r orderingFood">
  78 + 抢购
  79 + </view>
  80 + </navigator>
  81 + </view>
  82 + </block>
  83 + </view>
  84 + <view wx:if="{{is_comments=='1' && !is_user_comments}}" class="evaluateBox" bindtap="evaluateFun">
  85 + <text wx:if="{{is_comments=='1' && marketing.is_comments_coupon!='1'}}">想吐槽?戳这里填写意见!--></text>
  86 + <text wx:if="{{marketing.is_comments_coupon=='1'}}">想吐槽?戳这里填写意见反馈赢好礼!</text>
  87 + <image src="https://qn.colorcun.com/evaluate.png" mode="" />
  88 + </view>
  89 + <view class="introduce" wx:if="{{store}}">
  90 + <view class="imgMask">
  91 + <view class="IntroduceColor">
  92 + <view class="chefText font36r">餐厅介绍</view>
  93 + <view class="labelBox">
  94 + <text class="texts">{{store.introduce}}
  95 + </text>
  96 + </view>
  97 + </view>
  98 + <view class="chefText texts1 font36r">餐厅环境</view>
  99 + <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
  100 + <image src="{{item}}" mode="aspectFill" />
  101 + </block>
  102 + <view class="lines"></view>
  103 + </view>
  104 + </view>
  105 + <view class="introduce famousChefBox" wx:if="{{chef}}">
  106 + <view class="imgMask">
  107 + <view class="IntroduceColor">
  108 + <view class="chefText font36r">主厨介绍</view>
  109 + <view class="labelBox">
  110 + <text class="texts">{{chef.introduce}}
  111 + </text>
  112 + </view>
  113 + </view>
  114 + <image src="{{chef.image}}" mode="aspectFill" />
  115 + <view class="lines"></view>
  116 + </view>
  117 + </view>
  118 + <!-- 菜品展示 swich为1展示 -->
  119 + <view class="introduce vegetableBox" wx:if="{{signboard && signboard.swich=='1'}}">
  120 + <view class="imgMask">
  121 + <view class="IntroduceColor Introducepublic">
  122 + <view class="chefText font36r">特色菜品</view>
  123 + </view>
  124 + <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
  125 + <image src="{{item}}" mode="aspectFill" />
  126 + </block>
  127 + <view class="lines"></view>
  128 + </view>
  129 + </view>
  130 + <view class="specialServices" wx:if="{{detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}">
  131 + <view class="rubric">
  132 + 提前点餐
  133 + </view>
  134 + <view class="news">
  135 + 本店特为贵宾提供提前点餐服务,您现在可以选菜下单,到店就餐时无需等待服务员点餐,可以直接享受就餐服务^_^
  136 + </view>
  137 + <view class="endStyle">
  138 + <view class="book-item-font second-book-button flex-cc font30r cook" style="position: relative;">
  139 + <view wx:if="{{detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}" class="menu-item menu-seller-item flex-ll" bindtap="cookbook">
  140 + 去点餐
  141 + </view>
  142 + </view>
  143 + </view>
  144 + </view>
  145 + <view class="preferential" wx:if="{{marketing && (marketing.is_coupon=='1' || marketing.is_recharge=='1')}}">
  146 + <view class="rubric rubric1">
  147 + 特别优惠
  148 + </view>
  149 + <!-- 当前日期要大于限制结束日期 -->
  150 + <view class="preferentialItems" wx:if="{{marketing && marketing.is_recharge=='1' && recharge_data && (is_fix!='1' || (is_fix=='1' && dataStr<(recharge_data.exp_date.fix_edate*1)))}}">
  151 + <view class="itemLeft">
  152 + <view class="itemTop font28r">
  153 + <text>{{recharge_data.rname}}</text>
  154 + </view>
  155 + <view class="itemBottom font24r" wx:if="{{priceInfo}}">
  156 + {{priceInfo}}{{(recharge_data.recharge_list.is_coupons=='0' && recharge_data.recharge_list.is_score=='0')?'。':';'}}
  157 + </view>
  158 + <view class="bottom font24r" wx:if="{{scoreInfo}}">
  159 + {{scoreInfo}}{{recharge_data.recharge_list.is_coupons=='0'?'。':';'}}
  160 + </view>
  161 + <view class="bottom font24r" wx:if="{{recharge_data.recharge_list.is_coupons=='1'}}">
  162 + {{recharge_data.recharge_list.is_coupons=='1'?'会员充值满'+marketing.recharge_data.recharge_money+'元赠送'+certificate:''}}。
  163 + </view>
  164 + </view>
  165 + <navigator url="/pack-activity/pack/vipRecharge?id={{recharge_data.id}}&name={{seller.name}}&sid={{seller.sid}}&oid={{detail.id}}&types=1&StyleType={{StyleType}}" hover-class="navigator-hover">
  166 + <view class="font24r orderingFood">
  167 + 抢购
  168 + </view>
  169 + </navigator>
  170 + </view>
  171 + </view>
  172 + <view class="vips">
  173 + <view wx:if="{{marketing.is_link}}" class="font24r favouredPolicy" bindtap="gotoFavourableList">
  174 + 点击了解更多会员优惠政策
  175 + </view>
  176 + </view>
  177 + <view class="{{(!marketing || (marketing.is_transpond!='1' && marketing.is_online_book!='1'))?'more more1':'more'}}" wx:if="{{showMoreTip}}">
  178 + <view class="moreText">滑动查看更多</view>
  179 + <image src="https://qn.colorcun.com/jt1.png" mode="" />
  180 + </view>
  181 +</scroll-view>
  182 +<view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1'}}" class="{{between?'all-button flex-lr between':'all-button flex-lr sharewidth'}}">
  183 + <view wx:if="{{marketing.is_online_book=='1'}}" class="book-item-font second-book-button flex-cc font30r" bindtap="secondbook" style="position: relative;">再次预订
  184 + </view>
  185 + <button wx:if="{{marketing.is_transpond=='1'}}" class="book-item-font flex-cc font30r shareItem" open-type="share">转发给客人
  186 + </button>
  187 +</view>
  1 +/* pages/customer/detail_owner_invitation8.wxss */
  2 +@import "../tpl/tpls.wxss";
  3 +
  4 +.homeImage {
  5 + width: 97%;
  6 +}
  7 +
  8 +.infoImg {
  9 + display: flex;
  10 + justify-content: center;
  11 +}
  12 +
  13 +.centerBox {
  14 + text-align: center;
  15 + margin-top: 20rpx;
  16 +}
  17 +
  18 +.reservationInfo {
  19 + min-height: 200rpx;
  20 + padding-bottom: 20rpx;
  21 + position: relative;
  22 + color: #FBF6F1;
  23 +}
  24 +
  25 +
  26 +.reservationInfo .infoItem {
  27 + display: flex;
  28 + flex-direction: column;
  29 + margin: 0 40rpx;
  30 + display: flex;
  31 + line-height: 70rpx;
  32 + font-family: PingFang SC;
  33 +}
  34 +
  35 +.label {
  36 + flex-shrink: 0;
  37 + font-family: PingFang SC;
  38 +}
  39 +
  40 +.contentData {
  41 + flex: 1;
  42 + line-height: 60rpx;
  43 + font-family: PingFang SC;
  44 + margin-left: 80rpx;
  45 +}
  46 +
  47 +.handleInfo {
  48 + margin: 50rpx 40rpx 42rpx 40rpx;
  49 + display: flex;
  50 + justify-content: space-between;
  51 + align-items: center;
  52 +}
  53 +
  54 +.welcome {
  55 + text-align: center;
  56 + margin: 42rpx 40rpx 16rpx 40rpx;
  57 + font-weight: 500;
  58 + letter-spacing: 2rpx;
  59 + color: #FBF6F1;
  60 +}
  61 +
  62 +.headerimg {
  63 + width: 140rpx;
  64 + height: 140rpx;
  65 + border-radius: 71rpx;
  66 +}
  67 +
  68 +.handle {
  69 + display: flex;
  70 + flex-direction: column;
  71 + font-family: PingFang SC;
  72 + font-weight: 500;
  73 + font-size: 26rpx;
  74 + height: 110rpx;
  75 + justify-content: space-between;
  76 +}
  77 +
  78 +.handlePhone {
  79 + height: 100rpx;
  80 + margin: 0 20rpx;
  81 + color: #fff;
  82 + margin: 0 20rpx;
  83 + width: 45%;
  84 + overflow-y: scroll;
  85 +}
  86 +
  87 +.brownFont {
  88 + padding: 8rpx 16rpx;
  89 + color: #FBF6F1;
  90 + border: 2rpx solid #FBF6F1;
  91 + border-radius: 22rpx;
  92 + text-align: center;
  93 + width: 130rpx;
  94 +}
  95 +
  96 +.brownFont:nth-of-type(1) {
  97 + margin-bottom: 10rpx;
  98 +}
  99 +
  100 +.handle text {
  101 + margin-bottom: 20rpx;
  102 +}
  103 +
  104 +.handle text:nth-of-type(2) {
  105 + margin-bottom: 0;
  106 +}
  107 +
  108 +.positioning {
  109 + display: flex;
  110 + justify-content: center;
  111 + margin: 8rpx 30rpx 0 30rpx;
  112 + display: flex;
  113 + box-sizing: border-box;
  114 + flex-direction: column;
  115 + background: #FBF6F1;
  116 + padding: 20rpx;
  117 + border-radius: 16rpx;
  118 + flex: 1;
  119 + color: #000;
  120 +}
  121 +
  122 +.positioning image {
  123 + width: 32rpx;
  124 + height: 38rpx;
  125 + margin-right: 20rpx;
  126 +}
  127 +
  128 +.positioning .name {
  129 + width: 95%;
  130 + display: flex;
  131 + align-items: center;
  132 + font-family: PingFang SC;
  133 + font-size: 28rpx;
  134 + margin-top: 10rpx;
  135 +}
  136 +
  137 +.positioning .name text {
  138 + line-height: 50rpx;
  139 + width: 100%;
  140 +}
  141 +
  142 +.positioning .name text:nth-of-type(2) {
  143 + text-indent: 8rpx;
  144 +}
  145 +
  146 +.introduce {
  147 + box-sizing: border-box;
  148 +}
  149 +
  150 +.imgMask {
  151 + margin: 0 20rpx;
  152 +}
  153 +
  154 +.lines {
  155 + height: 2rpx;
  156 + margin: 20rpx 20rpx 0 20rpx;
  157 + background-color: #DBDBDB;
  158 +}
  159 +
  160 +.IntroduceColor {
  161 + margin: 0 20rpx;
  162 +}
  163 +
  164 +.famousChefBox .labelBox {
  165 + border-bottom: none;
  166 +}
  167 +
  168 +.labelBox {
  169 + width: 100%;
  170 + display: flex;
  171 + position: relative;
  172 + border-bottom: 2rpx solid #DBDBDB;
  173 +}
  174 +
  175 +.labelBox .texts {
  176 + width: 90%;
  177 + line-height: 40rpx;
  178 + margin: 0 0 20rpx 20rpx;
  179 + color: #515151;
  180 + font-family: PingFang SC;
  181 + font-size: 20rpx;
  182 + max-height: 400rpx;
  183 + overflow: hidden;
  184 + white-space: pre-line;
  185 + word-wrap: break-word;
  186 + overflow: hidden;
  187 + word-break: break-all;
  188 + text-overflow: ellipsis;
  189 + display: -webkit-box;
  190 + -webkit-box-orient: vertical;
  191 + -webkit-line-clamp: 10;
  192 + font-weight: 500;
  193 +}
  194 +
  195 +.labelBox .line1 {
  196 + margin: 0 0 0 16rpx;
  197 +}
  198 +
  199 +.imgMask image {
  200 + width: 100%;
  201 + display: block;
  202 +}
  203 +
  204 +.famousChefBox {
  205 + position: relative;
  206 +}
  207 +
  208 +.Introducepublic {
  209 + display: flex;
  210 + flex-direction: column;
  211 + font-size: 28rpx;
  212 + line-height: 50rpx;
  213 + box-sizing: border-box;
  214 +}
  215 +
  216 +.chefText {
  217 + font-family: PingFang SC;
  218 + font-weight: 500;
  219 + margin: 20rpx 0;
  220 +}
  221 +
  222 +.texts1 {
  223 + margin: 20rpx 0 20rpx 20rpx;
  224 +}
  225 +
  226 +.specialServices {
  227 + margin: 16rpx 40rpx;
  228 + border-bottom: 2rpx solid #DBDBDB;
  229 +}
  230 +
  231 +.rubric {
  232 + font-family: PingFang SC;
  233 + font-weight: 500;
  234 + font-size: 36rpx;
  235 + margin-bottom: 10rpx;
  236 +}
  237 +
  238 +.specialServices .news {
  239 + color: #515151;
  240 + font-family: PingFang SC;
  241 + font-weight: 500;
  242 + font-size: 24rpx;
  243 + line-height: 40rpx;
  244 + margin-left: 20rpx;
  245 +}
  246 +
  247 +.endStyle {
  248 + display: flex;
  249 + justify-content: flex-end;
  250 + height: 54rpx;
  251 + margin: 20rpx 0;
  252 +}
  253 +
  254 +
  255 +.orderingFood {
  256 + padding: 0 26rpx;
  257 + border-radius: 22rpx;
  258 + text-align: center;
  259 + color: #fff;
  260 + border-radius: 32rpx;
  261 + margin: 20rpx 0;
  262 + line-height: 44rpx;
  263 + height: 44rpx;
  264 + background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%);
  265 +}
  266 +
  267 +.preferential {
  268 + margin: 20rpx 40rpx;
  269 +}
  270 +
  271 +.rubric1 {
  272 + margin-bottom: 20rpx;
  273 +}
  274 +
  275 +.preferentialItems {
  276 + padding: 20rpx 30rpx 20rpx 20rpx;
  277 + display: flex;
  278 + justify-content: space-between;
  279 + align-items: center;
  280 + margin-bottom: 20rpx;
  281 + background: url('https://qn.colorcun.com/certificateBj.png') no-repeat;
  282 + background-size: 100% 100%;
  283 +}
  284 +
  285 +.itemLeft {
  286 + width: 75%;
  287 +}
  288 +
  289 +.itemTop {
  290 + display: flex;
  291 + width: 100%;
  292 + align-items: center;
  293 + margin-bottom: 20rpx;
  294 +}
  295 +
  296 +.itemBottom {
  297 + margin-top: 20rpx;
  298 + color: #515151;
  299 + font-family: PingFang SC;
  300 + font-weight: 500;
  301 + font-size: 20rpx;
  302 + display: -webkit-box;
  303 + word-break: break-all;
  304 + word-wrap: break-word;
  305 + overflow: hidden;
  306 + text-align: left;
  307 +}
  308 +
  309 +.itemTop text:nth-of-type(1) {
  310 + max-width: 65%;
  311 + font-weight: 600;
  312 + color: #515151;
  313 +}
  314 +
  315 +.itemTop .discountText {
  316 + text-align: center;
  317 + color: #E34D59;
  318 + border: 2rpx solid #E34D59;
  319 + border-radius: 6rpx;
  320 + margin: 0 10rpx 0 20rpx;
  321 + font-family: PingFang SC;
  322 +}
  323 +
  324 +.itemTop .priceText {
  325 + color: #E34D59;
  326 + font-weight: 500;
  327 +}
  328 +
  329 +.priceText {
  330 + display: flex;
  331 + align-items: center;
  332 + justify-content: center;
  333 +}
  334 +
  335 +.priceText .icons {
  336 + margin-left: 18rpx;
  337 + color: #E34D59;
  338 + font-size: 20rpx;
  339 +}
  340 +
  341 +.vips image {
  342 + height: 300rpx;
  343 +}
  344 +
  345 +.vips {
  346 + display: flex;
  347 + flex-direction: column;
  348 + justify-content: center;
  349 + align-items: center;
  350 + padding-bottom: 180rpx;
  351 +}
  352 +
  353 +.favouredPolicy {
  354 + width: 45%;
  355 + color: #5C95D7;
  356 + font-family: PingFang SC;
  357 + font-weight: 500;
  358 + border: 2rpx solid #5C95D7;
  359 + border-radius: 22rpx;
  360 + text-align: center;
  361 + padding: 10rpx;
  362 +}
  363 +
  364 +
  365 +.all-button {
  366 + background: #FAFAFA;
  367 + height: 160rpx;
  368 + padding: 0 40rpx;
  369 + box-sizing: border-box;
  370 + z-index: 100;
  371 + justify-content: flex-end;
  372 +}
  373 +
  374 +.between {
  375 + justify-content: space-between;
  376 +}
  377 +
  378 +.centerBtn {
  379 + margin: 0 20rpx;
  380 +}
  381 +
  382 +.second-book-button {
  383 + margin-right: 20rpx;
  384 +}
  385 +
  386 +.book-item-font {
  387 + width: 25%;
  388 + border: 2rpx solid #0143A3;
  389 + color: #0143A3;
  390 + height: 46%;
  391 + border-radius: 42rpx;
  392 + font-weight: 600;
  393 +}
  394 +
  395 +.shareItem {
  396 + width: 100%;
  397 + margin: 0;
  398 + background: #fafafa;
  399 + color: #0143A3;
  400 + border: 2rpx solid #0143A3;
  401 +}
  402 +
  403 +.between .shareItem {
  404 + width: 100%;
  405 + margin: 0;
  406 + background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%);
  407 + color: #fff;
  408 +}
  409 +
  410 +.sharewidth .shareItem {
  411 + width: 100% !important;
  412 +}
  413 +
  414 +.between .shareItem {
  415 + width: 65% !important;
  416 +}
  417 +
  418 +.book-item-font {
  419 + width: 40% !important;
  420 +}
  421 +
  422 +.menu-item {
  423 + width: 100%;
  424 + height: 100%;
  425 + display: flex;
  426 + justify-content: center;
  427 + align-items: center;
  428 +}
  429 +
  430 +.cook {
  431 + height: 94% !important;
  432 + background: #fff;
  433 + border: 2rpx solid #0143A3;
  434 + border-radius: 32rpx;
  435 + font-weight: normal;
  436 + width: 23% !important;
  437 +}
  438 +
  439 +.bold {
  440 + font-weight: 500;
  441 +}
  442 +
  443 +.evaluateBox {
  444 + margin: 20rpx 84rpx 20rpx 40rpx;
  445 + display: flex;
  446 + align-items: center;
  447 + justify-content: space-between;
  448 + color: #000;
  449 +}
  450 +
  451 +.evaluateBox image {
  452 + width: 60rpx;
  453 + height: 70rpx;
  454 +}
  455 +
  456 +.evaluateBox text {
  457 + color: #000;
  458 + font-size: 28rpx;
  459 +}
  460 +
  461 +.more {
  462 + height: 80rpx;
  463 + width: 100%;
  464 + position: fixed;
  465 + bottom: 160rpx;
  466 + display: flex;
  467 + align-items: center;
  468 + justify-content: center;
  469 + flex-direction: column;
  470 + background: rgba(0, 0, 0, .4);
  471 +}
  472 +
  473 +.more1 {
  474 + bottom: 40rpx;
  475 +}
  476 +
  477 +.moreText {
  478 + color: #fff;
  479 +}
  480 +
  481 +.more image {
  482 + width: 30rpx;
  483 + height: 30rpx;
  484 +}
  485 +
  486 +.pageSpacing {
  487 + position: relative;
  488 + display: flex;
  489 + justify-content: center;
  490 + align-items: center;
  491 + white-space: nowrap;
  492 + width: auto;
  493 + overflow-x: scroll;
  494 + border-bottom-left-radius: 10rpx;
  495 + border-bottom-right-radius: 10rpx;
  496 +}
  497 +
  498 +
  499 +.pageSpacing1 {
  500 + position: relative;
  501 + display: flex;
  502 + white-space: nowrap;
  503 + width: auto;
  504 + overflow-x: scroll;
  505 + border-bottom-left-radius: 10rpx;
  506 + border-bottom-right-radius: 10rpx;
  507 + padding-left: 116rpx;
  508 +}
  509 +
  510 +.scroll-view {
  511 + white-space: nowrap;
  512 + width: 100%;
  513 + height: 100%;
  514 +}
  515 +
  516 +.imgs {
  517 + position: relative;
  518 + display: flex;
  519 + white-space: nowrap;
  520 + width: 470rpx;
  521 + height: 348rpx;
  522 + margin-right: 30rpx;
  523 +}
  524 +
  525 +.imgs text {
  526 + background: #515151;
  527 + color: #fff;
  528 + position: absolute;
  529 + left: 0;
  530 + bottom: 0;
  531 + height: 64rpx;
  532 + line-height: 64rpx;
  533 + width: 470rpx;
  534 + text-align: center;
  535 + border-bottom-left-radius: 16rpx;
  536 + border-bottom-right-radius: 16rpx;
  537 +}
  538 +
  539 +.imageStyle {
  540 + display: inline-block;
  541 + width: 500rpx;
  542 + height: 348rpx;
  543 + border-radius: 16rpx;
  544 +}
  545 +
  546 +.centerBox {
  547 + justify-content: center;
  548 +}
  549 +
  550 +/* 黑蓝过渡 */
  551 +.blackBlueGradient .reservationInfo {
  552 + background: linear-gradient(104.24deg, #42a5ff -57.47%, #000000 55.72%, #42a5ff 182.69%);
  553 +}
  554 +
  555 +.blackBlueGradient .chefText,
  556 +.blackBlueGradient .rubric {
  557 + color: #0143A3;
  558 +}
  559 +
  560 +/* 石绿过渡 */
  561 +.stoneGreenGradient .reservationInfo {
  562 + background: linear-gradient(121.52deg, #438e93 1.76%, #206864 42.99%, #206864 75.66%, #42a5ff 120.1%);
  563 +}
  564 +
  565 +.stoneGreenGradient .chefText,
  566 +.stoneGreenGradient .rubric {
  567 + color: #206864;
  568 +}
  569 +
  570 +/* 中国红过渡 */
  571 +.chinaRedGradient .reservationInfo {
  572 + background: linear-gradient(309.04deg, #af231c -2.27%, #86201b 44.37%, #af231c 91.74%);
  573 +}
  574 +
  575 +.chinaRedGradient .chefText,
  576 +.chinaRedGradient .rubric {
  577 + color: #86201B;
  578 +}
  579 +
  580 +/* 群青过渡 */
  581 +.ultramarineGradient .reservationInfo {
  582 + background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%);
  583 +}
  584 +
  585 +.ultramarineGradient .chefText,
  586 +.ultramarineGradient .rubric {
  587 + color: #0143A3;
  588 +}
  589 +
  590 +/* 深中国红 */
  591 +.crimson .reservationInfo {
  592 + background: #86201B;
  593 +}
  594 +
  595 +.crimson .chefText,
  596 +.crimson .rubric {
  597 + color: #86201B;
  598 +}
  599 +
  600 +/* 中国红 */
  601 +.chinaRed .reservationInfo {
  602 + background: #AF231C;
  603 +}
  604 +
  605 +.chinaRed .chefText,
  606 +.chinaRed .rubric {
  607 + color: #AF231C;
  608 +}
  609 +
  610 +/* 蓝采和 */
  611 +.lanCaiHe .reservationInfo {
  612 + background: #06436F;
  613 +}
  614 +
  615 +.lanCaiHe .chefText,
  616 +.lanCaiHe .rubric {
  617 + color: #06436F;
  618 +}
  619 +
  620 +/* 石绿 */
  621 +.stoneGreen .reservationInfo {
  622 + background: #206864;
  623 +}
  624 +
  625 +.stoneGreen .chefText,
  626 +.stoneGreen .rubric {
  627 + color: #206864;
  628 +}
  629 +
  630 +/* 姜黄 */
  631 +.turmeric .reservationInfo {
  632 + background: #B39437;
  633 +}
  634 +
  635 +.turmeric .chefText,
  636 +.turmeric .rubric {
  637 + color: #B39437;
  638 +}
  639 +
  640 +/* 苍黄 */
  641 +.greenishYellow .reservationInfo {
  642 + background: #C85306;
  643 +}
  644 +
  645 +.greenishYellow .chefText,
  646 +.greenishYellow .rubric {
  647 + color: #C85306;
  648 +}
  649 +
  650 +/* 金黄 */
  651 +.golden .reservationInfo {
  652 + background: #C67B3A;
  653 +}
  654 +
  655 +.golden .chefText,
  656 +.golden .rubric {
  657 + color: #C67B3A;
  658 +}
  659 +
  660 +
  661 +/* 群青 */
  662 +.ultramarine .reservationInfo {
  663 + background: #0143A3;
  664 +}
  665 +
  666 +.ultramarine .chefText,
  667 +.ultramarine .rubric {
  668 + color: #0143A3;
  669 +}
  670 +
  671 +/* 摩洛哥蓝 */
  672 +.moroccanBlue .reservationInfo {
  673 + background: #19516A;
  674 +}
  675 +
  676 +.moroccanBlue .chefText,
  677 +.moroccanBlue .rubric {
  678 + color: #19516A;
  679 +}
  680 +
  681 +/* 珍珠白 */
  682 +.pearlWhite .reservationInfo {
  683 + background: #fbf6f1;
  684 + color: #515151;
  685 + border: 10rpx solid #fee4a7;
  686 +}
  687 +
  688 +.pearlWhite .chefText,
  689 +.pearlWhite .rubric {
  690 + color: #0143A3;
  691 +}
  692 +
  693 +.pearlWhite .handlePhone,
  694 +.pearlWhite .welcome {
  695 + color: #515151;
  696 +}
  697 +
  698 +.pearlWhite .brownFont {
  699 + color: #515151;
  700 + border: 2rpx solid #515151;
  701 +}
  702 +
  703 +.pearlWhite .positioning {
  704 + background: #F8F9FD;
  705 +}