bztang-admin/addons/yun_shop/static/app/js/chunk-51fb85cf.115e72e2.js

1 line
6.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51fb85cf"],{1074:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,"#enterShop[data-v-6bddcc90]{background:#fff;min-height:37.5rem;position:relative}#enterShop #content .content_a[data-v-6bddcc90]{padding:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}#enterShop #content .content_a .flow_a li:first-child span[data-v-6bddcc90],#enterShop #content .content_a .flow_b li:first-child span[data-v-6bddcc90],#enterShop #content .content_a .flow_c li:first-child span[data-v-6bddcc90]{display:block;width:3rem;height:3rem;line-height:3rem;border-radius:2.5rem;background:#f15353;color:#fff;font-size:16px;margin:0 auto}#enterShop #content .content_a .flow_a li[data-v-6bddcc90]:last-child,#enterShop #content .content_a .flow_b li[data-v-6bddcc90]:last-child,#enterShop #content .content_a .flow_c li[data-v-6bddcc90]:last-child{font-size:16px;line-height:1.875rem}#enterShop #content .content_a .arrow_a[data-v-6bddcc90],#enterShop #content .content_a .arrow_b[data-v-6bddcc90]{margin-top:.625rem}#enterShop #content .content_a .arrow_a i[data-v-6bddcc90],#enterShop #content .content_a .arrow_b i[data-v-6bddcc90]{font-size:1.75rem;color:#ccc}#enterShop #content .content_b[data-v-6bddcc90]{margin-top:7.5rem}#enterShop #content .content_b .agreement[data-v-6bddcc90]{text-align:center;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}#enterShop #content .content_b .agreement i[data-v-6bddcc90]{margin-right:.625rem;font-size:1.5rem}#enterShop #content .content_b .agreement .normal[data-v-6bddcc90]{color:#999}#enterShop #content .content_b .agreement .cur[data-v-6bddcc90]{color:#f15353}#enterShop #content .content_b .agreement p[data-v-6bddcc90]{font-size:14px;color:#8c8c8c}#enterShop #content .content_b .agreement p span[data-v-6bddcc90]{font-weight:700;color:#333}#enterShop #content .content_b button[data-v-6bddcc90]{width:17.5rem;height:2.625rem;border-radius:2.5rem;border:none;background:#f15353;font-size:18px;color:#fff;margin-bottom:1.25rem}#enterShop #content .content_c[data-v-6bddcc90]{width:100%;position:absolute;bottom:1.25rem}#enterShop #content .content_c .img[data-v-6bddcc90]{margin:.625rem auto;width:3rem;height:3rem;border:.0625rem solid #ebebeb;overflow:hidden}#enterShop #content .content_c .img img[data-v-6bddcc90]{width:100%}#enterShop #content .content_c span[data-v-6bddcc90]{font-size:16px;font-weight:700;color:#333;line-height:1.5rem}",""]),t.exports=e},1423:function(t,e,n){"use strict";n("3894")},3894:function(t,e,n){var o=n("1074");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("499e").default;i("3ab8b2a3",o,!0,{sourceMap:!1,shadowMode:!1})},e315:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"enterShop"}},[n("c-title",{attrs:{hide:!1,text:"申请商家"}}),n("div",{attrs:{id:"content"}},[t._m(0),n("div",{staticClass:"content_b"},[n("button",{attrs:{type:"button"},on:{click:t.apply}},[t._v("支付"+t._s(t.$i18n.t("money"))+t._s(t.total_price))]),n("div",{staticClass:"agreement"},[n("i",{directives:[{name:"show",rawName:"v-show",value:t.isShowColse,expression:"isShowColse"}],staticClass:"iconfont icon-gouxuan normal",on:{click:t.isshow}}),n("i",{directives:[{name:"show",rawName:"v-show",value:t.isShowRead,expression:"isShowRead"}],staticClass:"iconfont icon-gouxuan cur",on:{click:t.isshow}}),n("p",[t._v(" 我已阅读并同意 "),n("span",{on:{click:t.getAgreement}},[t._v("《"+t._s(t.title)+"》")])])])]),n("div",{staticClass:"content_c"},[n("div",{staticClass:"img"},[n("img",{attrs:{src:t.enter_goods.thumb}})]),n("span",[t._v(t._s(t.enter_goods.footer_content))])])])],1)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content_a"},[n("ul",{staticClass:"flow_a"},[n("li",[n("span",[t._v("1")])]),n("li",[t._v("付款申请")])]),n("div",{staticClass:"arrow_a"},[n("i",{staticClass:"iconfont icon-jiantou"})]),n("ul",{staticClass:"flow_b"},[n("li",[n("span",[t._v("2")])]),n("li",[t._v("提交资料")])]),n("div",{staticClass:"arrow_b"},[n("i",{staticClass:"iconfont icon-jiantou"})]),n("ul",{staticClass:"flow_c"},[n("li",[n("span",[t._v("3")])]),n("li",[t._v("激活完成")])])])}],a=(n("e7e5"),n("d399")),c=n("6968"),s={data:function(){return{goods_id:"",pay_type_id:"",total_price:"",isShowRead:!0,isShowColse:!1,goods:[{goods_id:this.goods_id,pay_type_id:this.pay_type_id}],enter_goods:[],title:""}},activated:function(){this.init(),this.goods_buy(),this.getAgreementTitle()},methods:{init:function(){this.popupSpecs=!1},goods_buy:function(){var t=this;$http.get("plugin.enter-goods.frontend.order.goods-buy",{goods_id:this.$route.query.goods_id},"加载中").then((function(e){1===e.result?(t.total_price=e.data.total_price,t.goods[0].pay_type_id=t.$route.query.pay_type_id,t.goods[0].goods_id=t.$route.query.goods_id,t.enter_goods=e.data.enter_goods):Object(a["a"])({message:e.msg,position:"bottom",duration:5e3})})).catch((function(t){}))},isshow:function(){this.isShowColse=!this.isShowColse,this.isShowRead=!this.isShowRead},getAgreementTitle:function(){var t=this;$http.get("plugin.enter-goods.frontend.agreement.detail.index").then((function(e){1===e.result&&(t.title=e.data.title)})).catch((function(t){}))},getAgreement:function(){this.$router.push(this.fun.getUrl("EnterProtocol"))},apply:function(){var t=this,e=this;1==this.isShowRead?$http.get("plugin.enter-goods.frontend.order.create",this.goods[0],"加载中...").then((function(n){if(1===n.result){var o=1==t.$route.query.pay_type_id,i=2==t.$route.query.pay_type_id;if(o){var a=n.data.redirect,c=n.data.config,s=c.appId,r=c.timestamp,d=c.nonceStr,l=c.package,p=c.signType,h=c.paySign;WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:s,timeStamp:r,nonceStr:d,package:l,signType:p,paySign:h},(function(t){"get_brand_wcpay_request:ok"==t.err_msg?(e.$dialog.alert({message:"支付成功"}),window.location.href=a):e.$dialog.alert({message:"支付失败"})}))}i&&t.$router.push(t.fun.getUrl("alipayCourse",{status:"9",url:n.data}))}})).catch((function(t){})):Object(a["a"])({message:"请勾选协议",position:"bottom",duration:2e3})}},components:{cTitle:c["a"]}},r=s,d=r,l=(n("1423"),n("2877")),p=Object(l["a"])(d,o,i,!1,null,"6bddcc90",null);e["default"]=p.exports}}]);