1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/payment"],{"050a":function(t,n,e){"use strict";var i=e("3358"),o=e.n(i);o.a},"0808":function(t,n,e){"use strict";e.r(n);var i=e("cf02"),o=e.n(i);for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},3358:function(t,n,e){},4543:function(t,n,e){"use strict";(function(t){e("02cf");i(e("66fd"));var n=i(e("c8d7"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"6f5a":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={uPopup:function(){return e.e("uview-ui/components/u-popup/u-popup").then(e.bind(null,"b5fe"))},uMessageInput:function(){return e.e("uview-ui/components/u-message-input/u-message-input").then(e.bind(null,"a7d8"))},uniList:function(){return e.e("components/uni-list/uni-list").then(e.bind(null,"d316"))},uniListItem:function(){return e.e("components/uni-list-item/uni-list-item").then(e.bind(null,"7278"))},uLine:function(){return e.e("uview-ui/components/u-line/u-line").then(e.bind(null,"a852"))},uGap:function(){return e.e("uview-ui/components/u-gap/u-gap").then(e.bind(null,"20fe"))},uRadioGroup:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-radio-group/u-radio-group")]).then(e.bind(null,"8225"))},uRadio:function(){return e.e("uview-ui/components/u-radio/u-radio").then(e.bind(null,"e9ba"))},uKeyboard:function(){return e.e("uview-ui/components/u-keyboard/u-keyboard").then(e.bind(null,"366f"))}},o=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n,e){var i=arguments[arguments.length-1].currentTarget.dataset,o=i.eventParams||i["event-params"];e=o.item;t.value=e.name},t.e1=function(n){t.popupShow=!0,t.show=!0})},a=[]},c8d7:function(t,n,e){"use strict";e.r(n);var i=e("6f5a"),o=e("0808");for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("050a");var u,r=e("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);n["default"]=s.exports},cf02:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("a34a"));o(e("d81e"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,n,e,i,o,a,u){try{var r=t[a](u),s=r.value}catch(d){return void e(d)}r.done?n(s):Promise.resolve(s).then(i,o)}function u(t){return function(){var n=this,e=arguments;return new Promise((function(i,o){var u=t.apply(n,e);function r(t){a(u,i,o,r,s,"next",t)}function s(t){a(u,i,o,r,s,"throw",t)}r(void 0)}))}}var r={onLoad:function(t){this.infodata=JSON.parse(t.data),this.norderAmount=this.infodata.total_amount,console.log(this.infodata)},mounted:function(){this.getUserInfo()},data:function(){return{doctorName:"",ndoctorName:"渣渣宝",orderAmount:"",norderAmount:19.9,coupon:"不使用优惠券",value:"钱包余额支付",paymenMethod:[{name:"钱包余额支付",disabled:!1}],popupShow:!1,infodata:{},info:{},show:!1,maxnum:6,password:""}},methods:{radioChange:function(t){console.log(t)},radioGroupChange:function(t){},recharge:function(t){},click:function(t){console.log(t)},getUserInfo:function(){var t=u(i.default.mark((function t(){var n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$request.post("/api/v1/user/userInfo");case 2:n=t.sent,0==n.status&&(this.info=n.data,console.log(this.info));case 4:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}(),payyuyue:function(){var n=u(i.default.mark((function n(){var e,o=this;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/order/appointPlaceOrder",{product_type:this.infodata.product_type,docter_id:this.infodata.docter_id,patient_id:this.infodata.patient_id,total_amount:100*this.infodata.total_amount,organization_id:this.infodata.organization_id,schedule_date:this.infodata.schedule_date,time_period_id:this.infodata.time_period_id,payment_type:this.infodata.payment_type,pay_password:this.password});case 2:e=n.sent,0==e.status&&(this.popupShow=!1,this.show=!1,t.showToast({title:"支付成功!",duration:1500}),setTimeout((function(){t.redirectTo({url:"order?type="+o.infodata.product_type})}),1500));case 4:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),paypacks:function(){var n=u(i.default.mark((function n(){var e,o=this;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/order/packPlaceOrder",{patient_id:this.infodata.patient_id,total_amount:100*this.infodata.total_amount,service_pack_id:this.infodata.service_pack_id,is_security:this.infodata.is_security,guardian_name:this.infodata.guardian_name,relationship_type:this.infodata.relationship_type,payment_type:this.infodata.payment_type,pay_password:this.password});case 2:e=n.sent,0==e.status&&(this.popupShow=!1,this.show=!1,t.showToast({title:"支付成功!",duration:1500}),setTimeout((function(){t.redirectTo({url:"order?type="+o.infodata.product_type})}),1500));case 4:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),payphone:function(){var n=u(i.default.mark((function n(){var e,o=this;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/order/consultPlaceOrder",{product_type:this.infodata.product_type,docter_id:this.infodata.docter_id,patient_id:this.infodata.patient_id,total_amount:100*this.infodata.total_amount,phone:this.infodata.phone,phone_minutes:this.infodata.phone_minutes,payment_type:2,pay_password:this.password});case 2:e=n.sent,console.log(e),0==e.status&&(this.popupShow=!1,this.show=!1,t.showToast({title:"支付成功!",duration:1500}),setTimeout((function(){t.redirectTo({url:"order?type="+o.infodata.product_type})}),1500));case 5:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),paychat:function(){var n=u(i.default.mark((function n(){var e,o=this;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/order/consultPlaceOrder",{product_type:this.infodata.product_type,docter_id:this.infodata.docter_id,patient_id:this.infodata.patient_id,total_amount:100*this.infodata.total_amount,symptoms:this.infodata.symptoms,medical_imgs:JSON.stringify(this.infodata.medical_imgs),payment_type:2,pay_password:this.password});case 2:e=n.sent,0==e.status&&(this.popupShow=!1,this.show=!1,t.showToast({title:"支付成功!",duration:1500}),setTimeout((function(){t.redirectTo({url:"order?type="+o.infodata.product_type})}),1500));case 4:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),payment:function(t){1==this.infodata.product_type?this.payphone():2==this.infodata.product_type?this.paychat():6==this.infodata.product_type?this.paypacks():3==this.infodata.product_type&&this.payyuyue()},valChange:function(t){this.password+=t,console.log(this.password),6==this.password.length&&this.payment()},backspace:function(){this.password.length&&(this.password=this.password.substr(0,this.password.length-1)),console.log(this.password)}},onShow:function(){this.orderAmount=this.norderAmount+"元"},onHide:function(){this.popupShow=!1}};n.default=r}).call(this,e("543d")["default"])}},[["4543","common/runtime","common/vendor"]]]);
|