Commit cf3382cdb5357b027aa61aaa038f118d7f499ca1

Authored by pengye
1 parent 003f254f

邀请函1-12转发客人卡片样式设置

@@ -286,7 +286,6 @@ Page({ @@ -286,7 +286,6 @@ Page({
286 this.getstaffinfo(res.data.uid, reserev.sid); 286 this.getstaffinfo(res.data.uid, reserev.sid);
287 this.getroomimage(reserev.sid) 287 this.getroomimage(reserev.sid)
288 this.getSellerVersionFun(reserev.sid); 288 this.getSellerVersionFun(reserev.sid);
289 - this.painterBtn(reserev.seller.seller_image,reserev.seller.sellername,util.unixtoTime(reserev.ddate, 'MM月DD日'),util.unixtoTime(reserev.ddate, '周WW HH:II'));  
290 }, 0); 289 }, 0);
291 }).catch(res => { 290 }).catch(res => {
292 console.log(res, '详情请求失败'); 291 console.log(res, '详情请求失败');
@@ -650,6 +649,25 @@ Page({ @@ -650,6 +649,25 @@ Page({
650 }) 649 })
651 this.textToSpeechFun(reserve.voice_info) 650 this.textToSpeechFun(reserve.voice_info)
652 } 651 }
  652 + // 获取转发客人卡片设置
  653 + let detailInfo = this.data.detail;
  654 + if (data.lite_style == '0') {
  655 + this.setData({
  656 + imgSrc: detailInfo.seller.seller_image
  657 + })
  658 + } else {
  659 + let d = detailInfo.ddate_solt;
  660 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  661 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  662 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  663 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  664 + this.painterBtn(
  665 + detailInfo.seller.seller_image,
  666 + detailInfo.seller.sellername,
  667 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  668 + time
  669 + );
  670 + }
653 }).catch(res => { 671 }).catch(res => {
654 console.log('GetSellerTemplateConf请求失败'); 672 console.log('GetSellerTemplateConf请求失败');
655 }) 673 })
@@ -286,7 +286,6 @@ Page({ @@ -286,7 +286,6 @@ Page({
286 this.getstaffinfo(res.data.uid, reserev.sid); 286 this.getstaffinfo(res.data.uid, reserev.sid);
287 this.getroomimage(reserev.sid) 287 this.getroomimage(reserev.sid)
288 this.getSellerVersionFun(reserev.sid); 288 this.getSellerVersionFun(reserev.sid);
289 - this.painterBtn(reserev.seller.seller_image,reserev.seller.sellername,util.unixtoTime(reserev.ddate, 'MM月DD日'),util.unixtoTime(reserev.ddate, '周WW HH:II'));  
290 }, 0); 289 }, 0);
291 }).catch(res => { 290 }).catch(res => {
292 console.log(res, '详情请求失败'); 291 console.log(res, '详情请求失败');
@@ -605,6 +604,25 @@ Page({ @@ -605,6 +604,25 @@ Page({
605 }) 604 })
606 this.textToSpeechFun(reserve.voice_info) 605 this.textToSpeechFun(reserve.voice_info)
607 } 606 }
  607 + // 获取转发客人卡片设置
  608 + let detailInfo = this.data.detail;
  609 + if (data.lite_style == '0') {
  610 + this.setData({
  611 + imgSrc: detailInfo.seller.seller_image
  612 + })
  613 + } else {
  614 + let d = detailInfo.ddate_solt;
  615 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  616 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  617 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  618 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  619 + this.painterBtn(
  620 + detailInfo.seller.seller_image,
  621 + detailInfo.seller.sellername,
  622 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  623 + time
  624 + );
  625 + }
608 }).catch(res => { 626 }).catch(res => {
609 console.log('GetSellerTemplateConf请求失败'); 627 console.log('GetSellerTemplateConf请求失败');
610 }) 628 })
@@ -286,7 +286,6 @@ Page({ @@ -286,7 +286,6 @@ Page({
286 this.getstaffinfo(res.data.uid, reserev.sid); 286 this.getstaffinfo(res.data.uid, reserev.sid);
287 this.getroomimage(reserev.sid) 287 this.getroomimage(reserev.sid)
288 this.getSellerVersionFun(reserev.sid); 288 this.getSellerVersionFun(reserev.sid);
289 - this.painterBtn(reserev.seller.seller_image,reserev.seller.sellername,util.unixtoTime(reserev.ddate, 'MM月DD日'),util.unixtoTime(reserev.ddate, '周WW HH:II'));  
290 }, 0); 289 }, 0);
291 }).catch(res => { 290 }).catch(res => {
292 console.log(res, '详情请求失败'); 291 console.log(res, '详情请求失败');
@@ -605,6 +604,25 @@ Page({ @@ -605,6 +604,25 @@ Page({
605 }) 604 })
606 this.textToSpeechFun(reserve.voice_info) 605 this.textToSpeechFun(reserve.voice_info)
607 } 606 }
  607 + // 获取转发客人卡片设置
  608 + let detailInfo = this.data.detail;
  609 + if (data.lite_style == '0') {
  610 + this.setData({
  611 + imgSrc: detailInfo.seller.seller_image
  612 + })
  613 + } else {
  614 + let d = detailInfo.ddate_solt;
  615 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  616 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  617 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  618 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  619 + this.painterBtn(
  620 + detailInfo.seller.seller_image,
  621 + detailInfo.seller.sellername,
  622 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  623 + time
  624 + );
  625 + }
