1 line
8.9 KiB
JavaScript
1 line
8.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a259040"],{"3da1":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"memberTokerCard"}},[i("c-title",{attrs:{hide:!1,text:t.plugin_name}}),i("div",{staticStyle:{width:"100%",height:"1.5rem"}}),t._l(t.list,(function(e,a){return i("div",{key:a},[i("span",{},[t._v(t._s(e.created_at))]),i("div",{staticClass:"list"},[i("div",{staticClass:"lis"},[i("div",{staticClass:"top"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.card.store.thumb,alt:""}}),i("div",{staticClass:"shopname"},[t._v(t._s(e.card.store.store_name))])])]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"left"},[i("img",{attrs:{src:e.card.goods.thumb,alt:""}})]),i("div",{staticClass:"right"},[i("div",{staticClass:"title"},[t._v(t._s(e.card.goods.title))]),i("div",{staticClass:"rightBottom"},t._l(e.time_interval,(function(e,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:!t.fun.isTextEmpty(e.star)||!t.fun.isTextEmpty(e.end),expression:"!fun.isTextEmpty(info.star) || !fun.isTextEmpty(info.end)"}],key:a,staticClass:"time"},[t._v(" 核销时间:"+t._s(e.start)+"-"+t._s(e.end)+" ")])})),0)])]),i("div",{staticClass:"btn"},[i("div",{staticClass:"isbtn",staticStyle:{color:"#fff","background-color":"#f14e4e","margin-left":"0.63rem"},on:{click:function(i){return t.tokerSetMeal(e.id)}}},[t._v("套餐详情")]),e.write_off?i("div",{staticClass:"isbtn",staticStyle:{color:"#fff","background-color":"#f14e4e","margin-left":"0.63rem"},on:{click:function(i){return t.toVerification(e.id)}}},[t._v("核销")]):t._e(),i("div",{staticClass:"isbtn",staticStyle:{color:"#f14e4e","margin-left":"0.63rem"},on:{click:function(i){return t.shareTap(e.card)}}},[t._v("分享")])])])])])})),i("div",{staticStyle:{width:"100%",height:"1.5rem"}})],2)},o=[],n=(i("e17f"),i("2241")),s=(i("e7e5"),i("d399")),r=(i("99af"),i("6968")),l=i("ac0d"),d={mixins:[l["a"]],data:function(){return{active:0,list:[],isLoadMore:!0,page:1,total_page:0,plugin_name:""}},activated:function(){this.getData()},methods:{toVerification:function(t){this.$router.push(this.fun.getUrl("tokerCode",{id:t,name:this.plugin_name}))},tokerSetMeal:function(t){this.$router.push(this.fun.getUrl("tokerSetMeal",{id:t}))},getData:function(){var t=this;$http.get("plugin.customer-development.Frontend.controllers.card.index").then((function(e){1===e.result?(t.list=e.data.data,t.plugin_name=e.data.plugin_name?e.data.plugin_name:"拓客卡",t.fun.setWXTitle(t.plugin_name?t.plugin_name:"拓客卡")):Object(s["a"])(e.msg)}))},getMoreData:function(){var t=this;t.isLoadMore=!1,t.page>=t.total_page||$http.get("plugin.customer-development.Frontend.controllers.card.index",{page:t.page}).then((function(e){if(1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);t.isLoadMore=!0,t.list.concat(e.data.data)}))},shareTap:function(t){var e=this,i=t;n["a"].confirm({message:"请点击右上角分享"}).then((function(){e.fun.wxShare("",{},{title:i.goods.title,link:e.fun.getSiteRoot()+"/addons/yun_shop/?menu#/goods/"+i.goods_id+"?i="+e.fun.getKeyByI(),imgUrl:i.goods.thumb,description:i.goods.title})})).catch((function(){}))},initShare:function(t){var e=this,i=document.location.href,a={url:i};$http.post("member.member.wxJsSdkConfig",a).then((function(i){1==i.result&&i.data.config&&e.share(i.data,t)})).catch((function(t){}))},share:function(t,e){var i=this;wx.config(t.config),wx.ready((function(){var a=i.fun.isTextEmpty(e.goods.title)?t.share.title:e.goods.title,o=i.fun.getSiteRoot()+"/addons/yun_shop/?menu#/goods/"+e.goods_id+"?i="+i.fun.getKeyByI();o=i.fun.isMid(o,t.info.uid);var n=i.fun.isTextEmpty(e.goods.thumb)?t.share.icon:e.goods.thumb,r=i.fun.isTextEmpty(e.goods.title)?t.share.desc:e.goods.title;wx.showOptionMenu(),wx.onMenuShareTimeline({title:a,link:o,imgUrl:n,success:function(){Object(s["a"])("分享成功")},cancel:function(){Object(s["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:a,desc:r,link:o,imgUrl:n,type:"link",dataUrl:"",success:function(){Object(s["a"])("分享成功")},cancel:function(){Object(s["a"])("取消分享")}})}))}},components:{cTitle:r["a"]}},c=d,m=(i("6676"),i("2877")),f=Object(m["a"])(c,a,o,!1,null,"0af7aedb",null);e["default"]=f.exports},6676:function(t,e,i){"use strict";i("7849")},7849:function(t,e,i){var a=i("bc90");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("e08f9284",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,o=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},bc90:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#memberTokerCard .list[data-v-0af7aedb]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#memberTokerCard .list[data-v-0af7aedb],#memberTokerCard .list .lis[data-v-0af7aedb]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#memberTokerCard .list .lis[data-v-0af7aedb]{background-color:#fff;width:21.56rem;height:12.94rem;border-radius:.47rem;margin:.63rem 0 .63rem 0;padding:.75rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#memberTokerCard .list .lis .btn[data-v-0af7aedb]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}#memberTokerCard .list .lis .btn[data-v-0af7aedb],#memberTokerCard .list .lis .btn .isbtn[data-v-0af7aedb]{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}#memberTokerCard .list .lis .btn .isbtn[data-v-0af7aedb]{width:4.69rem;height:1.44rem;border-radius:.72rem;border:.03rem solid #f14e4e;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-right:.59rem}#memberTokerCard .list .lis .btn .isbtn[data-v-0af7aedb]:last-child{margin-right:0}#memberTokerCard .list .lis .bottom[data-v-0af7aedb]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#memberTokerCard .list .lis .bottom .left[data-v-0af7aedb]{width:5.63rem;height:5.63rem;background-color:#d8d8d8}#memberTokerCard .list .lis .bottom .left img[data-v-0af7aedb]{width:100%;height:100%}#memberTokerCard .list .lis .bottom .right[data-v-0af7aedb]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.63rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#memberTokerCard .list .lis .bottom .right[data-v-0af7aedb],#memberTokerCard .list .lis .bottom .right .rightBottom[data-v-0af7aedb]{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}#memberTokerCard .list .lis .bottom .right .rightBottom .time[data-v-0af7aedb]{font-size:.75rem;color:#666}#memberTokerCard .list .lis .bottom .right .title[data-v-0af7aedb]{text-align:left;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.94rem;color:#202020}#memberTokerCard .list .lis .top[data-v-0af7aedb]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#memberTokerCard .list .lis .top[data-v-0af7aedb],#memberTokerCard .list .lis .top .img[data-v-0af7aedb]{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}#memberTokerCard .list .lis .top .img[data-v-0af7aedb]{font-size:.88rem}#memberTokerCard .list .lis .top .img img[data-v-0af7aedb]{width:2.19rem;height:2.19rem;background-color:#d8d8d8;border-radius:100%}#memberTokerCard .list .lis .top .img .shopname[data-v-0af7aedb]{font-size:.88rem;margin-left:.5rem}",""]),t.exports=e}}]); |