webpackJsonp([10],{UdVa:function(t,a){},lJgw:function(t,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=i("vMJZ"),e={name:"BuyDetail",data:()=>({dataList:null,onShow:!1,detailData:{title:"套餐1",id:67,adddate:"2019-05-22 17:11:41",price:10,days:8,isuser:1,photourl:"/UploadFiles/2019/112/7132010694788099.jpg",descript:" 222222222222222222222222",examtf:1,trangtf:1,analysistf:1,examtf_name:"无权限",trangtf_name:"无权限",analysistf_name:"无权限",examtf_list:[{id:1,title:11211}],trangtf_list:[],analysistf_list:null,user_title:"使用中"}}),methods:{onClickLeft(){this.$router.go(-1)},openPopup(t){this.onShow=!0,0==t?this.dataList=this.detailData.examtf_list:1==t?this.dataList=this.detailData.trangtf_list:2==t&&(this.dataList=this.detailData.analysistf_list)},closePopup(){this.onShow=!1},getFeePackagesDetial(){Object(s.f)({id:this.$route.query.id}).then(t=>{console.log(t),1==t.result&&(this.detailData=JSON.parse(t.data))})}},created(){this.getFeePackagesDetial()}},l={render:function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",[i("div",{staticClass:"buyDetail"},[i("van-nav-bar",{attrs:{title:"套餐包详情","left-arrow":""},on:{"click-left":t.onClickLeft}}),t._v(" "),null!=t.detailData?i("div",[i("div",{staticClass:"buyDetail-top"},[i("div",{staticClass:"buyDetail-image"},[i("img",{attrs:{src:t.detailData.photourl}}),t._v(" "),1==t.detailData.isuser?i("p",[t._v("已拥有")]):t._e()]),t._v(" "),i("h1",[t._v(t._s(t.detailData.title))]),t._v(" "),i("p",[t._v("价格:"),i("span",[t._v("￥"+t._s(t.detailData.price))])]),t._v(" "),0!=t.detailData.isuser?i("h2",[t._v("有效期至："+t._s(t.detailData.expiredate))]):t._e()]),t._v(" "),i("div",{staticClass:"buyDetail-middle"},[i("div",{staticClass:"buyDetail-middle__box"},[i("p",[t._v("套餐包有限期")]),t._v(" "),i("span",[t._v(t._s(t.detailData.days)+"天")])]),t._v(" "),i("div",{staticClass:"buyDetail-middle__box"},[i("p",[t._v("考试权限")]),t._v(" "),0==t.detailData.examtf?i("span",[t._v("无权限")]):t.detailData.examtf>0?i("span",{on:{click:function(a){return t.openPopup(0)}}},[t._v(t._s(t.detailData.examtf_name)),i("i")]):t._e()]),t._v(" "),i("div",{staticClass:"buyDetail-middle__box"},[i("p",[t._v("练习权限")]),t._v(" "),0==t.detailData.trangtf?i("span",[t._v("无权限")]):t.detailData.trangtf>0?i("span",{on:{click:function(a){return t.openPopup(1)}}},[t._v(t._s(t.detailData.trangtf_name)),i("i")]):t._e()]),t._v(" "),i("div",{staticClass:"buyDetail-middle__box"},[i("p",[t._v("查看解析权限")]),t._v(" "),0==t.detailData.analysistf?i("span",[t._v("无权限")]):t.detailData.analysistf>0?i("span",{on:{click:function(a){return t.openPopup(2)}}},[t._v(t._s(t.detailData.analysistf_name)),i("i")]):t._e()])]),t._v(" "),i("div",{staticClass:"buyDetail-bottom"},[i("h1",[t._v("试卷简介")]),t._v(" "),i("p",[t._v(t._s(t.detailData.descript))])]),t._v(" "),0==t.detailData.isuser?i("div",{staticClass:"buyDetail-btn"},[i("span",[t._v("立即购买")])]):t._e()]):t._e()],1),t._v(" "),t.onShow?i("div",{staticClass:"popup-class"},[i("div",{staticClass:"popup-class__box"},[i("h1",[t._v("详情")]),t._v(" "),t._l(t.dataList,function(a,s){return i("div",{key:s,staticClass:"popup-class__class"},[i("h2",[t._v(t._s(a.title))])])}),t._v(" "),i("div",{staticClass:"popup-class__btn"},[i("span",{on:{click:t.closePopup}},[t._v("确定")])])],2)]):t._e()])},staticRenderFns:[]};var _=i("C7Lr")(e,l,!1,function(t){i("UdVa")},"data-v-eb662544",null);a.default=_.exports}});