MrShi
2024-04-07 9a819fa35464df79a1a8a56e132b3463fac520a7
wx/unpackage/dist/dev/mp-weixin/common/vendor.js
@@ -20699,6 +20699,14 @@
    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    return vm.$u.http.post('business/applyChange/getChangeMemberListOnlineSignLink', data);
  }; // 投保确认书签章业务
  var supplement = function supplement() {
    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    return vm.$u.http.post('business/settleClaims/supplement', data);
  }; // 补充说明
  var claimsUploadFile = function claimsUploadFile() {
    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    return vm.$u.http.post('business/settleClaims/claimsUploadFile', data);
  }; // 附件上传
  vm.$u.api = {
    loginByWxMini: loginByWxMini,
@@ -20738,7 +20746,9 @@
    getJiajianBaoSignLink: getJiajianBaoSignLink,
    getMemberListOnlineSignLink: getMemberListOnlineSignLink,
    getSignWTBTBDLink: getSignWTBTBDLink,
    getChangeMemberListOnlineSignLink: getChangeMemberListOnlineSignLink
    getChangeMemberListOnlineSignLink: getChangeMemberListOnlineSignLink,
    supplement: supplement,
    claimsUploadFile: claimsUploadFile
  };
};
var _default = {
@@ -23379,319 +23389,9 @@
/* 517 */,
/* 518 */,
/* 519 */,
/* 520 */
/*!****************************************************************************!*\
  !*** D:/豆米/yunyibao/wx/node_modules/uview-ui/components/u-upload/utils.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni, wx) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.chooseFile = chooseFile;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function pickExclude(obj, keys) {
  // 某些情况下,type可能会为
  if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
    return {};
  }
  return Object.keys(obj).reduce(function (prev, key) {
    if (!keys.includes(key)) {
      prev[key] = obj[key];
    }
    return prev;
  }, {});
}
function formatImage(res) {
  return res.tempFiles.map(function (item) {
    return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
      type: 'image',
      url: item.path,
      thumb: item.path,
      size: item.size
    });
  });
}
function formatVideo(res) {
  return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
    type: 'video',
    url: res.tempFilePath,
    thumb: res.thumbTempFilePath,
    size: res.size
  })];
}
function formatMedia(res) {
  return res.tempFiles.map(function (item) {
    return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
      type: res.type,
      url: item.tempFilePath,
      thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
      size: item.size
    });
  });
}
function formatFile(res) {
  return res.tempFiles.map(function (item) {
    return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
      url: item.path,
      size: item.size
    });
  });
}
function chooseFile(_ref) {
  var accept = _ref.accept,
    multiple = _ref.multiple,
    capture = _ref.capture,
    compressed = _ref.compressed,
    maxDuration = _ref.maxDuration,
    sizeType = _ref.sizeType,
    camera = _ref.camera,
    maxCount = _ref.maxCount;
  return new Promise(function (resolve, reject) {
    switch (accept) {
      case 'image':
        uni.chooseImage({
          count: multiple ? Math.min(maxCount, 9) : 1,
          sourceType: capture,
          sizeType: sizeType,
          success: function success(res) {
            return resolve(formatImage(res));
          },
          fail: reject
        });
        break;
      // 只有微信小程序才支持chooseMedia接口
      case 'media':
        wx.chooseMedia({
          count: multiple ? Math.min(maxCount, 9) : 1,
          sourceType: capture,
          maxDuration: maxDuration,
          sizeType: sizeType,
          camera: camera,
          success: function success(res) {
            return resolve(formatMedia(res));
          },
          fail: reject
        });
        break;
      case 'video':
        uni.chooseVideo({
          sourceType: capture,
          compressed: compressed,
          maxDuration: maxDuration,
          camera: camera,
          success: function success(res) {
            return resolve(formatVideo(res));
          },
          fail: reject
        });
        break;
      // 只有微信小程序才支持chooseMessageFile接口
      case 'file':
        wx.chooseMessageFile({
          count: multiple ? maxCount : 1,
          type: accept,
          success: function success(res) {
            return resolve(formatFile(res));
          },
          fail: reject
        });
        break;
      default:
        // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
        wx.chooseMessageFile({
          count: multiple ? maxCount : 1,
          type: 'all',
          success: function success(res) {
            return resolve(formatFile(res));
          },
          fail: reject
        });
    }
  });
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
/***/ }),
/* 521 */
/*!****************************************************************************!*\
  !*** D:/豆米/yunyibao/wx/node_modules/uview-ui/components/u-upload/mixin.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _default = {
  watch: {
    // 监听accept的变化,判断是否符合个平台要求
    // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
    accept: {
      immediate: true,
      handler: function handler(val) {}
    }
  }
};
exports.default = _default;
/***/ }),
/* 522 */
/*!****************************************************************************!*\
  !*** D:/豆米/yunyibao/wx/node_modules/uview-ui/components/u-upload/props.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 _default = {
  props: {
    // 接受的文件类型, 可选值为all media image file video
    accept: {
      type: String,
      default: uni.$u.props.upload.accept
    },
    //    图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
    capture: {
      type: [String, Array],
      default: uni.$u.props.upload.capture
    },
    // 当accept为video时生效,是否压缩视频,默认为true
    compressed: {
      type: Boolean,
      default: uni.$u.props.upload.compressed
    },
    // 当accept为video时生效,可选值为back或front
    camera: {
      type: String,
      default: uni.$u.props.upload.camera
    },
    // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
    maxDuration: {
      type: Number,
      default: uni.$u.props.upload.maxDuration
    },
    // 上传区域的图标,只能内置图标
    uploadIcon: {
      type: String,
      default: uni.$u.props.upload.uploadIcon
    },
    // 上传区域的图标的颜色,默认
    uploadIconColor: {
      type: String,
      default: uni.$u.props.upload.uploadIconColor
    },
    // 是否开启文件读取前事件
    useBeforeRead: {
      type: Boolean,
      default: uni.$u.props.upload.useBeforeRead
    },
    // 读取后的处理函数
    afterRead: {
      type: Function,
      default: null
    },
    // 读取前的处理函数
    beforeRead: {
      type: Function,
      default: null
    },
    // 是否显示组件自带的图片预览功能
    previewFullImage: {
      type: Boolean,
      default: uni.$u.props.upload.previewFullImage
    },
    // 最大上传数量
    maxCount: {
      type: [String, Number],
      default: uni.$u.props.upload.maxCount
    },
    // 是否启用
    disabled: {
      type: Boolean,
      default: uni.$u.props.upload.disabled
    },
    // 预览上传的图片时的裁剪模式,和image组件mode属性一致
    imageMode: {
      type: String,
      default: uni.$u.props.upload.imageMode
    },
    // 标识符,可以在回调函数的第二项参数中获取
    name: {
      type: String,
      default: uni.$u.props.upload.name
    },
    // 所选的图片的尺寸, 可选值为original compressed
    sizeType: {
      type: Array,
      default: uni.$u.props.upload.sizeType
    },
    // 是否开启图片多选,部分安卓机型不支持
    multiple: {
      type: Boolean,
      default: uni.$u.props.upload.multiple
    },
    // 是否展示删除按钮
    deletable: {
      type: Boolean,
      default: uni.$u.props.upload.deletable
    },
    // 文件大小限制,单位为byte
    maxSize: {
      type: [String, Number],
      default: uni.$u.props.upload.maxSize
    },
    // 显示已上传的文件列表
    fileList: {
      type: Array,
      default: uni.$u.props.upload.fileList
    },
    // 上传区域的提示文字
    uploadText: {
      type: String,
      default: uni.$u.props.upload.uploadText
    },
    // 内部预览图片区域和选择图片按钮的区域宽度
    width: {
      type: [String, Number],
      default: uni.$u.props.upload.width
    },
    // 内部预览图片区域和选择图片按钮的区域高度
    height: {
      type: [String, Number],
      default: uni.$u.props.upload.height
    },
    // 是否在上传完成后展示预览图
    previewImage: {
      type: Boolean,
      default: uni.$u.props.upload.previewImage
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/* 520 */,
/* 521 */,
/* 522 */,
/* 523 */,
/* 524 */,
/* 525 */,
@@ -26200,6 +25900,138 @@
};
exports.default = _default;
/***/ }),
/* 620 */,
/* 621 */,
/* 622 */,
/* 623 */,
/* 624 */,
/* 625 */,
/* 626 */,
/* 627 */,
/* 628 */,
/* 629 */,
/* 630 */,
/* 631 */,
/* 632 */,
/* 633 */,
/* 634 */,
/* 635 */,
/* 636 */,
/* 637 */,
/* 638 */,
/* 639 */,
/* 640 */,
/* 641 */,
/* 642 */,
/* 643 */,
/* 644 */,
/* 645 */,
/* 646 */,
/* 647 */,
/* 648 */,
/* 649 */,
/* 650 */,
/* 651 */,
/* 652 */,
/* 653 */,
/* 654 */,
/* 655 */,
/* 656 */,
/* 657 */,
/* 658 */,
/* 659 */,
/* 660 */,
/* 661 */,
/* 662 */,
/* 663 */,
/* 664 */,
/* 665 */,
/* 666 */,
/* 667 */,
/* 668 */,
/* 669 */,
/* 670 */,
/* 671 */,
/* 672 */,
/* 673 */,
/* 674 */,
/* 675 */,
/* 676 */,
/* 677 */,
/* 678 */,
/* 679 */,
/* 680 */,
/* 681 */,
/* 682 */,
/* 683 */,
/* 684 */,
/* 685 */,
/* 686 */,
/* 687 */,
/* 688 */,
/* 689 */,
/* 690 */,
/* 691 */,
/* 692 */,
/* 693 */,
/* 694 */,
/* 695 */,
/* 696 */,
/* 697 */,
/* 698 */,
/* 699 */,
/* 700 */,
/* 701 */,
/* 702 */,
/* 703 */,
/* 704 */,
/* 705 */,
/* 706 */,
/* 707 */,
/* 708 */,
/* 709 */,
/* 710 */
/*!*************************************************************************!*\
  !*** D:/豆米/yunyibao/wx/node_modules/uview-ui/components/u-gap/props.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 _default = {
  props: {
    // 背景颜色(默认transparent)
    bgColor: {
      type: String,
      default: uni.$u.props.gap.bgColor
    },
    // 分割槽高度,单位px(默认30)
    height: {
      type: [String, Number],
      default: uni.$u.props.gap.height
    },
    // 与上一个组件的距离
    marginTop: {
      type: [String, Number],
      default: uni.$u.props.gap.marginTop
    },
    // 与下一个组件的距离
    marginBottom: {
      type: [String, Number],
      default: uni.$u.props.gap.marginBottom
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ })
]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map