378 lines
25 KiB
JavaScript
378 lines
25 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/myOrder/myOrder"],{
|
|
|
|
/***/ 66:
|
|
/*!****************************************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/main.js?{"page":"pagesA%2FmyOrder%2FmyOrder"} ***!
|
|
\****************************************************************************************/
|
|
/*! 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 _myOrder = _interopRequireDefault(__webpack_require__(/*! ./pagesA/myOrder/myOrder.vue */ 67));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
|
createPage(_myOrder.default);
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 67:
|
|
/*!*********************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/myOrder/myOrder.vue ***!
|
|
\*********************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _myOrder_vue_vue_type_template_id_e8f6c51e___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./myOrder.vue?vue&type=template&id=e8f6c51e& */ 68);
|
|
/* harmony import */ var _myOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./myOrder.vue?vue&type=script&lang=js& */ 70);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _myOrder_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 _myOrder_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"])(
|
|
_myOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_myOrder_vue_vue_type_template_id_e8f6c51e___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_myOrder_vue_vue_type_template_id_e8f6c51e___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
null,
|
|
null,
|
|
false,
|
|
_myOrder_vue_vue_type_template_id_e8f6c51e___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "pagesA/myOrder/myOrder.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 68:
|
|
/*!****************************************************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/myOrder/myOrder.vue?vue&type=template&id=e8f6c51e& ***!
|
|
\****************************************************************************************************/
|
|
/*! 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_myOrder_vue_vue_type_template_id_e8f6c51e___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!./myOrder.vue?vue&type=template&id=e8f6c51e& */ 69);
|
|
/* 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_myOrder_vue_vue_type_template_id_e8f6c51e___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_myOrder_vue_vue_type_template_id_e8f6c51e___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_myOrder_vue_vue_type_template_id_e8f6c51e___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_myOrder_vue_vue_type_template_id_e8f6c51e___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 69:
|
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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/myOrder/myOrder.vue?vue&type=template&id=e8f6c51e& ***!
|
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! 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
|
|
}
|
|
var recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 70:
|
|
/*!**********************************************************************************************!*\
|
|
!*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/myOrder/myOrder.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_myOrder_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!./myOrder.vue?vue&type=script&lang=js& */ 71);
|
|
/* 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_myOrder_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_myOrder_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_myOrder_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_myOrder_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_myOrder_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 71:
|
|
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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/myOrder/myOrder.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 backTop = function backTop() {__webpack_require__.e(/*! require.ensure | components/backTop */ "components/backTop").then((function () {return resolve(__webpack_require__(/*! @/components/backTop.vue */ 213));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
components: {
|
|
backTop: backTop },
|
|
|
|
data: function data() {
|
|
return {
|
|
whereCome: 0,
|
|
tabArr: ['全部', '待发货', '待收货', '待评价'],
|
|
current: 0,
|
|
dataArr: [[], [], [], []],
|
|
height: 750,
|
|
heightone: '',
|
|
showTop: false,
|
|
ordertab: 'ordertop',
|
|
tag: 'all',
|
|
total: '',
|
|
size: 50,
|
|
page: 1,
|
|
pingCon: '评价晒单',
|
|
shouCon: '申请售后',
|
|
statusHNH: uni.getStorageSync('statusHNH') };
|
|
|
|
},
|
|
onShow: function onShow() {
|
|
this.$toolAll.tools.guoq();
|
|
},
|
|
onLoad: function onLoad(options) {
|
|
// console.log(options);
|
|
this.whereCome = options.index;
|
|
if (options.num != undefined) this.current = options.num;
|
|
|
|
// let obj = uni.createSelectorQuery().select('.ptwo-box')
|
|
// obj.boundingClientRect(function (data) { // data - 各种参数
|
|
// console.log(data.height)
|
|
// }).exec()
|
|
// let obj1 = uni.createSelectorQuery().select('.statush')
|
|
// obj1.boundingClientRect(function (data) { // data - 各种参数
|
|
// console.log(data.height)
|
|
// }).exec()
|
|
this.checkList();
|
|
this.setHeight();
|
|
},
|
|
onPageScroll: function onPageScroll(e) {
|
|
e.scrollTop > 360 ? this.showTop = true : this.showTop = false;
|
|
},
|
|
methods: {
|
|
// 查询订单列表事件
|
|
checkList: function checkList() {var _this = this; //tag传参 all:全部 waiting_comment:待评价 paid:已付款 expired:已过期 shipped:已发货 waiting:待付款
|
|
var ya = this;
|
|
this.dataArr = [[], [], [], []];
|
|
this.$requst.post('user/order', { tag: this.tag, page: this.page, size: this.size }).then(function (res) {
|
|
// console.log('订单数据',res);
|
|
if (res.code == 0) {
|
|
if (res.data.list.length != 0) {
|
|
var list = [];
|
|
res.data.list.forEach(function (item) {
|
|
var numStatus = '';
|
|
var newArr = [];
|
|
if (item.status == 'paid') numStatus = 1;
|
|
if (item.status == 'shipped') numStatus = 2;
|
|
if (item.status == 'completed') numStatus = 3;
|
|
if (item.status == 'waiting') numStatus = 4;
|
|
item.skus.forEach(function (itemone) {
|
|
var orderObj = {
|
|
danId: itemone.id,
|
|
spu_id: itemone.spu_id,
|
|
src: _this.$http + itemone.sku_cover,
|
|
title: itemone.spu_name,
|
|
cate: itemone.sku_name,
|
|
num: itemone.num,
|
|
price: itemone.price / 100 };
|
|
|
|
newArr.push(orderObj);
|
|
// this.pingCon = '追加评价'
|
|
});
|
|
var listObj = {
|
|
id: item.id,
|
|
orderId: item.order_id,
|
|
allprice: item.price / 100,
|
|
is_after_sale: item.is_after_sale,
|
|
status: numStatus,
|
|
skuList: newArr,
|
|
original_price: item.original_price / 100 };
|
|
|
|
ya.dataArr[0].push(listObj);
|
|
if (numStatus == 1) {ya.dataArr[1].push(listObj);}
|
|
if (numStatus == 2) {ya.dataArr[2].push(listObj);}
|
|
if (numStatus == 3) {ya.dataArr[3].push(listObj);}
|
|
});
|
|
// console.log(ya.dataArr);
|
|
}
|
|
}
|
|
}, function (error) {});
|
|
},
|
|
confrimEv: function confrimEv(index) {var _this2 = this;
|
|
// console.log('id:',this.dataArr[this.current][index].id);//订单ID
|
|
uni.showModal({
|
|
content: '是否确认收货?',
|
|
cancelText: '否',
|
|
cancelColor: '#999999',
|
|
confirmText: '是',
|
|
confirmColor: '#ff7800',
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
_this2.$requst.post('order/accepted', { order_id: _this2.dataArr[_this2.current][index].id }).then(function (res) {
|
|
// console.log('确认收货返回数据:',res);
|
|
if (res.code == 0) {
|
|
_this2.$toolAll.tools.showToast('收货成功(*^▽^*)');
|
|
_this2.checkList();
|
|
}
|
|
}, function (error) {});
|
|
}
|
|
} });
|
|
|
|
},
|
|
backTop: function backTop() {
|
|
uni.pageScrollTo({
|
|
scrollTop: 0,
|
|
duration: 300 });
|
|
|
|
},
|
|
goPing: function goPing(index) {//去评价事件
|
|
// console.log(this.current,this.dataArr[this.current]);
|
|
uni.setStorageSync('orderPing', this.dataArr[this.current][index]);
|
|
uni.navigateTo({
|
|
url: '/pagesA/evaluate/evaluate' });
|
|
|
|
},
|
|
tapTab: function tapTab(index) {//tab改变事件
|
|
this.current = index;
|
|
// this.qiehuanEv(index)
|
|
},
|
|
changec: function changec(e) {//滑动事件
|
|
// console.log(e);
|
|
this.current = e.detail.current;
|
|
// this.qiehuanEv(this.current)
|
|
},
|
|
qiehuanEv: function qiehuanEv(index) {
|
|
var ya = this;
|
|
switch (index) {
|
|
case 0:
|
|
this.tag = 'all';
|
|
break;
|
|
case 1:
|
|
this.tag = 'paid';
|
|
break;
|
|
case 2:
|
|
this.tag = 'shipped';
|
|
break;
|
|
case 3:
|
|
this.tag = 'waiting_comment';
|
|
break;}
|
|
|
|
setTimeout(function () {
|
|
ya.checkList();
|
|
}, 500);
|
|
},
|
|
setHeight: function setHeight() {var _this3 = this;
|
|
var windowHeight = uni.getSystemInfoSync().screenHeight; //页面可见区域
|
|
// console.log(windowHeight);
|
|
this.heightone = windowHeight;
|
|
// windowHeight = windowHeight - 44; //页面可见区域 - 在线购物条高度
|
|
var query = uni.createSelectorQuery();
|
|
query.in(this).select('.item-box').boundingClientRect(function (rect) {
|
|
// if (rect) {
|
|
_this3.height = windowHeight; //页面可见区域 - 头部高度
|
|
// console.log(this.height);
|
|
// }
|
|
}).exec();
|
|
},
|
|
checkLogistics: function checkLogistics(orderId) {//查询物流事件
|
|
uni.navigateTo({
|
|
url: '/pagesA/viewLogistics/viewLogistics?orderId=' + orderId });
|
|
|
|
},
|
|
saleAfter: function saleAfter(index) {//售后服务事件
|
|
uni.setStorageSync('afterOrder', this.dataArr[this.current][index]);
|
|
uni.navigateTo({
|
|
url: '/pagesA/applyAfterSales/applyAfterSales' });
|
|
|
|
},
|
|
checkDetail: function checkDetail(id, index) {//查看详情事件
|
|
// console.log('订单ID',id);
|
|
uni.navigateTo({
|
|
url: '/pagesA/productDetail/productDetail?id=' + id });
|
|
|
|
} } };exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
/***/ })
|
|
|
|
},[[66,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/myOrder/myOrder.js.map
|