1 line
33 KiB
JavaScript
1 line
33 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f4dcb96"],{"0bcbd":function(e,t,a){"use strict";a("954c")},"954c":function(e,t,a){var i=a("a009");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("37a4f7fa",i,!0,{sourceMap:!1,shadowMode:!1})},a009:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".queue_c_manual[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff;margin-top:.75rem;border-top:.0625rem solid #ebebeb;padding:.625rem .875rem}#reward_queue[data-v-be09df90]{overflow:scroll;-webkit-overflow-scrolling:touch}#reward_queue #reward_header[data-v-be09df90]{background-color:#fff}#reward_queue #reward_header .header_box[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.25rem .875rem;border-bottom:.0625rem solid #ebebeb}#reward_queue #reward_header .header_box .img[data-v-be09df90]{width:3.5rem;height:3.5rem;border-radius:1.75rem;overflow:hidden;border:.0625rem solid #ebebeb;margin-right:.625rem;background-color:#f8f8f8}#reward_queue #reward_header .header_box .img img[data-v-be09df90]{width:100%}#reward_queue #reward_header .header_box .head_name[data-v-be09df90]{text-align:left}#reward_queue #reward_header .header_box .head_name span[data-v-be09df90]{width:17.5625rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#reward_queue #reward_header .header_box .head_name .title[data-v-be09df90]{color:#999;font-size:16px;font-weight:400}#reward_queue #reward_header .header_box span[data-v-be09df90]{display:block;font-size:16px;font-weight:700;line-height:3rem}#reward_queue #reward_header .reward_box[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.75rem 0}#reward_queue #reward_header .reward_box .reward_a[data-v-be09df90],#reward_queue #reward_header .reward_box .reward_b[data-v-be09df90]{width:33.33%;text-align:center}#reward_queue #reward_header .reward_box .reward_a li span[data-v-be09df90],#reward_queue #reward_header .reward_box .reward_b li span[data-v-be09df90]{font-size:14px}#reward_queue #reward_header .reward_box .reward_a li[data-v-be09df90]:first-child,#reward_queue #reward_header .reward_box .reward_b li[data-v-be09df90]:first-child{height:1.625rem;line-height:1.625rem;font-size:18px;font-weight:700}#reward_queue #reward_header .reward_box .reward_a li[data-v-be09df90]:last-child,#reward_queue #reward_header .reward_box .reward_b li[data-v-be09df90]:last-child{line-height:1.5rem;color:#8c8c8c;font-size:14px}#reward_queue #reward_header .reward_box .reward_c[data-v-be09df90]{width:33.33%;line-height:3.125rem;font-size:16px}#reward_queue #reward_header .reward_box .reward_c li[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;padding-right:.875rem;width:100%;color:#8c8c8c}#reward_queue #reward_header .reward_box .reward_c li i[data-v-be09df90]{font-size:24px;line-height:3.125rem;color:#c9c9c9;margin-left:.625rem}#reward_queue #queue_content[data-v-be09df90]{overflow:scroll;margin-top:.625rem}#reward_queue #queue_content .queue_box[data-v-be09df90]{margin-bottom:.625rem;background-color:#fff}#reward_queue #queue_content .queue_box .queue_a[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .875rem;line-height:2.5rem;font-size:16px}#reward_queue #queue_content .queue_box .queue_a span[data-v-be09df90]:first-child{font-weight:700}#reward_queue #queue_content .queue_box .queue_b .queue_top[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem .875rem;position:relative}#reward_queue #queue_content .queue_box .queue_b .queue_top .img[data-v-be09df90]{width:2.25rem;height:2.25rem;overflow:hidden;border-radius:1.125rem;margin-right:.625rem;background-color:#f8f8f8}#reward_queue #queue_content .queue_box .queue_b .queue_top .img img[data-v-be09df90]{width:100%}#reward_queue #queue_content .queue_box .queue_b .queue_top span[data-v-be09df90]:nth-child(2){text-align:left;width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.25rem}#reward_queue #queue_content .queue_box .queue_b .queue_top span[data-v-be09df90]{font-size:16px}#reward_queue #queue_content .queue_box .queue_b .queue_top .btn_a[data-v-be09df90]{width:3.75rem;height:1.625rem;border-radius:.1875rem;border:none;background-color:#f15353;color:#fff;position:absolute;right:.875rem;top:.9375rem;font-size:14px}#reward_queue #queue_content .queue_box .queue_b .queue_top .money[data-v-be09df90]{line-height:2.25rem;border-radius:.1875rem;border:none;color:#f15353;position:absolute;right:1rem;top:.75rem;font-size:18px}#reward_queue #queue_content .queue_box .queue_b .queue_center[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#reward_queue #queue_content .queue_box .queue_b .queue_center ul[data-v-be09df90]{width:33.33%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#reward_queue #queue_content .queue_box .queue_b .queue_center .reward_queue_a li[data-v-be09df90]:first-child,#reward_queue #queue_content .queue_box .queue_b .queue_center .reward_queue_b li[data-v-be09df90]:first-child{font-size:16px;height:1.625rem;line-height:1.625rem;font-weight:700}#reward_queue #queue_content .queue_box .queue_b .queue_center .reward_queue_a li:first-child span[data-v-be09df90],#reward_queue #queue_content .queue_box .queue_b .queue_center .reward_queue_b li:first-child span[data-v-be09df90]{font-size:14px}#reward_queue #queue_content .queue_box .queue_b .queue_center .reward_queue_a li[data-v-be09df90]:last-child,#reward_queue #queue_content .queue_box .queue_b .queue_center .reward_queue_b li[data-v-be09df90]:last-child{line-height:1.5rem;color:#8c8c8c;font-size:14px}#reward_queue #queue_content .queue_box .queue_b .queue_center .reward_queue_c[data-v-be09df90]{font-size:16px;color:#f15353;text-align:center;line-height:3.125rem}#reward_queue #queue_content .queue_box .queue_b .line_up[data-v-be09df90]{text-align:left;color:#8c8c8c;margin-left:15px;margin-top:15px}#reward_queue #queue_content .queue_box .queue_b .line_up span[data-v-be09df90]{color:#ff474b;margin-left:3px;font-weight:550}#reward_queue #queue_content .queue_box .queue_c[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:.75rem;height:2.5rem;line-height:2.5rem;text-align:center;font-size:16px}#reward_queue #queue_content .queue_box .queue_c i[data-v-be09df90]{font-size:1.5rem;color:#666}#reward_queue #queue_content .queue_box .button_box[data-v-be09df90]{padding:.625rem 0}#reward_queue #queue_content .queue_box .button_box button[data-v-be09df90]{background:#fff;color:#333;font-size:14px;border:.0625rem solid #ccc;border-radius:1rem;height:1.625rem;width:7.5rem;margin:0 .625rem}#reward_queue #queue_content .queue_box .queue_c_down[data-v-be09df90]{margin-top:.75rem;border-top:.0625rem solid #ebebeb;padding:.625rem .875rem;font-size:14px}#reward_queue #queue_content .queue_box .queue_c_down li[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.75rem}#reward_queue #queue_content .queue_box .queue_bottom[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;margin-top:.625rem}#reward_queue #queue_content .queue_box .queue_bottom .button_side[data-v-be09df90]{width:7.5rem;height:1.875rem;background-color:#fff;color:#333;font-size:15px;border:.0625rem solid #ebebeb;border-radius:1.5rem}#reward_queue #queue_content .queue_box .queue_bottom .button_line[data-v-be09df90]{width:19.25rem;height:1.875rem;border-radius:.1875rem;border:.0625rem solid #f15353;color:#f15353;font-size:15px}#reward_queue #queue_content .queue_box .fade-enter-active[data-v-be09df90]{-webkit-transition:.5s;transition:.5s}#reward_queue #queue_content .queue_box .fade-enter[data-v-be09df90],#reward_queue #queue_content .queue_box .fade-leave-active[data-v-be09df90]{opacity:0;height:0}#reward_queue .queue_type[data-v-be09df90]{height:25rem}#reward_queue .queue_type h1[data-v-be09df90]{height:2.5rem;line-height:2.5rem;text-align:center;font-size:15px;border-bottom:.0625rem solid #ebebeb}#reward_queue .queue_type .selete[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.8125rem;line-height:2.8125rem;margin-left:.875rem;font-size:16px;border-bottom:.0625rem solid #ebebeb}#reward_queue .queue_type .selete li[data-v-be09df90]:first-child{text-align:left;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#reward_queue .queue_type .selete li[data-v-be09df90]:last-child{padding-right:.875rem;-webkit-box-flex:0;-webkit-flex:0 0 6rem;-ms-flex:0 0 6rem;flex:0 0 6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}#reward_queue .queue_type .selete li:last-child input[data-v-be09df90]{border:none;outline:none;height:2.75rem;width:90%;font-size:16px;text-align:right;margin-right:.625rem}#reward_queue .queue_type .selete li:last-child i[data-v-be09df90]{line-height:2.8125rem;color:#c9c9c9;font-size:18px}#reward_queue .queue_type .type[data-v-be09df90]{padding:.625rem .875rem}#reward_queue .queue_type .type li[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:16px;height:2.8125rem}#reward_queue .queue_type .type li span[data-v-be09df90]{line-height:2.8125rem}#reward_queue .queue_type .type li .circle[data-v-be09df90]{width:20px;height:20px;border:1px solid #ccc;border-radius:50%;display:inline-block;position:relative;top:.8rem;right:1rem;z-index:10;line-height:2.8125rem;pointer-events:none}#reward_queue .queue_type .type li .choose[data-v-be09df90]{background:#f15353;border:1px solid #f15353}#reward_queue .queue_type .queue_info[data-v-be09df90]{background-color:#fafafa;padding:.625rem .875rem}#reward_queue .queue_type .queue_info li[data-v-be09df90]{line-height:1.875rem;text-align:left;font-size:15px;color:#8c8c8c}#reward_queue .queue_type .queue_btn[data-v-be09df90]{width:100%;height:2.8125rem;border-radius:0;font-size:18px;background-color:#f15353;color:#fff;position:absolute;bottom:0;left:0}#reward_queue .prize_box[data-v-be09df90]{height:25rem}#reward_queue .prize_box h1[data-v-be09df90]{height:2.5rem;line-height:2.5rem;text-align:center;font-size:15px;border-bottom:.0625rem solid #ebebeb}#reward_queue .prize_box .prize_content[data-v-be09df90]{padding:.625rem .875rem;font-size:16px}#reward_queue .prize_box .prize_content li[data-v-be09df90]{line-height:1.875rem;text-align:left}#reward_queue .prize_box .ture_btn[data-v-be09df90]{width:100%;height:2.8125rem;border-radius:0;font-size:18px;background-color:#f15353;color:#fff;position:absolute;bottom:0;left:0}#reward_queue .prize_box .prize_btn[data-v-be09df90]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.8125rem;width:100%;position:absolute;bottom:0;left:0}#reward_queue .prize_box .prize_btn button[data-v-be09df90]:first-child{height:2.8125rem;background-color:#f15353;border-radius:0;width:50%;font-size:18px;margin:0;color:#fff}#reward_queue .prize_box .prize_btn button[data-v-be09df90]:last-child{height:2.8125rem;background-color:#ccc;border-radius:0;width:50%;font-size:18px;margin:0;color:#fff}#reward_queue .reward_record[data-v-be09df90]{background-color:#fff;height:25rem}#reward_queue .reward_record h1[data-v-be09df90]{height:2.5rem;line-height:2.5rem;font-size:16px;text-align:center;border-bottom:.0625rem solid #ebebeb}#reward_queue .reward_record ul[data-v-be09df90]{padding:.625rem 0}#reward_queue .reward_record ul li[data-v-be09df90]{padding:0 .875rem;line-height:2.25rem;text-align:left;font-size:15px}#reward_queue .reward_record button[data-v-be09df90]{width:23.4375rem;border-radius:0;height:2.8125rem;font-size:18px;color:#fff;background-color:#f15353;position:absolute;bottom:0;left:0}#reward_queue[data-v-be09df90]::-webkit-scrollbar{display:none}#reward_queue.pcStyle #queue_content[data-v-be09df90]{-ms-overflow-style:none;overflow:-moz-scrollbars-none}#reward_queue.pcStyle #queue_content[data-v-be09df90]::-webkit-scrollbar{display:none}",""]),e.exports=t},f41d:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:[3==this.fun.getPhoneEnv()?"pcStyle":""],attrs:{id:"reward_queue"}},[a("c-title",{attrs:{hide:!1,text:e.WXtitle,tolink:"IntegralGetRecord"}}),a("div",{attrs:{id:"reward_header"}},[a("div",{staticClass:"header_box"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.avatar}})]),a("div",{staticClass:"head_name"},[a("span",[e._v(e._s(e.nickname))])])]),a("div",{staticClass:"reward_box"},[a("ul",{staticClass:"reward_a"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(Math.floor(100*e.summarizing.finish_total)/100))]),a("li",[e._v("累计奖励")])]),a("ul",{staticClass:"reward_b"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(Math.floor(100*e.summarizing.surplus_total)/100))]),a("li",[e._v("待奖励")])]),a("ul",{staticClass:"reward_c",on:{click:e.toDetail}},[e._m(0)])])]),a("div",{attrs:{id:"queue_content"}},[a("van-tabs",{on:{click:e.handleClick1},model:{value:e.chooseName,callback:function(t){e.chooseName=t},expression:"chooseName"}},[a("van-tab",{attrs:{name:"queue",title:"奖励队列"}}),a("van-tab",{attrs:{name:"record",title:"奖励记录"}})],1),a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:"queue"==e.chooseName,expression:"chooseName=='queue'"}]},["queue"===e.chooseName?a("div",{attrs:{id:"tabs_b"}},[e.summarizing.goods_queue_count>-1?a("van-tabs",{on:{click:e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("van-tab",{attrs:{name:"shop"}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s("商品("+e.summarizing.goods_queue_count+")"))])]),a("van-tab",{attrs:{name:"store"}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s("门店("+e.summarizing.store_queue_count+")"))])]),a("van-tab",{attrs:{name:"cashier"}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s("收银台("+e.summarizing.cashier_queue_count+")"))])])],1):e._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:e.summarizing.goods_queue_count>-1,expression:"summarizing.goods_queue_count>-1"}]},[a("div",{directives:[{name:"show",rawName:"v-show",value:"shop"==e.activeName,expression:"activeName=='shop'"}]},e._l(e.rewardList,(function(t,i){return a("div",{key:i,staticClass:"queue_box"},[1==e.is_queue_process?a("div",{staticClass:"queue_a"},[a("span",[e._v("奖励队列:"+e._s(t.id))])]):e._e(),a("div",{staticClass:"queue_b"},[a("div",{staticClass:"queue_top"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.source_thumb}})]),a("span",[e._v(e._s(t.source_name))]),t.button.lucky_draw?a("button",{staticClass:"btn_a",on:{click:function(a){return e.luckyDraw(t)}}},[e._v(" "+e._s(t.button.lucky_draw.name)+" ")]):e._e()]),a("div",{staticClass:"queue_center"},[a("ul",{staticClass:"reward_queue_a"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_total))]),a("li",[e._v("奖励数量")])]),a("ul",{staticClass:"reward_queue_b"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_finish))]),a("li",[e._v("已奖励")])]),a("ul",{staticClass:"reward_queue_c"},[a("li",[e._v(e._s(t.status_name))])])]),0==t.status&&1==e.is_queue_process?a("div",{staticClass:"line_up"},[e._v(" 前面排队数"),a("span",[e._v(e._s(t.wait_nums))]),e._v(",前面待奖励 "),a("span",[e._v("¥"+e._s(t.wait_price))])]):e._e()]),t.show?e._e():a("div",{staticClass:"queue_c",on:{click:function(a){return e.showComplete(t)}}},[a("span",[e._v("展示完整信息")]),a("i",{staticClass:"iconfont icon-down"})]),a("transition",{attrs:{name:"fade"}},[t.show?a("div",{staticClass:"button_box"},[a("ul",{staticClass:"queue_c_down"},[a("li",[a("span",[e._v("订单编号")]),a("span",[e._v(e._s(t.order_sn))])]),a("li",[a("span",[e._v("实付款")]),a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))])]),a("li",[a("span",[e._v("奖励比例:")]),a("span",[e._v(e._s(t.ratio))])])]),a("div",{staticClass:"queue_bottom"},[t.button.exchange?a("button",{staticClass:"button_side",on:{click:function(a){return e.exchange(t)}}},[e._v(" "+e._s(t.button.exchange.name)+" ")]):e._e(),t.button.process&&1==e.is_queue_process?a("button",{staticClass:"button_side",on:{click:function(a){return e.toProcess(t)}}},[e._v(" "+e._s(t.button.process.name)+" ")]):e._e(),t.button.exchange_log?a("button",{staticClass:"button_side",on:{click:function(a){return e.exchangeLog(t)}}},[e._v(" "+e._s(t.button.exchange_log.name)+" ")]):e._e()])]):e._e()])],1)})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:"store"==e.activeName,expression:"activeName=='store'"}]},e._l(e.rewardList,(function(t,i){return a("div",{key:i,staticClass:"queue_box"},[1==e.is_queue_process?a("div",{staticClass:"queue_a"},[a("span",[e._v("奖励队列:"+e._s(t.id))])]):e._e(),a("div",{staticClass:"queue_b"},[a("div",{staticClass:"queue_top"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.source_thumb}})]),a("span",[e._v(e._s(t.source_name))]),t.button.lucky_draw?a("button",{staticClass:"btn_a",on:{click:function(a){return e.luckyDraw(t)}}},[e._v(" "+e._s(t.button.lucky_draw.name)+" ")]):e._e()]),a("div",{staticClass:"queue_center"},[a("ul",{staticClass:"reward_queue_a"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_total))]),a("li",[e._v("奖励数量")])]),a("ul",{staticClass:"reward_queue_b"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_finish))]),a("li",[e._v("已奖励")])]),a("ul",{staticClass:"reward_queue_c"},[a("li",[e._v(e._s(t.status_name))])])]),0==t.status&&1==e.is_queue_process?a("div",{staticClass:"line_up"},[e._v(" 前面排队数"),a("span",[e._v(e._s(t.wait_nums))]),e._v(",前面待奖励 "),a("span",[e._v("¥"+e._s(t.wait_price))])]):e._e()]),t.show?e._e():a("div",{staticClass:"queue_c",on:{click:function(a){return e.showComplete(t)}}},[a("span",[e._v("展示完整信息")]),a("i",{staticClass:"iconfont icon-down"})]),a("transition",{attrs:{name:"fade"}},[t.show?a("div",{staticClass:"button_box"},[a("ul",{staticClass:"queue_c_down"},[a("li",[a("span",[e._v("订单编号")]),a("span",[e._v(e._s(t.order_sn))])]),a("li",[a("span",[e._v("实付款")]),a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))])]),a("li",[a("span",[e._v("奖励比例:")]),a("span",[e._v(e._s(t.ratio))])])]),a("div",{staticClass:"queue_bottom"},[t.button.exchange?a("button",{staticClass:"button_side",on:{click:function(a){return e.exchange(t)}}},[e._v(" "+e._s(t.button.exchange.name)+" ")]):e._e(),t.button.process&&1==e.is_queue_process?a("button",{staticClass:"button_side",on:{click:function(a){return e.toProcess(t)}}},[e._v(" "+e._s(t.button.process.name)+" ")]):e._e(),t.button.exchange_log?a("button",{staticClass:"button_side",on:{click:function(a){return e.exchangeLog(t)}}},[e._v(" "+e._s(t.button.exchange_log.name)+" ")]):e._e()])]):e._e()])],1)})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:"cashier"==e.activeName,expression:"activeName=='cashier'"}]},e._l(e.rewardList,(function(t,i){return a("div",{key:i,staticClass:"queue_box"},[1==e.is_queue_process?a("div",{staticClass:"queue_a"},[a("span",[e._v("奖励队列:"+e._s(t.id))])]):e._e(),a("div",{staticClass:"queue_b"},[a("div",{staticClass:"queue_top"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.source_thumb}})]),a("span",[e._v(e._s(t.source_name))]),t.button.lucky_draw?a("button",{staticClass:"btn_a",on:{click:function(a){return e.luckyDraw(t)}}},[e._v(" "+e._s(t.button.lucky_draw.name)+" ")]):e._e()]),a("div",{staticClass:"queue_center"},[a("ul",{staticClass:"reward_queue_a"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_total))]),a("li",[e._v("奖励数量")])]),a("ul",{staticClass:"reward_queue_b"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_finish))]),a("li",[e._v("已奖励")])]),a("ul",{staticClass:"reward_queue_c"},[a("li",[e._v(e._s(t.status_name))])])]),0==t.status&&1==e.is_queue_process?a("div",{staticClass:"line_up"},[e._v(" 前面排队数"),a("span",[e._v(e._s(t.wait_nums))]),e._v(",前面待奖励 "),a("span",[e._v("¥"+e._s(t.wait_price))])]):e._e()]),t.show?e._e():a("div",{staticClass:"queue_c",on:{click:function(a){return e.showComplete(t)}}},[a("span",[e._v("展示完整信息")]),a("i",{staticClass:"iconfont icon-down"})]),a("transition",{attrs:{name:"fade"}},[t.show?a("div",{staticClass:"button_box"},[a("ul",{staticClass:"queue_c_down"},[a("li",[a("span",[e._v("订单编号")]),a("span",[e._v(e._s(t.order_sn))])]),a("li",[a("span",[e._v("实付款")]),a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))])]),1==e.is_queue_process?a("li",[a("span",[e._v("奖励队列:")]),a("span",[e._v(e._s(t.id))])]):e._e()]),a("div",{staticClass:"queue_bottom"},[t.button.exchange?a("button",{staticClass:"button_side",on:{click:function(a){return e.exchange(t)}}},[e._v(" "+e._s(t.button.exchange.name)+" ")]):e._e(),t.button.process&&1==e.is_queue_process?a("button",{staticClass:"button_side",on:{click:function(a){return e.toProcess(t)}}},[e._v(" "+e._s(t.button.process.name)+" ")]):e._e(),t.button.exchange_log?a("button",{staticClass:"button_side",on:{click:function(a){return e.exchangeLog(t)}}},[e._v(" "+e._s(t.button.exchange_log.name)+" ")]):e._e()])]):e._e()])],1)})),0)])],1):e._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:"record"==e.chooseName,expression:"chooseName=='record'"}]},e._l(e.rewardList,(function(t,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:"record"===e.chooseName,expression:"chooseName === 'record'"}],key:i,staticClass:"queue_box"},[a("div",{staticClass:"queue_a"},[a("span",[e._v("奖励队列:"+e._s(t.queue_id))])]),a("div",{staticClass:"queue_b"},[a("div",{staticClass:"queue_top"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.source_thumb}})]),a("span",[e._v(e._s(t.source_name))]),a("span",{staticClass:"money"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.amount))])]),a("div",{staticClass:"queue_center"},[a("ul",{staticClass:"reward_queue_a"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_finish))]),a("li",[e._v("已奖励数量")])]),a("ul",{staticClass:"reward_queue_b"},[a("li",[a("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.amount_surplus))]),a("li",[e._v("未奖励数量")])]),a("ul",{staticClass:"reward_queue_c"},[a("li",[e._v(e._s(t.status_name))])])])]),t.show?e._e():a("div",{staticClass:"queue_c",on:{click:function(a){return e.showComplete(t)}}},[a("span",[e._v("展示完整信息")]),a("i",{staticClass:"iconfont icon-down"})]),a("transition",{attrs:{name:"fade"}},[t.show&&0==t.type?a("ul",{staticClass:"queue_c_down"},[a("li",[a("span",[e._v("订单编号")]),a("span",[e._v(e._s(t.order_sn))])]),a("li",[a("span",[e._v("实付款")]),a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))])]),a("li",[a("span",[e._v("奖励比例:")]),a("span",[e._v(e._s(t.ratio))])])]):e._e(),t.show&&1==t.type?a("div",{staticClass:"queue_c_manual"},[a("span",[e._v("时间")]),a("span",[e._v(e._s(t.created_at))])]):e._e()])],1)})),0)])],1),a("van-popup",{style:{height:"60%"},attrs:{position:"bottom"},model:{value:e.show3,callback:function(t){e.show3=t},expression:"show3"}},[a("div",{staticClass:"queue_type"},[a("h1",[e._v("兑换类型")]),a("ul",{staticClass:"selete"},[a("li",[e._v("兑换类型:")]),a("li",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.convertType,expression:"convertType"}],attrs:{type:"text",disabled:"",placeholder:"请选择"},domProps:{value:e.convertType},on:{input:function(t){t.target.composing||(e.convertType=t.target.value)}}})])]),e.typeData.modules?a("ul",{staticClass:"type"},[e.typeData.modules.love?a("li",{on:{click:function(t){return e.chooseType(e.typeData.modules.love)}}},[a("span",[e._v(e._s(e.typeData.modules.love.name))]),a("span",{class:2===e.convertTypeId?"circle choose":"circle"})]):e._e(),e.typeData.modules.point?a("li",{on:{click:function(t){return e.chooseType(e.typeData.modules.point)}}},[a("span",[e._v(e._s(e.typeData.modules.point.name))]),a("span",{class:1===e.convertTypeId?"circle choose":"circle"})]):e._e()]):e._e(),a("ul",{staticClass:"queue_info"},[a("li",[e._v("可用兑换数量:"+e._s(e.typeData.exchange_amount)+e._s(e.exchange_name||"元"))]),a("li",{directives:[{name:"show",rawName:"v-show",value:e.convertType,expression:"convertType"}]},[e._v("当前兑换比例:1"+e._s(e.exchange_name||"元")+"="+e._s(e.convertTypeUnit)+e._s(e.convertType))]),a("li",{directives:[{name:"show",rawName:"v-show",value:e.convertType,expression:"convertType"}]},[e._v("可兑换:"+e._s(e.convertTypeExchange_count)+e._s(e.convertType))])]),a("button",{staticClass:"queue_btn",staticStyle:{border:"none"},on:{click:e.SureExchange}},[e._v("确认兑换 ")])])]),a("van-popup",{style:{height:"60%"},attrs:{position:"bottom"},model:{value:e.show1,callback:function(t){e.show1=t},expression:"show1"}},[a("div",{staticClass:"prize_box"},[a("h1",[e._v("抽奖提示")]),a("ul",{staticClass:"prize_content"},[a("li",[e._v("当前默认奖励比例:"+e._s(e.chooseRatio)+"。")]),a("li",[e._v("如果您使用抽奖权益,最终奖励比例将以抽奖结 果为准,可能高于、也可能低于默认奖励比例! ")])]),a("div",{staticClass:"prize_btn"},[a("button",{staticStyle:{border:"none"},on:{click:function(t){return e.sureTake()}}},[e._v("确认抽奖")]),a("button",{staticStyle:{border:"none"},on:{click:function(t){e.show1=!1}}},[e._v("取消")])])])]),a("van-popup",{style:{height:"60%"},attrs:{position:"bottom"},model:{value:e.show2,callback:function(t){e.show2=t},expression:"show2"}},[a("div",{staticClass:"prize_box"},[a("h1",[e._v("抽奖结果")]),a("ul",{staticClass:"prize_content"},[a("li",[e._v(e._s(e.msg))])]),a("button",{staticClass:"ture_btn",staticStyle:{border:"none"},on:{click:function(t){e.show2=!1}}},[e._v("确认 ")])])]),a("van-popup",{style:{height:"60%"},attrs:{position:"bottom"},model:{value:e.show4,callback:function(t){e.show4=t},expression:"show4"}},[e.exchangeLogs.exchange_amount?a("div",{staticClass:"reward_record"},[a("h1",[e._v("兑换记录")]),a("ul",[a("li",[e._v("兑换数量:"+e._s(e.exchangeLogs.exchange_amount))]),a("li",[e._v("兑换比例:"+e._s(e.exchangeLogs.exchange_unit))]),a("li",[e._v("兑换:"+e._s(e.exchangeLogs.exchange_count))])]),a("button",{staticClass:"button",staticStyle:{border:"none"},on:{click:function(t){e.show4=!1}}},[e._v("关闭 ")])]):e._e()])],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",[e._v("查看详情 "),a("i",{staticClass:"fa fa-angle-right"})])}],o=(a("e7e5"),a("d399")),n=(a("14d9"),a("b0c0"),a("99af"),a("6968")),r=document.documentElement,u=document.body,d={data:function(){return{show1:!1,show2:!1,show3:!1,show4:!1,nickname:"",avatar:"",summarizing:{},getDataApi:"",rewardList:[],activeName:"shop",chooseName:"queue",status:"",chooseId:"",chooseRatio:"",msg:"",typeData:{},WXtitle:"",isLoadMore:!0,page:1,total_page:0,type:"",convertType:"",convertTypeId:0,convertTypeUnit:0,convertTypeExchange_count:0,exchangeLogs:{},exchange_name:"",is_queue_process:0}},activated:function(){this.getTitle(),this.initData(),this.getData(this.activeName,"plugin.share-chain.frontend.queue.getList"),this.getUser(),this.getHomeInfo(),window.addEventListener("scroll",this.handleScroll)},created:function(){this.getName()},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{toDetail:function(){this.$router.push(this.fun.getUrl("RewardDetail"))},toProcess:function(e){this.$router.push(this.fun.getUrl("RewardProcess",{source_code:this.activeName,queue_id:e.id}))},showComplete:function(e){this.$set(e,"show",!0)},getName:function(){var e=this;$http.get("plugin.share-chain.frontend.exchange-name.index",{}," ").then((function(t){1===t.result?e.exchange_name=t.data.exchange_name:Object(o["a"])(t.msg)}),(function(e){}))},getTitle:function(){var e=this;$http.get("plugin.share-chain.frontend.plugin-name.index",{},"兑换中...").then((function(t){1===t.result?(e.WXtitle=t.data.plugin_name,e.fun.setWXTitle(e.WXtitle)):Object(o["a"])(t.msg)}),(function(e){}))},chooseType:function(e){1===e.code?(this.convertType=this.typeData.modules.point.name,this.convertTypeId=this.typeData.modules.point.code,this.convertTypeUnit=this.typeData.modules.point.unit,this.convertTypeExchange_count=this.typeData.modules.point.exchange_count):2===e.code&&(this.convertType=this.typeData.modules.love.name,this.convertTypeId=this.typeData.modules.love.code,this.convertTypeUnit=this.typeData.modules.love.unit,this.convertTypeExchange_count=this.typeData.modules.love.exchange_count)},exchange:function(e){var t=this;this.chooseId=e.id,this.convertType="",this.convertTypeId=0,this.convertTypeUnit=0,this.convertTypeExchange_count=0,$http.get("plugin.share-chain.frontend.exchange.index",{source_code:t.activeName,queue_id:e.id},"加载中...").then((function(e){1===e.result?(t.show3=!0,t.typeData=e.data):Object(o["a"])(e.msg)}),(function(e){}))},SureExchange:function(){var e=this;$http.get("plugin.share-chain.frontend.exchange.handle",{source_code:e.activeName,queue_id:e.chooseId,exchange_code:e.convertTypeId},"兑换中...").then((function(t){1===t.result?(e.show3=!1,e.getData(e.activeName,"plugin.share-chain.frontend.queue.getList"),Object(o["a"])(t.msg)):(e.show3=!1,Object(o["a"])(t.msg))}),(function(e){}))},exchangeLog:function(e){var t=this;$http.get("plugin.share-chain.frontend.exchange.log",{source_code:t.activeName,queue_id:e.id},"加载中...").then((function(e){1===e.result?(t.show4=!0,t.exchangeLogs=e.data):Object(o["a"])(e.msg)}),(function(e){}))},luckyDraw:function(e){this.show1=!0,this.chooseId=e.id,this.chooseRatio=e.ratio},sureTake:function(e){var t=this;$http.get("plugin.share-chain.frontend.lucky.handle",{source_code:t.activeName,queue_id:t.chooseId},"抽奖中...").then((function(e){1===e.result?(t.show1=!1,t.show2=!0,t.msg=e.data.msg,t.getData(t.activeName,"plugin.share-chain.frontend.queue.getList")):(t.show1=!1,Object(o["a"])(e.msg))}),(function(e){}))},getUser:function(){var e=this;$http.get("plugin.share-chain.frontend.member.getInfo",{},"加载中...").then((function(t){1===t.result?(e.nickname=t.data.nickname,e.avatar=t.data.avatar):Object(o["a"])(t.msg)}),(function(e){}))},getHomeInfo:function(){var e=this;$http.get("plugin.share-chain.frontend.center.statistics",{},"加载中...").then((function(t){1===t.result?e.summarizing=t.data:Object(o["a"])(t.msg)}),(function(e){}))},handleClick1:function(e){this.rewardList=[],this.isLoadMore=!0,"queue"===this.chooseName?this.getData(this.activeName,"plugin.share-chain.frontend.queue.getList"):"record"===this.chooseName&&this.getData("","plugin.share-chain.frontend.log.getList")},handleClick:function(e){this.rewardList=[],this.isLoadMore=!0,this.getData(this.activeName,"plugin.share-chain.frontend.queue.getList")},getData:function(e,t){this.getDataApi=t,this.status=e;var a=this,i={};e&&(i={source_code:e}),a.isLoadMore=!1,a.page=1,$http.get(t,i,"加载中...").then((function(e){1===e.result?(a.isLoadMore=!0,a.is_queue_process=e.data.is_queue_process,a.total_page=e.data.last_page,a.total_page||(a.total_page=0),a.rewardList=e.data.data):(Object(o["a"])(e.msg),a.$router.push(a.fun.getUrl("extension",{})))}),(function(e){}))},getMoreData:function(){var e=this;e.isLoadMore=!1;var t={};t=this.status?{source_code:this.status,page:e.page}:{page:e.page},this.page>=this.total_page||(this.page=this.page+1,$http.get(this.getDataApi,t,"加载中...").then((function(t){if(e.isLoadMore=!0,1!==t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var a=t.data.data;e.rewardList=e.rewardList.concat(a)}),(function(e){})))},getScrollTop:function(){var e=0;return r&&r.scrollTop?e=r.scrollTop:u&&(e=u.scrollTop),e},getClientHeight:function(){var e=0;return e=u.clientHeight&&r.clientHeight?Math.min(u.clientHeight,r.clientHeight):Math.max(u.clientHeight,r.clientHeight),e},getScrollHeight:function(){return Math.max(u.scrollHeight,r.scrollHeight)},handleScroll:function(){this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()&&this.isLoadMore&&this.getMoreData()},initData:function(){this.show1=!1,this.show2=!1,this.show3=!1,this.show4=!1,this.nickname="",this.avatar="",this.summarizing={},this.status="",this.chooseId="",this.chooseRatio="",this.msg="",this.activeName="shop",this.chooseName="queue",this.page=1,this.total_page=0,this.isLoadMore=!0,this.rewardList=[]}},components:{cTitle:n["a"]}},c=d,_=c,l=(a("0bcbd"),a("2877")),h=Object(l["a"])(_,i,s,!1,null,"be09df90",null);t["default"]=h.exports}}]); |