12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/Popup/PayPopup"],{"038b":function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"VipPopup",props:{swiperIndex:{type:Number,default:""}},data:function(){return{assetsUrl:this.$util.assetsUrl,privileges:[{img:"popup-talk",title:"随心畅聊",text:"10次/天主动私聊女生"},{img:"popup-recommend",title:"特别推荐",text:"尊贵标识,优先推荐"},{img:"popup-limit",title:"颜遇无限",text:"无限次数查看女士主页和相册"},{img:"popup-visitor",title:"查看访客",text:"解锁女生来访痕迹"}],privilegeIndex:0,tabIndex:0,priceDatas:{},totalPrice:0,priceConfig:{feeFen:null,sceneId:null,scene:null,body:null,userId:null,pkgCate:"JyPark"}}},watch:{swiperIndex:function(e,t){console.log(e),this.privilegeIndex=e}},computed:{platForm:function(){return this.$store.state.platform}},mounted:function(){e.getStorageSync("token")&&this.getConfigData()},methods:{close:function(){this.$emit("closePopup")},getConfigData:function(){var t=this,i=JSON.parse(e.getStorageSync("user"));this.$api.public.priceBySceneConfigs({completeUser:i,scene:"Member"}).then((function(i){t.priceDatas=i.data,t.totalPrice=t.priceDatas.prices2[t.tabIndex].priceFen,t.priceConfig.feeFen=t.priceDatas.prices2[t.tabIndex].priceFen,t.priceConfig.scene=t.priceDatas.prices2[t.tabIndex].sceneCate,t.priceConfig.sceneId=t.priceDatas.prices2[t.tabIndex].sceneId,t.priceConfig.body=t.priceDatas.prices2[t.tabIndex].name,t.priceConfig.userId=(t.$store.state.userInfo||JSON.parse(e.getStorageSync("userInfo"))).id}))},tabClick:function(t){this.tabIndex=t,this.totalPrice=this.priceDatas.prices2[t].priceFen,this.priceConfig.feeFen=this.priceDatas.prices2[t].priceFen,this.priceConfig.scene=this.priceDatas.prices2[t].sceneCate,this.priceConfig.sceneId=this.priceDatas.prices2[t].sceneId,this.priceConfig.body=this.priceDatas.prices2[t].name,this.priceConfig.userId=(this.$store.state.userInfo||JSON.parse(e.getStorageSync("userInfo"))).id},toService:function(){e.openCustomerServiceChat({extInfo:{url:"https://work.weixin.qq.com/kfid/kfca1b21d2f7e8a18e9"},corpId:"wwa8f2a0d8a6dc0950",fail:function(t){console.log(t),e.showToast({title:"客服联系失败",icon:"none"})}}),this.$emit("closePopup")},toPay:function(){var t=this;if("ios"===this.platForm)return this.$emit("closePopup"),void e.openCustomerServiceChat({extInfo:{url:"https://work.weixin.qq.com/kfid/kfca1b21d2f7e8a18e9"},corpId:"wwa8f2a0d8a6dc0950",fail:function(e){console.log(e),wx.showToast({title:"客服联系失败",icon:"none"})}});e.getProvider({service:"payment",success:function(i){console.log(i.provider),t.$api.pay.creatWxOrder(t.priceConfig).then((function(n){n.data.succ&&e.requestPayment({provider:i.provider[0],timeStamp:String(n.data.timeStamp),nonceStr:n.data.nonceStr,package:"prepay_id=".concat(n.data.wxUniPrePayId),signType:"MD5",paySign:n.data.paySign,success:function(i){console.log(i),"requestPayment:ok"===i.errMsg&&(e.showToast({icon:"success",title:"支付成功"}),t.$emit("closePopup"))},fail:function(e){console.log(e)}})}))}})}}};t.default=i}).call(this,i("543d")["default"])},"2cbe":function(e,t,i){},"315b":function(e,t,i){"use strict";i.r(t);var n=i("038b"),o=i.n(n);for(var c in n)"default"!==c&&function(e){i.d(t,e,(function(){return n[e]}))}(c);t["default"]=o.a},bbb2:function(e,t,i){"use strict";var n=i("2cbe"),o=i.n(n);o.a},bf5f:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return c})),i.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement;e._self._c},c=[]},db93:function(e,t,i){"use strict";i.r(t);var n=i("bf5f"),o=i("315b");for(var c in o)"default"!==c&&function(e){i.d(t,e,(function(){return o[e]}))}(c);i("bbb2");var r,a=i("f0c5"),s=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"58d8aeee",null,!1,n["a"],r);t["default"]=s.exports}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/Popup/PayPopup-create-component',
- {
- 'components/Popup/PayPopup-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("db93"))
- })
- },
- [['components/Popup/PayPopup-create-component']]
- ]);
|