475 lines
29 KiB
JavaScript
475 lines
29 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/confirmOrder/confirmOrder"],{
|
|
|
|
/***/ 72:
|
|
/*!**************************************************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/main.js?{"page":"pagesA%2FconfirmOrder%2FconfirmOrder"} ***!
|
|
\**************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 4);
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));
|
|
var _confirmOrder = _interopRequireDefault(__webpack_require__(/*! ./pagesA/confirmOrder/confirmOrder.vue */ 73));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
|
createPage(_confirmOrder.default);
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 73:
|
|
/*!*******************************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/confirmOrder/confirmOrder.vue ***!
|
|
\*******************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./confirmOrder.vue?vue&type=template&id=128872eb& */ 74);
|
|
/* harmony import */ var _confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./confirmOrder.vue?vue&type=script&lang=js& */ 76);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _confirmOrder_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 _confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony import */ var _HbuilderX_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/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
_confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
null,
|
|
null,
|
|
false,
|
|
_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "pagesA/confirmOrder/confirmOrder.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 74:
|
|
/*!**************************************************************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/confirmOrder/confirmOrder.vue?vue&type=template&id=128872eb& ***!
|
|
\**************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./confirmOrder.vue?vue&type=template&id=128872eb& */ 75);
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_template_id_128872eb___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 75:
|
|
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/confirmOrder/confirmOrder.vue?vue&type=template&id=128872eb& ***!
|
|
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! 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
|
|
var render = function() {
|
|
var _vm = this
|
|
var _h = _vm.$createElement
|
|
var _c = _vm._self._c || _h
|
|
if (!_vm._isMounted) {
|
|
_vm.e0 = function($event) {
|
|
_vm.isBtn = false
|
|
}
|
|
}
|
|
}
|
|
var recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 76:
|
|
/*!********************************************************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/confirmOrder/confirmOrder.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 _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./confirmOrder.vue?vue&type=script&lang=js& */ 77);
|
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_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_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_confirmOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 77:
|
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/confirmOrder/confirmOrder.vue?vue&type=script&lang=js& ***!
|
|
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! 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 successpopu = function successpopu() {__webpack_require__.e(/*! require.ensure | components/successpopu */ "components/successpopu").then((function () {return resolve(__webpack_require__(/*! @/components/successpopu.vue */ 242));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
components: {
|
|
successpopu: successpopu },
|
|
|
|
data: function data() {
|
|
return {
|
|
infoArr: [
|
|
{ title: '商品总额', price: '0.00', src: '' },
|
|
{ title: '分红抵扣', price: '0.00', src: '/static/img/my/youj.png' },
|
|
{ title: '配送费', price: '0.00', src: '' },
|
|
{ title: '本单分红', price: '0.00', src: '' },
|
|
{ title: '订单备注', price: '', src: '' }],
|
|
|
|
orderBZ: '',
|
|
isBtn: false,
|
|
fhprice: '',
|
|
isShow: false,
|
|
isSuccess: true,
|
|
title: '',
|
|
content: '',
|
|
disabled: false,
|
|
btncon: '确认提交',
|
|
usableAmount: '', //可用的分红抵扣金额
|
|
zBig: '', //最大可抵扣实际金额
|
|
percentage: 0, //抵扣比例
|
|
len: 10,
|
|
placeCon: '请输入您想要抵扣的金额',
|
|
disf: false,
|
|
listInfo: [],
|
|
listAddress: '',
|
|
hPrice: '', //合计金额
|
|
shijPrice: '0.0', //实际获得金额
|
|
orderInfo: '', //订单信息
|
|
typeNum: '1',
|
|
lenaddr: 0,
|
|
whereCome: 0,
|
|
newsku_list: [],
|
|
statusHNH: uni.getStorageSync('statusHNH') };
|
|
|
|
},
|
|
onUnload: function onUnload() {
|
|
uni.removeStorageSync('isAddr');
|
|
},
|
|
onShow: function onShow() {
|
|
this.$toolAll.tools.guoq();
|
|
this.checkAddress(); // 查询地址
|
|
},
|
|
onLoad: function onLoad(option) {var _this = this;
|
|
// console.log(this.infoArr[3].price);
|
|
// this.checkFHE()
|
|
if (option.index != undefined) this.whereCome = option.index;
|
|
this.orderInfo = uni.getStorageSync('orderInfo');
|
|
// console.log('订单:',this.orderInfo);
|
|
this.orderInfo.list.forEach(function (item) {
|
|
var obj = {
|
|
coding: item.coding,
|
|
id: item.id,
|
|
main_image: _this.$http + item.main_image,
|
|
num: item.num,
|
|
original_price: item.original_price,
|
|
price: item.price,
|
|
sku_name: item.sku_name,
|
|
spec_summary: item.spec_summary,
|
|
spu_id: item.spu_id,
|
|
spu_name: item.spu_name,
|
|
stock: item.stock,
|
|
sub_title: item.sub_title };
|
|
|
|
_this.listInfo.push(obj);
|
|
});
|
|
this.listInfo.forEach(function (iteml) {
|
|
var nskObj = {
|
|
sku_coding: iteml.coding,
|
|
num: iteml.num };
|
|
|
|
_this.newsku_list.push(nskObj);
|
|
});
|
|
// console.log('参数',this.orderInfo);
|
|
//商品总额
|
|
this.infoArr[0].price = (this.orderInfo.original_total / 100).toFixed(2);
|
|
//运费
|
|
this.infoArr[2].price = (this.orderInfo.freight / 100).toFixed(2);
|
|
//可用分红额度
|
|
this.usableAmount = (this.orderInfo.bonus_amount / 100).toFixed(2);
|
|
if (this.usableAmount == 0) {
|
|
this.placeCon = '暂无可用分红金额';
|
|
this.disf = true;
|
|
}
|
|
//抵扣比例
|
|
this.percentage = this.orderInfo.bonus_rate;
|
|
// 实际金额
|
|
// console.log('总金额+运费=',this.infoArr[0].price*1 + this.infoArr[2].price*1);//没问题
|
|
|
|
this.hPrice = this.infoArr[0].price * 1 + this.infoArr[2].price * 1 - this.infoArr[1].price * 1;
|
|
// 本单分红
|
|
this.infoArr[3].price = (this.hPrice * (this.percentage / 100)).toFixed(2);
|
|
// 实际获得金额
|
|
// this.shijPrice = (this.orderInfo.bonus_amount * this.orderInfo.deduction_rate/100).toFixed(2)
|
|
// 地址
|
|
this.listAddress = this.orderInfo.address;
|
|
|
|
|
|
var getisAddr = uni.getStorageSync('isAddr');
|
|
if (getisAddr != '') this.listAddress = getisAddr;
|
|
|
|
// console.log(this.listAddress);
|
|
|
|
},
|
|
methods: {
|
|
// checkFHE(){//查询可用分红额度
|
|
// this.$requst.post('order/bonus-info').then(res=>{
|
|
// if(res.code==0){
|
|
// this.usableAmount = res.data.bonus
|
|
// this.percentage = res.data.bonus_deduction_rate
|
|
// if(this.usableAmount==0){
|
|
// this.placeCon = '暂无可用分红金额'
|
|
// this.disf = true
|
|
// }
|
|
// this.infoArr[3].price = this.infoArr[0].price*(this.percentage/100)
|
|
// // console.log(this.infoArr);
|
|
// }
|
|
// // console.log(res);
|
|
// },error=>{})
|
|
// },
|
|
checkAddress: function checkAddress() {var _this2 = this; //查询地址列表事件
|
|
this.$requst.post('user/address').then(function (res) {
|
|
if (res.code == 0) {
|
|
_this2.lenaddr = res.data.length;
|
|
if (_this2.listAddress == '') {
|
|
if (_this2.lenaddr != 0) {
|
|
res.data.forEach(function (item) {
|
|
if (item.is_default == 1) {
|
|
_this2.listAddress = item;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}, function (error) {});
|
|
},
|
|
confirm: function confirm() {var _this3 = this; //提交订单事件
|
|
var ya = this;
|
|
// console.log(this.listAddress);
|
|
if (this.lenaddr != 0) {
|
|
this.disabled = true;
|
|
this.btncon = '正在提交...';
|
|
// console.log('数据:',this.orderInfo);
|
|
// console.log('订单参数:',this.newsku_list);
|
|
var orderObj = {
|
|
sku_list: this.newsku_list,
|
|
total: this.hPrice * 100,
|
|
address_id: this.listAddress.id,
|
|
original_total: this.infoArr[0].price * 100,
|
|
bonus_amount: this.fhprice * 100,
|
|
bonus_deduction: this.infoArr[1].price * 100,
|
|
freight: this.orderInfo.freight,
|
|
bonus: this.infoArr[3].price * 100,
|
|
remarks: this.orderBZ //买家备注
|
|
};
|
|
console.log('创建订单参数', orderObj);
|
|
// console.log('随机数',this.$toolAll.tools.randomStr());
|
|
this.$requst.post('order/create', orderObj).then(function (res) {
|
|
// console.log('调起结果',res);
|
|
var dataInfo = res;
|
|
if (res.code == 0) {
|
|
if (dataInfo.data.needPay) {
|
|
uni.requestPayment({
|
|
provider: 'wxpay',
|
|
appId: dataInfo.data.payment_params.appId, //appId
|
|
timeStamp: dataInfo.data.payment_params.timeStamp, //时间戳
|
|
nonceStr: dataInfo.data.payment_params.nonceStr, //随机字符串
|
|
package: dataInfo.data.payment_params.package, //package
|
|
signType: dataInfo.data.payment_params.signType, //MD5
|
|
paySign: dataInfo.data.payment_params.sign, //签名
|
|
success: function success(res) {
|
|
_this3.btncon = '确认提交';
|
|
_this3.isShow = true;
|
|
_this3.isSuccess = true;
|
|
_this3.title = '恭喜你,购买成功';
|
|
_this3.content = '可以在个人中心--我的订单查看订单详情';
|
|
// console.log('success:' + JSON.stringify(res));
|
|
_this3.$requst.post('order/paid', { order_id: dataInfo.data.order_id }).then(function (result) {
|
|
// console.log('成功通知',result);
|
|
}, function (error) {});
|
|
},
|
|
fail: function fail(err) {
|
|
// console.log('fail:' + JSON.stringify(err));
|
|
_this3.disabled = false;
|
|
_this3.btncon = '确认提交';
|
|
} });
|
|
|
|
} else {
|
|
_this3.btncon = '确认提交';
|
|
_this3.isShow = true;
|
|
_this3.isSuccess = true;
|
|
_this3.title = '恭喜你,购买成功';
|
|
_this3.content = '可以在个人中心--我的订单查看订单详情';
|
|
// console.log('success:' + JSON.stringify(res));
|
|
_this3.$requst.post('order/paid', { order_id: dataInfo.data.order_id }).then(function (result) {
|
|
// console.log('成功通知',result);
|
|
}, function (error) {});
|
|
}
|
|
|
|
}
|
|
}, function (error) {});
|
|
} else {
|
|
this.$toolAll.tools.showToast('请先完善地址信息');
|
|
setTimeout(function () {
|
|
ya.chooseAddress();
|
|
}, 500);
|
|
}
|
|
},
|
|
changepopu: function changepopu() {
|
|
this.isShow = false;
|
|
},
|
|
clickfen: function clickfen(index) {
|
|
if (index == 1) {this.fhprice = '';}
|
|
index == 1 ? this.isBtn = true : this.isBtn = false;
|
|
},
|
|
chooseAddress: function chooseAddress() {
|
|
uni.navigateTo({
|
|
url: '/pagesB/adManagement/adManagement?isOrder=0' });
|
|
|
|
},
|
|
inputev: function inputev(e) {//分红金额输入框
|
|
var val = e.target.value;
|
|
var ya = this;
|
|
var result = this.$toolAll.tools.checkPrice(val, ya.usableAmount);
|
|
ya.len = result.len;
|
|
ya.fhprice = result.val;
|
|
if (ya.fhprice >= 100) {
|
|
ya.shijPrice = (ya.fhprice * ya.orderInfo.deduction_rate / 100).toFixed(2);
|
|
}
|
|
},
|
|
tankEv: function tankEv() {//立即使用事件
|
|
if (this.shijPrice == '') {this.shijPrice = '0.0';}
|
|
if (this.fhprice < 100) {
|
|
this.$toolAll.tools.showToast('抵扣金额最低 100');
|
|
} else {
|
|
this.infoArr[1].price = this.shijPrice;
|
|
if (this.infoArr[0].price - this.shijPrice <= 0) {
|
|
this.hPrice = 0;
|
|
} else {
|
|
this.hPrice = this.infoArr[0].price - this.shijPrice;
|
|
}
|
|
if (this.hPrice * this.percentage / 100 == 0) {
|
|
this.infoArr[3].price = '0.00';
|
|
} else {
|
|
this.infoArr[3].price = this.hPrice * this.percentage / 100;
|
|
}
|
|
this.isBtn = false;
|
|
}
|
|
} } };exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
/***/ })
|
|
|
|
},[[72,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/confirmOrder/confirmOrder.js.map
|