mall-laonong/unpackage/dist/dev/mp-weixin/pagesA/recharge/recharge.js

378 lines
24 KiB
JavaScript
Raw Normal View History

2022-07-31 02:14:22 +00:00
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/recharge/recharge"],{
2022-08-03 03:30:25 +00:00
/***/ 63:
2022-07-31 02:14:22 +00:00
/*!****************************************************************************!*\
2022-07-31 02:39:16 +00:00
!*** D://mall-laonong/main.js?{"page":"pagesA%2Frecharge%2Frecharge"} ***!
2022-07-31 02:14:22 +00:00
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
var _recharge = _interopRequireDefault(__webpack_require__(/*! ./pagesA/recharge/recharge.vue */ 64));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_recharge.default);
2022-07-31 02:14:22 +00:00
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
/***/ }),
2022-08-03 03:30:25 +00:00
/***/ 64:
2022-07-31 02:14:22 +00:00
/*!*********************************************************!*\
2022-07-31 02:39:16 +00:00
!*** D://mall-laonong/pagesA/recharge/recharge.vue ***!
2022-07-31 02:14:22 +00:00
\*********************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 03:30:25 +00:00
/* harmony import */ var _recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./recharge.vue?vue&type=template&id=2511df8b& */ 65);
/* harmony import */ var _recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./recharge.vue?vue&type=script&lang=js& */ 67);
2022-07-31 02:14:22 +00:00
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
2022-08-03 03:20:44 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
2022-07-31 02:14:22 +00:00
var renderjs
/* normalize component */
2022-08-03 03:20:44 +00:00
var component = Object(_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
2022-07-31 02:14:22 +00:00
_recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__["render"],
_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pagesA/recharge/recharge.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
2022-08-03 03:30:25 +00:00
/***/ 65:
2022-07-31 02:14:22 +00:00
/*!****************************************************************************************!*\
2022-07-31 02:39:16 +00:00
!*** D://mall-laonong/pagesA/recharge/recharge.vue?vue&type=template&id=2511df8b& ***!
2022-07-31 02:14:22 +00:00
\****************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 03:30:25 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./recharge.vue?vue&type=template&id=2511df8b& */ 66);
2022-08-03 03:20:44 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__["render"]; });
2022-07-31 02:14:22 +00:00
2022-08-03 03:20:44 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
2022-07-31 02:14:22 +00:00
2022-08-03 03:20:44 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
2022-07-31 02:14:22 +00:00
2022-08-03 03:20:44 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_template_id_2511df8b___WEBPACK_IMPORTED_MODULE_0__["components"]; });
2022-07-31 02:14:22 +00:00
/***/ }),
2022-08-03 03:30:25 +00:00
/***/ 66:
2022-07-31 02:14:22 +00:00
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
2022-07-31 02:39:16 +00:00
!*** ./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--16-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!D://mall-laonong/pagesA/recharge/recharge.vue?vue&type=template&id=2511df8b& ***!
2022-07-31 02:14:22 +00:00
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 = {
statusNav: function() {
2022-08-03 03:30:25 +00:00
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 137))
2022-07-31 02:14:22 +00:00
}
}
} 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 l0 = _vm.isLoading
? _vm.__map(_vm.amountList, function(item, index) {
var $orig = _vm.__get_orig(item)
var m0 = parseInt(item.money)
var m1 = parseInt(item.price)
return {
$orig: $orig,
m0: m0,
m1: m1
}
})
: null
var l1 = _vm.isLoading
? _vm.__map(_vm.detailedList, function(item, index) {
var $orig = _vm.__get_orig(item)
var m2 = parseFloat(item.money)
return {
$orig: $orig,
m2: m2
}
})
: null
_vm.$mp.data = Object.assign(
{},
{
$root: {
l0: l0,
l1: l1
}
}
)
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
2022-08-03 03:30:25 +00:00
/***/ 67:
2022-07-31 02:14:22 +00:00
/*!**********************************************************************************!*\
2022-07-31 02:39:16 +00:00
!*** D://mall-laonong/pagesA/recharge/recharge.vue?vue&type=script&lang=js& ***!
2022-07-31 02:14:22 +00:00
\**********************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 03:30:25 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./recharge.vue?vue&type=script&lang=js& */ 68);
2022-08-03 03:20:44 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_recharge_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
2022-07-31 02:14:22 +00:00
/***/ }),
2022-08-03 03:30:25 +00:00
/***/ 68:
2022-07-31 02:14:22 +00:00
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
2022-07-31 02:39:16 +00:00
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-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!D://mall-laonong/pagesA/recharge/recharge.vue?vue&type=script&lang=js& ***!
2022-07-31 02:14:22 +00:00
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default =
{
data: function data() {
return {
amountList: [], //充值模板
amountIndex: 0, //充值选中
amountPrice: '', //充值金额
detailedList: [], //明细列表
balance: '', //用户余额
flag: true,
isLoading: false };
},
onShow: function onShow() {
// 获取用户信息
this.getUserInfo();
// 获取充值模板
this.getAmountMode();
},
methods: {
// 获取个人信息
getUserInfo: function getUserInfo() {var _this = this;
this.$requst.post('/api/user/info').then(function (res) {
if (res.code == 0) {
console.log(res, '用户信息');
_this.balance = res.data.balance;
// 获取余额消费记录
_this.getPeiceDetailed();
}
});
},
// 获取充值模板
getAmountMode: function getAmountMode() {var _this2 = this;
this.$requst.post('/api/user/recharge-template-list').then(function (res) {
if (res.code == 0) {
console.log(res, '充值模板');
var amountArr = [];
res.data.forEach(function (item) {
var amountObj = {
id: item.id,
name: item.name,
money: item.money,
price: item.price,
status: item.status };
amountArr.push(amountObj);
});
_this2.amountList = amountArr;
_this2.amountPrice = _this2.$toolAll.tools.addXiaoShu(_this2.amountList[0].price);
}
});
},
// 获取余额消费记录
getPeiceDetailed: function getPeiceDetailed() {var _this3 = this;
uni.showLoading({
title: '加载中' });
this.$requst.post('/api/user/balance-log-list', { template_id: this.amountList[this.amountIndex].id }).then(function (res) {
if (res.code == 0) {
console.log(res, '余额记录');
_this3.detailedList = res.data;
}
uni.hideLoading();
_this3.isLoading = true;
});
},
// 选择充值金额
changeAmount: function changeAmount(index) {
if (index !== this.amountIndex) {
this.amountIndex = index;
this.amountPrice = this.$toolAll.tools.addXiaoShu(this.amountList[index].price);
}
},
// 发起充值
submitEv: function submitEv() {var _this4 = this;
if (this.flag) {
this.$requst.post('/api/recharge/create', { template_id: this.amountList[this.amountIndex].id }).then(function (res) {
if (res.code == 0) {
console.log(res, '发起充值');
// 调用微信支付
_this4.callPayMent(res.data);
} else {
_this4.$toolAll.tools.showToast(res.msg);
}
});
}
},
// 调用微信支付
2022-08-01 09:46:21 +00:00
callPayMent: function callPayMent(data) {var _this5 = this;
2022-07-31 02:14:22 +00:00
//调起支付
wx.requestPayment({
'timeStamp': data.timeStamp,
'nonceStr': data.nonceStr,
'package': data.package,
"signType": data.signType,
'paySign': data.sign,
'success': function success(res) {// 接口调用成功的回调函数
console.log('支付成功:', res);
2022-08-01 09:46:21 +00:00
_this5.amountConfirm(data.coding);
2022-07-31 02:14:22 +00:00
},
'fail': function fail(res) {// 接口调用失败的回调函数
console.log('支付失败:' + JSON.stringify(res));
} });
},
// 确认充值
2022-08-01 09:46:21 +00:00
amountConfirm: function amountConfirm(coding) {var _this6 = this;
2022-07-31 02:14:22 +00:00
this.$requst.post('/api/recharge/paid', { order_coding: coding }).then(function (res) {
if (res.code == 0) {
console.log(res, '充值成功');
2022-08-01 09:46:21 +00:00
_this6.$toolAll.tools.showToast('充值成功');
2022-07-31 02:14:22 +00:00
// 重新获取用户信息
2022-08-01 09:46:21 +00:00
_this6.getUserInfo();
2022-07-31 02:14:22 +00:00
setTimeout(function () {
2022-08-01 09:46:21 +00:00
_this6.flag = true;
2022-07-31 02:14:22 +00:00
}, 1200);
} else {
2022-08-01 09:46:21 +00:00
_this6.$toolAll.tools.showToast(res.msg);
2022-07-31 02:14:22 +00:00
setTimeout(function () {
2022-08-01 09:46:21 +00:00
_this6.flag = true;
2022-07-31 02:14:22 +00:00
}, 1200);
}
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
2022-08-03 03:30:25 +00:00
},[[63,"common/runtime","common/vendor"]]]);
2022-07-31 02:14:22 +00:00
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/recharge/recharge.js.map