1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20c1817d"],{5260:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"offline_investment"}},[i("c-title",{attrs:{hide:!1,text:e.plugin_name}}),i("div",{staticClass:"container"},[e.info.end_time?i("div",{staticClass:"countdown"},[1==e.info.status?[(new Date).getTime()<Number(1e3*e.info.end_time)&&(new Date).getTime()>Number(1e3*e.info.start_time)?[e._v(" 距离活动结束还剩 "),i("van-count-down",{staticClass:"tiem-box",attrs:{time:e.fun.getTimeDifference(e.info.end_time)},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"block"},[e._v(e._s(t.days>=10?t.days:"0"+t.days))]),i("span",{staticClass:"colon"},[e._v(" 天: ")]),i("span",{staticClass:"block"},[e._v(" "+e._s(t.hours>=10?t.hours:"0"+t.hours))]),i("span",{staticClass:"colon"},[e._v(" 时: ")]),i("span",{staticClass:"block"},[e._v(" "+e._s(t.minutes>=10?t.minutes:"0"+t.minutes))]),i("span",{staticClass:"colon"},[e._v(" 分: ")]),i("span",{staticClass:"block"},[e._v(" "+e._s(t.seconds>=10?t.seconds:"0"+t.seconds))]),i("span",{staticClass:"colon"},[e._v(" 秒")])]}}],null,!1,4020135395)})]:e._e(),(new Date).getTime()<Number(1e3*e.info.start_time)?[e._v(" 距离活动开始还有 "),i("van-count-down",{staticClass:"tiem-box",attrs:{time:e.fun.getTimeDifference(e.info.start_time)},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"block"},[e._v(e._s(t.days>=10?t.days:"0"+t.days))]),i("span",{staticClass:"colon"},[e._v(" 天: ")]),i("span",{staticClass:"block"},[e._v(" "+e._s(t.hours>=10?t.hours:"0"+t.hours))]),i("span",{staticClass:"colon"},[e._v(" 时: ")]),i("span",{staticClass:"block"},[e._v(" "+e._s(t.minutes>=10?t.minutes:"0"+t.minutes))]),i("span",{staticClass:"colon"},[e._v(" 分: ")]),i("span",{staticClass:"block"},[e._v(" "+e._s(t.seconds>=10?t.seconds:"0"+t.seconds))]),i("span",{staticClass:"colon"},[e._v(" 秒")])]}}],null,!1,4020135395)})]:e._e()]:e._e(),0==e.info.status?[e._v("活动未开始")]:e._e(),-1==e.info.status?[e._v("活动已失效")]:e._e()],2):e._e(),i("div",{staticClass:"notice"},[i("div",{staticClass:"notice-title"},[e._v(e._s(e.info.title))])]),i("div",{staticClass:"goods-list"},[e._l(e.info.goods,(function(t){return i("div",{key:t.id,staticClass:"good-child",on:{click:function(i){return e.showGoodPup(t.id)}}},[i("div",{staticClass:"good-img"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.thumb,expression:"item.thumb"}],attrs:{alt:""}})]),i("div",{staticClass:"good-info"},[i("div",{staticClass:"good-title"},[e._v(e._s(t.title))]),i("div",{staticClass:"good-buy"},[i("div",{staticClass:"good-price"},[e._v(" "+e._s(e.$i18n.t("money"))+" "),i("div",{staticClass:"price"},[e._v(e._s(t.price))]),1==t.has_option?[e._v(" 起")]:e._e()],2),i("div",{staticClass:"buy-btn"},[e._v("立即购买")])])])])})),0==e.info.goods.length?i("div",{staticStyle:{padding:"1rem"}},[e._v("暂无可下单商品")]):e._e()],2)]),i("yzGoodsPopup",{attrs:{goodsInfo:e.goodinfo},on:{showgoodspecs:e.showgoodspecs},scopedSlots:e._u([{key:"add-icon",fn:function(){return[i("div",{staticClass:"add-icon-box",on:{click:function(t){return t.stopPropagation(),e.showgoodspecs.apply(null,arguments)}}},[e._v("立即购买")])]},proxy:!0}]),model:{value:e.showgp,callback:function(t){e.showgp=t},expression:"showgp"}}),i("yz-specs",{attrs:{goodsInfo:e.goodinfo},on:{closeSpecsPopup:e.close_yz_specs_popup},model:{value:e.popupSpecs,callback:function(t){e.popupSpecs=t},expression:"popupSpecs"}})],1)},n=[],s=(i("a9e3"),i("ac1f"),i("5319"),i("ebc5")),a=i("f6cc"),d={data:function(){return{showgp:!1,popupSpecs:!1,activity_gid:null,goodinfo:{},info:{goods:[]},plugin_name:"",store_id:null}},activated:function(){this.getData()},components:{yzGoodsPopup:s["a"],yzSpecs:a["a"]},computed:{},mounted:function(){},methods:{getData:function(){var e=this;$http.get("plugin.merchant-meeting.frontend.index.activity",{activity_id:this.$route.params.id},".").then((function(t){1==t.result?(e.fun.setWXTitle(t.data.plugin_name),e.plugin_name=t.data.plugin_name,e.info=t.data.activity):e.$toast(t.msg)})).catch((function(e){}))},showgoodspecs:function(){this.popupSpecs=!0},close_yz_specs_popup:function(e,t,i){if(this.popupSpecs=!1,1==i){this.showgp=!1;var o={tag:"-2",goodsId:this.activity_gid,optionsId:e,total:t,merchant_meeting:this.$route.params.id};this.store_id&&(o.store_id=this.store_id),this.$router.push(this.fun.getUrl("goodsorder",{},o))}},showGoodPup:function(e){var t=this;this.activity_gid!=e?(this.activity_gid=e,$http.get("goods.goods.get-goods-page",{id:Number(e)},".").then((function(e){if(1==e.result){if(t.goodinfo=e.data.get_goods,t.goodinfo.end_time=t.info.end_time,e.data.get_goods.content){var i=t.goodinfo.content.replace(/src=\"http:/gi,'src="https:');t.goodinfo.content=i}else t.goodinfo.content="暂无该商品详情";t.store_id="store_goods"==e.data.goods_type?e.data.get_store_info.store_id:0,setTimeout((function(){t.showgp=!0}),800)}else t.$toast(e.msg)})).catch((function(e){}))):this.showgp=!0}}},l=d,r=(i("a51c9"),i("2877")),c=Object(r["a"])(l,o,n,!1,null,"66429610",null);t["default"]=c.exports},a51c9:function(e,t,i){"use strict";i("f73a")},d04c:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,'#offline_investment[data-v-66429610] .van-popup__close-icon{border-radius:50%;background:#f2f2f2;padding:.25rem;font-size:14px;color:#9b9b9b}#offline_investment .container[data-v-66429610]{position:relative;padding:0 .875rem}#offline_investment .container .tiem-box[data-v-66429610]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#fff;margin-left:.5rem}#offline_investment .container .tiem-box .block[data-v-66429610]{width:1.5rem;height:1.5rem;line-height:1.5rem;border-radius:50%;overflow:hidden;background:#fff;color:#f14e4e;display:block}#offline_investment .container .countdown[data-v-66429610]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff;height:3.625rem;line-height:3.625rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#offline_investment .container .countdown .bottom_time[data-v-66429610]{color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:.5rem}#offline_investment .container .countdown .bottom_time[data-v-66429610] span{color:#fff;font-size:12px;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#offline_investment .container .countdown .bottom_time em[data-v-66429610]{background-color:#fff;color:#f14e4e;border-radius:50%;overflow:hidden;line-height:1.375rem}#offline_investment .container .countdown .bottom_time .radius-box[data-v-66429610]{width:1.375rem;height:1.375rem;display:block}#offline_investment .container .countdown .bottom_time .bottom_time[data-v-66429610]{margin-top:.125rem}#offline_investment .container .notice[data-v-66429610]{background:#fff;border-radius:.625rem;padding:1rem .75rem;margin-bottom:.625rem;text-align:left}#offline_investment .container .notice .notice-title[data-v-66429610]{font-size:18px;font-weight:700;color:#000;margin-bottom:.5rem}#offline_investment .container .goods-list .good-child[data-v-66429610]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding:.875rem;background:#fff;border-radius:.625rem;margin-bottom:.625rem}#offline_investment .container .goods-list .good-child .good-img[data-v-66429610]{width:7rem;height:7rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow:hidden;border-radius:.375rem;margin-right:.5rem}#offline_investment .container .goods-list .good-child .good-img img[data-v-66429610]{width:100%;height:100%}#offline_investment .container .goods-list .good-child .good-info[data-v-66429610]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-align:left}#offline_investment .container .goods-list .good-child .good-info .good-title[data-v-66429610]{font-size:16px;line-height:1.5rem;height:3.125rem;font-weight:700;color:#333;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#offline_investment .container .goods-list .good-child .good-info .goods-purchased[data-v-66429610]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:1.5rem;line-height:1.5rem;color:#666}#offline_investment .container .goods-list .good-child .good-info .goods-purchased .buyer-imgs[data-v-66429610]{margin:0 .5rem}#offline_investment .container .goods-list .good-child .good-info .goods-purchased .buyer-imgs img[data-v-66429610]{width:1.5rem;height:1.5rem;border-radius:50%;overflow:hidden;margin-left:-.5rem}#offline_investment .container .goods-list .good-child .good-info .good-buy[data-v-66429610]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#offline_investment .container .goods-list .good-child .good-info .good-buy .option-text-btn[data-v-66429610]{background:#f14e4e;font-size:12px;color:#fff;padding:0 .25rem;height:1.375rem;line-height:1.375rem;border-radius:.25rem;position:relative}#offline_investment .container .goods-list .good-child .good-info .good-buy .option-text-btn em[data-v-66429610]{position:absolute;top:-12px;right:-8px;border-radius:1rem;background:#f14e4e;height:1rem;line-height:1rem;padding:0 .25rem;font-size:12px;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.5);box-shadow:0 2px 5px 0 rgba(0,0,0,.5)}#offline_investment .container .goods-list .good-child .good-info .good-buy .good-price[data-v-66429610]{font-size:12px;font-weight:700;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#f14e4e}#offline_investment .container .goods-list .good-child .good-info .good-buy .good-price .price[data-v-66429610]{font-size:18px;padding:0 2px}#offline_investment .container .goods-list .good-child .good-info .good-buy .select[data-v-66429610]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;padding:.25rem .25rem 0}#offline_investment .container .goods-list .good-child .good-info .good-buy .select .iconfont[data-v-66429610]{background:#f14e4e;color:#fff;width:1.25rem;height:1.25rem;text-align:center;line-height:1.25rem;border-radius:50%;display:block}#offline_investment .container .goods-list .good-child .good-info .buy-btn[data-v-66429610]{background:#f14e4e;color:#fff;font-size:12px;height:1.25rem;line-height:1.25rem;padding:0 .5rem;border-radius:4px}#offline_investment .add-icon-box[data-v-66429610]{height:1.875rem;line-height:1.875rem;background:#f14e4e;color:#fff;font-size:12px;text-align:center;width:4rem;border-radius:4px}#offline_investment .container[data-v-66429610]:after{content:"";width:100%;z-index:-1;height:7.5rem;position:absolute;left:0;top:0;border-radius:0 0 100% 100%;background:#f14e4e}#offline_investment .slide-fade-enter-active[data-v-66429610]{-webkit-transition:all .3s ease;transition:all .3s ease}#offline_investment .slide-fade-leave-active[data-v-66429610]{-webkit-transition:all .3s cubic-bezier(1,.5,.8,1);transition:all .3s cubic-bezier(1,.5,.8,1)}#offline_investment .slide-fade-enter[data-v-66429610],#offline_investment .slide-fade-leave-to[data-v-66429610]{-webkit-transform:translateX(15px);transform:translateX(15px);opacity:0}#offline_investment .slide-fadeone-enter-active[data-v-66429610]{opacity:0}',""]),e.exports=t},f73a:function(e,t,i){var o=i("d04c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var n=i("499e").default;n("7f7af016",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |