1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cb00e2f6"],{"00a5":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,".ell[data-v-eaa84522]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.covert-flex[data-v-eaa84522]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.covert-flex[data-v-eaa84522],.goods-item[data-v-eaa84522]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.goods-item[data-v-eaa84522]{background-color:#fff;padding:12px;border-radius:8px 8px 8px 8px;margin:0 0 10px 0}.goods-item .orderHead[data-v-eaa84522]{font-size:14px;font-weight:400;padding:0 0 10px 0}.goods-item .orderHead h3[data-v-eaa84522]{color:#00001c;font-weight:400}.goods-item .orderHead p[data-v-eaa84522]{color:var(--themeBaseColor)}.goods-item .order-sum[data-v-eaa84522]{padding:17px 0 0 0;font-size:13px;font-weight:400;color:#00001c}.goods-item .order-sum .price[data-v-eaa84522]{font-weight:500}.goods-item .img[data-v-eaa84522]{min-width:90px;height:90px}.goods-item .min-img[data-v-eaa84522]{min-width:80px;height:80px}.goods-item .wrap[data-v-eaa84522]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 10px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.goods-item .wrap h3[data-v-eaa84522]{word-break:break-all;word-wrap:break-word;text-align:left;font-weight:500;color:#00001c}.goods-item .wrap .sum[data-v-eaa84522]{min-width:20%;font-size:13px;font-weight:400;color:#00001c;text-align:right}.goods-item .order-flex[data-v-eaa84522]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.goods-item .order-address[data-v-eaa84522]{text-align:left;font-size:13px;font-weight:400;color:#6e6e79;padding:15px 0 0 0}.goods-item .order-address .member-info[data-v-eaa84522]{padding:0 0 8px 0}.goods-item .address-btn[data-v-eaa84522]{padding:12px 0 0 0;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.goods-item .address-btn .btn[data-v-eaa84522]{font-size:13px;line-height:13px;font-weight:400;color:#fff;color:var(--themeBaseColor);padding:9px 14px;border-radius:25px 25px 25px 25px;border:1px solid var(--themeBaseColor);-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:10px}.goods-item .classify[data-v-eaa84522]{padding:10px 0 0 0;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.goods-item .classify .price[data-v-eaa84522]{color:#f15353;font-weight:500;font-size:16px}.goods-item .classify .price span[data-v-eaa84522]{font-size:12px}.goods-item .classify .select[data-v-eaa84522]{background:#f15353;border-radius:50%;padding:5px 6px}.goods-item .classify .select .icon-gouwuche2[data-v-eaa84522]{color:#fff;font-size:13px}",""]),e.exports=t},"049c":function(e,t,a){var o=a("58e5d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=a("499e").default;s("0597aade",o,!0,{sourceMap:!1,shadowMode:!1})},"4e31":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,'.exchange-main[data-v-097d2a0c]{padding:22px 0 25px 0;margin:0 12px}.exchange-main h3[data-v-097d2a0c]{font-size:16px;font-weight:700;color:#00001c;line-height:24px}.exchange-main .member-number[data-v-097d2a0c]{padding:37px 0 22px 0;border-bottom:1px solid #f0f0f1}.exchange-main .member-number .label[data-v-097d2a0c]{font-size:14px;color:#00001c;line-height:24px;padding:0 0 0 4px;position:relative}.exchange-main .member-number .label span[data-v-097d2a0c]{font-size:13px;font-weight:400;color:#aaaab3;line-height:24px}.exchange-main .member-number .label[data-v-097d2a0c]:before{position:absolute;left:-2px;color:#ee0a24;font-size:14px;content:"*"}.exchange-main .sponsor-confrim[data-v-097d2a0c]{width:100%;padding:13px 0;font-size:15px;line-height:15px;background-color:var(--themeBaseColor);font-weight:400;color:#fff;border-radius:21px 21px 21px 21px}.exchange-main .cell-group[data-v-097d2a0c]{padding:0 0 50px 0}',""]),e.exports=t},"58e5d":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,".exchange-main[data-v-097d2a0c] .van-cell{padding:12px 16px 14px 4px;border-bottom:1px solid #f0f0f1}.exchange-main[data-v-097d2a0c] .van-cell:last-child{border-bottom:none}.exchange-main[data-v-097d2a0c] .van-cell--required:before{left:-2px}.exchange-main[data-v-097d2a0c] .cell-label{font-size:14px;color:#00001c;margin:0;padding:0 0 0 1px}.exchange-main[data-v-097d2a0c] .van-cell:after{border-bottom:none}",""]),e.exports=t},7719:function(e,t,a){"use strict";a("cf25")},8377:function(e,t,a){var o=a("00a5");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=a("499e").default;s("a179ab0e",o,!0,{sourceMap:!1,shadowMode:!1})},"8c37":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,".sponsor-main[data-v-14f89bce]{padding:22px 0 25px 0;margin:0 12px}.sponsor-main h3[data-v-14f89bce]{font-size:16px;font-weight:700;color:#00001c;line-height:24px}.sponsor-main .member-id[data-v-14f89bce]{padding:28px 0 16px 0;border-bottom:1px solid #f0f0f1;position:relative}.sponsor-main .member-id .label[data-v-14f89bce]{font-size:14px;color:#00001c;font-weight:400;line-height:24px;padding:0 24px 0 0}.sponsor-main .member-id input[data-v-14f89bce]{border:none;outline:none}.sponsor-main .member-id input[data-v-14f89bce] :focus{outline:none}.sponsor-main .member-id input[data-v-14f89bce] ::-webkit-input-placeholder{color:#aaaab3}.sponsor-main .member-name[data-v-14f89bce]{font-size:13px;color:#f15353;line-height:13px;padding:7px 0 0 80px;text-align:left}.sponsor-main .member-number[data-v-14f89bce]{padding:37px 0 44px 0}.sponsor-main .member-number .label[data-v-14f89bce]{font-size:14px;color:#00001c;line-height:24px}.sponsor-main .member-number .label span[data-v-14f89bce]{font-size:13px;font-weight:400;color:#aaaab3;line-height:24px}.sponsor-main .sponsor-confrim[data-v-14f89bce]{width:100%;padding:13px 0;font-size:15px;line-height:15px;background-color:var(--themeBaseColor);font-weight:400;color:#fff;border-radius:21px 21px 21px 21px}",""]),e.exports=t},9044:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"list-page"},[a("c-title",{attrs:{hide:!1,text:"我的藏品"}}),e.myList.length>0?a("div",{staticClass:"my-list"},e._l(e.myList,(function(t,o){return a("block",{key:o},[a("goods-item",{attrs:{item:t,goodIndex:o,className:"covert"},scopedSlots:e._u([{key:"convertBtn",fn:function(){return[a("div",{staticClass:"flex-a-c flex-j-sb covert"},[a("h4",[e._v("×"+e._s(t.total))]),a("div",{staticClass:"covert-gourp flex"},[a("div",{staticClass:"sponsor-btn",on:{click:function(a){return a.stopPropagation(),e.sponsorClick(t.goods_id,t.can_use_total)}}},[e._v("发起转赠")]),a("div",{staticClass:"covert-btn",on:{click:function(a){return a.stopPropagation(),e.covertClick(t.goods_id,t.can_use_total)}}},[e._v("兑换藏品")])])])]},proxy:!0}],null,!0)})],1)})),1):a("van-empty",{attrs:{description:"暂无数据"}}),a("div",{staticClass:"mb60"}),a("spon-popup",{ref:"sponPopup",attrs:{sponShow:e.sponShow,params:e.params,maxtotal:e.maxtotal},on:{"update:sponShow":function(t){e.sponShow=t},"update:spon-show":function(t){e.sponShow=t},"update:params":function(t){e.params=t},sponsorConfrim:e.sponsorConfrim}}),a("exchange-popup",{ref:"exchangePop",attrs:{changeShow:e.changeShow,exParams:e.exParams,addressName:e.addressName,maxtotal:e.maxtotal},on:{"update:changeShow":function(t){e.changeShow=t},"update:change-show":function(t){e.changeShow=t},"update:exParams":function(t){e.exParams=t},"update:ex-params":function(t){e.exParams=t},addressCallback:e.addressCallback,streetConfirm:e.streetConfirm,exchangeClick:e.exchangeClick}})],1)},s=[],i=a("2909"),n=(a("a9e3"),a("99af"),a("ee38")),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"content"},[a("van-popup",{attrs:{closeable:"",position:"bottom",round:""},on:{close:e.sponClose},model:{value:e.sponShow,callback:function(t){e.sponShow=t},expression:"sponShow"}},[a("div",{staticClass:"sponsor-main"},[a("h3",[e._v("发起转赠")]),a("div",{staticClass:"member-id flex"},[a("div",{staticClass:"label"},[e._v("受赠人ID")]),a("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.params.transfer_id,expression:"params.transfer_id",modifiers:{trim:!0}}],attrs:{placeholder:"请输入","placeholder-style":"color:#AAAAB3;"},domProps:{value:e.params.transfer_id},on:{input:[function(t){t.target.composing||e.$set(e.params,"transfer_id",t.target.value.trim())},e.throttleFn],blur:function(t){return e.$forceUpdate()}}})]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.memberFlag,expression:"memberFlag"}],staticClass:"member-name"},[e._v("昵称:"+e._s(e.memberName))]),a("div",{staticClass:"member-number flex-a-c flex-j-sb"},[a("div",{staticClass:"label"},[e._v("转赠数量"),a("span",[e._v("(最多可转赠数量"+e._s(e.maxtotal)+")")])]),a("div",[a("van-stepper",{attrs:{min:"1",max:e.maxtotal,integer:""},model:{value:e.params.total,callback:function(t){e.$set(e.params,"total",t)},expression:"params.total"}})],1)]),a("div",{staticClass:"sponsor-confrim",on:{click:e.sponsorClick}},[e._v("确认转赠")])])])],1)},c=[],l={name:"",props:{sponShow:Boolean,maxtotal:Number,params:Object},components:{},data:function(){return{memberFlag:!1,memberName:{},memberId:"",timeoutId:""}},computed:{},watch:{},methods:{sponsorClick:function(){this.memberFlag&&this.memberId?(this.$emit("sponsorConfrim",""),this.$emit("update:sponShow",!1)):this.$toast("请输入正确会员ID")},sponClose:function(){this.$emit("update:sponShow",!1)},throttleFn:function(e){var t=this;this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){t.memberId=t.params.transfer_id,t.searchMember()}),300)},searchMember:function(){var e=this;this.memberFlag=!1,$http.post("plugin.collection-center.frontend.controllers.collection.member.search-member",{member_id:Number(this.memberId)}).then((function(t){if(1==t.result){var a,o=t.data;e.memberName=null===(a=o.member)||void 0===a?void 0:a.nickname,e.memberName&&(e.memberFlag=!0)}t.data.length<=0&&(e.memberFlag=!1)})).catch((function(e){}))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},d=l,m=(a("b644"),a("2877")),p=Object(m["a"])(d,r,c,!1,null,"14f89bce",null),f=p.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exchange-page"},[a("van-popup",{attrs:{closeable:"",position:"bottom",round:"","z-index":"100"},on:{close:e.changeClose},model:{value:e.changeShow,callback:function(t){e.changeShow=t},expression:"changeShow"}},[a("div",{staticClass:"exchange-main"},[a("h3",[e._v("兑换藏品")]),a("div",{staticClass:"member-number flex-a-c flex-j-sb"},[a("div",{staticClass:"label"},[e._v("转赠数量"),a("span",[e._v("(最多可转赠数量"+e._s(e.maxtotal)+")")])]),a("div",[a("van-stepper",{attrs:{min:"1",max:e.maxtotal,integer:""},model:{value:e.exParams.total,callback:function(t){e.$set(e.exParams,"total",t)},expression:"exParams.total"}})],1)]),a("div",{staticClass:"cell-group"},[a("van-cell-group",{attrs:{border:!1}},[a("van-field",{attrs:{label:"收件人",placeholder:"请输入收件人","label-class":"cell-label",required:""},model:{value:e.exParams.address.username,callback:function(t){e.$set(e.exParams.address,"username",t)},expression:"exParams.address.username"}}),a("van-field",{attrs:{label:"收件号码",placeholder:"请输入手机号","label-class":"cell-label",required:""},model:{value:e.exParams.address.mobile,callback:function(t){e.$set(e.exParams.address,"mobile",t)},expression:"exParams.address.mobile"}}),e.region_hide?e._e():a("van-field",{attrs:{label:"所在地区",placeholder:"请选择",disabled:"","is-link":"","label-class":"cell-label",required:""},on:{click:function(t){t.stopPropagation(),e.addressShow=!0}},model:{value:e.addressName,callback:function(t){e.addressName=t},expression:"addressName"}}),e.strShow&&!e.region_hide?a("van-field",{attrs:{label:"所在街道",placeholder:"请选择","is-link":"","label-class":"cell-label",disabled:"",required:""},on:{click:function(t){return t.stopPropagation(),e.streetClick.apply(null,arguments)}},model:{value:e.exParams.address.street,callback:function(t){e.$set(e.exParams.address,"street",t)},expression:"exParams.address.street"}}):e._e(),a("van-field",{attrs:{label:"详细地址",placeholder:"请输入详细地址",type:"textarea","label-class":"cell-label",required:""},model:{value:e.exParams.address.address,callback:function(t){e.$set(e.exParams.address,"address",t)},expression:"exParams.address.address"}})],1)],1),a("div",{staticClass:"sponsor-confrim",on:{click:e.exchangeClick}},[e._v("确认兑换")])])]),a("van-popup",{style:{width:"100%",height:"100%",overflow:e.auto},attrs:{position:"right"},on:{close:e.onClose},model:{value:e.streetShow,callback:function(t){e.streetShow=t},expression:"streetShow"}},[a("van-nav-bar",{attrs:{title:"选择街道","left-text":"","right-text":"","left-arrow":""},on:{"click-left":e.treetShowLeft}}),a("div",{staticClass:"content"},e._l(e.districtVal,(function(t,o){return a("block",{key:o},[a("van-cell",{attrs:{title:t.areaname,"is-link":"","title-style":"text-align:left"},on:{click:function(a){return e.streetConfirm(t)}}})],1)})),1)],1),a("yd-cityselect",{attrs:{callback:e.addressCallback,items:e.district},model:{value:e.addressShow,callback:function(t){e.addressShow=t},expression:"addressShow"}})],1)},h=[],x={name:"",props:{changeShow:Boolean,addressName:String,maxtotal:Number,exParams:Object},components:{},data:function(){return{is_region:"",region_hide:"",addressShow:!1,strShow:!1,streetShow:!1,district:district,districtVal:[],district_id:"",timeoutId:""}},computed:{},watch:{},methods:{exchangeClick:function(){this.$emit("exchangeClick")},changeClose:function(){this.$emit("update:changeShow",!1)},treetShowLeft:function(){this.streetShow=!1},addressCallback:function(e){this.district_id=e.itemValue3,this.addressShow=!1,this.getStreet(this.district_id),this.$emit("addressCallback",e)},streetClick:function(){1==this.is_region&&this.fun.isTextEmpty(this.district_id)?this.$dialog.alert({message:"请先选择所在地区"}):(this.streetShow=!0,this.getStreet(this.district_id))},streetConfirm:function(e){this.streetShow=!1,this.$emit("streetConfirm",e)},getIsOpenAddress:function(){var e=this;$http.get("member.member-address.is-region").then((function(t){if(1==t.result){var a=t.data;e.is_region=a.is_region,e.region_hide=a.region_hide}})).catch((function(e){}))},getStreet:function(e){var t=this;$http.get("member.memberAddress.street",{district_id:e}).then((function(e){1===e.result&&!t.fun.isTextEmpty(e.data)&&e.data.length>0?(t.districtVal=e.data,t.strShow=!0):t.strShow=!1})).catch((function(e){t.strShow=!1}))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},g=x,b=(a("9c97"),a("7719"),Object(m["a"])(g,u,h,!1,null,"097d2a0c",null)),v=b.exports,w=a("ac0d"),_={name:"",components:{goodsItem:n["a"],sponPopup:f,exchangePopup:v},mixins:[w["a"]],data:function(){return{sponShow:!1,changeShow:!1,page:1,isLoadMore:!0,total_page:0,maxtotal:"",params:{transfer_id:"",goods_id:"",total:1},addressName:"",exParams:{total:1,goods_id:"",address:{province:"",city:"",district:"",mobile:"",username:"",street:"",address:""}},myList:[],timeout:""}},computed:{},watch:{},methods:{sponsorClick:function(e,t){this.sponShow=!0,this.params.goods_id=e,this.maxtotal=Number(t)},covertClick:function(e,t){this.changeShow=!0,this.exParams.goods_id=e,this.maxtotal=Number(t)},exchangeClick:function(){var e=this;return 0==this.maxtotal?(this.$toast("没有可转赠的藏品"),!1):this.fun.isTextEmpty(this.exParams.total)?(this.$toast("商品数量错误"),!1):this.fun.isTextEmpty(this.exParams.address.username)?(this.$toast("请输入收件人"),!1):this.fun.isTextEmpty(this.exParams.address.mobile)?(this.$toast("请输入手机号"),!1):this.fun.isTextEmpty(this.exParams.address.province)||this.fun.isTextEmpty(this.exParams.address.city)||this.fun.isTextEmpty(this.exParams.address.district)?(this.$toast("请输入地址"),!1):this.fun.isTextEmpty(this.exParams.address.address)?(this.$toast("请输入详细地址"),!1):(this.timeout&&clearTimeout(this.timeout),this.$toast.loading({message:"加载中...",forbidClick:!0}),void(this.timeout=setTimeout((function(){e.exchangeFn()}),300)))},exchangeFn:function(){var e=this;$http.post("plugin.collection-center.frontend.controllers.collection.collection-manage.exchange",this.exParams).then((function(t){1==t.result?(e.$toast(t.msg),e.changeShow=!1,e.initData(),e.collectionList(),e.$toast.clear()):e.$toast(t.msg)})).catch((function(e){}))},initData:function(){this.page=1,this.addressName="",this.params={transfer_id:"",order_id:"",total:1},this.exParams={total:1,order_id:"",address:{province:"",city:"",district:"",mobile:"",username:"",street:"",address:""}}},sponsorConfrim:function(){var e=this;return this.fun.isTextEmpty(this.params.goods_id)?(this.$toast("订单ID错误"),!1):(this.params.transfer_id=Number(this.params.transfer_id),this.fun.isTextEmpty(this.params.transfer_id)?(this.$toast("会员ID错误"),!1):this.fun.isTextEmpty(this.params.total)?(this.$toast("商品数量错误"),!1):void $http.post("plugin.collection-center.frontend.controllers.collection.collection-manage.transfer",this.params).then((function(t){1==t.result?(e.$refs.sponPopup.memberFlag=!1,e.$toast(t.msg),e.initData(),e.collectionList()):e.$toast(t.msg)})).catch((function(e){})))},addressCallback:function(e){this.addressName=e.itemName1+" "+e.itemName2+" "+e.itemName3,this.exParams.address.province=e.itemName1,this.exParams.address.city=e.itemName2,this.exParams.address.district=e.itemName3},streetConfirm:function(e){this.exParams.address.street=e.areaname},collectionList:function(){var e=this;$http.get("plugin.collection-center.frontend.controllers.collection.collection-manage",{page:this.page},"加载中..").then((function(t){if(1==t.result){var a=t.data,o=a.collection_list.data;e.isLoadMore=!0,e.total_page=a.collection_list.last_page,e.total_page||(e.page=0),e.myList=o}else e.page=e.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var t={page:this.page,basic_info:1};$http.post("plugin.collection-center.frontend.controllers.collection.collection-manage",t,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var a=t.data,o=a.collection_list.data;e.myList=[].concat(Object(i["a"])(e.myList),Object(i["a"])(o))}else e.page=e.page-1,e.isLoadMore=!1}),(function(e){}))}}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){this.collectionList(),this.$refs.exchangePop.getIsOpenAddress()}},k=_,C=k,y=(a("eebb"),Object(m["a"])(C,o,s,!1,null,"82369930",null));t["default"]=y.exports},"91af":function(e,t,a){var o=a("a1d3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=a("499e").default;s("1bbc324f",o,!0,{sourceMap:!1,shadowMode:!1})},"99a2":function(e,t,a){var o=a("8c37");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=a("499e").default;s("11ac8b65",o,!0,{sourceMap:!1,shadowMode:!1})},"9c97":function(e,t,a){"use strict";a("049c")},"9dc9":function(e,t,a){"use strict";a("8377")},a1d3:function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,".my-list[data-v-82369930]{margin:10px 12px 0 12px}.my-list .covert h4[data-v-82369930]{font-size:13px;font-weight:400;color:#3b3b4a;line-height:20px}.my-list .covert .covert-gourp[data-v-82369930]{font-size:13px;line-height:13px}.my-list .covert .covert-gourp .sponsor-btn[data-v-82369930]{color:var(--themeBaseColor);padding:10px 12px;border-radius:25px 25px 25px 25px;border:1px solid var(--themeBaseColor)}.my-list .covert .covert-gourp .covert-btn[data-v-82369930]{padding:10px 12px;color:#fff;background:var(--themeBaseColor);border-radius:25px 25px 25px 25px;margin:0 0 0 10px}.mb60[data-v-82369930]{height:60px;clear:both}",""]),e.exports=t},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var o=document.documentElement,s=document.body,i={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return o&&o.scrollTop?e=o.scrollTop:s&&(e=s.scrollTop),e},getClientHeight:function(){var e=0;return e=s.clientHeight&&o.clientHeight?Math.min(s.clientHeight,o.clientHeight):Math.max(s.clientHeight,o.clientHeight),e},getScrollHeight:function(){return Math.max(s.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b644:function(e,t,a){"use strict";a("99a2")},cf25:function(e,t,a){var o=a("4e31");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=a("499e").default;s("7127a31e",o,!0,{sourceMap:!1,shadowMode:!1})},ee38:function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goods-item flex",on:{click:function(t){return t.stopPropagation(),e.goodsTo(e.item.id,e.item.goods_id)}}},[e._t("orderHead"),a("div",{staticClass:"flex"},[a("div",{staticClass:"img",class:["classify"===e.className?"min-img":""]},["classify"!==e.className?a("van-image",{attrs:{width:"90px",height:"90px",src:e.item&&e.item.goods&&e.item.goods.thumb,radius:"8px"}}):a("van-image",{attrs:{width:"80px",height:"80px",src:e.item.thumb,radius:"8px"}})],1),a("div",{staticClass:"wrap flex",class:["covert"===e.className||"present"===e.className?"covert-flex":"","order"===e.className||"classify"===e.className?"order-flex":""]},[a("div",{staticClass:"flex-j-sb title"},["classify"===e.className?a("h3",{staticClass:"ell"},[e._v(e._s(e.item.title))]):a("h3",{staticClass:"ell"},[e._v(e._s(e.item&&e.item.goods&&e.item.goods.title||e.item&&e.item.goods_name))]),e._t("amount")],2),e._t("orderSum"),e._t("convertBtn"),e._t("member"),e._t("classify")],2)]),e._t("orderAddress")],2)},s=[],i=(a("4056"),a("44bf")),n=(a("a9e3"),a("14d9"),{name:"",props:{item:{type:Object,default:function(){return{}}},className:String,goodIndex:Number},components:{VanImage:i["a"]},data:function(){return{}},computed:{},watch:{},methods:{goodsTo:function(e,t){"classify"===this.className&&e&&this.$router.push(this.fun.getUrl("goods",{id:e},{})),"covert"===this.className&&t&&this.$router.push(this.fun.getUrl("goods",{id:t},{}))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),r=n,c=(a("9dc9"),a("2877")),l=Object(c["a"])(r,o,s,!1,null,"eaa84522",null);t["a"]=l.exports},eebb:function(e,t,a){"use strict";a("91af")}}]); |