Commit adb7b0e54a9416d159daf2163acc63c315f0067b

Authored by pengye
1 parent 927f387a

邀请函、商家详情弹框领券加延迟3秒

@@ -1131,11 +1131,13 @@ Page({ @@ -1131,11 +1131,13 @@ Page({
1131 if(couponArr.length>0 && setcoupon!='1'){ 1131 if(couponArr.length>0 && setcoupon!='1'){
1132 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1132 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1133 this.setcouponFun(couponArr) 1133 this.setcouponFun(couponArr)
1134 - this.setData({  
1135 - couponArr,  
1136 - totalPrice,  
1137 - })  
1138 - this.couponModal.showModal() 1134 + setTimeout(() => {
  1135 + this.setData({
  1136 + couponArr,
  1137 + totalPrice,
  1138 + })
  1139 + this.couponModal.showModal()
  1140 + }, 3000);
1139 } 1141 }
1140 } 1142 }
1141 list.forEach(item=>{ 1143 list.forEach(item=>{
@@ -1200,11 +1200,13 @@ Page({ @@ -1200,11 +1200,13 @@ Page({
1200 if(couponArr.length>0 && setcoupon!='1'){ 1200 if(couponArr.length>0 && setcoupon!='1'){
1201 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1201 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1202 this.setcouponFun(couponArr) 1202 this.setcouponFun(couponArr)
1203 - this.setData({  
1204 - couponArr,  
1205 - totalPrice,  
1206 - })  
1207 - this.couponModal.showModal() 1203 + setTimeout(() => {
  1204 + this.setData({
  1205 + couponArr,
  1206 + totalPrice,
  1207 + })
  1208 + this.couponModal.showModal()
  1209 + }, 3000);
1208 } 1210 }
1209 } 1211 }
1210 list.forEach(item=>{ 1212 list.forEach(item=>{
@@ -1215,11 +1215,13 @@ Page({ @@ -1215,11 +1215,13 @@ Page({
1215 if(couponArr.length>0 && setcoupon!='1'){ 1215 if(couponArr.length>0 && setcoupon!='1'){
1216 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1216 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1217 this.setcouponFun(couponArr) 1217 this.setcouponFun(couponArr)
1218 - this.setData({  
1219 - couponArr,  
1220 - totalPrice,  
1221 - })  
1222 - this.couponModal.showModal() 1218 + setTimeout(() => {
  1219 + this.setData({
  1220 + couponArr,
  1221 + totalPrice,
  1222 + })
  1223 + this.couponModal.showModal()
  1224 + }, 3000);
1223 } 1225 }
1224 } 1226 }
1225 list.forEach(item=>{ 1227 list.forEach(item=>{
@@ -1103,11 +1103,13 @@ Page({ @@ -1103,11 +1103,13 @@ Page({
1103 if(couponArr.length>0 && setcoupon!='1'){ 1103 if(couponArr.length>0 && setcoupon!='1'){
1104 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1104 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1105 this.setcouponFun(couponArr) 1105 this.setcouponFun(couponArr)
1106 - this.setData({  
1107 - couponArr,  
1108 - totalPrice,  
1109 - })  
1110 - this.couponModal.showModal() 1106 + setTimeout(() => {
  1107 + this.setData({
  1108 + couponArr,
  1109 + totalPrice,
  1110 + })
  1111 + this.couponModal.showModal()
  1112 + }, 3000);
1111 } 1113 }
1112 } 1114 }
1113 list.forEach(item=>{ 1115 list.forEach(item=>{
@@ -549,9 +549,10 @@ @@ -549,9 +549,10 @@
549 .btns { 549 .btns {
550 margin: 24rpx 20rpx 10rpx 0; 550 margin: 24rpx 20rpx 10rpx 0;
551 display: flex; 551 display: flex;
552 - justify-content: space-between; 552 + justify-content: space-evenly;
553 align-items: baseline; 553 align-items: baseline;
554 flex-direction: column; 554 flex-direction: column;
  555 + height: 90%;
555 } 556 }
556 557
557 .btns text { 558 .btns text {
@@ -1058,11 +1058,13 @@ Page({ @@ -1058,11 +1058,13 @@ Page({
1058 if(couponArr.length>0 && setcoupon!='1'){ 1058 if(couponArr.length>0 && setcoupon!='1'){
1059 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1059 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1060 this.setcouponFun(couponArr) 1060 this.setcouponFun(couponArr)
1061 - this.setData({  
1062 - couponArr,  
1063 - totalPrice,  
1064 - })  
1065 - this.couponModal.showModal() 1061 + setTimeout(() => {
  1062 + this.setData({
  1063 + couponArr,
  1064 + totalPrice,
  1065 + })
  1066 + this.couponModal.showModal()
  1067 + }, 3000);
1066 } 1068 }
1067 } 1069 }
1068 list.forEach(item=>{ 1070 list.forEach(item=>{
@@ -577,9 +577,10 @@ @@ -577,9 +577,10 @@
577 .btns { 577 .btns {
578 margin: 24rpx 20rpx 10rpx 0; 578 margin: 24rpx 20rpx 10rpx 0;
579 display: flex; 579 display: flex;
580 - justify-content: space-between; 580 + justify-content: space-evenly;
581 align-items: baseline; 581 align-items: baseline;
582 flex-direction: column; 582 flex-direction: column;
  583 + height: 90%;
583 } 584 }
584 585
585 .btns text { 586 .btns text {
@@ -1059,11 +1059,13 @@ Page({ @@ -1059,11 +1059,13 @@ Page({
1059 if(couponArr.length>0 && setcoupon!='1'){ 1059 if(couponArr.length>0 && setcoupon!='1'){
1060 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1060 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1061 this.setcouponFun(couponArr) 1061 this.setcouponFun(couponArr)
1062 - this.setData({  
1063 - couponArr,  
1064 - totalPrice,  
1065 - })  
1066 - this.couponModal.showModal() 1062 + setTimeout(() => {
  1063 + this.setData({
  1064 + couponArr,
  1065 + totalPrice,
  1066 + })
  1067 + this.couponModal.showModal()
  1068 + }, 3000);
1067 } 1069 }
1068 } 1070 }
1069 list.forEach(item=>{ 1071 list.forEach(item=>{
@@ -567,9 +567,10 @@ @@ -567,9 +567,10 @@
567 .btns { 567 .btns {
568 margin: 24rpx 20rpx 10rpx 0; 568 margin: 24rpx 20rpx 10rpx 0;
569 display: flex; 569 display: flex;
570 - justify-content: space-between; 570 + justify-content: space-evenly;
571 align-items: baseline; 571 align-items: baseline;
572 flex-direction: column; 572 flex-direction: column;
  573 + height: 90%;
573 } 574 }
574 575
575 .btns text { 576 .btns text {
@@ -1057,11 +1057,13 @@ Page({ @@ -1057,11 +1057,13 @@ Page({
1057 if(couponArr.length>0 && setcoupon!='1'){ 1057 if(couponArr.length>0 && setcoupon!='1'){
1058 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1058 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1059 this.setcouponFun(couponArr) 1059 this.setcouponFun(couponArr)
1060 - this.setData({  
1061 - couponArr,  
1062 - totalPrice,  
1063 - })  
1064 - this.couponModal.showModal() 1060 + setTimeout(() => {
  1061 + this.setData({
  1062 + couponArr,
  1063 + totalPrice,
  1064 + })
  1065 + this.couponModal.showModal()
  1066 + }, 3000);
1065 } 1067 }
1066 } 1068 }
1067 list.forEach(item=>{ 1069 list.forEach(item=>{
@@ -566,9 +566,10 @@ @@ -566,9 +566,10 @@
566 .btns { 566 .btns {
567 margin: 24rpx 20rpx 10rpx 0; 567 margin: 24rpx 20rpx 10rpx 0;
568 display: flex; 568 display: flex;
569 - justify-content: space-between; 569 + justify-content: space-evenly;
570 align-items: baseline; 570 align-items: baseline;
571 flex-direction: column; 571 flex-direction: column;
  572 + height: 90%;
572 } 573 }
573 574
574 .btns text { 575 .btns text {
@@ -1014,11 +1014,13 @@ Page({ @@ -1014,11 +1014,13 @@ Page({
1014 if(couponArr.length>0 && setcoupon!='1'){ 1014 if(couponArr.length>0 && setcoupon!='1'){
1015 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1015 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1016 this.setcouponFun(couponArr) 1016 this.setcouponFun(couponArr)
1017 - this.setData({  
1018 - couponArr,  
1019 - totalPrice,  
1020 - })  
1021 - this.couponModal.showModal() 1017 + setTimeout(() => {
  1018 + this.setData({
  1019 + couponArr,
  1020 + totalPrice,
  1021 + })
  1022 + this.couponModal.showModal()
  1023 + }, 3000);
1022 } 1024 }
1023 } 1025 }
1024 list.forEach(item=>{ 1026 list.forEach(item=>{
@@ -575,9 +575,10 @@ @@ -575,9 +575,10 @@
575 .preferentialItems .btns { 575 .preferentialItems .btns {
576 margin: 24rpx 20rpx 0 0; 576 margin: 24rpx 20rpx 0 0;
577 display: flex; 577 display: flex;
578 - justify-content: space-between; 578 + justify-content: space-evenly;
579 align-items: baseline; 579 align-items: baseline;
580 flex-direction: column; 580 flex-direction: column;
  581 + height: 90%;
581 } 582 }
582 583
583 .preferentialItems .bottom { 584 .preferentialItems .bottom {
@@ -1058,11 +1058,13 @@ Page({ @@ -1058,11 +1058,13 @@ Page({
1058 if(couponArr.length>0 && setcoupon!='1'){ 1058 if(couponArr.length>0 && setcoupon!='1'){
1059 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1059 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1060 this.setcouponFun(couponArr) 1060 this.setcouponFun(couponArr)
1061 - this.setData({  
1062 - couponArr,  
1063 - totalPrice,  
1064 - })  
1065 - this.couponModal.showModal() 1061 + setTimeout(() => {
  1062 + this.setData({
  1063 + couponArr,
  1064 + totalPrice,
  1065 + })
  1066 + this.couponModal.showModal()
  1067 + }, 3000);
1066 } 1068 }
1067 } 1069 }
1068 list.forEach(item=>{ 1070 list.forEach(item=>{
@@ -569,9 +569,10 @@ @@ -569,9 +569,10 @@
569 .btns { 569 .btns {
570 margin: 24rpx 20rpx 10rpx 0; 570 margin: 24rpx 20rpx 10rpx 0;
571 display: flex; 571 display: flex;
572 - justify-content: space-between; 572 + justify-content: space-evenly;
573 align-items: baseline; 573 align-items: baseline;
574 flex-direction: column; 574 flex-direction: column;
  575 + height: 90%;
575 } 576 }
576 577
577 .priceText { 578 .priceText {
@@ -1057,11 +1057,13 @@ Page({ @@ -1057,11 +1057,13 @@ Page({
1057 if(couponArr.length>0 && setcoupon!='1'){ 1057 if(couponArr.length>0 && setcoupon!='1'){
1058 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1058 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1059 this.setcouponFun(couponArr) 1059 this.setcouponFun(couponArr)
1060 - this.setData({  
1061 - couponArr,  
1062 - totalPrice,  
1063 - })  
1064 - this.couponModal.showModal() 1060 + setTimeout(() => {
  1061 + this.setData({
  1062 + couponArr,
  1063 + totalPrice,
  1064 + })
  1065 + this.couponModal.showModal()
  1066 + }, 3000);
1065 } 1067 }
1066 } 1068 }
1067 list.forEach(item=>{ 1069 list.forEach(item=>{
@@ -565,9 +565,10 @@ @@ -565,9 +565,10 @@
565 .btns { 565 .btns {
566 margin: 24rpx 20rpx 10rpx 0; 566 margin: 24rpx 20rpx 10rpx 0;
567 display: flex; 567 display: flex;
568 - justify-content: space-between; 568 + justify-content: space-evenly;
569 align-items: baseline; 569 align-items: baseline;
570 flex-direction: column; 570 flex-direction: column;
  571 + height: 90%;
571 } 572 }
572 573
573 .btns text { 574 .btns text {
@@ -1091,11 +1091,13 @@ Page({ @@ -1091,11 +1091,13 @@ Page({
1091 if(couponArr.length>0 && setcoupon!='1'){ 1091 if(couponArr.length>0 && setcoupon!='1'){
1092 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 1092 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
1093 this.setcouponFun(couponArr) 1093 this.setcouponFun(couponArr)
1094 - this.setData({  
1095 - couponArr,  
1096 - totalPrice,  
1097 - })  
1098 - this.couponModal.showModal() 1094 + setTimeout(() => {
  1095 + this.setData({
  1096 + couponArr,
  1097 + totalPrice,
  1098 + })
  1099 + this.couponModal.showModal()
  1100 + }, 3000);
1099 } 1101 }
1100 } 1102 }
1101 list.forEach(item=>{ 1103 list.forEach(item=>{
@@ -422,9 +422,10 @@ @@ -422,9 +422,10 @@
422 .btns { 422 .btns {
423 margin: 24rpx 20rpx 0 0; 423 margin: 24rpx 20rpx 0 0;
424 display: flex; 424 display: flex;
425 - justify-content: space-between; 425 + justify-content: space-evenly;
426 align-items: baseline; 426 align-items: baseline;
427 flex-direction: column; 427 flex-direction: column;
  428 + height: 90%;
428 } 429 }
429 430
430 .orderingFood { 431 .orderingFood {
@@ -403,11 +403,13 @@ Page({ @@ -403,11 +403,13 @@ Page({
403 if(couponArr.length>0 && setcoupon!='1'){ 403 if(couponArr.length>0 && setcoupon!='1'){
404 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0); 404 totalPrice = couponArr.reduce((sum, item) => sum + item.price * item.number, 0);
405 this.setcouponFun(couponArr) 405 this.setcouponFun(couponArr)
406 - this.setData({  
407 - couponArr,  
408 - totalPrice,  
409 - })  
410 - this.couponModal.showModal() 406 + setTimeout(() => {
  407 + this.setData({
  408 + couponArr,
  409 + totalPrice,
  410 + })
  411 + this.couponModal.showModal()
  412 + }, 3000);
411 } 413 }
412 } 414 }
413 list.forEach(item=>{ 415 list.forEach(item=>{
@@ -412,9 +412,10 @@ @@ -412,9 +412,10 @@
412 flex: 1; 412 flex: 1;
413 margin: 24rpx 20rpx 0 0; 413 margin: 24rpx 20rpx 0 0;
414 display: flex; 414 display: flex;
415 - justify-content: space-between; 415 + justify-content: space-evenly;
416 align-items: baseline; 416 align-items: baseline;
417 flex-direction: column; 417 flex-direction: column;
  418 + height: 90%;
418 } 419 }
419 .couponWrap .btnBox { 420 .couponWrap .btnBox {
420 display: flex; 421 display: flex;