(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9251140c"],{"1d94":function(o,t,e){"use strict";e.r(t);var s=function(){var o=this,t=o.$createElement,e=o._self._c||t;return e("div",{attrs:{id:"exchangeDetail"}},[e("c-title",{attrs:{hide:!1,text:"换货"}}),e("div",{staticClass:"good-box"},[e("div",{staticClass:"left"},[e("img",{attrs:{src:o.popThumb,alt:""}})]),e("div",{staticClass:"right"},[e("p",{staticClass:"title"},[o._v(o._s(o.goodsInfo.title))]),e("div",{staticClass:"ticket"},[e("p",{staticClass:"number text-over"},[o._v(" 兑换券 "+o._s(o.goodsInfo.goods_change?o.goodsInfo.goods_change.certificate:"0")+"张 ")])])])]),o.fun.isTextEmpty(o.goodsInfo.has_many_options)?o._e():e("div",{staticClass:"good-content shopinfo noVantRadio"},o._l(o.goodsInfo.has_many_specs,(function(t,s){return e("dl",{key:s},[e("dt",[o._v(o._s(t.title))]),e("dd",[e("van-radio-group",{attrs:{"checked-color":"#f15353"},on:{change:o.selectSpecs},model:{value:t.description,callback:function(e){o.$set(t,"description",e)},expression:"specs.description"}},o._l(t.specitem,(function(s,i){return e("van-radio",{key:i,class:{vantRadioshow:t.description==s},attrs:{disabled:s.c,name:s}},[o._v(" "+o._s(s.title)+" ")])})),1)],1)])})),0),e("div",{staticClass:"change-num"},[e("p",{staticStyle:{flex:"1","font-weight":"bold"}},[o._v("兑换商品数量")]),e("div",{staticClass:"cart"},[e("span",{staticClass:"del",on:{click:function(t){return t.stopPropagation(),o.reduceGoods.apply(null,arguments)}}},[o._v("-")]),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:o.goodsCount,expression:"goodsCount",modifiers:{lazy:!0}}],staticClass:"input",attrs:{type:"number",placeholder:"1"},domProps:{value:o.goodsCount},on:{change:function(t){o.goodsCount=t.target.value}}}),e("span",{staticClass:"add",on:{click:function(t){return t.stopPropagation(),o.addGoods.apply(null,arguments)}}},[o._v("+")])])]),e("div",{staticClass:"car-btn",class:[3==o.fun.getPhoneEnv()?"pcStyle":""],style:{width:3==o.fun.getPhoneEnv()?"375px":""}},[e("div",{staticClass:"orange",on:{click:o.gotoMyRepertory}},[e("span",[o._v("换取兑换券")]),e("span",{staticStyle:{"font-size":"12px"}},[o._v("(当前兑换券:"+o._s(o.certificate)+")")])]),e("div",{staticClass:"change",on:{click:o.goExchange}},[e("div",[o._v("兑换")])])])],1)},i=[],a=(e("e7e5"),e("d399")),n=(e("14d9"),e("a4d3"),e("e01a"),e("a434"),e("4e82"),e("6968")),d=[],r=0,c=1,l={data:function(){return{certificate:null,popThumb:"",popPrice:0,popStock:1,goodsDescription:"",goodsCount:1,goodsInfo:{}}},activated:function(){this.init(),this.getData()},methods:{init:function(){d=[],r="",c=1,this.popStock=1,this.goodsDescription="",this.goodsCount=1},getData:function(){var o=this;$http.post("plugin.channel.frontend.goods-change.getGoods",{id:this.$route.params.id},"").then((function(t){1===t.result?(o.goodsInfo=t.data.goods,o.certificate=t.data.my_certificate,o.initPopView()):Object(a["a"])(t.msg)})).catch((function(o){}))},goExchange:function(){var o=this,t=this.goodsInfo.goods_change.certificate?this.goodsInfo.goods_change.certificate*this.goodsCount:this.goodsCount;this.certificate<=0?Object(a["a"])("当前兑换券数量不足,暂不能兑换商品"):this.certificate0){for(var e=0;e0)for(var l=0;l0&&(this.goodsCount=1);break}}},setGoodsSpecsBySort:function(o){var t=o.split("_");t.sort((function(o,t){return o-t}));for(var e="",s=0;sc&&(this.goodsCount=c))},addGoods:function(){var o=this.goodsInfo.goods_change.certificate?this.goodsInfo.goods_change.certificate*this.goodsCount:this.goodsCount;this.certificate