683 lines
54 KiB
JavaScript
683 lines
54 KiB
JavaScript
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/order/pay"],{
|
|||
|
|
|
|||
|
|
/***/ 213:
|
|||
|
|
/*!********************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/main.js?{"page":"pages%2Forder%2Fpay"} ***!
|
|||
|
|
\********************************************************************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
|
|||
|
|
|
|||
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|||
|
|
__webpack_require__(/*! uni-pages */ 30);
|
|||
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
|
|||
|
|
var _pay = _interopRequireDefault(__webpack_require__(/*! ./pages/order/pay.vue */ 214));
|
|||
|
|
// @ts-ignore
|
|||
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|||
|
|
createPage(_pay.default);
|
|||
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 214:
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/order/pay.vue ***!
|
|||
|
|
\*************************************************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
__webpack_require__.r(__webpack_exports__);
|
|||
|
|
/* harmony import */ var _pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pay.vue?vue&type=template&id=34e3f284& */ 215);
|
|||
|
|
/* harmony import */ var _pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pay.vue?vue&type=script&lang=js& */ 217);
|
|||
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|||
|
|
/* harmony import */ var _pay_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pay.vue?vue&type=style&index=0&lang=less& */ 219);
|
|||
|
|
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 42);
|
|||
|
|
|
|||
|
|
var renderjs
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/* normalize component */
|
|||
|
|
|
|||
|
|
var component = Object(_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|||
|
|
_pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|||
|
|
_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|||
|
|
_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|||
|
|
false,
|
|||
|
|
null,
|
|||
|
|
null,
|
|||
|
|
null,
|
|||
|
|
false,
|
|||
|
|
_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|||
|
|
renderjs
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
component.options.__file = "pages/order/pay.vue"
|
|||
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 215:
|
|||
|
|
/*!********************************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/order/pay.vue?vue&type=template&id=34e3f284& ***!
|
|||
|
|
\********************************************************************************************************/
|
|||
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
__webpack_require__.r(__webpack_exports__);
|
|||
|
|
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pay.vue?vue&type=template&id=34e3f284& */ 216);
|
|||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|||
|
|
|
|||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|||
|
|
|
|||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|||
|
|
|
|||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_template_id_34e3f284___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 216:
|
|||
|
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|||
|
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/order/pay.vue?vue&type=template&id=34e3f284& ***!
|
|||
|
|
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|||
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
__webpack_require__.r(__webpack_exports__);
|
|||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
|||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
|||
|
|
var components
|
|||
|
|
try {
|
|||
|
|
components = {
|
|||
|
|
customNavbar: function () {
|
|||
|
|
return Promise.all(/*! import() | components/custom-navbar/custom-navbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/custom-navbar/custom-navbar")]).then(__webpack_require__.bind(null, /*! @/components/custom-navbar/custom-navbar.vue */ 1437))
|
|||
|
|
},
|
|||
|
|
uvCountDown: function () {
|
|||
|
|
return Promise.all(/*! import() | uni_modules/uv-count-down/components/uv-count-down/uv-count-down */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uv-count-down/components/uv-count-down/uv-count-down")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uv-count-down/components/uv-count-down/uv-count-down.vue */ 1594))
|
|||
|
|
},
|
|||
|
|
agreeRadio: function () {
|
|||
|
|
return __webpack_require__.e(/*! import() | components/agree-radio/agree-radio */ "components/agree-radio/agree-radio").then(__webpack_require__.bind(null, /*! @/components/agree-radio/agree-radio.vue */ 1538))
|
|||
|
|
},
|
|||
|
|
}
|
|||
|
|
} catch (e) {
|
|||
|
|
if (
|
|||
|
|
e.message.indexOf("Cannot find module") !== -1 &&
|
|||
|
|
e.message.indexOf(".vue") !== -1
|
|||
|
|
) {
|
|||
|
|
console.error(e.message)
|
|||
|
|
console.error("1. 排查组件名称拼写是否正确")
|
|||
|
|
console.error(
|
|||
|
|
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
|||
|
|
)
|
|||
|
|
console.error(
|
|||
|
|
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
|||
|
|
)
|
|||
|
|
} else {
|
|||
|
|
throw e
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
var render = function () {
|
|||
|
|
var _vm = this
|
|||
|
|
var _h = _vm.$createElement
|
|||
|
|
var _c = _vm._self._c || _h
|
|||
|
|
}
|
|||
|
|
var recyclableRender = false
|
|||
|
|
var staticRenderFns = []
|
|||
|
|
render._withStripped = true
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 217:
|
|||
|
|
/*!**************************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/order/pay.vue?vue&type=script&lang=js& ***!
|
|||
|
|
\**************************************************************************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
__webpack_require__.r(__webpack_exports__);
|
|||
|
|
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pay.vue?vue&type=script&lang=js& */ 218);
|
|||
|
|
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|||
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|||
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 218:
|
|||
|
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|||
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/order/pay.vue?vue&type=script&lang=js& ***!
|
|||
|
|
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
/* WEBPACK VAR INJECTION */(function(uni) {
|
|||
|
|
|
|||
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|||
|
|
Object.defineProperty(exports, "__esModule", {
|
|||
|
|
value: true
|
|||
|
|
});
|
|||
|
|
exports.default = void 0;
|
|||
|
|
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 34));
|
|||
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|||
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36));
|
|||
|
|
var _debounce = __webpack_require__(/*! ../../utils/debounce */ 190);
|
|||
|
|
var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 37));
|
|||
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|||
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|||
|
|
var customNavbar = function customNavbar() {
|
|||
|
|
Promise.all(/*! require.ensure | components/custom-navbar/custom-navbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/custom-navbar/custom-navbar")]).then((function () {
|
|||
|
|
return resolve(__webpack_require__(/*! @/components/custom-navbar/custom-navbar.vue */ 1437));
|
|||
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|||
|
|
};
|
|||
|
|
var _default = {
|
|||
|
|
components: {
|
|||
|
|
customNavbar: customNavbar
|
|||
|
|
},
|
|||
|
|
data: function data() {
|
|||
|
|
return {
|
|||
|
|
table_source: "order",
|
|||
|
|
//订单类型order:普通,order_self自营
|
|||
|
|
orderInfo: {
|
|||
|
|
id: '',
|
|||
|
|
pay_money: '',
|
|||
|
|
number: ''
|
|||
|
|
},
|
|||
|
|
urls: {
|
|||
|
|
order: {
|
|||
|
|
cancelorder: "/user/cancelorder",
|
|||
|
|
deleteorder: "/user/deleteorder"
|
|||
|
|
},
|
|||
|
|
order_self: {
|
|||
|
|
cancelorder: "/user/orderSelf/cancel",
|
|||
|
|
deleteorder: "/user/orderSelf/del"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
serverTitle: '',
|
|||
|
|
countdown: 0,
|
|||
|
|
selectedPayment: 'wechat',
|
|||
|
|
balance: '98489.98',
|
|||
|
|
timer: null,
|
|||
|
|
isPay: false,
|
|||
|
|
methodList: [{
|
|||
|
|
id: 1,
|
|||
|
|
name: '微信',
|
|||
|
|
payment: 'wechat',
|
|||
|
|
icon: '/static/images/wechat.png',
|
|||
|
|
selected: true
|
|||
|
|
}, {
|
|||
|
|
id: 2,
|
|||
|
|
name: '支付宝',
|
|||
|
|
payment: 'alipay',
|
|||
|
|
icon: '/static/images/alipay.png',
|
|||
|
|
selected: false
|
|||
|
|
}
|
|||
|
|
// {
|
|||
|
|
// id: 3,
|
|||
|
|
// name: '账户余额',
|
|||
|
|
// payment: 'balance',
|
|||
|
|
// icon: '/static/images/bankcard.png',
|
|||
|
|
// selected: false
|
|||
|
|
// }
|
|||
|
|
]
|
|||
|
|
};
|
|||
|
|
},
|
|||
|
|
onLoad: function onLoad(options) {
|
|||
|
|
// this.getUserInfo();
|
|||
|
|
console.log(options);
|
|||
|
|
if (options.table_source) {
|
|||
|
|
this.table_source = options.table_source;
|
|||
|
|
}
|
|||
|
|
if (options.id) {
|
|||
|
|
this.orderInfo.id = options.id;
|
|||
|
|
this.orderInfo.number = options.number;
|
|||
|
|
this.orderInfo.pay_money = options.money;
|
|||
|
|
this.serverTitle = options.title;
|
|||
|
|
console.log(this.orderInfo);
|
|||
|
|
// this.getOrderInfo()
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if (options.number) {
|
|||
|
|
this.getOderPayCountdown(options.number);
|
|||
|
|
// this.startCountdown()
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
onUnload: function onUnload() {
|
|||
|
|
if (this.timer) {
|
|||
|
|
clearInterval(this.timer);
|
|||
|
|
this.timer = null;
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
methods: {
|
|||
|
|
getOderPayCountdown: function getOderPayCountdown(number) {
|
|||
|
|
var _this = this;
|
|||
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|||
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|||
|
|
while (1) {
|
|||
|
|
switch (_context.prev = _context.next) {
|
|||
|
|
case 0:
|
|||
|
|
_context.next = 2;
|
|||
|
|
return _request.default.post('/user/getOderPayCountdown', {
|
|||
|
|
number: number
|
|||
|
|
}).then(function (result) {
|
|||
|
|
if (result.code == 200) {
|
|||
|
|
console.log(result[0].countdown);
|
|||
|
|
_this.countdown = result[0].countdown;
|
|||
|
|
if (!result[0].countdown) {
|
|||
|
|
_this.cancelService();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
case 2:
|
|||
|
|
case "end":
|
|||
|
|
return _context.stop();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, _callee);
|
|||
|
|
}))();
|
|||
|
|
},
|
|||
|
|
getUserInfo: function getUserInfo() {
|
|||
|
|
var _this2 = this;
|
|||
|
|
_request.default.post('/user/getuser', {
|
|||
|
|
type: 1
|
|||
|
|
}).then(function (result) {
|
|||
|
|
_this2.address.name = result.data.username;
|
|||
|
|
_this2.address.phone = result.data.account;
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
// 取消订单
|
|||
|
|
cancelService: function cancelService() {
|
|||
|
|
var _this3 = this;
|
|||
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|||
|
|
var id, data;
|
|||
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|||
|
|
while (1) {
|
|||
|
|
switch (_context2.prev = _context2.next) {
|
|||
|
|
case 0:
|
|||
|
|
id = '';
|
|||
|
|
_context2.next = 3;
|
|||
|
|
return _request.default.post('/user/getuser', {
|
|||
|
|
type: 1
|
|||
|
|
}).then(function (res) {
|
|||
|
|
console.log(res);
|
|||
|
|
id = res.data.id;
|
|||
|
|
});
|
|||
|
|
case 3:
|
|||
|
|
data = {
|
|||
|
|
orderNo: _this3.orderInfo.number,
|
|||
|
|
amount: "0.00",
|
|||
|
|
cancel_state: 1,
|
|||
|
|
cancel_id: id
|
|||
|
|
};
|
|||
|
|
_request.default.post(_this3.urls[_this3.table_source].cancelorder, data).then(function (res) {
|
|||
|
|
console.log(22222, res, data);
|
|||
|
|
}).catch(function (err) {
|
|||
|
|
console.log(err);
|
|||
|
|
}).finally(function () {
|
|||
|
|
setTimeout(function () {
|
|||
|
|
uni.switchTab({
|
|||
|
|
url: '/pages/order/userorder-list'
|
|||
|
|
});
|
|||
|
|
}, 2000);
|
|||
|
|
});
|
|||
|
|
case 5:
|
|||
|
|
case "end":
|
|||
|
|
return _context2.stop();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, _callee2);
|
|||
|
|
}))();
|
|||
|
|
},
|
|||
|
|
// 获取订单信息
|
|||
|
|
getOrderInfo: function getOrderInfo() {
|
|||
|
|
var _this4 = this;
|
|||
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|||
|
|
var res;
|
|||
|
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|||
|
|
while (1) {
|
|||
|
|
switch (_context3.prev = _context3.next) {
|
|||
|
|
case 0:
|
|||
|
|
_context3.prev = 0;
|
|||
|
|
_context3.next = 3;
|
|||
|
|
return _request.default.post('/order/detail', {
|
|||
|
|
id: _this4.orderInfo.id
|
|||
|
|
});
|
|||
|
|
case 3:
|
|||
|
|
res = _context3.sent;
|
|||
|
|
if (res.code === 0) {
|
|||
|
|
_this4.orderInfo = res.data;
|
|||
|
|
}
|
|||
|
|
_context3.next = 10;
|
|||
|
|
break;
|
|||
|
|
case 7:
|
|||
|
|
_context3.prev = 7;
|
|||
|
|
_context3.t0 = _context3["catch"](0);
|
|||
|
|
console.error('获取订单信息失败:', _context3.t0);
|
|||
|
|
case 10:
|
|||
|
|
case "end":
|
|||
|
|
return _context3.stop();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, _callee3, null, [[0, 7]]);
|
|||
|
|
}))();
|
|||
|
|
},
|
|||
|
|
// 选择支付方式
|
|||
|
|
selectMethod: function selectMethod(item) {
|
|||
|
|
this.selectedPayment = item.payment;
|
|||
|
|
this.methodList.forEach(function (method) {
|
|||
|
|
method.selected = method.id === item.id;
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
finish: function finish() {
|
|||
|
|
var _this5 = this;
|
|||
|
|
uni.showToast({
|
|||
|
|
title: '支付超时,请重新下单',
|
|||
|
|
icon: 'none'
|
|||
|
|
});
|
|||
|
|
setTimeout(function () {
|
|||
|
|
// uni.navigateBack()
|
|||
|
|
_this5.cancelService();
|
|||
|
|
}, 1500);
|
|||
|
|
},
|
|||
|
|
// 开始倒计时
|
|||
|
|
startCountdown: function startCountdown() {
|
|||
|
|
var _this6 = this;
|
|||
|
|
var time = 30 * 60; // 30分钟
|
|||
|
|
this.timer = setInterval(function () {
|
|||
|
|
time--;
|
|||
|
|
if (time <= 0) {
|
|||
|
|
clearInterval(_this6.timer);
|
|||
|
|
_this6.timer = null;
|
|||
|
|
uni.showToast({
|
|||
|
|
title: '支付超时,请重新下单',
|
|||
|
|
icon: 'none'
|
|||
|
|
});
|
|||
|
|
setTimeout(function () {
|
|||
|
|
uni.navigateBack();
|
|||
|
|
}, 1500);
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
var minutes = Math.floor(time / 60);
|
|||
|
|
var seconds = time % 60;
|
|||
|
|
_this6.countdown = "".concat(String(minutes).padStart(2, '0'), ":").concat(String(seconds).padStart(2, '0'));
|
|||
|
|
}, 1000);
|
|||
|
|
},
|
|||
|
|
// 确认支付 debounce
|
|||
|
|
confirmPay: function confirmPay() {
|
|||
|
|
var _this7 = this;
|
|||
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|||
|
|
var that, wechatpayfor, systemInfo, appId, orderInfo, alipayfor, res;
|
|||
|
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|||
|
|
while (1) {
|
|||
|
|
switch (_context4.prev = _context4.next) {
|
|||
|
|
case 0:
|
|||
|
|
that = _this7;
|
|||
|
|
if (!that.isPay) {
|
|||
|
|
_context4.next = 3;
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
return _context4.abrupt("return");
|
|||
|
|
case 3:
|
|||
|
|
_context4.prev = 3;
|
|||
|
|
uni.showLoading({
|
|||
|
|
title: '支付中...'
|
|||
|
|
});
|
|||
|
|
console.log(that.selectedPayment);
|
|||
|
|
_context4.t0 = that.selectedPayment;
|
|||
|
|
_context4.next = _context4.t0 === 'wechat' ? 9 : _context4.t0 === 'alipay' ? 23 : _context4.t0 === 'balance' ? 36 : 43;
|
|||
|
|
break;
|
|||
|
|
case 9:
|
|||
|
|
_context4.next = 11;
|
|||
|
|
return _request.default.post('/user/wechatpayfor', that.orderInfo);
|
|||
|
|
case 11:
|
|||
|
|
wechatpayfor = _context4.sent;
|
|||
|
|
console.log('wechatpayfor', wechatpayfor);
|
|||
|
|
if (!(wechatpayfor.code == 452)) {
|
|||
|
|
_context4.next = 17;
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
uni.showToast({
|
|||
|
|
title: wechatpayfor.msg || '支付失败,请重试',
|
|||
|
|
icon: 'none',
|
|||
|
|
duration: 2000
|
|||
|
|
});
|
|||
|
|
_this7.cancelService();
|
|||
|
|
return _context4.abrupt("return");
|
|||
|
|
case 17:
|
|||
|
|
systemInfo = uni.getSystemInfoSync();
|
|||
|
|
if (systemInfo.platform === 'ios') {
|
|||
|
|
appId = wechatpayfor.data.appid;
|
|||
|
|
delete wechatpayfor.data.appid;
|
|||
|
|
wechatpayfor.data['appId'] = appId;
|
|||
|
|
console.log('wechatpayfor2', wechatpayfor);
|
|||
|
|
}
|
|||
|
|
console.log('================================');
|
|||
|
|
uni.hideLoading();
|
|||
|
|
uni.requestPayment({
|
|||
|
|
provider: 'wxpay',
|
|||
|
|
orderInfo: wechatpayfor.data,
|
|||
|
|
//微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
|
|||
|
|
success: function success(res) {
|
|||
|
|
console.log('success:', res);
|
|||
|
|
console.log(that.orderInfo.id, that.orderInfo.number);
|
|||
|
|
// let rawdata = JSON.parse(res.rawdata);
|
|||
|
|
_request.default.post('/user/wechatsearchorder', {
|
|||
|
|
id: that.orderInfo.id,
|
|||
|
|
number: that.orderInfo.number
|
|||
|
|
}).then(function (orderRes) {
|
|||
|
|
// if(orderRes.trade_state == 'SUCCESS') {
|
|||
|
|
that.paySuccess();
|
|||
|
|
// }else if(orderRes.trade_state == 'NOTPAY') {
|
|||
|
|
// uni.showModal({
|
|||
|
|
// title: '提示',
|
|||
|
|
// content: '该订单未成功支付',
|
|||
|
|
// success: function (res) {
|
|||
|
|
// if (res.confirm) {
|
|||
|
|
// console.log('用户点击确定');
|
|||
|
|
// } else if (res.cancel) {
|
|||
|
|
// console.log('用户点击取消');
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
// });
|
|||
|
|
// }
|
|||
|
|
}).catch(function (err) {
|
|||
|
|
console.log('查询状态', err);
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
fail: function fail(err) {
|
|||
|
|
uni.showModal({
|
|||
|
|
title: '提示',
|
|||
|
|
content: '该订单未成功支付',
|
|||
|
|
success: function success(res) {
|
|||
|
|
if (res.confirm) {
|
|||
|
|
console.log('用户点击确定');
|
|||
|
|
} else if (res.cancel) {
|
|||
|
|
console.log('用户点击取消');
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
console.log('fail:', JSON.stringify(err));
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
return _context4.abrupt("break", 43);
|
|||
|
|
case 23:
|
|||
|
|
// 调用支付宝支付
|
|||
|
|
orderInfo = _objectSpread({}, that.orderInfo);
|
|||
|
|
orderInfo.title = that.serverTitle;
|
|||
|
|
_context4.next = 27;
|
|||
|
|
return _request.default.post('/user/alipayfor', orderInfo);
|
|||
|
|
case 27:
|
|||
|
|
alipayfor = _context4.sent;
|
|||
|
|
if (!(alipayfor.code == 452)) {
|
|||
|
|
_context4.next = 32;
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
uni.showToast({
|
|||
|
|
title: alipayfor.msg || '支付失败,请重试',
|
|||
|
|
icon: 'none',
|
|||
|
|
duration: 2000
|
|||
|
|
});
|
|||
|
|
_this7.cancelService();
|
|||
|
|
return _context4.abrupt("return");
|
|||
|
|
case 32:
|
|||
|
|
console.log('alipayfor', alipayfor);
|
|||
|
|
uni.hideLoading();
|
|||
|
|
uni.requestPayment({
|
|||
|
|
provider: 'alipay',
|
|||
|
|
orderInfo: alipayfor.data,
|
|||
|
|
//微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
|
|||
|
|
success: function success(res) {
|
|||
|
|
console.log('success:', res);
|
|||
|
|
console.log('id: ', that.orderInfo.id, 'number: ', that.orderInfo.number);
|
|||
|
|
console.log('ali支付成功了====================');
|
|||
|
|
_request.default.post('/user/alisearchorder', {
|
|||
|
|
id: that.orderInfo.id,
|
|||
|
|
number: that.orderInfo.number
|
|||
|
|
}).then(function (orderRes) {
|
|||
|
|
console.log('orderRes', orderRes, orderRes.trade_status);
|
|||
|
|
console.log('ali报错了】】】】】】】】】】】】】】');
|
|||
|
|
// if(orderRes.trade_status == 'TRADE_SUCCESS') {
|
|||
|
|
that.paySuccess();
|
|||
|
|
// }else {
|
|||
|
|
// uni.showModal({
|
|||
|
|
// title: '提示',
|
|||
|
|
// content: '该订单未成功支付',
|
|||
|
|
// success: function (res) {
|
|||
|
|
// if (res.confirm) {
|
|||
|
|
// console.log('用户点击确定');
|
|||
|
|
// } else if (res.cancel) {
|
|||
|
|
// console.log('用户点击取消');
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
// });
|
|||
|
|
// }
|
|||
|
|
}).catch(function (err) {
|
|||
|
|
console.log('ali报错了】】】】】】】】】】】】】】', err);
|
|||
|
|
console.log('查询状态', err);
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
fail: function fail(err) {
|
|||
|
|
uni.showModal({
|
|||
|
|
title: '提示',
|
|||
|
|
content: '该订单未成功支付',
|
|||
|
|
success: function success(res) {
|
|||
|
|
if (res.confirm) {
|
|||
|
|
console.log('用户点击确定');
|
|||
|
|
} else if (res.cancel) {
|
|||
|
|
console.log('用户点击取消');
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
console.log('fail:', JSON.stringify(err));
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
return _context4.abrupt("break", 43);
|
|||
|
|
case 36:
|
|||
|
|
_context4.next = 38;
|
|||
|
|
return _request.default.post('/user/balancepayfor', that.orderInfo);
|
|||
|
|
case 38:
|
|||
|
|
res = _context4.sent;
|
|||
|
|
console.log('余额支付结果', res);
|
|||
|
|
uni.hideLoading();
|
|||
|
|
if (res.state == 1) {
|
|||
|
|
that.paySuccess();
|
|||
|
|
} else if (res.state == 2) {
|
|||
|
|
uni.showToast({
|
|||
|
|
title: res.msg
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
return _context4.abrupt("break", 43);
|
|||
|
|
case 43:
|
|||
|
|
_context4.next = 51;
|
|||
|
|
break;
|
|||
|
|
case 45:
|
|||
|
|
_context4.prev = 45;
|
|||
|
|
_context4.t1 = _context4["catch"](3);
|
|||
|
|
uni.hideLoading();
|
|||
|
|
console.error('支付失败', _context4.t1);
|
|||
|
|
uni.showToast({
|
|||
|
|
title: '支付失败,请重试',
|
|||
|
|
icon: 'none'
|
|||
|
|
});
|
|||
|
|
_this7.isPay = false;
|
|||
|
|
case 51:
|
|||
|
|
case "end":
|
|||
|
|
return _context4.stop();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, _callee4, null, [[3, 45]]);
|
|||
|
|
}))();
|
|||
|
|
},
|
|||
|
|
// 支付成功
|
|||
|
|
paySuccess: function paySuccess() {
|
|||
|
|
var _this8 = this;
|
|||
|
|
uni.showToast({
|
|||
|
|
title: '支付成功',
|
|||
|
|
icon: 'success'
|
|||
|
|
});
|
|||
|
|
if (this.table_source == "order_self") {
|
|||
|
|
setTimeout(function () {
|
|||
|
|
uni.redirectTo({
|
|||
|
|
url: "/pages/order/pay-success?orderId=".concat(_this8.orderInfo.id, "&serviceType=2")
|
|||
|
|
});
|
|||
|
|
}, 50);
|
|||
|
|
} else {
|
|||
|
|
setTimeout(function () {
|
|||
|
|
uni.redirectTo({
|
|||
|
|
url: '/pages/order/pay-success?orderId=' + _this8.orderInfo.id
|
|||
|
|
});
|
|||
|
|
}, 50);
|
|||
|
|
}
|
|||
|
|
this.isPay = true;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
exports.default = _default;
|
|||
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 219:
|
|||
|
|
/*!***********************************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/order/pay.vue?vue&type=style&index=0&lang=less& ***!
|
|||
|
|
\***********************************************************************************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
__webpack_require__.r(__webpack_exports__);
|
|||
|
|
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-oneOf-1-2!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--10-oneOf-1-3!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-oneOf-1-5!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pay.vue?vue&type=style&index=0&lang=less& */ 220);
|
|||
|
|
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
|||
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|||
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pay_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 220:
|
|||
|
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|||
|
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-oneOf-1-2!./node_modules/postcss-loader/src??ref--10-oneOf-1-3!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!/Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/order/pay.vue?vue&type=style&index=0&lang=less& ***!
|
|||
|
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|||
|
|
|
|||
|
|
// extracted by mini-css-extract-plugin
|
|||
|
|
if(false) { var cssReload; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/***/ })
|
|||
|
|
|
|||
|
|
},[[213,"common/runtime","common/vendor"]]]);
|
|||
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/pay.js.map
|