|
@@ -9758,7 +9758,7 @@ exports.default = void 0;
|
|
|
var _default = {
|
|
|
web_name: "智小狸",
|
|
|
//uni_app_web_api_url: "https://zk.li-ai.com.cn/driver/api", //后端统一接口路径
|
|
|
- uni_app_web_api_url: "http://192.168.0.84:8088/driver/api",
|
|
|
+ uni_app_web_api_url: "https://53670u39m2.goho.co/driver/api",
|
|
|
//web_socket_url:'ws://zk.li-ai.com.cn:8088/ws/abbbccc/SSSSSSSS',
|
|
|
web_socket_url: 'ws://192.168.0.84:8088/driver/ws/',
|
|
|
debug: true
|
|
@@ -30536,152 +30536,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
-/* 178 */
|
|
|
-/*!********************************************!*\
|
|
|
- !*** D:/xcx_zkstation/common/websocket.js ***!
|
|
|
- \********************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-"use strict";
|
|
|
-/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
-
|
|
|
-var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
-Object.defineProperty(exports, "__esModule", {
|
|
|
- value: true
|
|
|
-});
|
|
|
-exports.default = void 0;
|
|
|
-var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 35));
|
|
|
-var _storage = _interopRequireDefault(__webpack_require__(/*! ./storage */ 36));
|
|
|
-var _utils = __webpack_require__(/*! ./utils */ 37);
|
|
|
-var _default = {
|
|
|
- socketTask: null,
|
|
|
- timer: null,
|
|
|
- /**
|
|
|
- * 创建 WebSocket 连接。
|
|
|
- */
|
|
|
- connect: function connect() {
|
|
|
- var _this = this;
|
|
|
- var users = _storage.default.getJson("users");
|
|
|
- var token = _storage.default.getJson("token");
|
|
|
- var stationCode = _storage.default.get("stationCode");
|
|
|
- if (users == null || token == null) {
|
|
|
- (0, _utils.navigateTo)("public/login");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (this.timer != null) {
|
|
|
- clearInterval(this.timer);
|
|
|
- this.timer = null;
|
|
|
- }
|
|
|
- if (this.socketTask != null) {
|
|
|
- this.socketTask.close();
|
|
|
- }
|
|
|
- this.socketTask = uni.connectSocket({
|
|
|
- url: _config.default.web_socket_url + stationCode + '/' + token,
|
|
|
- header: {
|
|
|
- 'content-type': 'application/json'
|
|
|
- },
|
|
|
- complete: function complete() {}
|
|
|
- });
|
|
|
- // 监听WebSocket连接打开事件。
|
|
|
- this.socketTask.onOpen(function () {
|
|
|
- console.log('WebSocket连接已打开!');
|
|
|
- _this.onSocketOpen();
|
|
|
- });
|
|
|
- //接收服务器数据事件
|
|
|
- this.socketTask.onMessage(function (res) {
|
|
|
- _this.onSocketMsg(res);
|
|
|
- });
|
|
|
- //监听WebSocket关闭事件
|
|
|
- this.socketTask.onClose(function () {
|
|
|
- console.log('WebSocket连接已关闭!');
|
|
|
- });
|
|
|
- this.socketTask.onError(function () {
|
|
|
- console.log("WebSocket连接错误");
|
|
|
- });
|
|
|
- if (this.timer == null) {
|
|
|
- this.timer = setInterval(function () {
|
|
|
- if (_this.socketTask.readyState != 1) {
|
|
|
- _this.socketTask.close();
|
|
|
- _this.connect();
|
|
|
- }
|
|
|
- }, 2000);
|
|
|
- }
|
|
|
- },
|
|
|
- onSocketOpen: function onSocketOpen() {},
|
|
|
- onSocketMsg: function onSocketMsg() {},
|
|
|
- sendmessage: function sendmessage(msg) {
|
|
|
- this.socketTask.send({
|
|
|
- data: JSON.stringify(msg)
|
|
|
- });
|
|
|
- }
|
|
|
-};
|
|
|
-exports.default = _default;
|
|
|
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
-
|
|
|
-/***/ }),
|
|
|
-/* 179 */
|
|
|
-/*!*********************************************!*\
|
|
|
- !*** D:/xcx_zkstation/common/scanChange.js ***!
|
|
|
- \*********************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-"use strict";
|
|
|
-
|
|
|
-
|
|
|
-var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
-var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
|
|
|
-Object.defineProperty(exports, "__esModule", {
|
|
|
- value: true
|
|
|
-});
|
|
|
-exports.default = void 0;
|
|
|
-var _storage = _interopRequireDefault(__webpack_require__(/*! ./storage */ 36));
|
|
|
-var https = _interopRequireWildcard(__webpack_require__(/*! ./http */ 33));
|
|
|
-var _websocket = _interopRequireDefault(__webpack_require__(/*! ./websocket */ 178));
|
|
|
-var utils = _interopRequireWildcard(__webpack_require__(/*! ./utils */ 37));
|
|
|
-function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
|
-function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
|
-var _default = {
|
|
|
- swapConfirmDTO: null,
|
|
|
- swapInfoDTO: null,
|
|
|
- swapStepList: [],
|
|
|
- InitWs: function InitWs() {
|
|
|
- var _this = this;
|
|
|
- if (_storage.default.get("exchangeNo")) {
|
|
|
- var msg = {
|
|
|
- type: "subscribeExchange",
|
|
|
- payLoad: {
|
|
|
- exchangeNo: _storage.default.get("exchangeNo")
|
|
|
- }
|
|
|
- };
|
|
|
- if (_websocket.default.socketTask == null) {
|
|
|
- _websocket.default.connect();
|
|
|
- _websocket.default.onSocketOpen = function () {
|
|
|
- _websocket.default.onSocketMsg = function (res) {
|
|
|
- var data = JSON.parse(res.data);
|
|
|
- console.log(data);
|
|
|
- if (data.type === 'subscribe') {
|
|
|
- console.log(data.state);
|
|
|
- } else if (data.type === 'swapInfo' && data.state === 0) {
|
|
|
- _this.swapConfirmDTO = data.swapConfirmDTO;
|
|
|
- _this.swapStepList = data.swapStepList;
|
|
|
- _this.swapInfoDTO = data.swapInfoDTO;
|
|
|
- } else if (data.type === 'start' && data.state === 0) {
|
|
|
- utils.msg('启动换电成功');
|
|
|
- }
|
|
|
- };
|
|
|
- _websocket.default.sendmessage(msg);
|
|
|
- };
|
|
|
- }
|
|
|
- } else {
|
|
|
- utils.msg('未获取到换电编号');
|
|
|
- }
|
|
|
- }
|
|
|
-};
|
|
|
-exports.default = _default;
|
|
|
-
|
|
|
-/***/ }),
|
|
|
+/* 178 */,
|
|
|
+/* 179 */,
|
|
|
/* 180 */,
|
|
|
/* 181 */,
|
|
|
/* 182 */,
|
|
@@ -30824,145 +30680,27 @@ exports.default = _default;
|
|
|
/* 319 */,
|
|
|
/* 320 */,
|
|
|
/* 321 */,
|
|
|
-/* 322 */
|
|
|
-/*!************************************************************************************************!*\
|
|
|
- !*** D:/xcx_zkstation/uni_modules/uni-transition/components/uni-transition/createAnimation.js ***!
|
|
|
- \************************************************************************************************/
|
|
|
-/*! no static exports found */
|
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
|
|
-
|
|
|
-"use strict";
|
|
|
-/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
-
|
|
|
-var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
-Object.defineProperty(exports, "__esModule", {
|
|
|
- value: true
|
|
|
-});
|
|
|
-exports.createAnimation = createAnimation;
|
|
|
-var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|
|
-var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
|
|
|
-var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
|
|
|
-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; }
|
|
|
-// const defaultOption = {
|
|
|
-// duration: 300,
|
|
|
-// timingFunction: 'linear',
|
|
|
-// delay: 0,
|
|
|
-// transformOrigin: '50% 50% 0'
|
|
|
-// }
|
|
|
-var MPAnimation = /*#__PURE__*/function () {
|
|
|
- function MPAnimation(options, _this) {
|
|
|
- (0, _classCallCheck2.default)(this, MPAnimation);
|
|
|
- this.options = options;
|
|
|
- this.animation = uni.createAnimation(options);
|
|
|
- this.currentStepAnimates = {};
|
|
|
- this.next = 0;
|
|
|
- this.$ = _this;
|
|
|
- }
|
|
|
- (0, _createClass2.default)(MPAnimation, [{
|
|
|
- key: "_nvuePushAnimates",
|
|
|
- value: function _nvuePushAnimates(type, args) {
|
|
|
- var aniObj = this.currentStepAnimates[this.next];
|
|
|
- var styles = {};
|
|
|
- if (!aniObj) {
|
|
|
- styles = {
|
|
|
- styles: {},
|
|
|
- config: {}
|
|
|
- };
|
|
|
- } else {
|
|
|
- styles = aniObj;
|
|
|
- }
|
|
|
- if (animateTypes1.includes(type)) {
|
|
|
- if (!styles.styles.transform) {
|
|
|
- styles.styles.transform = '';
|
|
|
- }
|
|
|
- var unit = '';
|
|
|
- if (type === 'rotate') {
|
|
|
- unit = 'deg';
|
|
|
- }
|
|
|
- styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
|
|
|
- } else {
|
|
|
- styles.styles[type] = "".concat(args);
|
|
|
- }
|
|
|
- this.currentStepAnimates[this.next] = styles;
|
|
|
- }
|
|
|
- }, {
|
|
|
- key: "_animateRun",
|
|
|
- value: function _animateRun() {
|
|
|
- var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
|
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
- var ref = this.$.$refs['ani'].ref;
|
|
|
- if (!ref) return;
|
|
|
- return new Promise(function (resolve, reject) {
|
|
|
- nvueAnimation.transition(ref, _objectSpread({
|
|
|
- styles: styles
|
|
|
- }, config), function (res) {
|
|
|
- resolve();
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
- }, {
|
|
|
- key: "_nvueNextAnimate",
|
|
|
- value: function _nvueNextAnimate(animates) {
|
|
|
- var _this2 = this;
|
|
|
- var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
|
- var fn = arguments.length > 2 ? arguments[2] : undefined;
|
|
|
- var obj = animates[step];
|
|
|
- if (obj) {
|
|
|
- var styles = obj.styles,
|
|
|
- config = obj.config;
|
|
|
- this._animateRun(styles, config).then(function () {
|
|
|
- step += 1;
|
|
|
- _this2._nvueNextAnimate(animates, step, fn);
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.currentStepAnimates = {};
|
|
|
- typeof fn === 'function' && fn();
|
|
|
- this.isEnd = true;
|
|
|
- }
|
|
|
- }
|
|
|
- }, {
|
|
|
- key: "step",
|
|
|
- value: function step() {
|
|
|
- var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
|
- this.animation.step(config);
|
|
|
- return this;
|
|
|
- }
|
|
|
- }, {
|
|
|
- key: "run",
|
|
|
- value: function run(fn) {
|
|
|
- this.$.animationData = this.animation.export();
|
|
|
- this.$.timer = setTimeout(function () {
|
|
|
- typeof fn === 'function' && fn();
|
|
|
- }, this.$.durationTime);
|
|
|
- }
|
|
|
- }]);
|
|
|
- return MPAnimation;
|
|
|
-}();
|
|
|
-var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', 'translateZ'];
|
|
|
-var animateTypes2 = ['opacity', 'backgroundColor'];
|
|
|
-var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
|
|
|
-animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
|
|
|
- MPAnimation.prototype[type] = function () {
|
|
|
- var _this$animation;
|
|
|
- (_this$animation = this.animation)[type].apply(_this$animation, arguments);
|
|
|
- return this;
|
|
|
- };
|
|
|
-});
|
|
|
-function createAnimation(option, _this) {
|
|
|
- if (!_this) return;
|
|
|
- clearTimeout(_this.timer);
|
|
|
- return new MPAnimation(option, _this);
|
|
|
-}
|
|
|
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
-
|
|
|
-/***/ }),
|
|
|
+/* 322 */,
|
|
|
/* 323 */,
|
|
|
/* 324 */,
|
|
|
/* 325 */,
|
|
|
/* 326 */,
|
|
|
/* 327 */,
|
|
|
-/* 328 */
|
|
|
+/* 328 */,
|
|
|
+/* 329 */,
|
|
|
+/* 330 */,
|
|
|
+/* 331 */,
|
|
|
+/* 332 */,
|
|
|
+/* 333 */,
|
|
|
+/* 334 */,
|
|
|
+/* 335 */,
|
|
|
+/* 336 */,
|
|
|
+/* 337 */,
|
|
|
+/* 338 */,
|
|
|
+/* 339 */,
|
|
|
+/* 340 */,
|
|
|
+/* 341 */,
|
|
|
+/* 342 */
|
|
|
/*!****************************************************************************!*\
|
|
|
!*** D:/xcx_zkstation/uni_modules/uni-icons/components/uni-icons/icons.js ***!
|
|
|
\****************************************************************************/
|
|
@@ -31982,6 +31720,146 @@ var _default = {
|
|
|
};
|
|
|
exports.default = _default;
|
|
|
|
|
|
+/***/ }),
|
|
|
+/* 343 */,
|
|
|
+/* 344 */,
|
|
|
+/* 345 */,
|
|
|
+/* 346 */,
|
|
|
+/* 347 */,
|
|
|
+/* 348 */,
|
|
|
+/* 349 */,
|
|
|
+/* 350 */
|
|
|
+/*!************************************************************************************************!*\
|
|
|
+ !*** D:/xcx_zkstation/uni_modules/uni-transition/components/uni-transition/createAnimation.js ***!
|
|
|
+ \************************************************************************************************/
|
|
|
+/*! no static exports found */
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
+
|
|
|
+"use strict";
|
|
|
+/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
+
|
|
|
+var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
+ value: true
|
|
|
+});
|
|
|
+exports.createAnimation = createAnimation;
|
|
|
+var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|
|
+var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
|
|
|
+var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
|
|
|
+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; }
|
|
|
+// const defaultOption = {
|
|
|
+// duration: 300,
|
|
|
+// timingFunction: 'linear',
|
|
|
+// delay: 0,
|
|
|
+// transformOrigin: '50% 50% 0'
|
|
|
+// }
|
|
|
+var MPAnimation = /*#__PURE__*/function () {
|
|
|
+ function MPAnimation(options, _this) {
|
|
|
+ (0, _classCallCheck2.default)(this, MPAnimation);
|
|
|
+ this.options = options;
|
|
|
+ this.animation = uni.createAnimation(options);
|
|
|
+ this.currentStepAnimates = {};
|
|
|
+ this.next = 0;
|
|
|
+ this.$ = _this;
|
|
|
+ }
|
|
|
+ (0, _createClass2.default)(MPAnimation, [{
|
|
|
+ key: "_nvuePushAnimates",
|
|
|
+ value: function _nvuePushAnimates(type, args) {
|
|
|
+ var aniObj = this.currentStepAnimates[this.next];
|
|
|
+ var styles = {};
|
|
|
+ if (!aniObj) {
|
|
|
+ styles = {
|
|
|
+ styles: {},
|
|
|
+ config: {}
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ styles = aniObj;
|
|
|
+ }
|
|
|
+ if (animateTypes1.includes(type)) {
|
|
|
+ if (!styles.styles.transform) {
|
|
|
+ styles.styles.transform = '';
|
|
|
+ }
|
|
|
+ var unit = '';
|
|
|
+ if (type === 'rotate') {
|
|
|
+ unit = 'deg';
|
|
|
+ }
|
|
|
+ styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
|
|
|
+ } else {
|
|
|
+ styles.styles[type] = "".concat(args);
|
|
|
+ }
|
|
|
+ this.currentStepAnimates[this.next] = styles;
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ key: "_animateRun",
|
|
|
+ value: function _animateRun() {
|
|
|
+ var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
|
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
+ var ref = this.$.$refs['ani'].ref;
|
|
|
+ if (!ref) return;
|
|
|
+ return new Promise(function (resolve, reject) {
|
|
|
+ nvueAnimation.transition(ref, _objectSpread({
|
|
|
+ styles: styles
|
|
|
+ }, config), function (res) {
|
|
|
+ resolve();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ key: "_nvueNextAnimate",
|
|
|
+ value: function _nvueNextAnimate(animates) {
|
|
|
+ var _this2 = this;
|
|
|
+ var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
|
+ var fn = arguments.length > 2 ? arguments[2] : undefined;
|
|
|
+ var obj = animates[step];
|
|
|
+ if (obj) {
|
|
|
+ var styles = obj.styles,
|
|
|
+ config = obj.config;
|
|
|
+ this._animateRun(styles, config).then(function () {
|
|
|
+ step += 1;
|
|
|
+ _this2._nvueNextAnimate(animates, step, fn);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.currentStepAnimates = {};
|
|
|
+ typeof fn === 'function' && fn();
|
|
|
+ this.isEnd = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ key: "step",
|
|
|
+ value: function step() {
|
|
|
+ var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
|
+ this.animation.step(config);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ key: "run",
|
|
|
+ value: function run(fn) {
|
|
|
+ this.$.animationData = this.animation.export();
|
|
|
+ this.$.timer = setTimeout(function () {
|
|
|
+ typeof fn === 'function' && fn();
|
|
|
+ }, this.$.durationTime);
|
|
|
+ }
|
|
|
+ }]);
|
|
|
+ return MPAnimation;
|
|
|
+}();
|
|
|
+var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', 'translateZ'];
|
|
|
+var animateTypes2 = ['opacity', 'backgroundColor'];
|
|
|
+var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
|
|
|
+animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
|
|
|
+ MPAnimation.prototype[type] = function () {
|
|
|
+ var _this$animation;
|
|
|
+ (_this$animation = this.animation)[type].apply(_this$animation, arguments);
|
|
|
+ return this;
|
|
|
+ };
|
|
|
+});
|
|
|
+function createAnimation(option, _this) {
|
|
|
+ if (!_this) return;
|
|
|
+ clearTimeout(_this.timer);
|
|
|
+ return new MPAnimation(option, _this);
|
|
|
+}
|
|
|
+/* 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
|