608 }).catch(res => { 626 }).catch(res => {
609 console.log('GetSellerTemplateConf请求失败'); 627 console.log('GetSellerTemplateConf请求失败');
610 }) 628 })
@@ -285,7 +285,6 @@ Page({ @@ -285,7 +285,6 @@ Page({
285 this.getstaffinfo(res.data.uid, reserev.sid); 285 this.getstaffinfo(res.data.uid, reserev.sid);
286 this.getroomimage(reserev.sid) 286 this.getroomimage(reserev.sid)
287 this.getSellerVersionFun(reserev.sid); 287 this.getSellerVersionFun(reserev.sid);
288 - this.painterBtn(reserev.seller.seller_image,reserev.seller.sellername,util.unixtoTime(reserev.ddate, 'MM月DD日'),util.unixtoTime(reserev.ddate, '周WW HH:II'));  
289 }, 0); 288 }, 0);
290 }).catch(res => { 289 }).catch(res => {
291 console.log(res, '详情请求失败'); 290 console.log(res, '详情请求失败');
@@ -604,6 +603,25 @@ Page({ @@ -604,6 +603,25 @@ Page({
604 }) 603 })
605 this.textToSpeechFun(reserve.voice_info) 604 this.textToSpeechFun(reserve.voice_info)
606 } 605 }
  606 + // 获取转发客人卡片设置
  607 + let detailInfo = this.data.detail;
  608 + if (data.lite_style == '0') {
  609 + this.setData({
  610 + imgSrc: detailInfo.seller.seller_image
  611 + })
  612 + } else {
  613 + let d = detailInfo.ddate_solt;
  614 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  615 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  616 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  617 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  618 + this.painterBtn(
  619 + detailInfo.seller.seller_image,
  620 + detailInfo.seller.sellername,
  621 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  622 + time
  623 + );
  624 + }
607 }).catch(res => { 625 }).catch(res => {
608 console.log('GetSellerTemplateConf请求失败'); 626 console.log('GetSellerTemplateConf请求失败');
609 }) 627 })
@@ -238,7 +238,6 @@ Page({ @@ -238,7 +238,6 @@ Page({
238 setTimeout(() => { 238 setTimeout(() => {
239 this.getstaffinfo(res.data.uid, reserev.sid); 239 this.getstaffinfo(res.data.uid, reserev.sid);
240 this.getSellerVersionFun(reserev.sid); 240 this.getSellerVersionFun(reserev.sid);
241 - this.painterBtn(reserev.seller.seller_image,reserev.seller.sellername,util.unixtoTime(reserev.ddate, 'MM月DD日'),util.unixtoTime(reserev.ddate, '周WW HH:II'));  
242 }, 0); 241 }, 0);
243 }).catch(res => { 242 }).catch(res => {
244 console.log(res, '详情请求失败'); 243 console.log(res, '详情请求失败');
@@ -556,6 +555,25 @@ Page({ @@ -556,6 +555,25 @@ Page({
556 }) 555 })
557 this.textToSpeechFun(reserve.voice_info) 556 this.textToSpeechFun(reserve.voice_info)
558 } 557 }
  558 + // 获取转发客人卡片设置
  559 + let detailInfo = this.data.detail;
  560 + if (data.lite_style == '0') {
  561 + this.setData({
  562 + imgSrc: detailInfo.seller.seller_image
  563 + })
  564 + } else {
  565 + let d = detailInfo.ddate_solt;
  566 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  567 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  568 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  569 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  570 + this.painterBtn(
  571 + detailInfo.seller.seller_image,
  572 + detailInfo.seller.sellername,
  573 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  574 + time
  575 + );
  576 + }
559 }).catch(res => { 577 }).catch(res => {
560 console.log('GetSellerTemplateConf请求失败'); 578 console.log('GetSellerTemplateConf请求失败');
561 }) 579 })
@@ -286,7 +286,6 @@ Page({ @@ -286,7 +286,6 @@ Page({
286 this.getstaffinfo(res.data.uid, reserev.sid); 286 this.getstaffinfo(res.data.uid, reserev.sid);
287 this.getroomimage(reserev.sid) 287 this.getroomimage(reserev.sid)
288 this.getSellerVersionFun(reserev.sid); 288 this.getSellerVersionFun(reserev.sid);
289 - this.painterBtn(reserev.seller.seller_image,reserev.seller.sellername,util.unixtoTime(reserev.ddate, 'MM月DD日'),util.unixtoTime(reserev.ddate, '周WW HH:II'));  
290 }, 0); 289 }, 0);
291 }).catch(res => { 290 }).catch(res => {
292 console.log(res, '详情请求失败'); 291 console.log(res, '详情请求失败');
@@ -605,6 +604,25 @@ Page({ @@ -605,6 +604,25 @@ Page({
605 }) 604 })
606 this.textToSpeechFun(reserve.voice_info) 605 this.textToSpeechFun(reserve.voice_info)
607 } 606 }
  607 + // 获取转发客人卡片设置
  608 + let detailInfo = this.data.detail;
  609 + if (data.lite_style == '0') {
  610 + this.setData({
  611 + imgSrc: detailInfo.seller.seller_image
  612 + })
  613 + } else {
  614 + let d = detailInfo.ddate_solt;
  615 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  616 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  617 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  618 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  619 + this.painterBtn(
  620 + detailInfo.seller.seller_image,
  621 + detailInfo.seller.sellername,
  622 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  623 + time
  624 + );
  625 + }
