Commit f9f85abd4685fbd86e6556fb55b35920e76ddbf1

Authored by pengye
1 parent 8083dd87

邀请函主题页面按照模板1,模板2等区分

@@ -55,12 +55,13 @@ @@ -55,12 +55,13 @@
55 "pages/reserve/reserve", 55 "pages/reserve/reserve",
56 "pages/tcads/cmyy", 56 "pages/tcads/cmyy",
57 "pages/pinglun/video", 57 "pages/pinglun/video",
58 - "pages/customer/detail_owner_invitation_new1",  
59 "pages/me/coupon_news", 58 "pages/me/coupon_news",
60 "pages/me/wananchi", 59 "pages/me/wananchi",
61 "pages/pinglun/createOpinion", 60 "pages/pinglun/createOpinion",
62 "pages/pinglun/opinionSuccess", 61 "pages/pinglun/opinionSuccess",
63 - "pages/customer/detail_owner_invitation_new2" 62 + "pages/customer/detail_owner_invitation1",
  63 + "pages/customer/detail_owner_invitation4",
  64 + "pages/customer/detail_owner_invitation6"
64 ], 65 ],
65 "requiredPrivateInfos": [ 66 "requiredPrivateInfos": [
66 "getLocation", 67 "getLocation",
  1 +// pages/customer/detail_owner1.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 +const {
  8 + regeneratorRuntime
  9 +} = global
  10 +import ST from '../../utils/sms_tpls';
  11 +Page({
  12 +
  13 + /**
  14 + * 页面的初始数据
  15 + */
  16 + data: {
  17 + detail: null,
  18 + height: 667,
  19 + current: 0,
  20 + tpls: [],
  21 + seller: {
  22 + name: '',
  23 + room: '',
  24 + date: '',
  25 + addr: ''
  26 + },
  27 + options: {
  28 + tplid: ''
  29 + },
  30 + hasOwner: true, //是否为发起人
  31 + animation: 'animation',
  32 + couponhidden: true,
  33 + getcoupon: false,
  34 + menuhidden: true,
  35 + selecthidden: true,
  36 + morehidden: true,
  37 + openid: getApp().openid
  38 + },
  39 + id: null,
  40 + msgTpl: '',
  41 + /**
  42 + * 生命周期函数--监听页面加载
  43 + */
  44 + onLoad: function (options) {
  45 + this.id = options.id
  46 + let param = {
  47 + options: options,
  48 + hasOwner: options.hasSellerShare == 1, //是否为发起人
  49 + }
  50 + param.tpls = [TP.tpls(options.tplid)]
  51 + this.setData(param)
  52 + mta.Page.init({
  53 + "appID": "500667280",
  54 + "eventID": "500667287",
  55 + "statPullDownFresh": true,
  56 + "statShareApp": true,
  57 + "statReachBottom": true,
  58 + "lauchOpts": options, //渠道分析
  59 + });
  60 + },
  61 +
  62 + /**
  63 + * 生命周期函数--监听页面初次渲染完成
  64 + */
  65 + onReady: function () {
  66 +
  67 + },
  68 +
  69 + /**
  70 + * 生命周期函数--监听页面显示
  71 + */
  72 + onShow: function () {
  73 + //导航栏自适应
  74 + let systemInfo = wx.getSystemInfoSync();
  75 + let reg = /ios/i;
  76 + let pt = 20; //导航状态栏上内边距
  77 + let h = 44; //导航状态栏高度
  78 + if (reg.test(systemInfo.system)) {
  79 + pt = systemInfo.statusBarHeight;
  80 + h = 44;
  81 + } else {
  82 + pt = systemInfo.statusBarHeight;
  83 + h = 48;
  84 + }
  85 + this.setData({
  86 + statusBarHeight: pt,
  87 + titleBarHeight: h,
  88 + height: systemInfo.windowHeight
  89 + })
  90 + this.getDetail(getCurrentPages().length == 1);
  91 + },
  92 + cloudsendmsg() {
  93 + wx.cloud.callFunction({
  94 + name: 'sms',
  95 + data: {
  96 + content: '测试发送短信息年底是否会iv',
  97 + path: 'index.html?id=' + this.data.options.id + '&hasInvation=1&hasSellerShare=1&uid=' + this.data.options.uid,
  98 + phoneNumberList: ['15735929096']
  99 +
  100 + },
  101 + success: (res) => {
  102 + console.log('success', res)
  103 + },
  104 + fail: (fail) => {
  105 + console.log('fail', res)
  106 + }
  107 + })
  108 + },
  109 +
  110 + cli() {
  111 + wx.setClipboardData({
  112 + data: this.data.staffinfo.wechat,
  113 + success(res) {
  114 + wx.getClipboardData({
  115 + success(res) {
  116 + console.log(res.data) // data
  117 + }
  118 + })
  119 + }
  120 + })
  121 + },
  122 +
  123 + call() {
  124 + wx.reportMonitor('1012', 1)
  125 + wx.makePhoneCall({
  126 + phoneNumber: this.data.staffinfo.phone
  127 + })
  128 + },
  129 + test(e) {
  130 + console.log('ttttttttttttttt');
  131 + // App.Contact.UploadCustomerMedia({url:this.data.staffinfo.qrcode}).then((json)=>{
  132 + // if(json.ret==200) {
  133 + // console.log('json')
  134 + // }
  135 + // })
  136 + },
  137 + addwechat() {
  138 + // wx.previewImage({
  139 + // current: this.data.staffinfo.qrcode, // 当前显示图片的http链接
  140 + // urls: [this.data.staffinfo.qrcode] // 需要预览的图片http链接列表
  141 + // })
  142 + wx.reportMonitor('1011', 1)
  143 + util.cache('staffinfo', this.data.staffinfo);
  144 + wx.navigateTo({
  145 + url: './wechat?qrcode=' + this.data.staffinfo.qrcode
  146 + })
  147 +
  148 + },
  149 + getstaffinfo() {
  150 + App.Activity.GetCustomerActivityBaseinfo({
  151 + sellerid: this.data.detail.seller.id,
  152 + uid: this.data.options.uid
  153 + }).then((json) => {
  154 + if (json.ret == 200) {
  155 + console.log(json)
  156 + this.setData({
  157 + staffinfo: json.data
  158 + })
  159 + }
  160 + })
  161 + },
  162 + getroomimage() {
  163 + App.Tables.GetTablesPhoto({
  164 + sellerid: this.data.detail.seller.id,
  165 + tableids: this.tablestr
  166 + }).then((json) => {
  167 + if (json.ret == 200) {
  168 + this.setData({
  169 + roomimage: json.data
  170 + })
  171 + var urlsArr = [];
  172 + json.data.forEach((v, i) => {
  173 + urlsArr.push(v.url);
  174 + })
  175 + this.urlsValue = urlsArr;
  176 + console.log(urlsArr, 'lllllll')
  177 + }
  178 + })
  179 + },
  180 + lookroom() {
  181 + wx.previewImage({
  182 + current: '', // 当前显示图片的http链接
  183 + urls: this.urlsValue, // 需要预览的图片http链接列表
  184 + })
  185 + },
  186 + secondbook() {
  187 + wx.reportMonitor('1013', 1)
  188 + if (this.data.list) {
  189 + wx.navigateTo({
  190 + url: './discount?sid=' + this.data.detail.seller.id + '&id=' + this.data.options.id
  191 + })
  192 + } else {
  193 + wx.redirectTo({
  194 + url: '../reserve/detail?id=' + this.data.detail.seller.id
  195 + })
  196 + }
  197 +
  198 + },
  199 + /**
  200 + * 生命周期函数--监听页面隐藏
  201 + */
  202 + onHide: function () {
  203 +
  204 + },
  205 +
  206 + /**
  207 + * 生命周期函数--监听页面卸载
  208 + */
  209 + onUnload: function () {
  210 +
  211 + },
  212 +
  213 + /**
  214 + * 用户点击右上角分享
  215 + */
  216 + onShareAppMessage: function () {
  217 + return this.sharesetting();
  218 + },
  219 + onShareTimeline() {
  220 + return this.sharesetting();
  221 + },
  222 + getDetail(fouce = false) {
  223 + App.Reserve.Detail({
  224 + openid: getApp().openid,
  225 + rid: this.data.options.id
  226 + }, fouce).then(res => {
  227 + let tables = [],
  228 + regions = [],
  229 + tabaleids = [];
  230 + res.data.tables.forEach(t => {
  231 + tables.push(t.name);
  232 + tabaleids.push(t.id);
  233 + if (regions.indexOf('t.rname') == -1) {
  234 + regions.push(t.rname);
  235 + }
  236 +
  237 + })
  238 + this.tablestr = tabaleids.toString();
  239 + let reserev = RS.reserve(res.data)
  240 + console.log('reserev', reserev)
  241 + let dateSmart
  242 + if (res.data.type == 1) {
  243 + dateSmart = util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStrSmart[0])
  244 + if (res.data.is_set_ddate == 1) {
  245 + dateSmart += ' ' + util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStrSmart[1])
  246 + } else {
  247 + dateSmart += ' ' + reserev.soltName
  248 + }
  249 + } else {
  250 + dateSmart = util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStr)
  251 + }
  252 + this.setData({
  253 + detail: this.formatDatail(reserev, dateSmart),
  254 + seller: {
  255 + name: reserev.seller.sellername,
  256 + room: tables.join('、'),
  257 + date: dateSmart,
  258 + region: regions.join('、'),
  259 + addr: reserev.seller.real_address || reserev.seller.map_address,
  260 + image: reserev.image_url,
  261 + hasOwner: true,
  262 + type: reserev.type,
  263 + is_set_ddate: reserev.is_set_ddate,
  264 + hasUpTime: reserev.type == 1 && reserev.hasRunning && reserev.status != 2,
  265 + tel: reserev.seller.seller_tel.split(',')[0]
  266 + }
  267 + })
  268 + if (this.data.detail.type == 0 || this.data.detail.type == 1) {
  269 + this.getstaffinfo();
  270 + this.getroomimage();
  271 + this.getactivity();
  272 + }
  273 +
  274 + /*
  275 + App.Reserve.SellerInfo({seller_id:reserev.seller.id}).then(async sc=>{
  276 + this.msgTpl=await ST.getTplMsg(reserev,sc.data.setting.template_code,sc.data)
  277 + console.log('this.msgTpl',this.msgTpl);
  278 + })*/
  279 + })
  280 + App.SendSMS.GetSmsContent({
  281 + rid: this.data.options.id,
  282 + }).then(res => {
  283 + this.msgTpl = res.data.content
  284 + })
  285 + },
  286 + formatDatail(detail, dateSmart) {
  287 + detail.rdateStr = dateSmart;
  288 + detail.tableFirst = detail.tables[0].name;
  289 + if (detail.tables.length > 1) {
  290 + detail.tableSubInfo = '等' + (detail.tables.length) + '个' +
  291 + (detail.tables[0].tid == 2 ? '包间' : '');
  292 + }
  293 + if (detail.rname && detail.sex != 3) {
  294 + detail.rnameStr = detail.rname.substr(0, 1) + (detail.sex == 1 ? '先生' : '女士')
  295 + } else {
  296 + detail.rnameStr = detail.rname
  297 + }
  298 + detail.eatStr = '邀请您共进晚餐';
  299 + let hi = util.unixtoTime(detail.ddate, 'HHII');
  300 + if (hi < '10:00') {
  301 + detail.eatStr = '邀请您共进早餐';
  302 + } else if (hi < '15:00') {
  303 + detail.eatStr = '邀请您共进午餐';
  304 + }
  305 +
  306 + // if(!detail.cusman){
  307 + // detail.cusman='vking';
  308 + // detail.cusman_phone='15877556369';
  309 + // detail.cusman_account='wx:vking';
  310 + // }
  311 + //detail=RS.reserve(detail);
  312 + return detail;
  313 + },
  314 + showManager() {
  315 + if (this.data.detail.cusman_phone || this.data.detail.cusman_account) {
  316 + this.selectComponent('#manager').show();
  317 + }
  318 +
  319 + },
  320 + looklocation: function () {
  321 + wx.reportMonitor('1015', 1)
  322 + wx.openLocation({
  323 + latitude: Number(this.data.detail.seller.lat),
  324 + longitude: Number(this.data.detail.seller.long),
  325 + scale: 17,
  326 + address: this.data.detail.seller.map_address,
  327 + success: function (res) {
  328 + console.log(res)
  329 + }
  330 + })
  331 + },
  332 + userinfo() {
  333 + if (!this.data.detail.hasCanSuccess) {
  334 + let userInfo = util.cache('userInfo');
  335 + if (userInfo) {
  336 + userInfo = JSON.stringify({
  337 + openid: getApp().openid,
  338 + avatar: userInfo.avatarUrl,
  339 + nickname: userInfo.nickName,
  340 + gender: userInfo.gender
  341 + })
  342 + }
  343 + App.Reserve.SetRelaSuccess({
  344 + rid: this.id,
  345 + openid: getApp().openid,
  346 + is_agree: 1,
  347 + userinfo: userInfo
  348 + }).then(res => {
  349 + App.Reserve.Detail({
  350 + openid: getApp().openid,
  351 + rid: this.id
  352 + }, 'clear')
  353 + wx.navigateTo({
  354 + //id={{detail.id}}&rdate={{detail.rdate}}
  355 + url: 'remind?id=' + this.id + '&rdate=' + this.data.detail.rdate,
  356 + });
  357 + })
  358 + } else {
  359 + // wx.navigateTo({
  360 + // url:'invite?id='+this.id,
  361 + // });
  362 + }
  363 + },
  364 + setUserInfoSuccess() {
  365 + util.toast('授权成功,可以继续转发', 'none');
  366 + },
  367 + toast() {
  368 + util.toast('本区域暂无配送人员', 'none');
  369 + },
  370 + reserveCancel() {
  371 + let userInfo = util.cache('userInfo');
  372 + if (userInfo) {
  373 + userInfo = JSON.stringify({
  374 + openid: getApp().openid,
  375 + avatar: userInfo.avatarUrl,
  376 + nickname: userInfo.nickName,
  377 + gender: userInfo.gender
  378 + })
  379 + }
  380 + App.Reserve.SetRelaSuccess({
  381 + rid: this.id,
  382 + openid: getApp().openid,
  383 + cancel: 'cancel',
  384 + is_agree: 0,
  385 + userinfo: userInfo
  386 + }).then(res => {
  387 + this.getDetail(true);
  388 + })
  389 + },
  390 + sharesetting() {
  391 + wx.reportMonitor('1017', 1)
  392 + let parmdata = {
  393 + id: this.id,
  394 + fromid: getApp().openid,
  395 + hasInvitation: 1,
  396 + tplid: this.data.options.tplid,
  397 + }
  398 + if (this.data.options.uid) {
  399 + parmdata.uid = this.data.options.uid;
  400 + }
  401 + return {
  402 + title: this.data.tpls[0].shareTitle,
  403 + path: util.http_build_query(parmdata, '/pages/customer/index'),
  404 + imageUrl: this.data.tpls[0].shareImage,
  405 + }
  406 + },
  407 + cookbook() {
  408 + if (this.data.detail.order && this.data.detail.order.cookbooklist.length > 0) {
  409 + wx.navigateTo({
  410 + url: util.http_build_query({
  411 + rid: this.id,
  412 + oid: this.data.detail.order.id,
  413 + identity: 1
  414 + }, '/pack-cookbook/pages/success')
  415 + });
  416 + } else {
  417 + App.Advance.CreateOrder({
  418 + rid: this.id,
  419 + openid: getApp().openid,
  420 + }).then(res => {
  421 + if (res.ret != 200) {
  422 + return util.toast(res.msg, 'none')
  423 + }
  424 + wx.navigateTo({
  425 + url: util.http_build_query({
  426 + rid: this.id,
  427 + oid: res.data.id,
  428 + identity: 1,
  429 + sid: res.data.sellerid
  430 + }, '/pack-cookbook/pages/index')
  431 + });
  432 + })
  433 + }
  434 + },
  435 + sendmsg() {
  436 + wx.setClipboardData({
  437 + data: this.msgTpl
  438 + })
  439 + },
  440 + upTime() {
  441 + this.selectComponent('#ddate').show();
  442 + },
  443 + ddateEvent(e) {
  444 + console.log(e.detail.ddate)
  445 + this.getDetail(true)
  446 + },
  447 + gotoHome() {
  448 + wx.switchTab({
  449 + url: '/pages/reserve/index'
  450 + })
  451 + },
  452 + load(e) {
  453 + console.log(e, 'care')
  454 + },
  455 + setcoupon() {
  456 + if (this.data.list && this.data.list.length > 0) {
  457 + let list = this.data.list,
  458 + liststr = [];
  459 + list.forEach((v, i) => {
  460 + liststr.push(v.id);
  461 + })
  462 + App.Activity.SetActivityAsReserve({
  463 + aid: liststr.toString()
  464 + }).then((json) => {
  465 + if (json.ret == 200) {
  466 + this.setData({
  467 + getcoupon: true
  468 + })
  469 + }
  470 + })
  471 + }
  472 + },
  473 + tohref() {
  474 + let systemInfo = wx.getSystemInfoSync();
  475 + let reg = /ios/i;
  476 + if (reg.test(systemInfo.system)) {
  477 + wx.showModal({
  478 + content: '关注"周到安排"公众号,及时获取更多优惠信息',
  479 + comfirmText: '去关注',
  480 + comfirmColor: '#5EB2FF',
  481 + cancelText: '取消',
  482 + cancelColor: '#999999',
  483 + success: (res) => {
  484 + if (res.confirm) {
  485 + wx.setClipboardData({
  486 + data: '周到安排',
  487 + success(res) {
  488 + wx.getClipboardData({
  489 + success(res) {
  490 + console.log(res.data) // data
  491 + }
  492 + })
  493 + }
  494 + })
  495 + }
  496 + }
  497 + })
  498 + } else {
  499 + wx.navigateTo({
  500 + url: './care'
  501 + })
  502 + }
  503 +
  504 + },
  505 + getactivity() {
  506 + App.Activity.GetActivityByRid({
  507 + rid: this.id
  508 + }).then((json) => {
  509 + if (json.ret == 200) {
  510 + console.log(json.data);
  511 + this.setData({
  512 + list: json.data
  513 + })
  514 + this.setcoupon();
  515 + }
  516 + })
  517 + },
  518 + todetail(e) {
  519 + let aid = e.currentTarget.dataset.id;
  520 + console.log(aid)
  521 + wx.navigateTo({
  522 + url: '../me/coupon_detail?aid=' + aid
  523 + })
  524 + },
  525 + close() {
  526 + this.setData({
  527 + couponhidden: true,
  528 + })
  529 + },
  530 + checkout() {
  531 + if (this.data.detail.status == 0) {
  532 + this.selectComponent('#showModal').options({
  533 + header: '您点早啦!',
  534 + body: '商家分配包间后,您可以通过在线买单支付,无需到前台结账排队等发票。'
  535 + }).show();
  536 + } else {
  537 + wx.navigateTo({
  538 + url: util.http_build_query({
  539 + rid: this.data.detail.id,
  540 + sid: this.data.detail.sid
  541 + }, '/pack-checkout/pages/index')
  542 + })
  543 + }
  544 + },
  545 + showmenu() {
  546 + this.setData({
  547 + menuhidden: false
  548 + })
  549 + },
  550 + hidemenu() {
  551 + this.setData({
  552 + menuhidden: true
  553 + })
  554 + },
  555 + noopen(e) {
  556 + let mark = e.currentTarget.dataset.mark;
  557 + wx.showToast({
  558 + title: '该商家未开通' + (mark == 'buy' ? '提前点餐' : '在线买单'),
  559 + duration: 2000,
  560 + mask: true
  561 + })
  562 + },
  563 + noopenservice() {
  564 + wx.showToast({
  565 + title: '当前城市暂未开通该服务,敬请期待',
  566 + icon: 'none'
  567 + })
  568 + },
  569 + showselect() {
  570 + wx.reportMonitor('1014', 1)
  571 + if (this.data.selecthidden == false) {
  572 + this.closeselect();
  573 + } else {
  574 + this.setData({
  575 + selecthidden: false
  576 + })
  577 + }
  578 + },
  579 + closeselect() {
  580 + console.log('ttttt')
  581 + this.setData({
  582 + selecthidden: true
  583 + })
  584 + },
  585 + showmore() {
  586 + if (this.data.morehidden == false) {
  587 + this.closemore();
  588 + } else {
  589 + this.setData({
  590 + morehidden: false
  591 + })
  592 + }
  593 +
  594 + },
  595 + closemore() {
  596 + this.setData({
  597 + morehidden: true
  598 + })
  599 + },
  600 + cancelmodal() {
  601 + wx.showModal({
  602 + title: '取消预订',
  603 + content: '点击“确认取消”撤回当前预订,否则点击返回',
  604 + confirmColor: '#576B95',
  605 + confirmText: '确认取消',
  606 + cancelColor: '#999999',
  607 + cancelText: '返回',
  608 + success: (res) => {
  609 + if (res.confirm) {
  610 + this.cancelSubmit();
  611 + }
  612 + }
  613 +
  614 + })
  615 + },
  616 + cancelSubmit() {
  617 + App.Reserve.Detail({
  618 + openid: getApp().openid,
  619 + rid: this.options.id
  620 + }, 'clear')
  621 + App.Customer.SetReserveStatusByUser({
  622 + rid: this.options.id,
  623 + desc: '',
  624 + }).then(res => {
  625 + if (res.ret != 200) {
  626 + return util.toast(res.msg, 'none')
  627 + }
  628 + })
  629 + },
  630 +})
  1 +{
  2 + "navigationBarBackgroundColor": "#ffffff",
  3 + "navigationBarTextStyle": "white",
  4 + "navigationBarTitleText": "订座详情",
  5 + "usingComponents": {
  6 + "userinfo": "/components/userinfo/userinfo",
  7 + "nav": "/components/nav/nav",
  8 + "formids": "/components/formids/formids",
  9 + "ddate": "/components/reserve/invitation/ddate",
  10 + "a2l": "/components/tips/add-to-lite",
  11 + "userinfo-share": "/components/userinfo/share",
  12 + "service": "/components/tips/service",
  13 + "showModal": "/components/tips/showModal/showModal"
  14 + }
  15 +}
  1 +<!--pages/customer/detail_owner1.wxml-->
  2 +<wxs src="../../utils/util.wxs" module="util" />
  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}}">
  5 +</nav>
  6 +<!-- 内部预定 -->
  7 +<block wx:if="{{detail}}">
  8 + <showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal>
  9 + <scroll-view class="last-book-bg" style="line-height: 1.4;height:{{height}}px;" scroll-y>
  10 + <view style="height:{{statusBarHeight+titleBarHeight}}px;"></view>
  11 + <view class="book-flower" style="top:{{statusBarHeight+titleBarHeight}}px;"></view>
  12 + <view style="padding-left: 40rpx;box-sizing: border-box;">
  13 + <view class="last-book-staff flex-vr" style="align-items: flex-end;">
  14 + <image src="{{staffinfo.photo}}" class="book-staff-headerimg" mode="aspectFit"></image>
  15 + <view class="flex-rr" style="margin-bottom: 20rpx;">
  16 + <view class="flex-rr font26r yellow-font">客户经理:{{staffinfo.name}}</view>
  17 + <view class="book-staff-item-button flex-cc" bindtap="cli">
  18 + <image src="http://nosqn.colorcun.com/book-wechat.png" class="book-header-icon"></image>
  19 + <view class="font22r brown-font">复制微信号</view>
  20 + </view>
  21 + </view>
  22 + <view class="flex-rr">
  23 + <view class="flex-rr font26r yellow-font">{{staffinfo.phone ? staffinfo.phone : seller.tel}}</view>
  24 + <view class="book-staff-item-button flex-cc" bindtap="call">
  25 + <image src="http://nosqn.colorcun.com/book-phone.png" class="book-header-icon"></image>
  26 + <view class="font22r brown-font">拨打电话</view>
  27 + </view>
  28 + </view>
  29 + </view>
  30 + <view class="book-font"></view>
  31 + <view class="flex-lr" style="padding-right: 40rpx;box-sizing: border-box;align-items: flex-start;">
  32 + <view class="yellow-font font44r" style="max-width:428rpx;margin-bottom: 60rpx;">{{seller.name}}</view>
  33 + <block wx:if="{{detail.seller.is_open_order==1 && !detail.hasOvered && !detail.hasCancel}}">
  34 + <block wx:if="{{detail && detail.seller.is_open_order==1}}">
  35 + <view class="last-book-food flex-cc" bindtap="cookbook">
  36 + <view class="white-font font30r smooth" style="color: #043341;">提前点餐</view>
  37 + <image src="http://nosqn.colorcun.com/book-direction.png" style="width: 12rpx;height: 24rpx;margin-left: 10rpx;"></image>
  38 + <view class="notice"></view>
  39 + </view>
  40 + </block>
  41 + <block wx:else>
  42 + <view class="last-book-food flex-ll" bindtap="noopen" data-mark="buy">
  43 + <view class="white-font font30r smooth">提前点餐</view>
  44 + <image src="http://nosqn.colorcun.com/book-direction.png" style="width: 12rpx;height: 24rpx;margin-left: 10rpx;"></image>
  45 + <view class="notice"></view>
  46 + </view>
  47 + </block>
  48 + </block>
  49 + </view>
  50 +
  51 + <view>
  52 + <view class="font26r" style="color: #C9BD89;margin-bottom: 20rpx;">已为您安排在包间</view>
  53 + <view class="font40r" style="color: #E8D47E;margin-bottom: 20rpx;">{{seller.region}}</view>
  54 + <view class="book-room-rect flex-cc">
  55 + <view class="font44r yellow-font">{{seller.room}}</view>
  56 + <view class="book-look-button brown-font font22r flex-cc" wx:if="{{roomimage && roomimage.length>0}}" bindtap="lookroom">浏览照片</view>
  57 + <view class="book-look-button gray-font font22r flex-cc" wx:else style="background: #CCCCCC;">浏览照片</view>
  58 + </view>
  59 + <view class="yellow-font font30r" style="margin-bottom: 24rpx;">时间:{{seller.date}}</view>
  60 + <view class="flex-lr" style="line-height: 1.2;padding-right: 40rpx;box-sizing: border-box;">
  61 + <view class="yellow-font font30r">地址:{{seller.addr}}</view>
  62 + <view class="loaction-button black-font font22r flex-cc" bindtap="looklocation">一键导航</view>
  63 + </view>
  64 +
  65 + </view>
  66 + </view>
  67 + <view style="height: 240rpx;"></view>
  68 + </scroll-view>
  69 + <view class="all-button flex-lr">
  70 + <block wx:if="{{detail.hasCancel}}">
  71 + <view class="book-item-font flex-cc">
  72 + <image src="http://nosqn.colorcun.com/book-share-nouse-button.png" class="button-item-icon"></image>
  73 + <view class="font30r" style="color: #999999;">转发好友</view>
  74 + </view>
  75 + </block>
  76 + <block wx:else>
  77 + <button class="book-item-font flex-cc" open-type="share">
  78 + <image src="http://nosqn.colorcun.com/book-share-button.png" class="button-item-icon"></image>
  79 + <view class="font30r">转发好友</view>
  80 + </button>
  81 + </block>
  82 + <view class="book-item-font second-book-button flex-cc" bindtap="secondbook" style="position: relative;">
  83 + <image src="http://nosqn.colorcun.com/second-book.png" class="button-item-icon"></image>
  84 + <view class="font30r">再次预订</view>
  85 + <view class="notice" style="top: -10rpx;right: 0rpx;"></view>
  86 + </view>
  87 + <view class="line-border"></view>
  88 + <block wx:if="{{list}}">
  89 + <view class="book-notice flex-vc">
  90 + <view class="white-font font26r flex-cc">再次预订可享“{{list[0].aname}}”优惠</view>
  91 + <view class="angel"></view>
  92 + </view>
  93 + </block>
  94 + </view>
  95 + <view class="book-mask" hidden="{{selecthidden}}" bindtap="closeselect"></view>
  96 + <view class="book-buttons">
  97 + <view class="select-button white-font font28r flex-cc" bindtap="showselect">选项</view>
  98 + <view hidden="{{selecthidden}}">
  99 + <navigator class="select-item-button flex-cc white-font font24r" style="left: 75rpx;bottom:290rpx;" open-type="redirect" url="/pages/customer/index?islove=custom">首页</navigator>
  100 + <navigator class="select-item-button flex-cc white-font font24r" style="left: 150rpx;bottom:160rpx;" open-type="redirect" url="/pages/me/index">我的</navigator>
  101 + <block wx:if="{{detail.hasCancel}}">
  102 + <view class="select-item-button flex-cc gray-font font28r" style="left: 75rpx;bottom:30rpx;">取消订单</view>
  103 + </block>
  104 + <block wx:else>
  105 + <view class="select-item-button flex-cc white-font font24r" style="left: 75rpx;bottom:30rpx;" bindtap="cancelmodal">取消订单</view>
  106 + </block>
  107 + <!-- <view class="select-item-button flex-cc white-font font24r" style="left: 42rpx;bottom:10rpx;" bindtap="closeselect">返回</view> -->
  108 + </view>
  109 + </view>
  110 + <view class="book-mask" hidden="{{morehidden}}" bindtap="closemore"></view>
  111 + <view class="service-buttons">
  112 + <view class="more-button white-font font28r flex-vc" bindtap="showmore" hidden="true">更多<view>服务</view>
  113 + </view>
  114 + <view hidden="{{morehidden}}">
  115 + <view class="select-item-button flex-cc gray-font font24r" style="right: 39rpx;bottom:681rpx;" bindtap="noopenservice">酒水</view>
  116 + <view class="select-item-button flex-cc gray-font font24r" style="right: 136rpx;bottom:599rpx;" bindtap="noopenservice">代驾</view>
  117 + <view class="select-item-button flex-cc gray-font font24r" style="right: 136rpx;bottom:473rpx;" bindtap="noopenservice">酒店</view>
  118 + <view class="select-item-button flex-cc gray-font font24r" style="right: 39rpx;bottom:391rpx;" bindtap="noopenservice">茶楼沐足</view>
  119 + <!-- <view class="select-item-button flex-cc white-font font24r" style="right: 0rpx;bottom:368rpx;" bindtap="closemore">返回</view> -->
  120 + </view>
  121 + </view>
  122 + <block wx:if="{{detail.hasCancel}}">
  123 + <view class="cancel-mark"></view>
  124 + </block>
  125 +</block>
  126 +<block wx:else>
  127 + <block wx:if="{{detail}}">
  128 + <view class="pages bg-{{options.tplid}} flex-vc" style="height:{{height}}px;" wx:if="{{options.tplid}}">
  129 + <template is="tpl-{{options.tplid}}" data="{{seller,options,hasOwner,animation}}"></template>
  130 + <view class="opt-view flex-vc">
  131 + <block wx:if="{{!detail.hasOvered && !detail.hasCancel}}">
  132 + <button open-type="share" class="button-none flex-vc" catchtap="setUserInfoSuccess">
  133 + <view class="buts-share"></view>
  134 + </button>
  135 + </block>
  136 + <block wx:elif="{{detail.hasCancel}}">
  137 + <view class="opt-view-tip Medium">订座已取消</view>
  138 + </block>
  139 + <block wx:else="">
  140 + <view class="opt-view-tip Medium">订座已完成</view>
  141 + </block>
  142 + </view>
  143 + </view>
  144 + </block>
  145 +
  146 +</block>
  147 +<!-- <view class="menu" wx:if="{{detail && detail.type==0 && detail.channel==2}}" bindtap="showmenu"></view> -->
  148 +<view class="menu-list flex-vl" style="justify-content: flex-end;" wx:if="{{detail && detail.type==0 && detail.channel==5}}" hidden="{{menuhidden}}" catchtap="hidemenu">
  149 + <view class="menu-item menu-seller-item flex-ll" catchtap="secondbook">
  150 + <view class="menu-item-image" style="background: url({{detail.seller.seller_image}}) center center no-repeat;background-size: cover;"></view>
  151 + <view class="white-font font30r smooth">{{seller.name}}</view>
  152 + <view class="click-icon"></view>
  153 + </view>
  154 + <view class="menu-item menu-seller-item flex-ll" bindtap="secondbook">
  155 + <view class="menu-item-image menu-item-book"></view>
  156 + <view class="white-font font30r smooth">再次预订</view>
  157 + </view>
  158 + <block wx:if="{{detail.seller.is_open_order==1 && !detail.hasOvered && !detail.hasCancel}}">
  159 + <block wx:if="{{detail && detail.seller.is_open_order==1}}">
  160 + <view class="menu-item menu-seller-item flex-ll" bindtap="cookbook">
  161 + <view class="menu-item-image menu-item-buy"></view>
  162 + <view class="white-font font30r smooth">提前点餐</view>
  163 + </view>
  164 + </block>
  165 + <block wx:else>
  166 + <view class="menu-item menu-seller-item flex-ll" bindtap="noopen" data-mark="buy">
  167 + <view class="menu-item-image menu-item-buy-nouse"></view>
  168 + <view class="gray-font font30r smooth">提前点餐</view>
  169 + </view>
  170 + </block>
  171 + <block wx:if="{{detail && detail.seller.isopen_md==1}}">
  172 + <view class="menu-item menu-seller-item flex-ll" bindtap="checkout">
  173 + <view class="menu-item-image menu-item-check"></view>
  174 + <view class="white-font font30r smooth">在线买单</view>
  175 + </view>
  176 + </block>
  177 + <block wx:else>
  178 + <view class="menu-item menu-seller-item flex-ll" bindtap="noopen" data-mark="checkout">
  179 + <view class="menu-item-image menu-item-check-nouse"></view>
  180 + <view class="gray-font font30r smooth">在线买单</view>
  181 + </view>
  182 + </block>
  183 + </block>
  184 + <view class="menu-item menu-seller-item flex-ll" bindtap="hidemenu">
  185 + <view class="menu-item-image menu-item-back"></view>
  186 + <view class="white-font font30r smooth">返回</view>
  187 + </view>
  188 +</view>
  189 +<view class="bottom flex-lr" wx:if="{{!detail.hasOvered && !detail.hasCancel && detail.channel!=5}}">
  190 +
  191 + <view bindtap="gotoHome" class="dingbaojian flex-vc">
  192 + <image src="http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20191114105901.png" class="icon"></image>
  193 + <view class="text">订包间</view>
  194 + </view>
  195 + <formids bindclick="sendmsg" class="diancan" style="{{detail.seller.is_open_order!=1 && detail.seller.is_open_wine!=1?'width:100%;':''}}">
  196 + <view class="buts-text flex-cc">
  197 + <image src="http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911141059011.png" class="icon"></image>
  198 + 短信通知
  199 + </view>
  200 + </formids>
  201 + <userinfo binduserinfo="cookbook" class="diancan left-border" wx:if="{{detail.seller.is_open_order==1}}">
  202 + <view class="buts-text flex-cc">
  203 + <image src="http://nosqn.colorcun.com/manager-invitation/wx2/%E6%8F%90%E5%89%8D%E7%82%B9%E9%A4%90.png" class="icon"></image>
  204 + 提前点餐
  205 + </view>
  206 + </userinfo>
  207 + <block wx:if="{{detail.seller.is_open_wine==1}}">
  208 + <view class="vline" wx:if="{{detail.seller.is_open_order==1}}"></view>
  209 + <formids bindclick="toast" class="jiushui">
  210 + <view class="buts-text flex-cc">
  211 + <image src="http://nosqn.colorcun.com/manager-invitation/wx2/%E8%87%AA%E5%B8%A6%E9%85%92%E6%B0%B4.png" class="icon"></image>
  212 + 自带酒水
  213 + </view>
  214 + </formids>
  215 + </block>
  216 +</view>
  217 +<!--//商务-->
  218 +<template name="tpl-1">
  219 + <view class="flex-vc shangwu" bindtap="{{options.rid?'goEditor':''}}">
  220 + <template is="tpl-shangwu" data="{{...seller,options}}"></template>
  221 + </view>
  222 +</template>
  223 +
  224 +<!--//温馨-->
  225 +<template name="tpl-2">
  226 + <template is="tpl-wenxin" data="{{...seller,options}}"></template>
  227 +</template>
  228 +<ddate id="ddate" order="{{detail}}" wx:if="{{detail}}" bindevent="ddateEvent"></ddate>
  229 +<a2l bindshow="a2lshow" bindhide="a2lshow" key="INVIT-OWNER"></a2l>
  1 +/* pages/customer/detail_customer.wxss1 */
  2 +@import "../tpl/tpls.wxss";
  3 +
  4 +.pages {
  5 + width: 100%;
  6 + background-size: 100%;
  7 + font-size: 34rpx;
  8 + position: fixed;
  9 + left: 0;
  10 + top: 0;
  11 + bottom: 0;
  12 +}
  13 +
  14 +image {
  15 + width: 100%;
  16 + height: 100%;
  17 +}
  18 +
  19 +.buts-share {
  20 + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E5%8F%91%E9%82%80%E8%AF%B7%E5%87%BD.png");
  21 +}
  22 +
  23 +.buts-share.customer {
  24 + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx/%E7%A1%AE%E8%AE%A4%E6%94%B6%E5%88%B0.png");
  25 +}
  26 +
  27 +.shangwu {
  28 + margin-top: 52rpx;
  29 +}
  30 +
  31 +.shangwu .seller {
  32 + margin-bottom: 42rpx;
  33 +}
  34 +
  35 +.shangwu .invit-logo.owner {
  36 + width: 380rpx;
  37 + height: 200rpx;
  38 + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92.png");
  39 +}
  40 +
  41 +.shangwu .invit-logo.customer {
  42 + width: 352rpx;
  43 + height: 164rpx;
  44 + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/invit-logo.png");
  45 +}
  46 +
  47 +
  48 +.wenxin-mask {
  49 + margin-top: 20rpx;
  50 +}
  51 +
  52 +.wenxin-baitou {
  53 + margin-top: 20rpx;
  54 +}
  55 +
  56 +.wenxin .seller {
  57 + margin-bottom: 22rpx;
  58 +}
  59 +
  60 +.wenxin .invit-logo.owner {
  61 + width: 340rpx;
  62 + height: 184rpx;
  63 + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.png");
  64 +}
  65 +
  66 +.wenxin .invit-logo.customer {
  67 + width: 344rpx;
  68 + height: 198rpx;
  69 + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx/%E9%82%80%E8%AF%B7%E5%87%BD.png");
  70 +}
  71 +
  72 +.bottom {
  73 + position: fixed;
  74 + bottom: 0;
  75 + height: 90rpx;
  76 + line-height: 90rpx;
  77 + background-color: #ECD9B7;
  78 + width: 100%;
  79 + font-size: 30rpx;
  80 + box-sizing: border-box;
  81 +}
  82 +
  83 +.bottom .dingbaojian {
  84 + background-color: #262628;
  85 + color: #ECD9B7;
  86 + min-width: 160rpx;
  87 + height: 90rpx;
  88 + line-height: 90rpx;
  89 + border-top: 2rpx solid #ECD9B7;
  90 + box-sizing: border-box;
  91 +}
  92 +
  93 +.bottom .dingbaojian .icon {
  94 + width: 30rpx;
  95 + height: 30rpx;
  96 +}
  97 +
  98 +.bottom .dingbaojian .text {
  99 + height: 34rpx;
  100 + font-size: 24rpx;
  101 + color: rgba(236, 217, 183, 1);
  102 + line-height: 34rpx;
  103 + margin-top: 8rpx;
  104 +}
  105 +
  106 +.bottom .sendmsg {
  107 + background-color: #262628;
  108 + color: #ECD9B7;
  109 + min-width: 25%;
  110 +}
  111 +
  112 +.bottom .diancan {
  113 + text-align: center;
  114 + color: #794F28;
  115 + height: 66rpx;
  116 + line-height: 66rpx;
  117 + min-width: 33%;
  118 + width: 100%;
  119 +}
  120 +
  121 +.bottom .diancan .buts-text {
  122 + height: 66rpx;
  123 + line-height: 66rpx;
  124 +}
  125 +
  126 +.bottom .diancan.left-border {
  127 + border-left: 2rpx solid #D3BF9C;
  128 +}
  129 +
  130 +.bottom .jiushui {
  131 + text-align: center;
  132 + color: #794F28;
  133 + height: 90rpx;
  134 + line-height: 90rpx;
  135 + min-width: 33%;
  136 + width: 70%;
  137 +}
  138 +
  139 +.bottom .diancan .icon {
  140 + width: 40rpx;
  141 + height: 34rpx;
  142 + margin-right: 40rpx;
  143 +}
  144 +
  145 +.bottom .jiushui .icon {
  146 + width: 32rpx;
  147 + height: 38rpx;
  148 + margin-right: 40rpx;
  149 +}
  150 +
  151 +.buts-text {
  152 + height: 90rpx;
  153 + line-height: 90rpx;
  154 +}
  155 +
  156 +.vline {
  157 + background-color: #D3BF9C;
  158 + width: 6rpx;
  159 + height: 66rpx;
  160 + min-width: 6rpx;
  161 +}
  162 +
  163 +.opt-view-tip {
  164 + font-size: 30rpx;
  165 + color: #ccc;
  166 +}
  167 +
  168 +.service-view {
  169 + width: 88rpx;
  170 + height: 64rpx;
  171 + background: rgba(0, 0, 0, 0.15);
  172 + border-radius: 50rpx;
  173 + border: 1rpx solid rgba(255, 255, 255, 0.25);
  174 + box-sizing: border-box;
  175 + margin-right: 20rpx;
  176 +}
  177 +
  178 +.service-icon {
  179 + background-image: url("http://nosqn.colorcun.com/shead2.png");
  180 + background-size: 100% 100%;
  181 + width: 36rpx;
  182 + height: 36rpx;
  183 +}
  184 +
  185 +.coupon {
  186 + position: fixed;
  187 + left: 0;
  188 + right: 0;
  189 + top: 0;
  190 + bottom: 0;
  191 + background: rgba(0, 0, 0, .5);
  192 +}
  193 +
  194 +.coupon-content {
  195 + width: 658rpx;
  196 + position: absolute;
  197 + left: 0;
  198 + right: 0;
  199 + top: 50%;
  200 + margin: auto;
  201 +}
  202 +
  203 +.coupon-bg {
  204 + width: 658rpx;
  205 + height: 468rpx;
  206 + background: url(http://nosqn.colorcun.com/coupon.jpg) center center no-repeat;
  207 + background-size: contain;
  208 +}
  209 +
  210 +.coupon-info {
  211 + width: 502rpx;
  212 + border-radius: 20rpx;
  213 + overflow: hidden;
  214 + background: #F65636;
  215 + position: relative;
  216 + top: -152rpx;
  217 + margin: 0 auto;
  218 +}
  219 +
  220 +.coupon-header {
  221 + width: 100%;
  222 + height: 152rpx;
  223 +}
  224 +
  225 +.coupon-header>view:first-child {
  226 + font-size: 48rpx;
  227 +}
  228 +
  229 +.coupon-header>view {
  230 + background: linear-gradient(to bottom, #FFFFFF, #FAECA5);
  231 + -webkit-background-clip: text;
  232 + line-height: 1.4;
  233 + -webkit-text-fill-color: transparent;
  234 +}
  235 +
  236 +.coupon-button {
  237 + width: 100%;
  238 + padding: 20rpx 0;
  239 + line-height: 34rpx;
  240 + position: relative;
  241 +}
  242 +
  243 +.coupon-list {
  244 + width: 502rpx;
  245 + max-height: 360rpx;
  246 + overflow-y: scroll;
  247 +}
  248 +
  249 +.coupon-single {
  250 + width: 452rpx;
  251 + height: 134rpx;
  252 + border-radius: 20rpx;
  253 + line-height: 1.4;
  254 + margin: 0 auto 16rpx;
  255 + background: #FFFFFF;
  256 +}
  257 +
  258 +.coupon-main {
  259 + width: 310rpx;
  260 + height: 100%;
  261 + padding-left: 30rpx;
  262 + box-sizing: border-box;
  263 +}
  264 +
  265 +.coupon-border {
  266 + width: 32rpx;
  267 + height: 100%;
  268 +}
  269 +
  270 +.circle {
  271 + width: 20rpx;
  272 + height: 10rpx;
  273 + background: #F65636;
  274 + border: 2rpx solid #F65636;
  275 +}
  276 +
  277 +.circle-top {
  278 + border-radius: 10rpx 10rpx 0 0;
  279 +}
  280 +
  281 +.coupon-line {
  282 + width: 2rpx;
  283 + height: 114rpx;
  284 + background: rgba(246, 86, 54, .2);
  285 +}
  286 +
  287 +.circle-bottom {
  288 + border-radius: 0 0 10rpx 10rpx;
  289 +}
  290 +
  291 +.use-button {
  292 + width: 92rpx;
  293 + height: 44rpx;
  294 + border-radius: 22rpx;
  295 + background: #E84033;
  296 + color: #FFFFFF;
  297 +}
  298 +
  299 +::-webkit-scrollbar {
  300 + display: none;
  301 + /* Chrome Safari */
  302 +}
  303 +
  304 +.care {
  305 + width: 380px;
  306 + height: 84px;
  307 + /* position: absolute;
  308 + left: 0;
  309 + top: 0; */
  310 + /* padding-left: 100rpx; */
  311 + box-sizing: border-box;
  312 + background: #E84033;
  313 +}
  314 +
  315 +.get-button {
  316 + background: transparent;
  317 + padding: 30rpx 0;
  318 +}
  319 +
  320 +.menu {
  321 + width: 100rpx;
  322 + height: 100rpx;
  323 + border-radius: 50%;
  324 + position: fixed;
  325 + left: 40rpx;
  326 + bottom: 80rpx;
  327 + background: url(http://nosqn.colorcun.com/invite_menu.png) center center no-repeat;
  328 + background-size: contain;
  329 +}
  330 +
  331 +.menu-list {
  332 + position: fixed;
  333 + left: 0;
  334 + right: 0;
  335 + top: 0;
  336 + bottom: 0;
  337 + background: rgba(0, 0, 0, .69);
  338 + z-index: 100;
  339 + padding-left: 40rpx;
  340 + padding-bottom: 40rpx;
  341 + box-sizing: border-box;
  342 +}
  343 +
  344 +.menu-item {
  345 + height: 100rpx;
  346 + margin-bottom: 40rpx;
  347 +}
  348 +
  349 +.menu-item-image {
  350 + width: 100rpx;
  351 + height: 100rpx;
  352 + margin-right: 20rpx;
  353 + border-radius: 50%;
  354 +}
  355 +
  356 +/* .menu-item-book{
  357 + width: 100rpx;
  358 + height: 100rpx;
  359 + border-radius: 50%;
  360 + position: fixed;
  361 + left: 40rpx;
  362 + bottom: 80rpx;
  363 + background: url(http://nosqn.colorcun.com/invite_menu.png) center center no-repeat;
  364 + background-size: contain;
  365 +} */
  366 +.menu-list {
  367 + position: fixed;
  368 + left: 0;
  369 + right: 0;
  370 + top: 0;
  371 + bottom: 0;
  372 + background: rgba(0, 0, 0, .69);
  373 + z-index: 100;
  374 + padding-left: 40rpx;
  375 + padding-bottom: 40rpx;
  376 + box-sizing: border-box;
  377 +}
  378 +
  379 +.menu-item {
  380 + height: 100rpx;
  381 + margin-bottom: 40rpx;
  382 +}
  383 +
  384 +.menu-item-image {
  385 + width: 100rpx;
  386 + height: 100rpx;
  387 + margin-right: 20rpx;
  388 + border-radius: 50%;
  389 +}
  390 +
  391 +.menu-item-book {
  392 + background: url(http://nosqn.colorcun.com/menu-book.png) center center no-repeat;
  393 + background-size: contain;
  394 +}
  395 +
  396 +.menu-item-buy {
  397 + background: url(http://nosqn.colorcun.com/menu-buy.png) center center no-repeat;
  398 + background-size: contain;
  399 +}
  400 +
  401 +.menu-item-buy-nouse {
  402 + background: url(http://nosqn.colorcun.com/menu-buy-nouse.png) center center no-repeat;
  403 + background-size: contain;
  404 +}
  405 +
  406 +.menu-item-check {
  407 + background: url(http://nosqn.colorcun.com/menu-check.png) center center no-repeat;
  408 + background-size: contain;
  409 +}
  410 +
  411 +.menu-item-check-nouse {
  412 + background: url(http://nosqn.colorcun.com/menu-check-nouse.png) center center no-repeat;
  413 + background-size: contain;
  414 +}
  415 +
  416 +.menu-item-back {
  417 + background: url(http://nosqn.colorcun.com/menu-back.png) center center no-repeat;
  418 + background-size: contain;
  419 +}
  420 +
  421 +.click-icon {
  422 + width: 12rpx;
  423 + height: 12rpx;
  424 + border-top: 2rpx solid #FFFFFF;
  425 + border-right: 2rpx solid #FFFFFF;
  426 + transform: rotate(45deg);
  427 + margin-left: -6rpx;
  428 +}
  429 +
  430 +.gray-font {
  431 + color: #999999;
  432 +}
  433 +
  434 +.menu-item-buy {
  435 + background: url(http://nosqn.colorcun.com/menu-buy.png) center center no-repeat;
  436 + background-size: contain;
  437 +}
  438 +
  439 +.menu-item-buy-nouse {
  440 + background: url(http://nosqn.colorcun.com/menu-buy-nouse.png) center center no-repeat;
  441 + background-size: contain;
  442 +}
  443 +
  444 +.menu-item-check {
  445 + background: url(http://nosqn.colorcun.com/menu-check.png) center center no-repeat;
  446 + background-size: contain;
  447 +}
  448 +
  449 +.menu-item-check-nouse {
  450 + background: url(http://nosqn.colorcun.com/menu-check-nouse.png) center center no-repeat;
  451 + background-size: contain;
  452 +}
  453 +
  454 +.menu-item-back {
  455 + background: url(http://nosqn.colorcun.com/menu-back.png) center center no-repeat;
  456 + background-size: contain;
  457 +}
  458 +
  459 +.click-icon {
  460 + width: 12rpx;
  461 + height: 12rpx;
  462 + border-top: 2rpx solid #FFFFFF;
  463 + border-right: 2rpx solid #FFFFFF;
  464 + transform: rotate(45deg);
  465 + margin-left: -6rpx;
  466 +}
  467 +
  468 +.gray-font {
  469 + color: #999999;
  470 +}
  471 +
  472 +.last-book-food {
  473 + width: 202rpx;
  474 + height: 62rpx;
  475 + background: linear-gradient(to right, #E1B275, #FEEFBC, #E1B275);
  476 + border-radius: 32rpx;
  477 + position: relative;
  478 + z-index: 100;
  479 +}
  480 +
  481 +.notice {
  482 + width: 20rpx;
  483 + height: 20rpx;
  484 + border-radius: 50%;
  485 + position: absolute;
  486 + right: -10rpx;
  487 + top: 10rpx;
  488 + background: #E61010;
  489 +}
1 -// pages/customer/detail_owner_invitation_new1.js 1 +// pages/customer/detail_owner_invitation6.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';
@@ -45,7 +45,8 @@ Page({ @@ -45,7 +45,8 @@ Page({
45 is_comments: '0', 45 is_comments: '0',
46 is_user_comments: false, 46 is_user_comments: false,
47 tableinfo: [], 47 tableinfo: [],
48 - StyleType:'', 48 + StyleType: '',
  49 + showMoreTip: true,
49 }, 50 },
50 tablestr: '', 51 tablestr: '',
51 urlsValue: [], 52 urlsValue: [],
@@ -71,6 +72,26 @@ Page({ @@ -71,6 +72,26 @@ Page({
71 "lauchOpts": options, //渠道分析 72 "lauchOpts": options, //渠道分析
72 }); 73 });
73 }, 74 },
  75 + onPageScroll: function (event) {
  76 + let that = this;
  77 + // 获取滚动条的位置
  78 + var scrollTop = event.scrollTop;
  79 + // 获取屏幕的高度
  80 + wx.getSystemInfo({
  81 + success(res) {
  82 + var screenHeight = res.windowHeight;
  83 + if (scrollTop > screenHeight || scrollTop < 10) {
  84 + that.setData({
  85 + showMoreTip: true
  86 + });
  87 + } else {
  88 + that.setData({
  89 + showMoreTip: false
  90 + });
  91 + }
  92 + }
  93 + });
  94 + },
74 // 点击了解更多会员优惠政策 95 // 点击了解更多会员优惠政策
75 gotoFavourableList() { 96 gotoFavourableList() {
76 let url = util.http_build_query({ 97 let url = util.http_build_query({
@@ -90,7 +111,7 @@ Page({ @@ -90,7 +111,7 @@ Page({
90 sellerid: this.data.seller.sid, 111 sellerid: this.data.seller.sid,
91 oid: this.data.detail.id, 112 oid: this.data.detail.id,
92 types: '1', 113 types: '1',
93 - previousPage:'1', 114 + previousPage: '1',
94 }, '/pages/pinglun/createOpinion') 115 }, '/pages/pinglun/createOpinion')
95 wx.navigateTo({ 116 wx.navigateTo({
96 url 117 url
@@ -220,7 +241,7 @@ Page({ @@ -220,7 +241,7 @@ Page({
220 hasUpTime: reserev.type == 1 && reserev.hasRunning && reserev.status != 2, 241 hasUpTime: reserev.type == 1 && reserev.hasRunning && reserev.status != 2,
221 tel: reserev.seller.seller_tel.split(',')[0], 242 tel: reserev.seller.seller_tel.split(',')[0],
222 soltName: reserev.soltName, 243 soltName: reserev.soltName,
223 - aa: util.unixtoTime(reserev.ddate, '星期WW HH:II'), 244 + time: util.unixtoTime(reserev.ddate, '星期WW HH:II'),
224 lat: reserev.seller.lat, 245 lat: reserev.seller.lat,
225 long: reserev.seller.long, 246 long: reserev.seller.long,
226 } 247 }
@@ -380,7 +401,7 @@ Page({ @@ -380,7 +401,7 @@ Page({
380 coupon_dataList, 401 coupon_dataList,
381 swich_phone, 402 swich_phone,
382 is_comments, 403 is_comments,
383 - StyleType:res.data.type, 404 + StyleType: res.data.type,
384 } 405 }
385 console.log('获取数据', { 406 console.log('获取数据', {
386 ...obj 407 ...obj
@@ -428,7 +449,7 @@ Page({ @@ -428,7 +449,7 @@ Page({
428 scoreInfo, 449 scoreInfo,
429 swich_phone, 450 swich_phone,
430 is_comments, 451 is_comments,
431 - StyleType:res.data.type, 452 + StyleType: res.data.type,
432 }) 453 })
433 if (home && home.red == '1' && home.green == '67' && home.blue == '163') { 454 if (home && home.red == '1' && home.green == '67' && home.blue == '163') {
434 this.setData({ 455 this.setData({
1 { 1 {
2 - "navigationBarBackgroundColor": "#ffffff", 2 + "navigationBarBackgroundColor": "#ffffff",
3 "navigationBarTextStyle": "white", 3 "navigationBarTextStyle": "white",
4 "navigationBarTitleText": "", 4 "navigationBarTitleText": "",
5 "usingComponents": { 5 "usingComponents": {
1 -<!--pages/customer/detail_owner_invitation_new2.wxml--> 1 +<!--pages/customer/detail_owner_invitation4.wxml-->
2 <nav hasHome class="navhome" place="{{true}}"></nav> 2 <nav hasHome class="navhome" place="{{true}}"></nav>
3 -<scroll-view class="last-book-bg" style="line-height: 1.4;height:{{height}}px;" scroll-y> 3 +<scroll-view scroll-y>
4 <view class="titleImg" style="background: rgba({{homeColor}});"> 4 <view class="titleImg" style="background: rgba({{homeColor}});">
5 <image src="{{theme=='green'?'https://qn.colorcun.com/1571679628800_.pic.jpg':theme=='blue'?'https://qn.colorcun.com/1561679628784_.pic.jpg':theme=='blackGold'?'https://qn.colorcun.com/1551679628682_.pic.jpg':''}}" class="titleIcon"></image> 5 <image src="{{theme=='green'?'https://qn.colorcun.com/1571679628800_.pic.jpg':theme=='blue'?'https://qn.colorcun.com/1561679628784_.pic.jpg':theme=='blackGold'?'https://qn.colorcun.com/1551679628682_.pic.jpg':''}}" class="titleIcon"></image>
6 <image src="https://qn.colorcun.com/bj.png" class="bjIcon"></image> 6 <image src="https://qn.colorcun.com/bj.png" class="bjIcon"></image>
@@ -9,8 +9,8 @@ @@ -9,8 +9,8 @@
9 <view class="title">{{seller.name}}</view> 9 <view class="title">{{seller.name}}</view>
10 <view class="leftLine"></view> 10 <view class="leftLine"></view>
11 <view class="leftInfo font28r">{{seller.date}} {{seller.soltName}}</view> 11 <view class="leftInfo font28r">{{seller.date}} {{seller.soltName}}</view>
12 - <view class="leftInfo font28r">{{seller.aa}}</view>  
13 - <view class="leftInfo font28r">{{seller.tablesText}}</view> 12 + <view class="leftInfo font28r">{{seller.time}}</view>
  13 + <view class="leftInfo font28r tables">{{seller.tablesText}}</view>
14 </view> 14 </view>
15 <view class="line"></view> 15 <view class="line"></view>
16 <view class="right"> 16 <view class="right">
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 </view> 25 </view>
26 </view> 26 </view>
27 <view class="positioning"> 27 <view class="positioning">
28 - <text>地址:{{seller.addr?seller.addr:reserev.seller.map_address}}</text> 28 + <text class="font28r">地址:{{seller.addr?seller.addr:reserev.seller.map_address}}</text>
29 <view class="font24r orderingFood" bindtap="looklocation"> 29 <view class="font24r orderingFood" bindtap="looklocation">
30 导航 30 导航
31 </view> 31 </view>
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 </view> 70 </view>
71 <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"> 71 <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">
72 <view class="font24r orderingFood"> 72 <view class="font24r orderingFood">
73 - 去抢购 73 + 抢购
74 </view> 74 </view>
75 </navigator> 75 </navigator>
76 </view> 76 </view>
@@ -118,7 +118,7 @@ @@ -118,7 +118,7 @@
118 </block> 118 </block>
119 <view class="specialServices" wx:if="{{detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> 119 <view class="specialServices" wx:if="{{detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}">
120 <view class="rubric"> 120 <view class="rubric">
121 - 特供服务 121 + 提前点餐
122 </view> 122 </view>
123 <view class="news"> 123 <view class="news">
124 本店特为贵宾提供提前点餐服务,您现在可以选菜下单,到店就餐时无需等待服务员点餐,可以直接享受就餐服务^_^ 124 本店特为贵宾提供提前点餐服务,您现在可以选菜下单,到店就餐时无需等待服务员点餐,可以直接享受就餐服务^_^
@@ -153,7 +153,7 @@ @@ -153,7 +153,7 @@
153 </view> 153 </view>
154 <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"> 154 <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">
155 <view class="font24r orderingFood"> 155 <view class="font24r orderingFood">
156 - 去充值 156 + 充值
157 </view> 157 </view>
158 </navigator> 158 </navigator>
159 </view> 159 </view>
@@ -163,6 +163,10 @@ @@ -163,6 +163,10 @@
163 点击了解更多会员优惠政策 163 点击了解更多会员优惠政策
164 </view> 164 </view>
165 </view> 165 </view>
  166 + <view class="more" wx:if="{{showMoreTip}}">
  167 + <view class="moreText">滑动查看更多</view>
  168 + <image src="https://qn.colorcun.com/jt1.png" mode="" />
  169 + </view>
166 </scroll-view> 170 </scroll-view>
167 <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1'}}" class="{{between?'all-button flex-lr between':'all-button flex-lr sharewidth'}}"> 171 <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1'}}" class="{{between?'all-button flex-lr between':'all-button flex-lr sharewidth'}}">
168 <view wx:if="{{marketing.is_online_book=='1'}}" class="book-item-font second-book-button flex-cc font30r" bindtap="secondbook" style="position: relative;">再次预订 172 <view wx:if="{{marketing.is_online_book=='1'}}" class="book-item-font second-book-button flex-cc font30r" bindtap="secondbook" style="position: relative;">再次预订
@@ -171,4 +175,4 @@ @@ -171,4 +175,4 @@
171 <button wx:if="{{marketing.is_transpond=='1'}}" class="book-item-font flex-cc font30r shareItem" open-type="share">转发给客人 175 <button wx:if="{{marketing.is_transpond=='1'}}" class="book-item-font flex-cc font30r shareItem" open-type="share">转发给客人
172 </button> 176 </button>
173 </block> 177 </block>
174 -</view> 178 +</view>
1 -/* pages/customer/detail_owner_invitation_new2.wxss */ 1 +/* pages/customer/detail_owner_invitation4.wxss */
2 @import "../tpl/tpls.wxss"; 2 @import "../tpl/tpls.wxss";
3 3
4 .titleImg { 4 .titleImg {
@@ -31,9 +31,10 @@ @@ -31,9 +31,10 @@
31 31
32 .title { 32 .title {
33 text-align: center; 33 text-align: center;
34 - font-family: PingFang SC;  
35 font-size: 40rpx; 34 font-size: 40rpx;
36 - color: #CFB53B; 35 + font-family: PingFang SC;
  36 + color: #FFD200;
  37 + font-weight: 500;
37 } 38 }
38 39
39 .infoBox .left { 40 .infoBox .left {
@@ -56,7 +57,12 @@ @@ -56,7 +57,12 @@
56 flex-wrap: wrap; 57 flex-wrap: wrap;
57 justify-content: flex-end; 58 justify-content: flex-end;
58 word-break: break-all; 59 word-break: break-all;
59 - line-height: 40rpx; 60 + line-height: 50rpx;
  61 +}
  62 +
  63 +.tables {
  64 + height: 120rpx;
  65 + overflow-y: scroll;
60 } 66 }
61 67
62 68
@@ -110,10 +116,11 @@ @@ -110,10 +116,11 @@
110 116
111 .handlePhone { 117 .handlePhone {
112 height: 100rpx; 118 height: 100rpx;
  119 + color: #515151;
113 } 120 }
114 121
115 .brownFont { 122 .brownFont {
116 - padding: 4rpx 16rpx; 123 + padding: 10rpx 16rpx;
117 color: #0143A3; 124 color: #0143A3;
118 border: 2rpx solid #0143A3; 125 border: 2rpx solid #0143A3;
119 border-radius: 22rpx; 126 border-radius: 22rpx;
@@ -134,6 +141,12 @@ @@ -134,6 +141,12 @@
134 color: #999999; 141 color: #999999;
135 } 142 }
136 143
  144 +.positioning image {
  145 + width: 32rpx;
  146 + height: 38rpx;
  147 + margin-right: 16rpx;
  148 +}
  149 +
137 .introduce { 150 .introduce {
138 box-sizing: border-box; 151 box-sizing: border-box;
139 } 152 }
@@ -141,10 +154,13 @@ @@ -141,10 +154,13 @@
141 .imgMask { 154 .imgMask {
142 position: relative; 155 position: relative;
143 margin: 0 40rpx 0 40rpx; 156 margin: 0 40rpx 0 40rpx;
  157 + border-bottom: 2rpx solid #DBDBDB;
  158 + padding-bottom: 18rpx;
144 } 159 }
145 160
146 .imgMask .text { 161 .imgMask .text {
147 color: #515151; 162 color: #515151;
  163 + margin-bottom: 20rpx;
148 } 164 }
149 165
150 .IntroduceColor { 166 .IntroduceColor {
@@ -205,6 +221,7 @@ @@ -205,6 +221,7 @@
205 justify-content: flex-end; 221 justify-content: flex-end;
206 height: 60rpx; 222 height: 60rpx;
207 margin: 20rpx 0; 223 margin: 20rpx 0;
  224 + padding: 16rpx 0;
208 } 225 }
209 226
210 227
@@ -220,16 +237,17 @@ @@ -220,16 +237,17 @@
220 } 237 }
221 238
222 .preferential { 239 .preferential {
223 - margin: 16rpx 40rpx 16rpx 40rpx; 240 + margin: 16rpx 40rpx 20rpx 40rpx;
224 } 241 }
225 242
226 .preferentialItems { 243 .preferentialItems {
227 - border: 2rpx solid #DBDBDB;  
228 - border-radius: 16rpx;  
229 - padding: 16rpx 16rpx 16rpx 24rpx; 244 + padding: 0 16rpx 0 24rpx;
230 display: flex; 245 display: flex;
231 justify-content: space-between; 246 justify-content: space-between;
  247 + align-items: center;
232 margin-bottom: 20rpx; 248 margin-bottom: 20rpx;
  249 + background: url('https://qn.colorcun.com/certificateBj.png') no-repeat;
  250 + background-size: 100% 100%;
233 } 251 }
234 252
235 .rubric1 { 253 .rubric1 {
@@ -239,6 +257,7 @@ @@ -239,6 +257,7 @@
239 .left { 257 .left {
240 flex: 1; 258 flex: 1;
241 margin-right: 20rpx; 259 margin-right: 20rpx;
  260 + padding: 16rpx 0;
242 } 261 }
243 262
244 .top { 263 .top {
@@ -327,19 +346,15 @@ @@ -327,19 +346,15 @@
327 346
328 .favouredPolicy { 347 .favouredPolicy {
329 width: 45%; 348 width: 45%;
330 - color: #999999; 349 + color: #5C95D7;
331 font-family: PingFang SC; 350 font-family: PingFang SC;
332 font-weight: 500; 351 font-weight: 500;
333 - border: 2rpx solid #0244a4; 352 + border: 2rpx solid #5C95D7;
334 border-radius: 22rpx; 353 border-radius: 22rpx;
335 text-align: center; 354 text-align: center;
336 padding: 10rpx; 355 padding: 10rpx;
337 } 356 }
338 357
339 -.last-book-bg {  
340 - background: transparent;  
341 -}  
342 -  
343 .all-button { 358 .all-button {
344 background: #FAFAFA; 359 background: #FAFAFA;
345 height: 160rpx; 360 height: 160rpx;
@@ -394,11 +409,12 @@ @@ -394,11 +409,12 @@
394 } 409 }
395 410
396 .cook { 411 .cook {
397 - height: 100% !important;  
398 - background: linear-gradient(104.24deg, rgba(76, 141, 173, 1) -57.47%, rgba(1, 67, 163, 1) 55.72%, rgba(66, 165, 255, 1) 148.72%);  
399 - color: #fff !important; 412 + height: 94% !important;
  413 + background: #fff;
  414 + border: 2rpx solid #0143A3;
  415 + border-radius: 32rpx;
400 font-weight: normal; 416 font-weight: normal;
401 - width: 27% !important; 417 + width: 23% !important;
402 } 418 }
403 419
404 .bold { 420 .bold {
@@ -471,4 +487,25 @@ @@ -471,4 +487,25 @@
471 white-space: nowrap; 487 white-space: nowrap;
472 width: auto; 488 width: auto;
473 overflow-x: scroll; 489 overflow-x: scroll;
  490 +}
  491 +
  492 +.more {
  493 + height: 80rpx;
  494 + width: 100%;
  495 + position: absolute;
  496 + top: 20.2%;
  497 + display: flex;
  498 + align-items: center;
  499 + justify-content: center;
  500 + flex-direction: column;
  501 + background: rgba(0, 0, 0, .4);
  502 +}
  503 +
  504 +.moreText {
  505 + color: #fff;
  506 +}
  507 +
  508 +.more image {
  509 + width: 30rpx;
  510 + height: 30rpx;
474 } 511 }
1 -// pages/customer/detail_owner_invitation_new1.js 1 +// pages/customer/detail_owner_invitation6.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';
5 import TP from '../../utils/tpls'; 5 import TP from '../../utils/tpls';
6 import RS from '../../utils/reserveStatus' 6 import RS from '../../utils/reserveStatus'
7 Page({ 7 Page({
8 - /**  
9 - * 页面的初始数据  
10 - */  
11 - data: {  
12 - options: {  
13 - tplid: ''  
14 - },  
15 - tableNum:0,  
16 - detail:{},  
17 - staffinfo:{},  
18 - between: false,  
19 - id: null,  
20 - msgTpl: '',  
21 - chef: {},  
22 - marketing: {},  
23 - home: {},  
24 - reserve: {},  
25 - signboard: {},  
26 - store: {},  
27 - recharge_data:{},  
28 - coupon_dataList:[],  
29 - homeColor: '',  
30 - stringifyUse:'',  
31 - current: 0,  
32 - theme: 'blackGold', //blue green blackGold  
33 - seller: {  
34 - name: '',  
35 - tablesText: '',  
36 - date: '',  
37 - addr: ''  
38 - },  
39 - priceInfo:'',  
40 - scoreInfo:'',  
41 - discount:'',  
42 - certificate:'',  
43 - dataStr:Date.now()*1/1000,  
44 - swich_phone:'0',  
45 - is_comments:'0',  
46 - is_user_comments:false,  
47 - StyleType:'',  
48 - },  
49 - /**  
50 - * 生命周期函数--监听页面加载  
51 - */  
52 - onLoad(options) {  
53 - this.id = options.id  
54 - let param = {  
55 - options: options,  
56 - hasOwner: options.hasSellerShare == 1, //是否为发起人  
57 - }  
58 - param.tpls = [TP.tpls(options.tplid)]  
59 - console.log(param);  
60 - console.log(options);  
61 - this.setData(param)  
62 - mta.Page.init({  
63 - "appID": "500667280",  
64 - "eventID": "500667287",  
65 - "statPullDownFresh": true,  
66 - "statShareApp": true,  
67 - "statReachBottom": true,  
68 - "lauchOpts": options, //渠道分析  
69 - });  
70 - }, 8 + /**
  9 + * 页面的初始数据
  10 + */
  11 + data: {
  12 + options: {
  13 + tplid: ''
  14 + },
  15 + tableNum: 0,
  16 + detail: {},
  17 + staffinfo: {},
  18 + between: false,
  19 + id: null,
  20 + msgTpl: '',
  21 + chef: {},
  22 + marketing: {},
  23 + home: {},
  24 + reserve: {},
  25 + signboard: {},
  26 + store: {},
  27 + recharge_data: {},
  28 + coupon_dataList: [],
  29 + homeColor: '',
  30 + stringifyUse: '',
  31 + current: 0,
  32 + theme: 'blackGold', //blue green blackGold
  33 + seller: {
  34 + name: '',
  35 + tablesText: '',
  36 + date: '',
  37 + addr: ''
  38 + },
  39 + priceInfo: '',
  40 + scoreInfo: '',
  41 + discount: '',
  42 + certificate: '',
  43 + dataStr: Date.now() * 1 / 1000,
  44 + swich_phone: '0',
  45 + is_comments: '0',
  46 + is_user_comments: false,
  47 + StyleType: '',
  48 + showMoreTip: true,
  49 + },
  50 + /**
  51 + * 生命周期函数--监听页面加载
  52 + */
  53 + onLoad(options) {
  54 + this.id = options.id
  55 + let param = {
  56 + options: options,
  57 + hasOwner: options.hasSellerShare == 1, //是否为发起人
  58 + }
  59 + param.tpls = [TP.tpls(options.tplid)]
  60 + console.log(param);
  61 + console.log(options);
  62 + this.setData(param)
  63 + mta.Page.init({
  64 + "appID": "500667280",
  65 + "eventID": "500667287",
  66 + "statPullDownFresh": true,
  67 + "statShareApp": true,
  68 + "statReachBottom": true,
  69 + "lauchOpts": options, //渠道分析
  70 + });
  71 + },
  72 + onPageScroll: function (event) {
  73 + let that = this;
  74 + // 获取滚动条的位置
  75 + var scrollTop = event.scrollTop;
  76 + // 获取屏幕的高度
  77 + wx.getSystemInfo({
  78 + success(res) {
  79 + var screenHeight = res.windowHeight;
  80 + if (scrollTop > screenHeight || scrollTop < 10) {
  81 + that.setData({
  82 + showMoreTip: true
  83 + });
  84 + } else {
  85 + that.setData({
  86 + showMoreTip: false
  87 + });
  88 + }
  89 + }
  90 + });
  91 + },
71 // 点击了解更多会员优惠政策 92 // 点击了解更多会员优惠政策
72 - gotoFavourableList(){  
73 - let url=util.http_build_query({  
74 - sellerName:this.data.seller.name,  
75 - sellerid:this.data.seller.sid,  
76 - oid:this.data.detail.id,  
77 - types:'1'  
78 - },'/pack-cookbook/pages/favourableList') 93 + gotoFavourableList() {
  94 + let url = util.http_build_query({
  95 + sellerName: this.data.seller.name,
  96 + sellerid: this.data.seller.sid,
  97 + oid: this.data.detail.id,
  98 + types: '1'
  99 + }, '/pack-cookbook/pages/favourableList')
79 wx.navigateTo({ 100 wx.navigateTo({
80 - url 101 + url
81 }) 102 })
82 - },  
83 - // 去评价  
84 - evaluateFun(){  
85 - let url=util.http_build_query({  
86 - sellerName:this.data.seller.name,  
87 - sellerid:this.data.seller.sid,  
88 - oid:this.data.detail.id,  
89 - types:'1',  
90 - },'/pages/pinglun/createOpinion') 103 + },
  104 + // 去评价
  105 + evaluateFun() {
  106 + let url = util.http_build_query({
  107 + sellerName: this.data.seller.name,
  108 + sellerid: this.data.seller.sid,
  109 + oid: this.data.detail.id,
  110 + types: '1',
  111 + }, '/pages/pinglun/createOpinion')
91 wx.navigateTo({ 112 wx.navigateTo({
92 - url 113 + url
93 }) 114 })
94 - },  
95 - /**  
96 - * 用户点击右上角分享  
97 - */  
98 - onShareAppMessage: function () {  
99 - return this.sharesetting();  
100 - },  
101 - onShareTimeline() {  
102 - return this.sharesetting();  
103 - },  
104 - /**  
105 - * 生命周期函数--监听页面显示  
106 - */  
107 - onShow: function () {  
108 - this.getDetail()  
109 - },  
110 - cli() {  
111 - if(this.data.staffinfo.wechat){  
112 - wx.setClipboardData({  
113 - data: this.data.staffinfo.wechat,  
114 - success(res) {  
115 - wx.getClipboardData({  
116 - success(res) {  
117 - console.log(res.data) // data  
118 - }  
119 - })  
120 - }  
121 - })  
122 - }else{  
123 - console.log('无微信号')  
124 - }  
125 - },  
126 - call() {  
127 - wx.reportMonitor('1012', 1)  
128 - wx.makePhoneCall({  
129 - phoneNumber: this.data.staffinfo.phone  
130 - })  
131 - },  
132 - looklocation: function () {  
133 - wx.reportMonitor('1015', 1)  
134 - wx.openLocation({  
135 - latitude: Number(this.data.seller.lat),  
136 - longitude: Number(this.data.seller.long),  
137 - scale: 17,  
138 - address: this.data.seller.addr,  
139 - success: function (res) {  
140 - console.log(res)  
141 - }  
142 - })  
143 - },  
144 - getDetail() {  
145 - App.Reserve.Detail({  
146 - openid: getApp().openid,  
147 - rid: this.data.options.id  
148 - }).then(res => {  
149 - let tablesText = '', //桌子信息  
150 - tableNum =0;  
151 - res.data.tables.forEach((t,i) => {  
152 - tableNum+=t.table_pnum*1  
153 - tablesText+=t.rname+t.name+(i==(res.data.tables.length-1)?'':'、');  
154 - })  
155 - let reserev = RS.reserve(res.data)  
156 - let dateSmart  
157 - if (res.data.type == 1) {  
158 - dateSmart = util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStrSmart[0])  
159 - if (res.data.is_set_ddate == 1) {  
160 - dateSmart += ' ' + util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStrSmart[1])  
161 - } else {  
162 - dateSmart += ' ' + reserev.soltName  
163 - }  
164 - } else {  
165 - dateSmart = util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStr)  
166 - }  
167 - this.setData({  
168 - detail: this.formatDatail(reserev, dateSmart),  
169 - tableNum,  
170 - is_user_comments:res.data.is_user_comments,  
171 - seller: {  
172 - name: reserev.seller.sellername,  
173 - sid:reserev.sid,  
174 - date: dateSmart,  
175 - tablesText,  
176 - addr: reserev.seller.real_address || reserev.seller.map_address,  
177 - image: reserev.image_url,  
178 - hasOwner: true,  
179 - type: reserev.type,  
180 - is_set_ddate: reserev.is_set_ddate,  
181 - hasUpTime: reserev.type == 1 && reserev.hasRunning && reserev.status != 2,  
182 - tel: reserev.seller.seller_tel.split(',')[0],  
183 - soltName: reserev.soltName,  
184 - lat:reserev.seller.lat,  
185 - long:reserev.seller.long,  
186 - }  
187 - })  
188 - console.log('reserev reserev',reserev);  
189 - console.log('seller seller',this.data.seller);  
190 - console.log('detail detail',this.data.detail);  
191 - setTimeout(() => {  
192 - this.getSellerTemplateConfFun(reserev.sid);  
193 - this.getstaffinfo(res.data.uid)  
194 - }, 0);  
195 - }).catch(res=>{  
196 - console.log(res,'详情请求失败');  
197 - })  
198 - },  
199 - getstaffinfo(uid){  
200 - console.log('sellerid',this.data.detail.seller.id);  
201 - App.Activity.GetCustomerActivityBaseinfo({  
202 - sellerid:this.data.detail.seller.id,  
203 - uid  
204 - }).then((json)=>{  
205 - if(json.ret==200) {  
206 - console.log('staffinfostaffinfostaffinfo', json.data)  
207 - this.setData({  
208 - staffinfo:json.data  
209 - })  
210 - }  
211 - })  
212 - },  
213 - cookbook() {  
214 - if (this.data.detail.order && this.data.detail.order.cookbooklist.length > 0) {  
215 - let data = {  
216 - rid: this.id,  
217 - oid: this.data.detail.order.id,  
218 - sellerName: this.data.seller.name,  
219 - sid: this.data.seller.sid,  
220 - identity: '1',  
221 - hasSuccess:'1',  
222 - }  
223 - wx.navigateTo({  
224 - url: `/pack-cookbook/pages/success_new?hasSuccess=${data.hasSuccess}&identity=${data.identity}&oid=${data.oid}&rid=${data.rid}&sellerName=${data.sellerName}&sid=${data.sid}`,  
225 - })  
226 - } else {  
227 - App.Advance.CreateOrder({  
228 - rid: this.id,  
229 - openid: getApp().openid,  
230 - }).then(res => {  
231 - if (res.ret != 200) {  
232 - return util.toast(res.msg, 'none')  
233 - }  
234 - wx.navigateTo({  
235 - url: util.http_build_query({  
236 - rid: this.id,  
237 - oid: res.data.id,  
238 - sid: res.data.sellerid,  
239 - sellerName: this.data.seller.name,  
240 - identity: '1',  
241 - }, '/pack-cookbook/pages/index_new')  
242 - });  
243 - })  
244 - }  
245 - },  
246 - sharesetting() {  
247 - wx.reportMonitor('1017', 1)  
248 - let parmdata = {  
249 - id: this.id,  
250 - fromid: getApp().openid,  
251 - hasInvitation: 1,  
252 - tplid: this.data.options.tplid  
253 - }  
254 - if (this.data.options.uid) {  
255 - parmdata.uid = this.data.options.uid;  
256 - }  
257 - console.log('seller_imageseller_imageseller_imageseller_imageseller_image',this.data.detail.seller.seller_image);  
258 - return {  
259 - title: '邀请您于'+this.data.seller.date+'一起共进'+this.data.seller.soltName+'。点击查看详情',  
260 - path: util.http_build_query(parmdata, '/pages/customer/index'),  
261 - imageUrl: this.data.detail.seller.seller_image,  
262 - }  
263 - },  
264 - formatDatail(detail, dateSmart) {  
265 - detail.rdateStr = dateSmart;  
266 - detail.tableFirst = detail.tables[0].name;  
267 - if (detail.tables.length > 1) {  
268 - detail.tableSubInfo = '等' + (detail.tables.length) + '个' +  
269 - (detail.tables[0].tid == 2 ? '包间' : '');  
270 - }  
271 - if (detail.rname && detail.sex != 3) {  
272 - detail.rnameStr = detail.rname.substr(0, 1) + (detail.sex == 1 ? '先生' : '女士')  
273 - } else {  
274 - detail.rnameStr = detail.rname  
275 - }  
276 - detail.eatStr = '邀请您共进晚餐';  
277 - let hi = util.unixtoTime(detail.ddate, 'HHII');  
278 - if (hi < '10:00') {  
279 - detail.eatStr = '邀请您共进早餐';  
280 - } else if (hi < '15:00') {  
281 - detail.eatStr = '邀请您共进午餐';  
282 - }  
283 - return detail;  
284 - },  
285 - getSellerTemplateConfFun(sid) {  
286 - console.log(sid,'sidsidsidsid');  
287 - App.Seller.GetSellerTemplateConf({  
288 - sid  
289 - }).then(res => {  
290 - let data=res.data  
291 - console.log('data',data);  
292 - let coupon_dataList=[]  
293 - let home,chef,marketing,coupon,reserve,swich_phone,is_comments,signboard,store,homeColor,priceInfo,certificate,scoreInfo,recharge_list,stringifyUse;  
294 - chef = util.determine(data.chef);  
295 - reserve = util.determine(data.reserve);  
296 - marketing = util.determine(data.marketing);  
297 - signboard = util.determine(data.signboard);  
298 - store = util.determine(data.store);  
299 - home = util.determine(data.home);  
300 - swich_phone = reserve && reserve.swich_phone?reserve.swich_phone:'';  
301 - if(marketing){  
302 - is_comments = marketing.is_comments?marketing.is_comments:'';  
303 - coupon=marketing.coupon_data?util.determine(marketing.coupon_data):'';  
304 - }  
305 - // is_cash 代金券 is_discount折扣券 is_dish菜品券 只有代金券有几折显示  
306 - if(coupon && util.getType(coupon)=='object'){  
307 - coupon.stringifyUse=JSON.stringify(coupon.use)  
308 - if(marketing.is_coupon=='1' && coupon && (!coupon.use.is_cash || coupon.use.is_cash=='1')){  
309 - let cash=coupon.use.cash*1;  
310 - let price=coupon.price*1;  
311 - console.log('cash',cash+'---'+'price',price+'---'+'discount',((price/cash)*10).toFixed(2));  
312 - coupon.discount=cash!=0?((price/cash)*10).toFixed(2):'';  
313 - }  
314 - coupon_dataList.push(coupon);  
315 - }  
316 - if(coupon && util.getType(coupon)=='array'){  
317 - if(coupon.length>0){  
318 - coupon.forEach(item=>{  
319 - item.stringifyUse=JSON.stringify(item.use)  
320 - if((!item.use.is_cash || item.use.is_cash=='1')){  
321 - let cash=item.use.cash*1;  
322 - let price=item.price*1;  
323 - console.log('cash',cash+'---'+'price',price+'---'+'discount',((price/cash)*10).toFixed(2));  
324 - item.discount=cash!=0?((price/cash)*10).toFixed(2):'';  
325 - }  
326 - })  
327 - }  
328 - coupon_dataList=coupon;  
329 - }  
330 - let obj={  
331 - chef,  
332 - reserve,  
333 - marketing,  
334 - signboard,  
335 - store,  
336 - home,  
337 - stringifyUse,  
338 - coupon,  
339 - coupon_dataList,  
340 - swich_phone,  
341 - is_comments,  
342 - StyleType:res.data.type,  
343 - }  
344 - console.log('获取数据', {...obj});  
345 - if(marketing && marketing.is_recharge=='1' && marketing.recharge_data){  
346 - let recharge_data=marketing.recharge_data  
347 - recharge_list=marketing.recharge_data.recharge_list  
348 - if(recharge_list.is_price=='1') priceInfo='会员充值满'+recharge_data.recharge_money+'元赠送'+recharge_list.price+'元余额';  
349 - if(recharge_list.is_score=='1') scoreInfo='会员充值满'+recharge_data.recharge_money+'元赠送'+recharge_list.score+'积分';  
350 - if(recharge_list.is_coupons=='1' && recharge_data.recharge_list.coupons_names.length>0) certificate=recharge_data.recharge_list.coupons_names.join('、');  
351 - console.log('scoreInfo',scoreInfo);  
352 - console.log('priceInfo',priceInfo);  
353 - this.setData({  
354 - recharge_data:marketing.recharge_data,  
355 - certificate  
356 - })  
357 - console.log('recharge_data',recharge_data);  
358 - }  
359 - this.setData({  
360 - coupon_dataList,  
361 - stringifyUse  
362 - })  
363 - if(store && store.images.length>0) store.images =util.determine(store.images);  
364 - if(signboard && signboard.images) signboard.images = util.determine(signboard.images);  
365 - if (marketing && marketing.is_online_book=='1' && marketing.is_transpond =='1') {  
366 - this.setData({  
367 - between: true  
368 - })  
369 - }  
370 - if(home && home.red && home.green && home.blue && home.alpha){  
371 - homeColor=home.red + ',' + home.green + ',' + home.blue + ',' + home.alpha  
372 - }else{  
373 - homeColor ='67,142,147,1'  
374 - }  
375 - console.log('homeColor',homeColor);  
376 - this.setData({  
377 - chef,  
378 - marketing,  
379 - home,  
380 - reserve,  
381 - signboard,  
382 - store,  
383 - homeColor, //home主题颜色  
384 - priceInfo,  
385 - scoreInfo,  
386 - swich_phone,  
387 - is_comments,  
388 - StyleType:res.data.type,  
389 - })  
390 - if (home && home.red == '1' && home.green == '67' && home.blue == '163') {  
391 - this.setData({  
392 - theme: 'blue'  
393 - })  
394 - }  
395 - if (home && home.red == '67' && home.green == '142' && home.blue == '147') {  
396 - this.setData({  
397 - theme: 'green'  
398 - })  
399 - }  
400 - if (home && home.red == '12' && home.green == '15' && home.blue == '14') {  
401 - this.setData({  
402 - theme: 'blackGold'  
403 - })  
404 - }  
405 - }).catch(res=>{  
406 - this.setData({  
407 - theme:'green',  
408 - homeColor:'67,142,147,1'  
409 - })  
410 - console.log(this.data.homeColor,'GetSellerTemplateConf请求失败');  
411 - })  
412 - },  
413 - // 再次预订  
414 - secondbook() {  
415 - wx.reportMonitor('1013', 1)  
416 - wx.redirectTo({  
417 - url: '../reserve/detail?id=' + this.data.detail.seller.id  
418 - })  
419 - },  
420 - /**  
421 - * 生命周期函数--监听页面隐藏  
422 - */  
423 - onHide() { 115 + },
  116 + /**
  117 + * 用户点击右上角分享
  118 + */
  119 + onShareAppMessage: function () {
  120 + return this.sharesetting();
  121 + },
  122 + onShareTimeline() {
  123 + return this.sharesetting();
  124 + },
  125 + /**
  126 + * 生命周期函数--监听页面显示
  127 + */
  128 + onShow: function () {
  129 + this.getDetail()
  130 + },
  131 + cli() {
  132 + if (this.data.staffinfo.wechat) {
  133 + wx.setClipboardData({
  134 + data: this.data.staffinfo.wechat,
  135 + success(res) {
  136 + wx.getClipboardData({
  137 + success(res) {
  138 + console.log(res.data) // data
  139 + }
  140 + })
  141 + }
  142 + })
  143 + } else {
  144 + console.log('无微信号')
  145 + }
  146 + },
  147 + call() {
  148 + wx.reportMonitor('1012', 1)
  149 + wx.makePhoneCall({
  150 + phoneNumber: this.data.staffinfo.phone
  151 + })
  152 + },
  153 + looklocation: function () {
  154 + wx.reportMonitor('1015', 1)
  155 + wx.openLocation({
  156 + latitude: Number(this.data.seller.lat),
  157 + longitude: Number(this.data.seller.long),
  158 + scale: 17,
  159 + address: this.data.seller.addr,
  160 + success: function (res) {
  161 + console.log(res)
  162 + }
  163 + })
  164 + },
  165 + getDetail() {
  166 + App.Reserve.Detail({
  167 + openid: getApp().openid,
  168 + rid: this.data.options.id
  169 + }).then(res => {
  170 + let tablesText = '', //桌子信息
  171 + tableNum = 0;
  172 + res.data.tables.forEach((t, i) => {
  173 + tableNum += t.table_pnum * 1
  174 + tablesText += t.rname + t.name + (i == (res.data.tables.length - 1) ? '' : '、');
  175 + })
  176 + let reserev = RS.reserve(res.data)
  177 + let dateSmart
  178 + if (res.data.type == 1) {
  179 + dateSmart = util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStrSmart[0])
  180 + if (res.data.is_set_ddate == 1) {
  181 + dateSmart += ' ' + util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStrSmart[1])
  182 + } else {
  183 + dateSmart += ' ' + reserev.soltName
  184 + }
  185 + } else {
  186 + dateSmart = util.unixtoTime(reserev.ddate, this.data.tpls[this.data.current].timeStr)
  187 + }
  188 + this.setData({
  189 + detail: this.formatDatail(reserev, dateSmart),
  190 + tableNum,
  191 + is_user_comments: res.data.is_user_comments,
  192 + seller: {
  193 + name: reserev.seller.sellername,
  194 + sid: reserev.sid,
  195 + date: dateSmart,
  196 + tablesText,
  197 + addr: reserev.seller.real_address || reserev.seller.map_address,
  198 + image: reserev.image_url,
  199 + hasOwner: true,
  200 + type: reserev.type,
  201 + is_set_ddate: reserev.is_set_ddate,
  202 + hasUpTime: reserev.type == 1 && reserev.hasRunning && reserev.status != 2,
  203 + tel: reserev.seller.seller_tel.split(',')[0],
  204 + soltName: reserev.soltName,
  205 + lat: reserev.seller.lat,
  206 + long: reserev.seller.long,
  207 + }
  208 + })
  209 + console.log('reserev reserev', reserev);
  210 + console.log('seller seller', this.data.seller);
  211 + console.log('detail detail', this.data.detail);
  212 + setTimeout(() => {
  213 + this.getSellerTemplateConfFun(reserev.sid);
  214 + this.getstaffinfo(res.data.uid)
  215 + }, 0);
  216 + }).catch(res => {
  217 + console.log(res, '详情请求失败');
  218 + })
  219 + },
  220 + getstaffinfo(uid) {
  221 + console.log('sellerid', this.data.detail.seller.id);
  222 + App.Activity.GetCustomerActivityBaseinfo({
  223 + sellerid: this.data.detail.seller.id,
  224 + uid
  225 + }).then((json) => {
  226 + if (json.ret == 200) {
  227 + console.log('staffinfostaffinfostaffinfo', json.data)
  228 + this.setData({
  229 + staffinfo: json.data
  230 + })
  231 + }
  232 + })
  233 + },
  234 + cookbook() {
  235 + if (this.data.detail.order && this.data.detail.order.cookbooklist.length > 0) {
  236 + let data = {
  237 + rid: this.id,
  238 + oid: this.data.detail.order.id,
  239 + sellerName: this.data.seller.name,
  240 + sid: this.data.seller.sid,
  241 + identity: '1',
  242 + hasSuccess: '1',
  243 + }
  244 + wx.navigateTo({
  245 + url: `/pack-cookbook/pages/success_new?hasSuccess=${data.hasSuccess}&identity=${data.identity}&oid=${data.oid}&rid=${data.rid}&sellerName=${data.sellerName}&sid=${data.sid}`,
  246 + })
  247 + } else {
  248 + App.Advance.CreateOrder({
  249 + rid: this.id,
  250 + openid: getApp().openid,
  251 + }).then(res => {
  252 + if (res.ret != 200) {
  253 + return util.toast(res.msg, 'none')
  254 + }
  255 + wx.navigateTo({
  256 + url: util.http_build_query({
  257 + rid: this.id,
  258 + oid: res.data.id,
  259 + sid: res.data.sellerid,
  260 + sellerName: this.data.seller.name,
  261 + identity: '1',
  262 + }, '/pack-cookbook/pages/index_new')
  263 + });
  264 + })
  265 + }
  266 + },
  267 + sharesetting() {
  268 + wx.reportMonitor('1017', 1)
  269 + let parmdata = {
  270 + id: this.id,
  271 + fromid: getApp().openid,
  272 + hasInvitation: 1,
  273 + tplid: this.data.options.tplid
  274 + }
  275 + if (this.data.options.uid) {
  276 + parmdata.uid = this.data.options.uid;
  277 + }
  278 + console.log('seller_imageseller_imageseller_imageseller_imageseller_image', this.data.detail.seller.seller_image);
  279 + return {
  280 + title: '邀请您于' + this.data.seller.date + '一起共进' + this.data.seller.soltName + '。点击查看详情',
  281 + path: util.http_build_query(parmdata, '/pages/customer/index'),
  282 + imageUrl: this.data.detail.seller.seller_image,
  283 + }
  284 + },
  285 + formatDatail(detail, dateSmart) {
  286 + detail.rdateStr = dateSmart;
  287 + detail.tableFirst = detail.tables[0].name;
  288 + if (detail.tables.length > 1) {
  289 + detail.tableSubInfo = '等' + (detail.tables.length) + '个' +
  290 + (detail.tables[0].tid == 2 ? '包间' : '');
  291 + }
  292 + if (detail.rname && detail.sex != 3) {
  293 + detail.rnameStr = detail.rname.substr(0, 1) + (detail.sex == 1 ? '先生' : '女士')
  294 + } else {
  295 + detail.rnameStr = detail.rname
  296 + }
  297 + detail.eatStr = '邀请您共进晚餐';
  298 + let hi = util.unixtoTime(detail.ddate, 'HHII');
  299 + if (hi < '10:00') {
  300 + detail.eatStr = '邀请您共进早餐';
  301 + } else if (hi < '15:00') {
  302 + detail.eatStr = '邀请您共进午餐';
  303 + }
  304 + return detail;
  305 + },
  306 + getSellerTemplateConfFun(sid) {
  307 + console.log(sid, 'sidsidsidsid');
  308 + App.Seller.GetSellerTemplateConf({
  309 + sid
  310 + }).then(res => {
  311 + let data = res.data
  312 + console.log('data', data);
  313 + let coupon_dataList = []
  314 + let home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, homeColor, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
  315 + chef = util.determine(data.chef);
  316 + reserve = util.determine(data.reserve);
  317 + marketing = util.determine(data.marketing);
  318 + signboard = util.determine(data.signboard);
  319 + store = util.determine(data.store);
  320 + home = util.determine(data.home);
  321 + swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
  322 + if (marketing) {
  323 + is_comments = marketing.is_comments ? marketing.is_comments : '';
  324 + coupon = marketing.coupon_data ? util.determine(marketing.coupon_data) : '';
  325 + }
  326 + // is_cash 代金券 is_discount折扣券 is_dish菜品券 只有代金券有几折显示
  327 + if (coupon && util.getType(coupon) == 'object') {
  328 + coupon.stringifyUse = JSON.stringify(coupon.use)
  329 + if (marketing.is_coupon == '1' && coupon && (!coupon.use.is_cash || coupon.use.is_cash == '1')) {
  330 + let cash = coupon.use.cash * 1;
  331 + let price = coupon.price * 1;
  332 + console.log('cash', cash + '---' + 'price', price + '---' + 'discount', ((price / cash) * 10).toFixed(2));
  333 + coupon.discount = cash != 0 ? ((price / cash) * 10).toFixed(2) : '';
  334 + }
  335 + coupon_dataList.push(coupon);
  336 + }
  337 + if (coupon && util.getType(coupon) == 'array') {
  338 + if (coupon.length > 0) {
  339 + coupon.forEach(item => {
  340 + item.stringifyUse = JSON.stringify(item.use)
  341 + if ((!item.use.is_cash || item.use.is_cash == '1')) {
  342 + let cash = item.use.cash * 1;
  343 + let price = item.price * 1;
  344 + console.log('cash', cash + '---' + 'price', price + '---' + 'discount', ((price / cash) * 10).toFixed(2));
  345 + item.discount = cash != 0 ? ((price / cash) * 10).toFixed(2) : '';
  346 + }
  347 + })
  348 + }
  349 + coupon_dataList = coupon;
  350 + }
  351 + let obj = {
  352 + chef,
  353 + reserve,
  354 + marketing,
  355 + signboard,
  356 + store,
  357 + home,
  358 + stringifyUse,
  359 + coupon,
  360 + coupon_dataList,
  361 + swich_phone,
  362 + is_comments,
  363 + StyleType: res.data.type,
  364 + }
  365 + console.log('获取数据', {
  366 + ...obj
  367 + });
  368 + if (marketing && marketing.is_recharge == '1' && marketing.recharge_data) {
  369 + let recharge_data = marketing.recharge_data
  370 + recharge_list = marketing.recharge_data.recharge_list
  371 + if (recharge_list.is_price == '1') priceInfo = '会员充值满' + recharge_data.recharge_money + '元赠送' + recharge_list.price + '元余额';
  372 + if (recharge_list.is_score == '1') scoreInfo = '会员充值满' + recharge_data.recharge_money + '元赠送' + recharge_list.score + '积分';
  373 + if (recharge_list.is_coupons == '1' && recharge_data.recharge_list.coupons_names.length > 0) certificate = recharge_data.recharge_list.coupons_names.join('、');
  374 + console.log('scoreInfo', scoreInfo);
  375 + console.log('priceInfo', priceInfo);
  376 + this.setData({
  377 + recharge_data: marketing.recharge_data,
  378 + certificate
  379 + })
  380 + console.log('recharge_data', recharge_data);
  381 + }
  382 + this.setData({
  383 + coupon_dataList,
  384 + stringifyUse
  385 + })
  386 + if (store && store.images.length > 0) store.images = util.determine(store.images);
  387 + if (signboard && signboard.images) signboard.images = util.determine(signboard.images);
  388 + if (marketing && marketing.is_online_book == '1' && marketing.is_transpond == '1') {
  389 + this.setData({
  390 + between: true
  391 + })
  392 + }
  393 + if (home && home.red && home.green && home.blue && home.alpha) {
  394 + homeColor = home.red + ',' + home.green + ',' + home.blue + ',' + home.alpha
  395 + } else {
  396 + homeColor = '67,142,147,1'
  397 + }
  398 + console.log('homeColor', homeColor);
  399 + this.setData({
  400 + chef,
  401 + marketing,
  402 + home,
  403 + reserve,
  404 + signboard,
  405 + store,
  406 + homeColor, //home主题颜色
  407 + priceInfo,
  408 + scoreInfo,
  409 + swich_phone,
  410 + is_comments,
  411 + StyleType: res.data.type,
  412 + })
  413 + if (home && home.red == '1' && home.green == '67' && home.blue == '163') {
  414 + this.setData({
  415 + theme: 'blue'
  416 + })
  417 + }
  418 + if (home && home.red == '67' && home.green == '142' && home.blue == '147') {
  419 + this.setData({
  420 + theme: 'green'
  421 + })
  422 + }
  423 + if (home && home.red == '12' && home.green == '15' && home.blue == '14') {
  424 + this.setData({
  425 + theme: 'blackGold'
  426 + })
  427 + }
  428 + }).catch(res => {
  429 + this.setData({
  430 + theme: 'green',
  431 + homeColor: '67,142,147,1'
  432 + })
  433 + console.log(this.data.homeColor, 'GetSellerTemplateConf请求失败');
  434 + })
  435 + },
  436 + // 再次预订
  437 + secondbook() {
  438 + wx.reportMonitor('1013', 1)
  439 + wx.redirectTo({
  440 + url: '../reserve/detail?id=' + this.data.detail.seller.id
  441 + })
  442 + },
  443 + /**
  444 + * 生命周期函数--监听页面隐藏
  445 + */
  446 + onHide() {
424 447
425 - }, 448 + },
426 449
427 - /**  
428 - * 生命周期函数--监听页面卸载  
429 - */  
430 - onUnload() { 450 + /**
  451 + * 生命周期函数--监听页面卸载
  452 + */
  453 + onUnload() {
431 454
432 - }, 455 + },
433 456
434 - /**  
435 - * 页面相关事件处理函数--监听用户下拉动作  
436 - */  
437 - onPullDownRefresh() { 457 + /**
  458 + * 页面相关事件处理函数--监听用户下拉动作
  459 + */
  460 + onPullDownRefresh() {
438 461
439 - }, 462 + },
440 463
441 - /**  
442 - * 页面上拉触底事件的处理函数  
443 - */  
444 - onReachBottom() { 464 + /**
  465 + * 页面上拉触底事件的处理函数
  466 + */
  467 + onReachBottom() {
445 468
446 - }, 469 + },
447 }) 470 })
@@ -3,6 +3,6 @@ @@ -3,6 +3,6 @@
3 "navigationBarTextStyle": "white", 3 "navigationBarTextStyle": "white",
4 "navigationBarTitleText": "", 4 "navigationBarTitleText": "",
5 "usingComponents": { 5 "usingComponents": {
6 - "nav": "/components/nav/nav" 6 + "nav": "/components/nav/nav"
7 } 7 }
8 - }  
  8 +}
1 -<!--pages/customer/detail_owner_invitation_new1.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}}"> 3 <nav hasHome class="navhome" place="{{true}}">
4 </nav> 4 </nav>
5 -<scroll-view class="last-book-bg" style="line-height: 1.4;height:{{height}}px;" scroll-y> 5 +<scroll-view scroll-y>
6 <view class="titleImg" style="background: rgba({{homeColor}});"> 6 <view class="titleImg" style="background: rgba({{homeColor}});">
7 <image src="{{theme=='green'?'https://qn.colorcun.com/1571679628800_.pic.jpg':theme=='blue'?'https://qn.colorcun.com/1561679628784_.pic.jpg':theme=='blackGold'?'https://qn.colorcun.com/1551679628682_.pic.jpg':''}}" class="titleIcon"></image> 7 <image src="{{theme=='green'?'https://qn.colorcun.com/1571679628800_.pic.jpg':theme=='blue'?'https://qn.colorcun.com/1561679628784_.pic.jpg':theme=='blackGold'?'https://qn.colorcun.com/1551679628682_.pic.jpg':''}}" class="titleIcon"></image>
8 <view class="title {{theme+'Title'}}">{{home?home.title:seller.name}}</view> 8 <view class="title {{theme+'Title'}}">{{home?home.title:seller.name}}</view>
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <view class="infoRight"> 17 <view class="infoRight">
18 <view class="begin"> 18 <view class="begin">
19 <view>尊敬的贵宾,您好!</view> 19 <view>尊敬的贵宾,您好!</view>
20 - <view>非常感谢您选择{{seller.name?seller.name:reserve.seller_name}}!</view> 20 + <view>非常感谢您选择【{{seller.name?seller.name:reserve.seller_name}}】!</view>
21 </view> 21 </view>
22 <view class="flex-11" wx:if="{{seller.date}}"> 22 <view class="flex-11" wx:if="{{seller.date}}">
23 <view class="label">【日期】</view> 23 <view class="label">【日期】</view>
@@ -39,9 +39,9 @@ @@ -39,9 +39,9 @@
39 <view class="label">【停车】</view> 39 <view class="label">【停车】</view>
40 <view class="contentData">{{reserve.park_info}}</view> 40 <view class="contentData">{{reserve.park_info}}</view>
41 </view> 41 </view>
42 - <view class="flex-11" wx:if="{{ swich_phone!='0' && reserve && (reserve.seller_phone || detail.seller.phone)}}"> 42 + <view class="flex-11" wx:if="{{ swich_phone!='0' && detail.seller.phone}}">
43 <view class="label">【联系】</view> 43 <view class="label">【联系】</view>
44 - <view class="contentData">{{reserve.seller_phone?reserve.seller_phone:detail.seller.phone}}</view> 44 + <view class="contentData">{{detail.seller.phone}}</view>
45 </view> 45 </view>
46 <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> 46 <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}">
47 <view class="handleInfo"> 47 <view class="handleInfo">
@@ -56,13 +56,12 @@ @@ -56,13 +56,12 @@
56 </view> 56 </view>
57 </view> 57 </view>
58 </block> 58 </block>
59 - <view class="welcome">  
60 - 欢迎垂询,恭候光临! 59 + <view class="welcome font32r">
  60 + {{home.slogan}}
61 </view> 61 </view>
62 <view class="positioning" bindtap="looklocation"> 62 <view class="positioning" bindtap="looklocation">
63 <image src="https://qn.colorcun.com/address.png" mode="" /> 63 <image src="https://qn.colorcun.com/address.png" mode="" />
64 <view class="name"> 64 <view class="name">
65 - <text>【{{seller.name?seller.name:reserve.seller_name}}】</text>  
66 <text>{{seller.addr?seller.addr:reserev.seller.map_address}}</text> 65 <text>{{seller.addr?seller.addr:reserev.seller.map_address}}</text>
67 </view> 66 </view>
68 </view> 67 </view>
@@ -74,17 +73,19 @@ @@ -74,17 +73,19 @@
74 <view class="left"> 73 <view class="left">
75 <view class="top"> 74 <view class="top">
76 <text>{{item.aname}}</text> 75 <text>{{item.aname}}</text>
77 - <view class="price" wx:if="{{item.price}}"><view class="icons">¥</view>{{item.price}}</view> 76 + <view class="price" wx:if="{{item.price}}">
  77 + <view class="icons">¥</view>{{item.price}}
  78 + </view>
78 <!-- is_cash 代金券 is_discount折扣券 is_dish菜品券 只有代金券有几折显示 --> 79 <!-- is_cash 代金券 is_discount折扣券 is_dish菜品券 只有代金券有几折显示 -->
79 <text wx:if="{{item.discount!='0.00' && (item.use.is_cash=='1' || item.use.is_cash) && item.discount}}" class="discount">{{item.discount}}折</text> 80 <text wx:if="{{item.discount!='0.00' && (item.use.is_cash=='1' || item.use.is_cash) && item.discount}}" class="discount">{{item.discount}}折</text>
80 </view> 81 </view>
81 - <view wx:if="{{item.exp_date.is_week=='1' || item.exp_date.is_week===true}}" class="bottom" > 82 + <view wx:if="{{item.exp_date.is_week=='1' || item.exp_date.is_week===true}}" class="bottom">
82 {{item.exp_date.week_show?item.exp_date.week_show+'可用':''}}{{item.desc?','+item.desc+'。':'。'}} 83 {{item.exp_date.week_show?item.exp_date.week_show+'可用':''}}{{item.desc?','+item.desc+'。':'。'}}
83 </view> 84 </view>
84 - <view wx:if="{{item.exp_date.is_none=='1' || item.exp_date.is_none===true}}" class="bottom" > 85 + <view wx:if="{{item.exp_date.is_none=='1' || item.exp_date.is_none===true}}" class="bottom">
85 无限制{{item.desc?','+item.desc+'。':'。'}} 86 无限制{{item.desc?','+item.desc+'。':'。'}}
86 </view> 87 </view>
87 - <view wx:if="{{item.exp_date.is_birthday=='1' || item.exp_date.is_birthday===true}}" class="bottom" > 88 + <view wx:if="{{item.exp_date.is_birthday=='1' || item.exp_date.is_birthday===true}}" class="bottom">
88 会员生日当天可用{{item.desc?','+item.desc+'。':'。'}} 89 会员生日当天可用{{item.desc?','+item.desc+'。':'。'}}
89 </view> 90 </view>
90 </view> 91 </view>
@@ -99,19 +100,8 @@ @@ -99,19 +100,8 @@
99 <view wx:if="{{is_comments=='1' && !is_user_comments}}" class="evaluateBox" bindtap="evaluateFun"> 100 <view wx:if="{{is_comments=='1' && !is_user_comments}}" class="evaluateBox" bindtap="evaluateFun">
100 <text wx:if="{{is_comments=='1' && marketing.is_comments_coupon!='1'}}">想吐槽?戳这里填写意见!--></text> 101 <text wx:if="{{is_comments=='1' && marketing.is_comments_coupon!='1'}}">想吐槽?戳这里填写意见!--></text>
101 <text wx:if="{{marketing.is_comments_coupon=='1'}}">想吐槽?戳这里填写意见反馈赢好礼!</text> 102 <text wx:if="{{marketing.is_comments_coupon=='1'}}">想吐槽?戳这里填写意见反馈赢好礼!</text>
102 - <image src="https://qn.colorcun.com/evaluate.png" mode=""/>  
103 - </view>  
104 - <!-- <view class="visitor">  
105 - 确认赴约客人:{{keepAppointment.length}}位 103 + <image src="https://qn.colorcun.com/evaluate.png" mode="" />
106 </view> 104 </view>
107 - <view class="keepWrap">  
108 - <view class="keepItems" wx:for="{{keepAppointment}}" wx:key="keepAppointment.key">  
109 - <image src="{{item.photo}}" mode="" />  
110 - <view>  
111 - {{item.name}}  
112 - </view>  
113 - </view>  
114 - </view> -->  
115 <!-- 品牌介绍类型store.style 0只有图 1图文合并 2图文分开 --> 105 <!-- 品牌介绍类型store.style 0只有图 1图文合并 2图文分开 -->
116 <view class="introduce" wx:if="{{store && store.style=='0'}}"> 106 <view class="introduce" wx:if="{{store && store.style=='0'}}">
117 <view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 107 <view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
@@ -156,7 +146,7 @@ @@ -156,7 +146,7 @@
156 </text> 146 </text>
157 </view> 147 </view>
158 </view> 148 </view>
159 - <image src="{{item}}" mode="aspectFill"/> 149 + <image src="{{item}}" mode="aspectFill" />
160 </view> 150 </view>
161 </view> 151 </view>
162 </view> 152 </view>
@@ -172,7 +162,7 @@ @@ -172,7 +162,7 @@
172 {{chef.chef_name}} 162 {{chef.chef_name}}
173 </view> 163 </view>
174 <view class="labelBox labelBox2"> 164 <view class="labelBox labelBox2">
175 - <text class="label" >{{chef.introduce}} 165 + <text class="label">{{chef.introduce}}
176 </text> 166 </text>
177 <view class="line line1"> 167 <view class="line line1">
178 </view> 168 </view>
@@ -215,7 +205,7 @@ @@ -215,7 +205,7 @@
215 </view> 205 </view>
216 <view class="specialServices" wx:if="{{detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> 206 <view class="specialServices" wx:if="{{detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}">
217 <view class="rubric"> 207 <view class="rubric">
218 - 特供服务 208 + 提前点餐
219 </view> 209 </view>
220 <view class="news"> 210 <view class="news">
221 本店特为贵宾提供提前点餐服务,您现在可以选菜下单,到店就餐时无需等待服务员点餐,可以直接享受就餐服务^_^ 211 本店特为贵宾提供提前点餐服务,您现在可以选菜下单,到店就餐时无需等待服务员点餐,可以直接享受就餐服务^_^
@@ -256,24 +246,25 @@ @@ -256,24 +246,25 @@
256 </view> 246 </view>
257 </view> 247 </view>
258 <view class="vips"> 248 <view class="vips">
  249 + <view wx:if="{{marketing.is_link}}" class="font24r favouredPolicy" bindtap="gotoFavourableList">
  250 + 点击了解更多会员优惠政策
  251 + </view>
259 <image wx:if="{{marketing && marketing.logo}}" src="{{marketing.logo?marketing.logo:''}}" mode="heightFix" /> 252 <image wx:if="{{marketing && marketing.logo}}" src="{{marketing.logo?marketing.logo:''}}" mode="heightFix" />
260 <view class="news" wx:if="{{marketing && marketing.wecomle}}"> 253 <view class="news" wx:if="{{marketing && marketing.wecomle}}">
261 {{marketing?marketing.wecomle:''}} 254 {{marketing?marketing.wecomle:''}}
262 </view> 255 </view>
263 - <view wx:if="{{marketing.is_link}}" class="font24r favouredPolicy" bindtap="gotoFavourableList">  
264 - 点击了解更多会员优惠政策  
265 - </view>  
266 <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;"> 256 <text style="color: #999; font-size: 26rpx;font-family: PingFang SC;">
267 - \n  
268 周到安排提供技术支持 400 000 9690 257 周到安排提供技术支持 400 000 9690
269 </text> 258 </text>
270 </view> 259 </view>
  260 + <view class="more" wx:if="{{showMoreTip}}">
  261 + <view class="moreText">滑动查看更多</view>
  262 + <image src="https://qn.colorcun.com/jt1.png" mode="" />
  263 + </view>
271 </scroll-view> 264 </scroll-view>
272 <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1'}}" class="{{between?'all-button flex-lr between':'all-button flex-lr sharewidth'}}"> 265 <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1'}}" class="{{between?'all-button flex-lr between':'all-button flex-lr sharewidth'}}">
273 <view wx:if="{{marketing.is_online_book=='1'}}" class="book-item-font second-book-button flex-cc font30r" bindtap="secondbook" style="position: relative;">再次预订 266 <view wx:if="{{marketing.is_online_book=='1'}}" class="book-item-font second-book-button flex-cc font30r" bindtap="secondbook" style="position: relative;">再次预订
274 </view> 267 </view>
275 - <!-- <view wx:if="{{marketing.is_arrival}}" class="book-item-font second-book-button flex-cc font30r centerBtn" bindtap="secondbook" style="position: relative;">确认赴约  
276 - </view> -->  
277 <block> 268 <block>
278 <button wx:if="{{marketing.is_transpond=='1'}}" class="book-item-font flex-cc font30r shareItem" open-type="share">转发给客人 269 <button wx:if="{{marketing.is_transpond=='1'}}" class="book-item-font flex-cc font30r shareItem" open-type="share">转发给客人
279 </button> 270 </button>
1 -/* pages/customer/detail_owner_invitation_new1.wxss */ 1 +/* pages/customer/detail_owner_invitation6.wxss */
2 @import "../tpl/tpls.wxss"; 2 @import "../tpl/tpls.wxss";
3 3
4 .titleImg { 4 .titleImg {
5 top: 160rpx; 5 top: 160rpx;
6 left: 1rpx; 6 left: 1rpx;
7 width: 750rpx; 7 width: 750rpx;
8 - height: 330rpx; 8 + height: 268rpx;
9 } 9 }
10 10
11 .blueTitleImg { 11 .blueTitleImg {
@@ -27,12 +27,12 @@ @@ -27,12 +27,12 @@
27 27
28 .title { 28 .title {
29 text-align: center; 29 text-align: center;
30 - font-family: FangSong; 30 + font-family: PingFang SC;
31 font-size: 72rpx; 31 font-size: 72rpx;
32 -webkit-background-clip: text; 32 -webkit-background-clip: text;
33 -webkit-text-fill-color: transparent; 33 -webkit-text-fill-color: transparent;
34 position: relative; 34 position: relative;
35 - top: -16rpx; 35 + top: -70rpx;
36 background-image: -webkit-linear-gradient(bottom, #697d6e, #cfb53b); 36 background-image: -webkit-linear-gradient(bottom, #697d6e, #cfb53b);
37 } 37 }
38 38
@@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
56 -webkit-background-clip: text; 56 -webkit-background-clip: text;
57 -webkit-text-fill-color: transparent; 57 -webkit-text-fill-color: transparent;
58 position: relative; 58 position: relative;
59 - top: -16rpx; 59 + top: -68rpx;
60 } 60 }
61 61
62 .blueInfo { 62 .blueInfo {
@@ -101,7 +101,8 @@ @@ -101,7 +101,8 @@
101 font-family: PingFang SC; 101 font-family: PingFang SC;
102 font-size: 32rpx; 102 font-size: 32rpx;
103 } 103 }
104 -.begin view{ 104 +
  105 +.begin view {
105 line-height: 50rpx; 106 line-height: 50rpx;
106 } 107 }
107 108
@@ -139,6 +140,7 @@ @@ -139,6 +140,7 @@
139 .welcome { 140 .welcome {
140 text-align: center; 141 text-align: center;
141 margin: 40rpx 0 0 0; 142 margin: 40rpx 0 0 0;
  143 + color: #000;
142 } 144 }
143 145
144 .visitor { 146 .visitor {
@@ -168,10 +170,11 @@ @@ -168,10 +170,11 @@
168 170
169 .handlePhone { 171 .handlePhone {
170 height: 100rpx; 172 height: 100rpx;
  173 + color: #515151;
171 } 174 }
172 175
173 .brownFont { 176 .brownFont {
174 - padding: 4rpx 16rpx; 177 + padding: 10rpx 16rpx;
175 color: #0143A3; 178 color: #0143A3;
176 border: 2rpx solid #0143A3; 179 border: 2rpx solid #0143A3;
177 border-radius: 22rpx; 180 border-radius: 22rpx;
@@ -203,7 +206,7 @@ @@ -203,7 +206,7 @@
203 .positioning image { 206 .positioning image {
204 width: 32rpx; 207 width: 32rpx;
205 height: 38rpx; 208 height: 38rpx;
206 - margin-right: 10rpx; 209 + margin-right: 16rpx;
207 } 210 }
208 211
209 .positioning .name { 212 .positioning .name {
@@ -214,10 +217,12 @@ @@ -214,10 +217,12 @@
214 font-family: PingFang SC; 217 font-family: PingFang SC;
215 font-size: 28rpx; 218 font-size: 28rpx;
216 } 219 }
217 -.positioning .name text{ 220 +
  221 +.positioning .name text {
218 line-height: 50rpx; 222 line-height: 50rpx;
219 } 223 }
220 -.positioning .name text:nth-of-type(2){ 224 +
  225 +.positioning .name text:nth-of-type(2) {
221 text-indent: 8rpx; 226 text-indent: 8rpx;
222 } 227 }
223 228
@@ -251,11 +256,16 @@ @@ -251,11 +256,16 @@
251 256
252 .imgMask { 257 .imgMask {
253 position: relative; 258 position: relative;
  259 + margin: 0 20rpx 18rpx 20rpx;
  260 +}
  261 +
  262 +.famousChefBox .imgMask,
  263 +.vegetableBox .imgMask {
  264 + margin: 0 0 18rpx 0;
254 } 265 }
255 266
256 .imgMask image { 267 .imgMask image {
257 height: calc(100vw * 0.82) !important; 268 height: calc(100vw * 0.82) !important;
258 - margin-bottom: 18rpx;  
259 } 269 }
260 270
261 .introduce .chief { 271 .introduce .chief {
@@ -462,26 +472,29 @@ @@ -462,26 +472,29 @@
462 472
463 .orderingFood { 473 .orderingFood {
464 padding: 0 26rpx; 474 padding: 0 26rpx;
465 - color: #fff; 475 + color: #0143A3;
466 border-radius: 22rpx; 476 border-radius: 22rpx;
467 text-align: center; 477 text-align: center;
468 - background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%); 478 + background: #fff;
  479 + border: 2rpx solid #0143A3;
  480 + border-radius: 32rpx;
469 margin: 20rpx 0; 481 margin: 20rpx 0;
470 line-height: 44rpx; 482 line-height: 44rpx;
471 height: 44rpx; 483 height: 44rpx;
472 } 484 }
473 485
474 .preferential { 486 .preferential {
475 - margin: 16rpx 40rpx 16rpx 56rpx; 487 + margin: 16rpx 40rpx 20rpx 56rpx;
476 } 488 }
477 489
478 .preferentialItems { 490 .preferentialItems {
479 - border: 2rpx solid #DBDBDB;  
480 - border-radius: 16rpx;  
481 padding: 16rpx 16rpx 16rpx 24rpx; 491 padding: 16rpx 16rpx 16rpx 24rpx;
482 display: flex; 492 display: flex;
483 justify-content: space-between; 493 justify-content: space-between;
  494 + align-items: center;
484 margin-bottom: 20rpx; 495 margin-bottom: 20rpx;
  496 + background: url('https://qn.colorcun.com/certificateBj.png') no-repeat;
  497 + background-size: 100% 100%;
485 } 498 }
486 499
487 .rubric1 { 500 .rubric1 {
@@ -536,10 +549,10 @@ @@ -536,10 +549,10 @@
536 font-size: 30rpx; 549 font-size: 30rpx;
537 } 550 }
538 551
539 -.price{ 552 +.price {
540 display: flex; 553 display: flex;
541 - align-items: center;  
542 - justify-content: center; 554 + align-items: center;
  555 + justify-content: center;
543 } 556 }
544 557
545 .price .icons { 558 .price .icons {
@@ -549,7 +562,6 @@ @@ -549,7 +562,6 @@
549 } 562 }
550 563
551 .vips image { 564 .vips image {
552 - margin: 36rpx 0;  
553 height: 300rpx; 565 height: 300rpx;
554 } 566 }
555 567
@@ -579,18 +591,15 @@ @@ -579,18 +591,15 @@
579 591
580 .favouredPolicy { 592 .favouredPolicy {
581 width: 45%; 593 width: 45%;
582 - color: #999999; 594 + color: #5C95D7;
583 font-family: PingFang SC; 595 font-family: PingFang SC;
584 font-weight: 500; 596 font-weight: 500;
585 - border: 2rpx solid #0244a4; 597 + border: 2rpx solid #5C95D7;
586 border-radius: 22rpx; 598 border-radius: 22rpx;
587 text-align: center; 599 text-align: center;
588 padding: 10rpx; 600 padding: 10rpx;
589 } 601 }
590 602
591 -.last-book-bg {  
592 - background: transparent;  
593 -}  
594 603
595 .all-button { 604 .all-button {
596 background: #FAFAFA; 605 background: #FAFAFA;
@@ -650,26 +659,52 @@ @@ -650,26 +659,52 @@
650 } 659 }
651 660
652 .cook { 661 .cook {
653 - height: 100% !important;  
654 - background: linear-gradient(104.24deg, rgba(76, 141, 173, 1) -57.47%, rgba(1, 67, 163, 1) 55.72%, rgba(66, 165, 255, 1) 148.72%);  
655 - color: #fff !important; 662 + height: 94% !important;
  663 + background: #fff;
  664 + border: 2rpx solid #0143A3;
  665 + border-radius: 32rpx;
656 font-weight: normal; 666 font-weight: normal;
657 - width: 27% !important; 667 + width: 23% !important;
658 } 668 }
659 -.bold{ 669 +
  670 +.bold {
660 font-weight: 500; 671 font-weight: 500;
661 } 672 }
662 -.evaluateBox{ 673 +
  674 +.evaluateBox {
663 margin: 16rpx 84rpx 16rpx 56rpx; 675 margin: 16rpx 84rpx 16rpx 56rpx;
664 display: flex; 676 display: flex;
665 align-items: center; 677 align-items: center;
666 justify-content: space-between; 678 justify-content: space-between;
667 } 679 }
668 -.evaluateBox image{ 680 +
  681 +.evaluateBox image {
669 width: 60rpx; 682 width: 60rpx;
670 height: 70rpx; 683 height: 70rpx;
671 } 684 }
672 -.evaluateBox text{ 685 +
  686 +.evaluateBox text {
673 color: #000; 687 color: #000;
674 font-size: 28rpx; 688 font-size: 28rpx;
  689 +}
  690 +
  691 +.more {
  692 + height: 80rpx;
  693 + width: 100%;
  694 + position: absolute;
  695 + top: 15.5%;
  696 + display: flex;
  697 + align-items: center;
  698 + justify-content: center;
  699 + flex-direction: column;
  700 + background: rgba(0, 0, 0, .4);
  701 +}
  702 +
  703 +.moreText {
  704 + color: #fff;
  705 +}
  706 +
  707 +.more image {
  708 + width: 30rpx;
  709 + height: 30rpx;
675 } 710 }
@@ -135,41 +135,25 @@ Page({ @@ -135,41 +135,25 @@ Page({
135 openid:opt.openid 135 openid:opt.openid
136 }) 136 })
137 } 137 }
138 - //is_new_template为1 显示新邀请函detail_owner_invitation_new 0显示旧邀请函detail_owner_invitation  
139 - let is_new=res.data.seller.is_new_template;  
140 - console.log(res.data.seller.is_new_template,'is_new_templateis_new_template');  
141 console.log(res.data.openid,'resdataopenidopenidopenidopenid'); 138 console.log(res.data.openid,'resdataopenidopenidopenidopenid');
142 console.log(opt.hasInvitation,'hasInvitation'); 139 console.log(opt.hasInvitation,'hasInvitation');
143 console.log(opt.openid,'optopenidoptopenidopt.openid'); 140 console.log(opt.openid,'optopenidoptopenidopt.openid');
144 console.log('type',res.data.seller.temp_config_type); 141 console.log('type',res.data.seller.temp_config_type);
145 let configType=res.data.seller.temp_config_type 142 let configType=res.data.seller.temp_config_type
  143 + console.log('configType',configType);
146 if (!res.data.openid) {//无预订人 144 if (!res.data.openid) {//无预订人
147 - url = '/pages/customer/detail_owner';  
148 - if (opt.hasInvitation == 1 && is_new=='1' && configType=='1') {  
149 - url = '/pages/customer/detail_owner_invitation_new1';  
150 - }else if(opt.hasInvitation == 1 && is_new=='1' && configType=='2') {  
151 - url = '/pages/customer/detail_owner_invitation_new2';  
152 - }else{  
153 - url = '/pages/customer/detail_owner_invitation';  
154 - }  
155 - } else {  
156 - url = '/pages/customer/detail_customer';  
157 - if (opt.hasInvitation == 1 && is_new=='1' && configType=='1') {  
158 - url = '/pages/customer/detail_owner_invitation_new1';  
159 - }else if(opt.hasInvitation == 1 && is_new=='1' && configType=='2') {  
160 - url = '/pages/customer/detail_owner_invitation_new2';  
161 - }else{  
162 - url = '/pages/customer/detail_invitation'; 145 + if (opt.hasInvitation == 1 && configType) {
  146 + url = '/pages/customer/detail_owner_invitation' + configType;
  147 + } else {
  148 + url = '/pages/customer/detail_owner_invitation1';
163 } 149 }
164 - if (res.data.openid == opt.openid) { 150 + } else {
  151 + if (opt.hasInvitation == 1 && configType) {
  152 + url = '/pages/customer/detail_owner_invitation_new' + configType;
  153 + } else if (res.data.openid == opt.openid) {
165 url = '/pages/customer/detail_owner'; 154 url = '/pages/customer/detail_owner';
166 - if (opt.hasInvitation == 1 && is_new=='1' && configType=='1') {  
167 - url = '/pages/customer/detail_owner_invitation_new1';  
168 - }else if(opt.hasInvitation == 1 && is_new=='1' && configType=='2') {  
169 - url = '/pages/customer/detail_owner_invitation_new2';  
170 - }else{  
171 - url = '/pages/customer/detail_owner_invitation';  
172 - } 155 + } else {
  156 + url = '/pages/customer/detail_invitation';
173 } 157 }
174 } 158 }
175 } 159 }
@@ -272,7 +272,7 @@ @@ -272,7 +272,7 @@
272 { 272 {
273 "id": -1, 273 "id": -1,
274 "name": "pages/customer/index 1803 iphone动画", 274 "name": "pages/customer/index 1803 iphone动画",
275 - "pathName": "pages/customer/detail_owner_invitation", 275 + "pathName": "pages/customer/detail_owner_invitation1",
276 "query": "id=1803&fromid=1111&hasInvitation=1", 276 "query": "id=1803&fromid=1111&hasInvitation=1",
277 "scene": "1044", 277 "scene": "1044",
278 "shareInfo": { 278 "shareInfo": {
@@ -298,7 +298,7 @@ @@ -298,7 +298,7 @@
298 { 298 {
299 "id": 40, 299 "id": 40,
300 "name": "邀请Ren pages/customer/index ", 300 "name": "邀请Ren pages/customer/index ",
301 - "pathName": "pages/customer/detail_owner_invitation", 301 + "pathName": "pages/customer/detail_owner_invitation1",
302 "query": "id= 45539&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1", 302 "query": "id= 45539&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1",
303 "scene": null 303 "scene": null
304 }, 304 },
@@ -458,8 +458,8 @@ @@ -458,8 +458,8 @@
458 }, 458 },
459 { 459 {
460 "id": -1, 460 "id": -1,
461 - "name": "pages/customer/detail_owner_invitation",  
462 - "pathName": "pages/customer/detail_owner_invitation", 461 + "name": "pages/customer/detail_owner_invitation1",
  462 + "pathName": "pages/customer/detail_owner_invitation1",
463 "query": "id=43762&hasInvitation=1&hasSellerShare=1&tplid=1", 463 "query": "id=43762&hasInvitation=1&hasSellerShare=1&tplid=1",
464 "scene": null 464 "scene": null
465 }, 465 },
@@ -628,8 +628,8 @@ @@ -628,8 +628,8 @@
628 "scene": null 628 "scene": null
629 }, 629 },
630 { 630 {
631 - "name": "pages/customer/detail_owner_invitation",  
632 - "pathName": "pages/customer/detail_owner_invitation", 631 + "name": "pages/customer/detail_owner_invitation1",
  632 + "pathName": "pages/customer/detail_owner_invitation1",
633 "query": "id= 157347", 633 "query": "id= 157347",
634 "scene": null 634 "scene": null
635 }, 635 },
@@ -350,7 +350,7 @@ @@ -350,7 +350,7 @@
350 { 350 {
351 "id": -1, 351 "id": -1,
352 "name": "pages/customer/index 1803 iphone动画", 352 "name": "pages/customer/index 1803 iphone动画",
353 - "pathName": "pages/customer/detail_owner_invitation", 353 + "pathName": "pages/customer/detail_owner_invitation1",
354 "query": "id=1803&fromid=1111&hasInvitation=1", 354 "query": "id=1803&fromid=1111&hasInvitation=1",
355 "scene": "1044", 355 "scene": "1044",
356 "shareInfo": { 356 "shareInfo": {
@@ -376,7 +376,7 @@ @@ -376,7 +376,7 @@
376 { 376 {
377 "id": 40, 377 "id": 40,
378 "name": "邀请Ren pages/customer/index ", 378 "name": "邀请Ren pages/customer/index ",
379 - "pathName": "pages/customer/detail_owner_invitation", 379 + "pathName": "pages/customer/detail_owner_invitation1",
380 "query": "id= 45539&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1", 380 "query": "id= 45539&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1",
381 "scene": null 381 "scene": null
382 }, 382 },
@@ -536,8 +536,8 @@ @@ -536,8 +536,8 @@
536 }, 536 },
537 { 537 {
538 "id": -1, 538 "id": -1,
539 - "name": "pages/customer/detail_owner_invitation",  
540 - "pathName": "pages/customer/detail_owner_invitation", 539 + "name": "pages/customer/detail_owner_invitation1",
  540 + "pathName": "pages/customer/detail_owner_invitation1",
541 "query": "id=43762&hasInvitation=1&hasSellerShare=1&tplid=1", 541 "query": "id=43762&hasInvitation=1&hasSellerShare=1&tplid=1",
542 "scene": null 542 "scene": null
543 }, 543 },
@@ -706,8 +706,8 @@ @@ -706,8 +706,8 @@
706 "scene": null 706 "scene": null
707 }, 707 },
708 { 708 {
709 - "name": "pages/customer/detail_owner_invitation",  
710 - "pathName": "pages/customer/detail_owner_invitation", 709 + "name": "pages/customer/detail_owner_invitation1",
  710 + "pathName": "pages/customer/detail_owner_invitation1",
711 "query": "id= 157347", 711 "query": "id= 157347",
712 "scene": null 712 "scene": null
713 }, 713 },
@@ -232,7 +232,7 @@ @@ -232,7 +232,7 @@
232 }, 232 },
233 { 233 {
234 "name": "pages/customer/index 1803 iphone动画", 234 "name": "pages/customer/index 1803 iphone动画",
235 - "pathName": "pages/customer/detail_owner_invitation", 235 + "pathName": "pages/customer/detail_owner_invitation1",
236 "query": "id=1803&fromid=1111&hasInvitation=1", 236 "query": "id=1803&fromid=1111&hasInvitation=1",
237 "scene": "1044", 237 "scene": "1044",
238 "shareInfo": { 238 "shareInfo": {
@@ -255,7 +255,7 @@ @@ -255,7 +255,7 @@
255 }, 255 },
256 { 256 {
257 "name": "邀请Ren pages/customer/index ", 257 "name": "邀请Ren pages/customer/index ",
258 - "pathName": "pages/customer/detail_owner_invitation", 258 + "pathName": "pages/customer/detail_owner_invitation1",
259 "query": "id= 45539&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1", 259 "query": "id= 45539&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1",
260 "scene": null 260 "scene": null
261 }, 261 },
@@ -393,7 +393,7 @@ @@ -393,7 +393,7 @@
393 }, 393 },
394 { 394 {
395 "name": "旧邀请函", 395 "name": "旧邀请函",
396 - "pathName": "pages/customer/detail_owner_invitation", 396 + "pathName": "pages/customer/detail_owner_invitation1",
397 "query": "id=364616&hasInvitation=1&hasSellerShare=1&tplid=1", 397 "query": "id=364616&hasInvitation=1&hasSellerShare=1&tplid=1",
398 "launchMode": "default", 398 "launchMode": "default",
399 "scene": null 399 "scene": null
@@ -543,8 +543,8 @@ @@ -543,8 +543,8 @@
543 "scene": null 543 "scene": null
544 }, 544 },
545 { 545 {
546 - "name": "pages/customer/detail_owner_invitation",  
547 - "pathName": "pages/customer/detail_owner_invitation", 546 + "name": "pages/customer/detail_owner_invitation1",
  547 + "pathName": "pages/customer/detail_owner_invitation1",
548 "query": "id= 157347", 548 "query": "id= 157347",
549 "scene": null 549 "scene": null
550 }, 550 },
@@ -591,16 +591,16 @@ @@ -591,16 +591,16 @@
591 "scene": null 591 "scene": null
592 }, 592 },
593 { 593 {
594 - "name": "充值",  
595 - "pathName": "pack-activity/pack/vipRecharge",  
596 - "query": "id=254&name=14号酒庄天幕山总部", 594 + "name": "邀请函-----1",
  595 + "pathName": "pages/customer/detail_invitation",
  596 + "query": "id=400725&hasInvitation=1&hasSellerShare=1&tplid=1",
597 "launchMode": "default", 597 "launchMode": "default",
598 "scene": null 598 "scene": null
599 }, 599 },
600 { 600 {
601 - "name": "新邀请函",  
602 - "pathName": "pages/customer/detail_owner_invitation_new1",  
603 - "query": "id=329755&hasInvitation=1&hasSellerShare=1&tplid=1", 601 + "name": "邀请函-----6",
  602 + "pathName": "pages/customer/detail_owner_invitation6",
  603 + "query": "id=400725&hasInvitation=1&hasSellerShare=1&tplid=1",
604 "launchMode": "default", 604 "launchMode": "default",
605 "scene": null 605 "scene": null
606 }, 606 },
@@ -619,9 +619,9 @@ @@ -619,9 +619,9 @@
619 "scene": null 619 "scene": null
620 }, 620 },
621 { 621 {
622 - "name": "新邀请函2",  
623 - "pathName": "pages/customer/detail_owner_invitation_new2",  
624 - "query": "id=392864&hasInvitation=1&hasSellerShare=1&tplid=1", 622 + "name": "邀请函-----4",
  623 + "pathName": "pages/customer/detail_owner_invitation4",
  624 + "query": "id=400725&hasInvitation=1&hasSellerShare=1&tplid=1",
625 "launchMode": "default", 625 "launchMode": "default",
626 "scene": null 626 "scene": null
627 }, 627 },