(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/app_admin/send/send"],{

/***/ 968:
/*!**********************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/main.js?{"page":"pages%2Fapp_admin%2Fsend%2Fsend"} ***!
  \**********************************************************************************************/
/*! 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 _send = _interopRequireDefault(__webpack_require__(/*! ./pages/app_admin/send/send.vue */ 969));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
createPage(_send.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),

/***/ 969:
/*!*************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/send/send.vue ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./send.vue?vue&type=template&id=7320b530&scoped=true& */ 970);
/* harmony import */ var _send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./send.vue?vue&type=script&lang=js& */ 972);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _send_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 _send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _send_vue_vue_type_style_index_0_id_7320b530_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./send.vue?vue&type=style&index=0&id=7320b530&lang=scss&scoped=true& */ 974);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 10);

var renderjs





/* normalize component */

var component = Object(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "7320b530",
  null,
  false,
  _send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/app_admin/send/send.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 970:
/*!********************************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/send/send.vue?vue&type=template&id=7320b530&scoped=true& ***!
  \********************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./send.vue?vue&type=template&id=7320b530&scoped=true& */ 971);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_template_id_7320b530_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 971:
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/send/send.vue?vue&type=template&id=7320b530&scoped=true& ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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



/***/ }),

/***/ 972:
/*!**************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/send/send.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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./send.vue?vue&type=script&lang=js& */ 973);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 973:
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/send/send.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 _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (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 = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var _default =

{
  data: function data() {
    return {
      express_no: '',
      express: '',
      customer_name: '',
      express_content: '',
      code: '',
      words: '',
      list: [],
      detail: {},
      dialog: false,
      iphone_x: false,
      id: '',
      index: 0,
      newIndex: 0,
      value: 0,
      is_express: -2,
      is_send: 0,
      order_refund_id: 0,
      express_single: {},
      city: {
        cityList: [],
        deliveryId: null,
        delivery: '',
        cityServiceList: [],
        cityServiceId: null,
        cityService: '',
        isPreview: 0,
        fee: 0,
        name: '',
        delivery_no: '' } };


  },
  computed: _objectSpread({},
  (0, _vuex.mapState)({
    userInfo: function userInfo(state) {return state.user.info;},
    adminImg: function adminImg(state) {return state.mallConfig.__wxapp_img.app_admin;} })),


  methods: {
    chooseAddress: function chooseAddress(item) {
      item.choose = !item.choose;
      this.$forceUpdate();
    },

    toggleExpress: function toggleExpress(item) {
      this.is_express = item;
      if (this.detail.send_type == 2) {
        this.list = item == 2 ? this.city.cityList : this.city.cityServiceList;
        for (var index in this.list) {
          if (this.is_express == 2) {
            if (this.list[index].id == this.city.deliveryId) {
              this.index = +index;
              this.newIndex = +index;
            }
          } else {
            if (this.list[index].id == this.city.cityServiceId) {
              this.index = +index;
              this.newIndex = +index;
            }
          }
        }
      }
    },

    bindChange: function bindChange(e) {
      this.newIndex = e.detail.value[0];
    },
    toPick: function toPick(num) {
      var that = this;
      if (num == 1) {
        that.customer_name = '';
        that.newIndex = that.index;
      } else {
        that.newIndex = that.index;
      }
      setTimeout(function () {
        that.dialog = !that.dialog;
      });
    },
    closeDialog: function closeDialog(num) {
      if (num == 1) {
        this.index = this.newIndex;
        // 即时配送
        if (this.detail.send_type == 2) {
          if (this.is_express == 2) {
            this.city.delivery = "(" + this.list[this.index].id + ")" + this.list[this.index].name;
            this.city.deliveryId = this.list[this.index].id;
          } else {
            this.city.cityService = "(" + this.list[this.index].id + ")" + this.list[this.index].name;
            this.city.cityServiceId = this.list[this.index].id;
            this.city.isPreview = 0;
          }
        } else {
          this.express = this.list[this.newIndex].name;
        }
      } else {
        this.newIndex = this.index;
      }
      this.dialog = !this.dialog;
    },
    getExpressNo: function getExpressNo() {
      var that = this;
      uni.showLoading({
        title: '加载中...' });

      that.$request({
        url: that.$api.app_admin.print,
        data: {
          express: that.express,
          code: that.code,
          order_id: that.id } }).

      then(function (response) {
        uni.hideLoading();
        if (response.code == 0) {
          that.express_no = response.data.Order.LogisticCode;
          that.express_single = response.data.express_single;
        } else {
          uni.showToast({
            title: response.msg,
            icon: 'none',
            duration: 1000 });

        }
      }).catch(function (response) {
        uni.hideLoading();
      });
    },
    getExpress: function getExpress() {
      var that = this;
      uni.showLoading({
        title: '加载中...' });

      that.$request({
        url: that.$api.app_admin.express }).
      then(function (response) {
        uni.hideLoading();
        if (response.code == 0) {
          that.list = response.data.list;
          that.getList();
        } else {
          uni.showToast({
            title: response.msg,
            icon: 'none',
            duration: 1000 });

        }
      }).catch(function (response) {
        uni.hideLoading();
      });
    },
    getList: function getList() {var _this = this;
      var that = this;
      uni.showLoading({
        title: '加载中...' });

      that.$request({
        url: that.$api.app_admin.detail,
        data: {
          order_id: that.id },

        method: 'post' }).
      then(function (response) {
        uni.hideLoading();
        if (response.code == 0) {
          that.detail = response.data.order;
          if (_this.detail.send_type == 2) {
            that.getDelivery();
            that.is_express = 2;
          } else {
            that.is_express = 1;
          }
          for (var i in that.detail.detail) {
            that.detail.detail[i].choose = true;
          }
          if (that.detail.detailExpress.length > 0) {
            that.detail.detail.forEach(function (row) {
              for (var _i in that.detail.detailExpress) {
                for (var x in that.detail.detailExpress[_i].expressRelation) {
                  if (that.detail.detailExpress[_i].expressRelation[x].order_detail_id == row.id) {
                    row.choose = 2;
                  }
                }
              }
            });
          }
          if (that.is_send > 0) {
            that.express = response.data.order.express;
            that.express_no = response.data.order.express_no;
            that.customer_name = response.data.order.customer_name;
            that.code = '';
            that.words = response.data.order.merchant_remark;
            if (response.data.order.code > 0) {
              that.code = response.data.order.code;
            }
          } else {
            that.express = that.list[0].name;
          }
        } else {
          uni.showToast({
            title: response.msg,
            icon: 'none',
            duration: 1000 });

        }
      }).catch(function (response) {
        uni.hideLoading();
      });
    },
    saveAddress: function saveAddress(e) {
      var that = this;
      if (that.is_express == 1 && !that.express_no) {
        uni.showToast({
          title: '快递单号不得为空',
          icon: 'none',
          duration: 1000 });

        return;
      }
      var id_list = that.getIdList();
      if (id_list.length == 0 && that.order_refund_id == 0) {
        uni.showToast({
          title: '请选择发货商品',
          icon: 'none',
          duration: 1000 });

        return;
      }
      uni.showLoading({
        title: '提交中...' });

      var para = {
        is_express: 1,
        order_id: that.id,
        express_no: that.express_no,
        express: that.express,
        code: that.code,
        customer_name: that.customer_name,
        merchant_remark: that.words,
        express_content: '',
        order_detail_id: JSON.stringify(id_list),
        express_single_id: that.express_single.id ? that.express_single.id : 0 };

      if (that.is_express == 0) {
        para = {
          is_express: 2,
          order_id: that.id,
          express_content: that.express_content,
          order_detail_id: JSON.stringify(id_list) };

      }
      if (that.order_refund_id > 0) {
        that.$request({
          url: that.$api.app_admin.refund_handle,
          method: "POST",
          data: {
            is_express: 1,
            type: 2,
            is_agree: 1,
            order_refund_id: that.order_refund_id,
            express_no: that.express_no,
            express: that.express,
            merchant_remark: that.words } }).

        then(function (response) {
          uni.hideLoading();
          if (response.code == 0) {
            var msg = response.msg;
            uni.showToast({
              title: msg,
              duration: 1000,
              icon: 'success',
              mask: false });

            setTimeout(function () {
              uni.navigateBack();
            }, 500);
          } else {
            uni.showToast({
              title: response.msg,
              icon: 'none',
              duration: 1000 });

          }
        }).catch(function (response) {
          uni.hideLoading();
          uni.showToast({
            title: response,
            icon: 'none',
            duration: 1000 });

        });
      } else {
        that.$request({
          url: that.$api.app_admin.send,
          method: "POST",
          data: para }).
        then(function (response) {
          uni.hideLoading();
          if (response.code == 0) {
            var msg = response.msg;
            if (that.is_send == 2) {
              msg = '修改成功';
            }
            uni.showToast({
              title: msg,
              duration: 1000,
              icon: 'success',
              mask: false });

            setTimeout(function () {
              uni.navigateBack();
            }, 500);
          } else {
            uni.showToast({
              title: response.msg,
              icon: 'none',
              duration: 1000 });

          }
        }).catch(function (response) {
          uni.hideLoading();
          uni.showToast({
            title: response,
            icon: 'none',
            duration: 1000 });

        });
      }
    },
    getIdList: function getIdList() {
      var that = this;
      var id_list = [];
      for (var i in that.detail.detail) {
        if (that.detail.detail[i].choose && that.detail.detail[i].choose != 2) {
          id_list.push(that.detail.detail[i].id);
        }
      }
      return id_list;
    },
    getDelivery: function getDelivery() {var _this2 = this;
      var that = this;
      that.$request({
        url: that.$api.app_admin.delivery }).
      then(function (response) {
        if (response.code === 0) {
          _this2.city.cityList = response.data.list;
          _this2.city.deliveryId = response.data.list[0].id;
          _this2.city.delivery = "(" + response.data.list[0].id + ")" + response.data.list[0].name;

          var city_service_list = response.data.city_service_list;
          var new_city_service_list = [];
          city_service_list.forEach(function (item, index) {
            if (item.service_type == '第三方') {
              new_city_service_list.push(item);
            } else if (that.detail.platform == 'wxapp' && item.service_type == '微信') {
              new_city_service_list.push(item);
            }
          });

          _this2.city.cityServiceList = new_city_service_list;
          _this2.city.cityServiceId = new_city_service_list[0].id;
          _this2.city.cityService = "(" + new_city_service_list[0].id + ")" + new_city_service_list[0].name;

          // 同城配送配送员列表数据
          if (_this2.detail.send_type == 2) {
            _this2.list = _this2.city.cityList;
            _this2.is_express = 2;
          }
        } else {
          uni.showToast({
            title: response.msg,
            icon: 'none',
            duration: 1000 });

        }
      }).catch(function (response) {
        uni.hideLoading();
      });
    },
    citySend: function citySend() {
      var that = this;
      var para;
      if (that.detail.send_type == 2) {
        uni.showLoading({
          title: '加载中...' });


        var id_list = that.getIdList();
        if (id_list.length == 0 && that.order_refund_id == 0) {
          uni.showToast({
            title: '请选择发货商品',
            icon: 'none',
            duration: 1000 });

          return;
        }

        para = {
          is_express: that.is_express,
          words: '',
          order_id: that.detail.id,
          order_detail_id: JSON.stringify(id_list),
          city_service: that.city.cityService,
          is_preview: that.city.isPreview ? 0 : 1,
          delivery_no: that.city.delivery_no };

        if (that.detail.send_type == 2) {
          para.man = that.city.delivery;
        }
        that.$request({
          url: that.$api.app_admin.send,
          data: para,
          method: 'post' }).
        then(function (response) {
          uni.hideLoading();
          if (response.code === 0) {
            var resultData = response.data;
            if (resultData && resultData.preview_success == 1) {
              that.city.fee = resultData.fee;
              that.city.isPreview = 1;
              that.city.name = resultData.name;
              that.city.isPreview = 1;
              that.city.delivery_no = resultData.delivery_no;
            } else {
              setTimeout(function () {
                uni.navigateBack();
              }, 500);
            }

            uni.showToast({
              title: response.msg,
              type: 'success',
              mask: false,
              duration: 2000 });

          } else {
            uni.showToast({
              title: response.msg,
              icon: 'none',
              duration: 1000 });

          }
        }).catch(function (response) {
          uni.hideLoading();
          uni.showToast({
            title: response,
            icon: 'none',
            duration: 1000 });

        });
      }
    } },

  onLoad: function onLoad(options) {
    var that = this;
    uni.getSystemInfo({
      success: function success(res) {
        if (res.model.indexOf('iPhone X') > -1 || res.model.indexOf('iPhone 11') > -1 || res.model.indexOf('iPhone11') > -1 || res.model.indexOf('iPhone12') > -1 || res.model.indexOf('Unknown Device') > -1) {
          that.iphone_x = true;
        }
      } });

    if (options.id > 0) {
      that.id = options.id;
    }
    if (options.order_refund_id > 0) {
      that.order_refund_id = options.order_refund_id;
    }
    if (options.send_type == 0) {
      that.getExpress();
    } else {
      uni.showLoading({
        title: '加载中...' });

      that.getList();
    }
    if (options.is_send > 0) {
      that.is_send = options.is_send;
    }
  } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ }),

/***/ 974:
/*!***********************************************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/send/send.vue?vue&type=style&index=0&id=7320b530&lang=scss&scoped=true& ***!
  \***********************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_style_index_0_id_7320b530_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-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!./send.vue?vue&type=style&index=0&id=7320b530&lang=scss&scoped=true& */ 975);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_style_index_0_id_7320b530_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_style_index_0_id_7320b530_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_style_index_0_id_7320b530_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_style_index_0_id_7320b530_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_send_vue_vue_type_style_index_0_id_7320b530_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 975:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-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!E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/send/send.vue?vue&type=style&index=0&id=7320b530&lang=scss&scoped=true& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

},[[968,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/app_admin/send/send.js.map