608 }).catch(res => { 626 }).catch(res => {
609 console.log('GetSellerTemplateConf请求失败'); 627 console.log('GetSellerTemplateConf请求失败');
610 }) 628 })
@@ -285,7 +285,6 @@ Page({ @@ -285,7 +285,6 @@ Page({
285 this.getstaffinfo(res.data.uid, reserev.sid); 285 this.getstaffinfo(res.data.uid, reserev.sid);
286 this.getroomimage(reserev.sid) 286 this.getroomimage(reserev.sid)
287 this.getSellerVersionFun(reserev.sid); 287 this.getSellerVersionFun(reserev.sid);
288 - this.painterBtn(reserev.seller.seller_image,reserev.seller.sellername,util.unixtoTime(reserev.ddate, 'MM月DD日'),util.unixtoTime(reserev.ddate, '周WW HH:II'));  
289 }, 0); 288 }, 0);
290 }).catch(res => { 289 }).catch(res => {
291 console.log(res, '详情请求失败'); 290 console.log(res, '详情请求失败');
@@ -604,6 +603,25 @@ Page({ @@ -604,6 +603,25 @@ Page({
604 }) 603 })
605 this.textToSpeechFun(reserve.voice_info) 604 this.textToSpeechFun(reserve.voice_info)
606 } 605 }
  606 + // 获取转发客人卡片设置
  607 + let detailInfo = this.data.detail;
  608 + if (data.lite_style == '0') {
  609 + this.setData({
  610 + imgSrc: detailInfo.seller.seller_image
  611 + })
  612 + } else {
  613 + let d = detailInfo.ddate_solt;
  614 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  615 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  616 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  617 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  618 + this.painterBtn(
  619 + detailInfo.seller.seller_image,
  620 + detailInfo.seller.sellername,
  621 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  622 + time
  623 + );
  624 + }
607 }).catch(res => { 625 }).catch(res => {
608 console.log('GetSellerTemplateConf请求失败'); 626 console.log('GetSellerTemplateConf请求失败');
609 }) 627 })
@@ -303,7 +303,6 @@ Page({ @@ -303,7 +303,6 @@ Page({
303 this.getstaffinfo(res.data.uid, reserev.sid); 303 this.getstaffinfo(res.data.uid, reserev.sid);
304 this.getroomimage(reserev.sid) 304 this.getroomimage(reserev.sid)
305 this.getSellerVersionFun(reserev.sid); 305 this.getSellerVersionFun(reserev.sid);
306 - this.painterBtn(reserev.seller.seller_image, reserev.seller.sellername, util.unixtoTime(reserev.ddate, 'MM月DD日'), util.unixtoTime(reserev.ddate, '周WW HH:II'));  
307 }, 0); 306 }, 0);
308 }).catch(res => { 307 }).catch(res => {
309 console.log(res, '详情请求失败'); 308 console.log(res, '详情请求失败');
@@ -641,6 +640,25 @@ Page({ @@ -641,6 +640,25 @@ Page({
641 }) 640 })
642 this.textToSpeechFun(reserve.voice_info) 641 this.textToSpeechFun(reserve.voice_info)
643 } 642 }
  643 + // 获取转发客人卡片设置
  644 + let detailInfo = this.data.detail;
  645 + if (data.lite_style == '0') {
  646 + this.setData({
  647 + imgSrc: detailInfo.seller.seller_image
  648 + })
  649 + } else {
  650 + let d = detailInfo.ddate_solt;
  651 + let time1 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早上' : d == '2' ? '中午' : d == '3' ? '晚上' : '');
  652 + let time2 = util.unixtoTime(detailInfo.ddate, '周WW HH:II')
  653 + let time3 = util.unixtoTime(detailInfo.ddate, '周WW') + ' ' + (d == '1' ? '早餐' : d == '2' ? '午餐' : d == '3' ? '晚餐' : '');
  654 + let time = data.lite_style == '1' ? time1 : data.lite_style == '2' ? time2 : data.lite_style == '3' ? time3 : '';
  655 + this.painterBtn(
  656 + detailInfo.seller.seller_image,
  657 + detailInfo.seller.sellername,
  658 + util.unixtoTime(detailInfo.ddate, 'MM月DD日'),
  659 + time
  660 + );
  661 + }
644 }).catch(res => { 662 }).catch(res => {
645 console.log('GetSellerTemplateConf请求失败'); 663 console.log('GetSellerTemplateConf请求失败');
646 }) 664 })