| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600 |
- exports.ids = [9];
- exports.modules = {
- /***/ 139:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(151);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add CSS to SSR context
- var add = __webpack_require__(4).default
- module.exports.__inject__ = function (context) {
- add("7b341170", content, true, context)
- };
- /***/ }),
- /***/ 144:
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__.p + "img/coin.4b7e14b.png";
- /***/ }),
- /***/ 145:
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__.p + "img/wechat_pay.ae9180d.png";
- /***/ }),
- /***/ 146:
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__.p + "img/ali_pay.1201e28.png";
- /***/ }),
- /***/ 150:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_4_3_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_10_2_1_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_2_2_4_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_2_2_1_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_payBox_vue_vue_type_style_index_0_id_6f09a324_lang_scss_rel_stylesheet_2Fscss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(139);
- /* harmony import */ var _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_4_3_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_10_2_1_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_2_2_4_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_2_2_1_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_payBox_vue_vue_type_style_index_0_id_6f09a324_lang_scss_rel_stylesheet_2Fscss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_4_3_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_10_2_1_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_2_2_4_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_2_2_1_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_payBox_vue_vue_type_style_index_0_id_6f09a324_lang_scss_rel_stylesheet_2Fscss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_4_3_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_10_2_1_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_2_2_4_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_2_2_1_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_payBox_vue_vue_type_style_index_0_id_6f09a324_lang_scss_rel_stylesheet_2Fscss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_4_3_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_10_2_1_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_2_2_4_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_2_2_1_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_payBox_vue_vue_type_style_index_0_id_6f09a324_lang_scss_rel_stylesheet_2Fscss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 151:
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
- var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);
- // Module
- ___CSS_LOADER_EXPORT___.push([module.i, ".col_red[data-v-6f09a324]{color:#f11111}.col_green[data-v-6f09a324]{color:#44be95}.col_white[data-v-6f09a324]{color:#fff}.flex-col[data-v-6f09a324]{flex-direction:column}.flex-j-c[data-v-6f09a324]{justify-content:center}.flex-j-sb[data-v-6f09a324]{justify-content:space-between}.flex-j-ar[data-v-6f09a324]{justify-content:space-around}.flex-a-c[data-v-6f09a324]{align-items:center}.flex-a-e[data-v-6f09a324]{align-items:flex-end}.w[data-v-6f09a324]{width:1200px}.m-auto[data-v-6f09a324]{margin:0 auto}.height-one[data-v-6f09a324]{height:100%}.flex[data-v-6f09a324]{display:flex}.text-overflow[data-v-6f09a324]{-webkit-line-clamp:4}.text-overflow[data-v-6f09a324],.text-overflow-2[data-v-6f09a324]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-6f09a324]{-webkit-line-clamp:2}.text-overflow-3[data-v-6f09a324]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-6f09a324],.text-overflow-3[data-v-6f09a324]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-6f09a324]{white-space:nowrap}.hiddenScroll[data-v-6f09a324]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-6f09a324]::-webkit-scrollbar{display:none}.finger-point[data-v-6f09a324]{cursor:pointer}.cursor-default[data-v-6f09a324]{cursor:default}.el-icon-circle-close[data-v-6f09a324]{color:#fff}.dialog_pay[data-v-6f09a324] .el-input{width:336px;height:42px}.dialog_pay[data-v-6f09a324] .el-dialog__body{padding:40px 0 30px}.dialog_pay[data-v-6f09a324] .el-dialog__header{border-bottom:1px solid #f2f2f2}.dialog_pay[data-v-6f09a324] .el-form-item__label{text-align:left!important;font-size:16px}.pay_way[data-v-6f09a324]{flex-wrap:wrap}.pay_way .way[data-v-6f09a324]{cursor:pointer;min-width:120px;min-height:60px;border-radius:5px;border:1px solid #cacaca;margin:10px;padding:0 10px}.pay_way .way .radio_button[data-v-6f09a324]{margin-right:10px;border-radius:50%;width:10px;height:10px;background-color:#e1e1e1}.border_spe[data-v-6f09a324]{border:1px solid var(--color)!important}.radio[data-v-6f09a324]{background-color:var(--color)!important}.btn_wrap[data-v-6f09a324]{margin-top:50px;padding-left:270px}.btn_wrap .el-button[data-v-6f09a324]{width:134px;height:43px;border-radius:4px;font-size:16px}.dialog_qr[data-v-6f09a324] .el-dialog__header{padding:0;height:56px;background-color:#f5f8fa;display:flex;align-items:center;justify-content:center}.dialog_qr[data-v-6f09a324] .el-dialog__body{padding:0}.qr_content[data-v-6f09a324]{padding-top:33px;padding-bottom:27px;text-align:center}.qr_content .qr_code[data-v-6f09a324]{width:220px;height:220px;margin-bottom:20px}.qr_content .qr_code #qrccode-canvas2[data-v-6f09a324]{width:220px!important;height:220px!important}.pay-status-box[data-v-6f09a324]{text-align:center;padding-bottom:20px}.pay-status-box i[data-v-6f09a324]{font-size:80px;color:var(--color);margin:10px auto}.pay-status-box .el-icon-error[data-v-6f09a324]{color:#f11111}.pay-status-box .pay-tips[data-v-6f09a324]{font-size:16px;font-weight:700;margin:10px auto 20px}", ""]);
- // Exports
- module.exports = ___CSS_LOADER_EXPORT___;
- /***/ }),
- /***/ 155:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_@nuxt_components@2.2.1@@nuxt/components/dist/loader.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./components/default/payBox.vue?vue&type=template&id=6f09a324&scoped=true&
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-dialog',{staticClass:"dialog_pay",attrs:{"title":"选择支付方式","visible":_vm.dialogPay,"width":"878px"},on:{"update:visible":function($event){_vm.dialogPay=$event},"closed":_vm.goBack}},[_c('div',[_c('el-form',{staticStyle:{"padding-left":"140px"},attrs:{"label-width":"106px"}},[_c('el-form-item',{attrs:{"label":"支付金额"}},[_c('span',{staticClass:"col_red"},[_vm._v("¥ "+_vm._s(_vm.money))])]),_vm._v(" "),(_vm.from === 'course')?_c('el-form-item',{attrs:{"label":"打赏课程"}},[_c('span',{staticClass:"col_red"},[_vm._v(_vm._s(_vm.pay_sn))])]):_vm._e(),_vm._v(" "),(_vm.from === 'micro')?_c('el-form-item',{attrs:{"label":"赞赏用户"}},[_c('span',{staticClass:"col_red"},[_vm._v(_vm._s(_vm.pay_sn))])]):_vm._e(),_vm._v(" "),(_vm.from === 'notice')?_c('el-form-item',{attrs:{"label":"付费文章"}},[_c('span',{staticClass:"col_red"},[_vm._v(_vm._s(_vm.pay_sn))])]):_vm._e(),_vm._v(" "),(_vm.from === 'pay')?_c('el-form-item',{attrs:{"label":"支付流水号"}},[_c('span',[_vm._v(_vm._s(_vm.pay_sn))])]):_vm._e(),_vm._v(" "),_c('el-form-item',{staticClass:"spe",staticStyle:{"min-height":"60px"},attrs:{"label":"支付方式"}},[_c('div',{staticClass:"flex pay_way",staticStyle:{"flex-wrap":"wrap"}},_vm._l((_vm.pay_way),function(item,index){return _c('div',{key:index,staticClass:"flex flex-a-c flex-j-c way",class:[item.value==_vm.pay_select?'border_spe':''],staticStyle:{"margin-bottom":"10px"},on:{"click":function($event){return _vm.changeIndex(item)}}},[_c('div',{staticClass:"radio_button",class:[item.value==_vm.pay_select?'radio':'']}),_vm._v(" "),(item.value==3)?_c('img',{staticStyle:{"margin-right":"5px","width":"28px","height":"28px"},attrs:{"src":__webpack_require__(144)}}):_vm._e(),_vm._v(" "),(item.value==28||item.value==57 || item.value==50)?_c('img',{staticStyle:{"margin-right":"5px"},attrs:{"src":__webpack_require__(145)}}):_vm._e(),_vm._v(" "),(item.value==2||item.value==29)?_c('img',{staticStyle:{"margin-right":"5px"},attrs:{"src":__webpack_require__(146)}}):_vm._e(),_vm._v("\n "+_vm._s(item.name)+"\n ")])}),0)])],1),_vm._v(" "),_c('div',{staticClass:"btn_wrap flex"},[_c('el-button',{staticClass:"flex flex-a-c flex-j-c",on:{"click":function($event){_vm.dialogPay=false}}},[_vm._v("关闭")]),_vm._v(" "),(_vm.from === 'notice')?_c('el-button',{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{"type":"primary"},on:{"click":_vm.payNoticeMoney}},[_vm._v("立即支付\n ")]):_vm._e(),_vm._v(" "),(!_vm.from || _vm.from === 'pay')?_c('el-button',{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{"type":"primary"},on:{"click":_vm.payMoney}},[_vm._v("立即支付\n ")]):_vm._e(),_vm._v(" "),(_vm.from === 'course')?_c('el-button',{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{"type":"primary"},on:{"click":_vm.payPost}},[_vm._v("立即打赏\n ")]):_vm._e(),_vm._v(" "),(_vm.from === 'micro')?_c('el-button',{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{"type":"primary"},on:{"click":_vm.payMicroPost}},[_vm._v("立即赞赏\n ")]):_vm._e()],1)],1)]),_vm._ssrNode(" "),_c('el-dialog',{staticClass:"dialog_qr",attrs:{"title":"提示","visible":_vm.show_qrcode,"width":"450px","close-on-click-modal":false},on:{"update:visible":function($event){_vm.show_qrcode=$event},"closed":_vm.goBack}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.show_pay_status),expression:"!show_pay_status"}],staticClass:"qr_content"},[_c('div',{staticStyle:{"margin-bottom":"25px"}},[_vm._v("请在2小时内完成支付")]),_vm._v(" "),_c('div',{staticClass:"qr_code m-auto"},[_c('canvas',{attrs:{"id":"qrccode-canvas2"}})]),_vm._v(" "),_c('div',{staticStyle:{"margin-bottom":"34px"}},[_vm._v("微信扫码支付")])]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show_pay_status && _vm.pay_success),expression:"show_pay_status && pay_success"}],staticClass:"pay-status-box"},[_c('div',[_c('i',{staticClass:"el-icon-success"})]),_vm._v(" "),_c('p',{staticClass:"pay-tips"},[_vm._v("支付成功")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","plain":""},on:{"click":function($event){return _vm.toUrl('order')}}},[_vm._v("查看订单列表")])],1),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show_pay_status && !_vm.pay_success),expression:"show_pay_status && !pay_success"}],staticClass:"pay-status-box"},[_c('div',[_c('i',{staticClass:"el-icon-error"})]),_vm._v(" "),_c('p',{staticClass:"pay-tips"},[_vm._v("支付失败")]),_vm._v(" "),_c('el-button',{attrs:{"type":"danger","plain":""},on:{"click":function($event){return _vm.toUrl('order')}}},[_vm._v("查看订单列表")])],1)]),_vm._ssrNode(" "),_c('el-dialog',{staticClass:"dialog_pay",attrs:{"title":"请输入余额支付密码","visible":_vm.popupSpecs,"width":"878px"},on:{"update:visible":function($event){_vm.popupSpecs=$event},"closed":_vm.goBack}},[_c('el-form',[_c('el-form-item',{staticClass:"flex flex-j-c",attrs:{"label":"余额支付密码"}},[_c('el-input',{attrs:{"type":"password","placeholder":"请输入密码"},model:{value:(_vm.balancePwd),callback:function ($$v) {_vm.balancePwd=$$v},expression:"balancePwd"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"flex flex-j-c",staticStyle:{"margin-top":"50px"}},[_c('el-button',{staticClass:"flex flex-a-c flex-j-c",on:{"click":function($event){_vm.popupSpecs=false}}},[_vm._v("关闭")]),_vm._v(" "),_c('el-button',{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{"type":"primary"},on:{"click":_vm.getVerifyPassword}},[_vm._v("\n 立即支付\n ")])],1)],1)],2)}
- var staticRenderFns = []
- // CONCATENATED MODULE: ./components/default/payBox.vue?vue&type=template&id=6f09a324&scoped=true&
- // EXTERNAL MODULE: external "qrcode"
- var external_qrcode_ = __webpack_require__(35);
- var external_qrcode_default = /*#__PURE__*/__webpack_require__.n(external_qrcode_);
- // CONCATENATED MODULE: ./node_modules/_babel-loader@8.2.3@babel-loader/lib??ref--2-0!./node_modules/_@nuxt_components@2.2.1@@nuxt/components/dist/loader.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./components/default/payBox.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- var canvas = "";
- /* harmony default export */ var payBoxvue_type_script_lang_js_ = ({
- name: "payBox",
- props: {
- orderPayId: Number,
- money: String,
- pay_sn: String,
- order_pay_id: Number,
- pay_way: Array,
- from: String,
- noJump: {
- type: Boolean,
- default: false
- },
- rewardTypes: Number,
- trick_id: Number
- },
- data() {
- return {
- interval: null,
- balancePwd: "",
- popupSpecs: false,
- show_qrcode: false,
- pay_select: 1,
- pay_name: "",
- dialogPay: false,
- show_pay_status: false,
- pay_success: false
- };
- },
- methods: {
- showPay() {
- if (this.interval) {
- clearInterval(this.interval);
- }
- this.dialogPay = true;
- },
- toUrl(url, params) {
- if (!this.from) {
- this.goBack();
- return;
- }
- this.$router.push(this.fun.getUrl(url, params));
- },
- createQrc(_url) {
- // this.init()
- this.$nextTick(function () {
- // DOM操作
- canvas = document.getElementById("qrccode-canvas2");
- external_qrcode_default.a.toCanvas(canvas, _url, error => {
- if (error) {
- console.log(error);
- }
- });
- });
- },
- goBack() {
- this.show_qrcode = false;
- this.popupSpecs = false;
- this.balancePwd = "";
- if (this.interval) {
- clearInterval(this.interval);
- }
- if (this.from === "pay" && !this.noJump) {
- this.$router.push(this.fun.getUrl("order"));
- } else {
- this.dialogPay = false;
- this.$emit("paySuccess", true);
- } // this.$router.go(-1)
- },
- // 微社区打赏支付
- payMicroPost() {
- if (this.pay_select != 3 && this.pay_select != 2 && this.pay_select != 6) {
- this.$message.error("PC端目前不支持该付款方式,请在移动端支付");
- return;
- }
- let url = "plugin.micro-communities.api.reward-log.index";
- let json = {
- pay_method: this.pay_select,
- amount: this.money,
- pay_name: this.pay_name
- };
- if (this.rewardTypes == 0) {
- // 帖子打赏
- json.trick_id = this.trick_id;
- } else {
- // 评论打赏
- url = "plugin.micro-communities.api.reward-log.commentPay";
- json.comment_id = this.trick_id;
- }
- this.fun.$get(url, json, "..").then(response => {
- if (response.result == 1) {
- if (this.pay_select == 3) {
- if (this.need_password) {
- this.popupSpecs = true;
- this.balancePwd = "";
- } else {
- this.dialogPay = false;
- this.$message.success(response.msg);
- this.$emit("paySuccess", true);
- }
- } else if (this.pay_select == 2) {
- // 支付宝
- window.location.href = response.data; // window.open(response.data, "_blank");
- } else if (this.pay_select == 6) {
- // 微信
- window.location.href = response.data;
- } else {
- this.$message.error("PC端目前不支持该付款方式,请在移动端支付");
- }
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- // 课程打赏支付
- payPost() {
- if (this.pay_select != 3 && this.pay_select != 2 && this.pay_select != 6) {
- this.$message.error("PC端目前不支持该付款方式,请在移动端支付");
- return;
- }
- let json = {
- pay_method: this.pay_select,
- amount: this.money,
- pay_name: this.pay_name,
- goods_id: this.order_pay_id // 商品id
- };
- this.fun.$get("plugin.video-demand.api.lecturer-reward.run-reward-pay", json, "..").then(response => {
- if (response.result == 1) {
- if (this.pay_select == 3) {
- if (this.need_password) {
- this.popupSpecs = true;
- this.balancePwd = "";
- } else {
- this.dialogPay = false;
- this.$message.success(response.msg);
- this.$emit("paySuccess", true);
- }
- } else if (this.pay_select == 2) {
- // 支付宝
- window.location.href = response.data; // window.open(response.data, "_blank");
- } else if (this.pay_select == 6) {
- // 微信
- window.location.href = response.data;
- } else {
- this.$message.error("PC端目前不支持该付款方式,请在移动端支付");
- }
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- // 付费文章
- payNoticeMoney() {
- if (this.pay_select != 3 && this.pay_select != 2 && this.pay_select != 6) {
- this.$message.error("PC端目前不支持该付款方式,请在移动端支付");
- return;
- }
- let json = {
- pay_id: this.pay_select,
- money: this.money,
- pay_name: this.pay_name,
- id: this.order_pay_id,
- // 文章id
- art: 'pay'
- };
- this.fun.$get("plugin.article-pay.api.index.orderPay", json, "..").then(response => {
- if (response.result == 1) {
- if (this.pay_select == 3) {
- if (this.need_password) {
- this.popupSpecs = true;
- this.balancePwd = "";
- } else {
- this.dialogPay = false;
- this.$message.success(response.msg);
- this.$emit("paySuccess", true);
- }
- } else if (this.pay_select == 2) {
- // 支付宝
- window.location.href = response.data; // window.open(response.data, "_blank");
- } else if (this.pay_select == 6) {
- // 微信
- window.location.href = response.data;
- } else {
- this.$message.error("PC端目前不支持该付款方式,请在移动端支付");
- }
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- // 商城订单付费
- payMoney() {
- if (this.pay_select == 3) {
- if (this.need_password) {
- this.popupSpecs = true;
- this.balancePwd = "";
- } else {
- this.balancePay();
- }
- } else if (this.pay_select == 2) {
- this.aliPayOrder();
- } else if (this.pay_select == 17) {
- this.payNoMoney();
- } else if (this.pay_select == 29) {
- this.getwechatPayAili();
- } else if (this.pay_select == 28) {
- this.getwechatPay();
- } else if (this.pay_select == 57) {
- this.pcweixin();
- } else {
- this.$message.error('PC端暂不支持该支付方式!');
- }
- },
- changeIndex(item) {
- if (item.need_password) {
- this.need_password = item.need_password;
- }
- this.pay_select = item.value;
- this.pay_name = item.name;
- },
- balancePay(password) {
- let json = {
- order_pay_id: this.order_pay_id
- };
- if (!this.fun.isTextEmpty(password)) {
- json = {
- order_pay_id: this.order_pay_id,
- payment_password: password
- };
- }
- this.fun.$get("order.credit-merge-pay.credit2", json, "").then(response => {
- if (response.result == 1) {
- this.$message.success(response.msg);
- this.dialogPay = false;
- this.$emit("paySuccess", true);
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- aliPayOrder() {
- let payUrl = "order.merge-pay.alipay";
- this.fun.$get(payUrl, {
- order_pay_id: this.order_pay_id
- }, "支付中").then(response => {
- if (response.result == 1) {
- window.location.href = response.data;
- this.$message.success(response.msg);
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- payNoMoney() {
- let payUrl = "order.mergePay.COD";
- this.fun.$get(payUrl, {
- order_pay_id: this.order_pay_id
- }, "支付中").then(response => {
- if (response.result == 1) {
- this.$message.success(response.msg);
- this.show_pay_status = true;
- this.pay_success = true;
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- //汇聚阿里支付
- getwechatPayAili() {
- let payUrl = "order.merge-pay.alipay-pay-hj";
- this.fun.$get(payUrl, {
- order_pay_id: this.order_pay_id
- }, "支付中").then(response => {
- if (response.result == 1) {
- window.location.href = response.data.data.rc_Result;
- this.$message.success(response.msg);
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- getOrderStatus() {
- this.fun.$get('payment.pc-scan.index', {
- order_ids: this.orderPayId
- }).then(response => {
- if (response.result == 1) {
- if (response.data.pay_status) {
- // if (response.data.redirect) {
- // setTimeout(() => {
- // window.location.href = response.data.redirect
- // }, 3000);
- // }
- clearInterval(this.interval);
- this.show_pay_status = true;
- this.pay_success = true;
- }
- } else {
- clearInterval(this.interval);
- this.show_pay_status = true;
- this.pay_success = false;
- this.$message.error(response.msg);
- }
- });
- },
- pcweixin() {
- let payUrl = "order.merge-pay.wechat-native";
- this.fun.$get(payUrl, {
- order_pay_id: this.order_pay_id
- }, "加载中").then(response => {
- if (response.result == 1) {
- this.createQrc(response.data.code_url);
- this.show_qrcode = true;
- if (this.orderPayId) {
- this.interval = setInterval(() => {
- this.getOrderStatus();
- }, 3000);
- }
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- // 第三方支付 微信支付-汇聚
- getwechatPay() {
- let payUrl = "order.merge-pay.wechat-pay-hj";
- this.fun.$get(payUrl, {
- order_pay_id: this.order_pay_id
- }, "加载中").then(response => {
- if (response.result == 1) {
- this.createQrc(response.data.data.rc_Result);
- this.show_qrcode = true;
- } else {
- this.$message.error(response.msg);
- }
- });
- },
- getVerifyPassword() {
- this.fun.$get("payment.password.check", {
- password: this.balancePwd
- }, "").then(response => {
- if (response.result == 1) {
- this.balancePay(this.balancePwd);
- this.popupSpecs = false;
- } else {
- this.$message.error(response.msg);
- this.popupSpecs = false;
- this.dialogPay = false;
- }
- });
- }
- }
- });
- // CONCATENATED MODULE: ./components/default/payBox.vue?vue&type=script&lang=js&
- /* harmony default export */ var default_payBoxvue_type_script_lang_js_ = (payBoxvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.9.8@vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/default/payBox.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(150)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- default_payBoxvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "6f09a324",
- "5b0b0f60"
-
- )
- /* harmony default export */ var payBox = __webpack_exports__["default"] = (component.exports);
- /***/ })
- };;
- //# sourceMappingURL=default-pay-box.js.map
|