diff --git a/mini-app/project.config.json b/mini-app/project.config.json
index 353f5131e..83e86e93d 100644
--- a/mini-app/project.config.json
+++ b/mini-app/project.config.json
@@ -24,7 +24,7 @@
},
"compileType": "miniprogram",
"appid": "wx76ec015fc31a1946",
- "projectname": "hope_wine",
+ "projectname": "mini-app",
"miniprogramRoot": "weapp/",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
diff --git a/mini-app/weapp/apis/userApis.js b/mini-app/weapp/apis/userApis.js
deleted file mode 100644
index 7723783c5..000000000
--- a/mini-app/weapp/apis/userApis.js
+++ /dev/null
@@ -1,98 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-
-var _request = _interopRequireDefault(require('./../js/request.js'));
-
-var _xiao4rApis = require('./xiao4rApis.js');
-
-var _config = require('./../config.js');
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
-function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
-/**
- * 用户相关接口
- */
-var UserApis = /*#__PURE__*/function () {
- function UserApis() {
- _classCallCheck(this, UserApis);
- }
-
- _createClass(UserApis, [{
- key: "registrationByMini",
-
- /**
- * 注册
- * @param data
- * @returns {Promise实例对象}
- */
- value: function registrationByMini(data) {
- data.deptId = _config.MINI_DEPTID;
- return _request["default"].post({
- url: _xiao4rApis.baseUrl + 'mini/user/registrationByMini',
- data: data
- });
- }
- /**
- * 登录
- * @param data
- * @returns {Promise实例对象}
- */
-
- }, {
- key: "loginByMini",
- value: function loginByMini(data) {
- data.deptId = _config.MINI_DEPTID;
- return _request["default"].post({
- url: _xiao4rApis.baseUrl + 'mini/user/loginByMini',
- data: data
- });
- }
- }, {
- key: "getSession",
- value: function getSession(code) {
- return _request["default"].get({
- url: _xiao4rApis.baseUrl + 'mini/user/getSession',
- header: _xiao4rApis.formHeader,
- data: {
- 'code': code,
- 'deptId': _config.MINI_DEPTID
- }
- });
- }
- }, {
- key: "sendMobile",
- value: function sendMobile(data) {
- data.deptId = _config.MINI_DEPTID;
- return _request["default"].post({
- url: _xiao4rApis.baseUrl + 'mini/user/sendMobile',
- header: _xiao4rApis.jsonHeader,
- data: data
- });
- }
- }, {
- key: "getAuthTest",
- value: function getAuthTest(data) {
- return _request["default"].get({
- url: _xiao4rApis.baseUrl + 'mini/user/test',
- header: _xiao4rApis.formHeader,
- data: data
- });
- }
- }]);
-
- return UserApis;
-}();
-
-var _default = new UserApis();
-
-exports["default"] = _default;
\ No newline at end of file
diff --git a/mini-app/weapp/apis/xiao4rApis.js b/mini-app/weapp/apis/xiao4rApis.js
deleted file mode 100644
index 698b0e2e9..000000000
--- a/mini-app/weapp/apis/xiao4rApis.js
+++ /dev/null
@@ -1,66 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = exports.formHeader = exports.jsonHeader = exports.baseUrl = void 0;
-
-var _request = _interopRequireDefault(require('./../js/request.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
-function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
-var baseUrl = 'http://127.0.0.1:18989/winery/'; // export const baseUrl = 'http://36.1.50.18:18989/winery/'
-// export const baseUrl = 'http://62.234.123.172:18989/api/'
-// export const baseUrl = 'https://www.xiao4r.com/wine/winery/'
-
-exports.baseUrl = baseUrl;
-var jsonHeader = {
- 'Content-Type': 'application/json'
-};
-exports.jsonHeader = jsonHeader;
-var formHeader = {
- 'Content-Type': 'application/x-www-form-urlencoded'
-};
-/**
- * 接口
- */
-
-exports.formHeader = formHeader;
-
-var Xiao4rApis = /*#__PURE__*/function () {
- function Xiao4rApis() {
- _classCallCheck(this, Xiao4rApis);
- }
-
- _createClass(Xiao4rApis, [{
- key: "postForm",
- value: function postForm(data) {
- return _request["default"].post({
- url: baseUrl + 'mini/postForm',
- header: jsonHeader,
- data: data
- });
- }
- }, {
- key: "getForm",
- value: function getForm(data) {
- return _request["default"].get({
- url: baseUrl + 'mini/getForm',
- header: formHeader,
- data: data
- });
- }
- }]);
-
- return Xiao4rApis;
-}();
-
-var _default = new Xiao4rApis();
-
-exports["default"] = _default;
\ No newline at end of file
diff --git a/mini-app/weapp/app.js b/mini-app/weapp/app.js
deleted file mode 100644
index 6b5d95c2b..000000000
--- a/mini-app/weapp/app.js
+++ /dev/null
@@ -1,49 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./common/eventHub.js'));
-
-var _x = _interopRequireDefault(require('./vendor.js')(2));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].use(_x["default"]);
-
-_core["default"].app({
- hooks: {
- // App 级别 hook,对整个 App 生效
- // 同时存在 Page hook 和 App hook 时,优先执行 Page hook,返回值再交由 App hook 处
- 'before-setData': function beforeSetData(dirty) {
- console.log('setData dirty: ', dirty);
- return dirty;
- }
- },
- globalData: {
- userInfo: null
- },
- onLaunch: function onLaunch() {
- // this.testAsync()
- _eventHub["default"].$on('app-launch', function () {
- console.log('app-launch event emitted, the params are:');
-
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- console.log(args);
- });
- },
- methods: {// sleep(s) {
- // return new Promise((resolve, reject) => {
- // setTimeout(() => {
- // resolve('promise resolved')
- // }, s * 1000)
- // })
- // },
- // async testAsync() {
- // let d = await this.sleep(3)
- // console.log(d)
- // }
- }
-}, {info: {"noPromiseAPI":["createSelectorQuery"]}, handlers: {}, models: {}, refs: undefined }, {info: {"noPromiseAPI":["createSelectorQuery"]}, handlers: {}, models: {}, refs: undefined }, {info: {"noPromiseAPI":["createSelectorQuery"]}, handlers: {}, models: {}, refs: undefined }, {info: {"noPromiseAPI":["createSelectorQuery"]}, handlers: {}, models: {}, refs: undefined }, {info: {"noPromiseAPI":["createSelectorQuery"]}, handlers: {}, models: {}, refs: undefined }, {info: {"noPromiseAPI":["createSelectorQuery"]}, handlers: {}, models: {}, refs: undefined }, {info: {"noPromiseAPI":["createSelectorQuery"]}, handlers: {}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/app.json b/mini-app/weapp/app.json
deleted file mode 100644
index 782d7f7f4..000000000
--- a/mini-app/weapp/app.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "pages": [
- "pages/index",
- "pages/form1",
- "pages/form2",
- "pages/form3",
- "pages/form4",
- "pages/form5",
- "pages/form6",
- "pages/mall/index",
- "pages/mall/goods-detail"
- ],
- "navigateToMiniProgramAppIdList": [
- "wx88736d7d39e2eda6"
- ],
- "window": {
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "WeChat",
- "navigationBarTextStyle": "white",
- "navigationStyle": "custom"
- },
- "usingComponents": {
- "nav-bar": "./components/nav-bar",
- "van-button": "./vant/button/index",
- "van-divider": "./vant/divider/index",
- "van-field": "./vant/field/index",
- "van-radio": "./vant/radio/index",
- "van-radio-group": "./vant/radio-group/index",
- "van-checkbox": "./vant/checkbox/index",
- "van-checkbox-group": "./vant/checkbox-group/index",
- "van-cell": "./vant/cell/index",
- "van-cell-group": "./vant/cell-group/index",
- "van-datetime-picker": "./vant/datetime-picker/index",
- "van-nav-bar": "./vant/nav-bar/index",
- "van-icon": "./vant/icon/index",
- "van-steps": "./vant/steps/index",
- "van-row": "./vant/row/index",
- "van-col": "./vant/col/index",
- "van-tabbar": "./vant/tabbar/index",
- "van-tabbar-item": "./vant/tabbar-item/index",
- "van-card": "./vant/card/index",
- "van-popup": "./vant/popup/index",
- "van-stepper": "./vant/stepper/index",
- "van-submit-bar": "./vant/submit-bar/index",
- "van-panel": "./vant/panel/index",
- "van-grid": "./vant/grid/index",
- "van-grid-item": "./vant/grid-item/index",
- "van-dialog": "./vant/dialog/index",
- "van-image": "./vant/image/index"
- },
- "sitemapLocation": "sitemap.json"
-}
\ No newline at end of file
diff --git a/mini-app/weapp/app.wxss b/mini-app/weapp/app.wxss
deleted file mode 100644
index 8733f135f..000000000
--- a/mini-app/weapp/app.wxss
+++ /dev/null
@@ -1,32 +0,0 @@
-.container {
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- box-sizing: border-box;
-}
-.buttonColor {
- background: #AC1630;
- color: #fff;
-}
-.buttonColor-cancel {
- background: #fff;
- color: #333;
-}
-.background-color {
- background: #AC1630;
-}
-.cell-title {
- padding: 10px 16px;
- font-weight: bold;
-}
-.cell {
- margin-top: 10px;
-}
-.boom {
- background-color: #F0F1F2;
- width: 100%;
- height: 15px;
-}
-
diff --git a/mini-app/weapp/common/eventHub.js b/mini-app/weapp/common/eventHub.js
deleted file mode 100644
index 1b9c45704..000000000
--- a/mini-app/weapp/common/eventHub.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-var eventHub = new _core["default"]();
-var _default = eventHub;
-exports["default"] = _default;
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-bbs.js b/mini-app/weapp/components/mall/mall-bbs.js
deleted file mode 100644
index 41e999a71..000000000
--- a/mini-app/weapp/components/mall/mall-bbs.js
+++ /dev/null
@@ -1,232 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].component({
- store: _store["default"],
- hooks: {},
- data: {
- user: _store["default"].state.user,
- list: [],
- isShowInput: false
- },
- computed: {},
- methods: {
- onReply: function onReply(item) {
- console.log(item);
- this.isShowInput = true;
- },
- onCloseInput: function onCloseInput() {
- this.isShowInput = false;
- },
- onConfirmInput: function onConfirmInput() {
- this.isShowInput = false;
- }
- },
- ready: function ready() {
- console.log('user:', this.user);
-
- for (var i = 0; i < 10; i++) {
- this.list.push({
- title: '标题',
- user: '用户1',
- context: '长篇大论长篇大论长篇大论长篇大论长篇大论长篇大论长篇大论长篇大论长篇大论长篇大论'
- });
- }
- }
-}, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'84-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onReply(item);
- })();
-}},'84-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseInput.apply(_vm, $args || [$event]);
- })();
-}, "confirm": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onConfirmInput.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-bbs.json b/mini-app/weapp/components/mall/mall-bbs.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/components/mall/mall-bbs.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-bbs.wxml b/mini-app/weapp/components/mall/mall-bbs.wxml
deleted file mode 100644
index 92326f5e5..000000000
--- a/mini-app/weapp/components/mall/mall-bbs.wxml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
- span: 8
-
-
-
- {{item.context}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
- 编辑
- 回复
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/components/mall/mall-bbs.wxss b/mini-app/weapp/components/mall/mall-bbs.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/components/mall/mall-bbs.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/components/mall/mall-car.js b/mini-app/weapp/components/mall/mall-car.js
deleted file mode 100644
index 7ffb28cf2..000000000
--- a/mini-app/weapp/components/mall/mall-car.js
+++ /dev/null
@@ -1,267 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].component({
- store: _store["default"],
- hooks: {},
- data: {
- active: 0,
- checked: false,
- list: [],
- selectedList: [],
- isAllSelect: false,
- price: 10000
- },
- computed: {},
- methods: {
- onChangeSelect: function onChangeSelect(e) {
- this.selectedList = e.$wx.detail;
- this.isAllSelect = this.selectedList.length === this.list.length;
- },
- onAllSelect: function onAllSelect(e) {
- this.isAllSelect = e.$wx.detail;
-
- if (this.isAllSelect) {
- this.selectedList = this.list.map(function (x) {
- return x.id;
- });
- } else {
- this.selectedList = [];
- }
- },
- onSubmit: function onSubmit() {// 订单提交
- }
- },
- ready: function ready() {
- for (var i = 0; i < 15; i++) {
- this.list.push({
- id: i + '',
- name: '商品',
- price: 599
- });
- }
- }
-}, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'85-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSelect.apply(_vm, $args || [$event]);
- })();
-}},'85-1': {"submit": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onSubmit.apply(_vm, $args || [$event]);
- })();
-}},'85-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onAllSelect.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-car.json b/mini-app/weapp/components/mall/mall-car.json
deleted file mode 100644
index 086ed892c..000000000
--- a/mini-app/weapp/components/mall/mall-car.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "navigationBarTitleText": "",
- "styleIsolation": "shared",
- "addGlobalClass": true,
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-car.wxml b/mini-app/weapp/components/mall/mall-car.wxml
deleted file mode 100644
index 37c29a43b..000000000
--- a/mini-app/weapp/components/mall/mall-car.wxml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 全选
-
-
diff --git a/mini-app/weapp/components/mall/mall-car.wxss b/mini-app/weapp/components/mall/mall-car.wxss
deleted file mode 100644
index 12bfd65af..000000000
--- a/mini-app/weapp/components/mall/mall-car.wxss
+++ /dev/null
@@ -1,18 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-.van-card__thumb {
- position: relative;
- -webkit-flex: none;
- flex: none;
- width: 66px;
- height: 66px;
- margin-left: 8px;
-}
-.submit-btn {
- border-radius: 20px !important;
- border: #AC1630 1px solid !important;
-}
-
diff --git a/mini-app/weapp/components/mall/mall-home.js b/mini-app/weapp/components/mall/mall-home.js
deleted file mode 100644
index 836a6b413..000000000
--- a/mini-app/weapp/components/mall/mall-home.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].component({
- store: _store["default"],
- hooks: {},
- data: {},
- computed: {},
- methods: {},
- ready: function ready() {}
-}, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-home.json b/mini-app/weapp/components/mall/mall-home.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/components/mall/mall-home.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-home.wxml b/mini-app/weapp/components/mall/mall-home.wxml
deleted file mode 100644
index e54821842..000000000
--- a/mini-app/weapp/components/mall/mall-home.wxml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-home
-
-
diff --git a/mini-app/weapp/components/mall/mall-home.wxss b/mini-app/weapp/components/mall/mall-home.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/components/mall/mall-home.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/components/mall/mall-my.js b/mini-app/weapp/components/mall/mall-my.js
deleted file mode 100644
index 8eda681d7..000000000
--- a/mini-app/weapp/components/mall/mall-my.js
+++ /dev/null
@@ -1,20 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].component({
- store: _store["default"],
- hooks: {},
- data: {
- active: 0
- },
- computed: {},
- methods: {},
- ready: function ready() {}
-}, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-my.json b/mini-app/weapp/components/mall/mall-my.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/components/mall/mall-my.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-my.wxml b/mini-app/weapp/components/mall/mall-my.wxml
deleted file mode 100644
index a3ec13833..000000000
--- a/mini-app/weapp/components/mall/mall-my.wxml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-my
diff --git a/mini-app/weapp/components/mall/mall-my.wxss b/mini-app/weapp/components/mall/mall-my.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/components/mall/mall-my.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/components/mall/mall-shopping.js b/mini-app/weapp/components/mall/mall-shopping.js
deleted file mode 100644
index ef11ca759..000000000
--- a/mini-app/weapp/components/mall/mall-shopping.js
+++ /dev/null
@@ -1,74 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../../xiao4rBase.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].component({
- store: _store["default"],
- hooks: {},
- data: {
- active: 0,
- list: [1, 2, 3, 4]
- },
- computed: {},
- methods: {
- onItem: function onItem(item) {
- console.log(item);
-
- _xiao4rBase["default"].navigateTo("goods-detail?id=".concat(item));
- }
- },
- ready: function ready() {}
-}, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'83-0': {"tap": function proxy (item) {
- var _vm=this;
- return (function () {
- _vm.onItem(item);
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-shopping.json b/mini-app/weapp/components/mall/mall-shopping.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/components/mall/mall-shopping.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/components/mall/mall-shopping.wxml b/mini-app/weapp/components/mall/mall-shopping.wxml
deleted file mode 100644
index 00558602a..000000000
--- a/mini-app/weapp/components/mall/mall-shopping.wxml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
- {{"已优惠¥xx元"}}
-
-
-
-
-
-
diff --git a/mini-app/weapp/components/mall/mall-shopping.wxss b/mini-app/weapp/components/mall/mall-shopping.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/components/mall/mall-shopping.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/components/nav-bar.js b/mini-app/weapp/components/nav-bar.js
deleted file mode 100644
index 492f622c6..000000000
--- a/mini-app/weapp/components/nav-bar.js
+++ /dev/null
@@ -1,78 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].component({
- props: {
- title: {
- type: String,
- "default": '贺兰山酒庄普查'
- }
- },
- data: {},
- events: {},
- methods: {
- onBack: function onBack() {
- wx.navigateBack();
- }
- },
- onLoad: function onLoad() {}
-}, {info: {"components":{},"on":{}}, handlers: {'20-0': {"click-left": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onBack.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'20-0': {"click-left": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onBack.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'20-0': {"click-left": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onBack.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'20-0': {"click-left": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onBack.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'20-0': {"click-left": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onBack.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'20-0': {"click-left": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onBack.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'20-0': {"click-left": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onBack.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/components/nav-bar.json b/mini-app/weapp/components/nav-bar.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/components/nav-bar.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/components/nav-bar.wxml b/mini-app/weapp/components/nav-bar.wxml
deleted file mode 100644
index 595a4c1ac..000000000
--- a/mini-app/weapp/components/nav-bar.wxml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
- {{title}}
-
diff --git a/mini-app/weapp/components/nav-bar.wxss b/mini-app/weapp/components/nav-bar.wxss
deleted file mode 100644
index 8b1378917..000000000
--- a/mini-app/weapp/components/nav-bar.wxss
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/mini-app/weapp/components/user/dialog-registration.js b/mini-app/weapp/components/user/dialog-registration.js
deleted file mode 100644
index 14c3687f8..000000000
--- a/mini-app/weapp/components/user/dialog-registration.js
+++ /dev/null
@@ -1,197 +0,0 @@
-"use strict";
-
-var _regeneratorRuntime2 = _interopRequireDefault(require('./../../vendor.js')(3));
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-var _eventHub = _interopRequireDefault(require('./../../common/eventHub.js'));
-
-var _xiao4rBase = _interopRequireDefault(require('./../../xiao4rBase.js'));
-
-var _userApis = _interopRequireDefault(require('./../../apis/userApis.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
-
-function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
-
-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; }
-
-_core["default"].component({
- store: _store["default"],
- props: {},
- hooks: {},
- data: {
- that: void 0,
- isShow: false,
- model: {},
- isChecked: false
- },
- computed: (0, _x.mapState)(['user']),
- events: {},
- methods: _objectSpread(_objectSpread({}, (0, _x.mapActions)(['setUserAction', 'setUserInfoAction', 'setMobileAction', 'setTokenAction'])), {}, {
- getUserInfo: function getUserInfo(event) {
- console.log('getUserInfo:', event.$wx.detail);
- this.setUserInfoAction(event.$wx.detail.userInfo);
- console.log('userInfo:', _store["default"].state.user.userInfo);
-
- if (!this.isChecked) {
- _xiao4rBase["default"].showToast('请确认xxxx协议.');
-
- return false;
- }
-
- if (!this.user.mobile) {
- _xiao4rBase["default"].showToast('请授权获取手机号码.');
-
- return false;
- }
-
- if (!this.user.userInfo) {
- _xiao4rBase["default"].showToast('请授权获取用户昵称.');
-
- return false;
- }
-
- var self = this;
-
- _userApis["default"].registrationByMini(this.user).then(function (r) {
- if (r.code === 200) {
- _xiao4rBase["default"].showToast('注册成功!');
-
- self.isShow = false;
- self.setTokenAction(r.token);
- } else {
- _xiao4rBase["default"].showToast(r.msg);
- }
- })["catch"](function (e) {
- _xiao4rBase["default"].showToast('注册失败!');
- });
- },
- onGetMobile: function onGetMobile(e) {
- var _this = this;
-
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime2["default"].mark(function _callee() {
- var rsp;
- return _regeneratorRuntime2["default"].wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- console.log(e.$wx.detail);
- wx.showLoading({
- title: '获取中...',
- mask: true
- });
- _context.prev = 2;
- _context.next = 5;
- return _userApis["default"].sendMobile({
- openid: _xiao4rBase["default"].getOpenid(),
- detail: e.$wx.detail
- });
-
- case 5:
- rsp = _context.sent;
- console.log(rsp);
-
- if (rsp.code === 200) {
- _this.setMobileAction(rsp.data.mobile);
- } else {
- _xiao4rBase["default"].showToast('服务器连接异常.');
- }
-
- _context.next = 13;
- break;
-
- case 10:
- _context.prev = 10;
- _context.t0 = _context["catch"](2);
-
- _xiao4rBase["default"].showToast('服务器连接异常.');
-
- case 13:
- _context.prev = 13;
- wx.hideLoading();
- return _context.finish(13);
-
- case 16:
- case "end":
- return _context.stop();
- }
- }
- }, _callee, null, [[2, 10, 13, 16]]);
- }))();
- },
- onChangeCheak: function onChangeCheak(e) {
- this.isChecked = e.$wx.detail;
- },
- onClose: function onClose() {
- this.isShow = false;
- }
- }),
- ready: function ready() {
- var _this2 = this;
-
- // 获取系统信息
- var self = this;
- wx.getSystemInfo({
- success: function success(res) {
- self.model = res.model;
- }
- });
- console.log(this);
- this.page = this;
-
- _eventHub["default"].$on('onShowDialogUserInfo', function () {
- _this2.isShow = true;
- });
- }
-}, {info: {"components":{},"on":{}}, handlers: {'87-42': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onClose.apply(_vm, $args || [$event]);
- })();
-}, "cancel": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onClose.apply(_vm, $args || [$event]);
- })();
-}, "getuserinfo": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.getUserInfo.apply(_vm, $args || [$event]);
- })();
-}},'87-45': {"getphonenumber": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onGetMobile.apply(_vm, $args || [$event]);
- })();
-}},'87-46': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCheak.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/components/user/dialog-registration.json b/mini-app/weapp/components/user/dialog-registration.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/components/user/dialog-registration.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/components/user/dialog-registration.wxml b/mini-app/weapp/components/user/dialog-registration.wxml
deleted file mode 100644
index aa1089dcd..000000000
--- a/mini-app/weapp/components/user/dialog-registration.wxml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
- 授权
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 我同意xxxxx 用户协议
-
-
-
-
-
-
diff --git a/mini-app/weapp/components/user/dialog-registration.wxss b/mini-app/weapp/components/user/dialog-registration.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/components/user/dialog-registration.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/config.js b/mini-app/weapp/config.js
deleted file mode 100644
index 04761df23..000000000
--- a/mini-app/weapp/config.js
+++ /dev/null
@@ -1,12 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.MINI_DEPTID = void 0;
-
-/**
- * 常量
- */
-var MINI_DEPTID = 100;
-exports.MINI_DEPTID = MINI_DEPTID;
\ No newline at end of file
diff --git a/mini-app/weapp/js/request.js b/mini-app/weapp/js/request.js
deleted file mode 100644
index a0f48e610..000000000
--- a/mini-app/weapp/js/request.js
+++ /dev/null
@@ -1,110 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-var _uuid = require('./utils/uuid.js');
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
-function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
-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 Xiao4rRequest = /*#__PURE__*/function () {
- function Xiao4rRequest() {
- _classCallCheck(this, Xiao4rRequest);
-
- _defineProperty(this, "requestTaskMap", new Map());
- }
-
- _createClass(Xiao4rRequest, [{
- key: "requestPromise",
-
- /**
- * requestPromise用于将wx.request改写成Promise方式
- * @param:{string} myUrl 接口地址
- * @return: Promise实例对象
- */
- value: function requestPromise(req) {
- var _this = this;
-
- var id = (0, _uuid.uuid)();
- var self = this;
-
- if (_store["default"].state.user.token) {
- if (req.header) {
- req.header['Authorization'] = _store["default"].state.user.token;
- } else {
- req.header = {
- Authorization: _store["default"].state.user.token
- };
- }
- }
-
- var promise = new Promise(function (resolve, reject) {
- var task = wx.request({
- url: req.url,
- method: req.method,
- header: req.header,
- data: req.data,
- success: function success(rsp) {
- return resolve(rsp.data);
- },
- fail: function fail(error) {
- _xiao4rBase["default"].showToast('网络连接异常.');
-
- reject(error);
- },
- complete: function complete() {
- _this.requestTaskMap["delete"](id);
- }
- });
- self.requestTaskMap.set(id, task);
- }); // 返回一个Promise实例对象
-
- promise.taskId = id;
- return promise;
- }
- }, {
- key: "post",
- value: function post(req) {
- req.method = 'POST';
- return this.requestPromise(req);
- }
- }, {
- key: "get",
- value: function get(req) {
- req.method = 'GET';
- return this.requestPromise(req);
- }
- }, {
- key: "put",
- value: function put(req) {
- req.method = 'PUT';
- return this.requestPromise(req);
- }
- }, {
- key: "del",
- value: function del(req) {
- req.method = 'DEL';
- return this.requestPromise(req);
- }
- }]);
-
- return Xiao4rRequest;
-}();
-
-var _default = new Xiao4rRequest();
-
-exports["default"] = _default;
\ No newline at end of file
diff --git a/mini-app/weapp/js/utils/uuid.js b/mini-app/weapp/js/utils/uuid.js
deleted file mode 100644
index ee31022e4..000000000
--- a/mini-app/weapp/js/utils/uuid.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.uuid = uuid;
-
-function uuid() {
- var s = [];
- var hexDigits = '0123456789abcdef';
-
- for (var i = 0; i < 36; i++) {
- s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
- }
-
- s[14] = '4'; // bits 12-15 of the time_hi_and_version field to 0010
-
- s[19] = hexDigits.substr(s[19] & 0x3 | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01
-
- s[8] = s[13] = s[18] = s[23] = '-';
- var uuid = s.join('');
- return uuid;
-}
\ No newline at end of file
diff --git a/mini-app/weapp/js/utils/validateUtils.js b/mini-app/weapp/js/utils/validateUtils.js
deleted file mode 100644
index 1dc1e2637..000000000
--- a/mini-app/weapp/js/utils/validateUtils.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
-function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
-var ValidateUtils = /*#__PURE__*/function () {
- function ValidateUtils() {
- _classCallCheck(this, ValidateUtils);
- }
-
- _createClass(ValidateUtils, [{
- key: "isEmail",
- value: function isEmail(value) {
- var reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
- return reg.test(value);
- }
- /**
- * 校验数字或者小数
- * @param text
- * @returns {boolean}
- */
-
- }, {
- key: "isIntOrDecimal",
- value: function isIntOrDecimal(text) {
- var pattern = /^[0-9]+([.]{1}[0-9]+){0,1}$/;
- return pattern.test(text);
- }
- }]);
-
- return ValidateUtils;
-}();
-
-var _default = new ValidateUtils();
-
-exports["default"] = _default;
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form1.js b/mini-app/weapp/pages/form1.js
deleted file mode 100644
index 5659ae73c..000000000
--- a/mini-app/weapp/pages/form1.js
+++ /dev/null
@@ -1,240 +0,0 @@
-"use strict";
-
-var _regeneratorRuntime2 = _interopRequireDefault(require('./../vendor.js')(3));
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./../common/eventHub.js'));
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-var _x = require('./../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-var _userApis = _interopRequireDefault(require('./../apis/userApis.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
-
-function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
-
-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; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {
- // Page 级别 hook, 只对当前 Page 的 setData 生效。
- 'before-setData': function beforeSetData(dirty) {
- if (Math.random() < 0.2) {
- console.log('setData canceled');
- return false; // Cancel setData
- }
-
- dirty.time = +new Date();
- return dirty;
- }
- },
- data: {
- form: _store["default"].state.wineryForm,
- wineryStatusType: ['已建成投产', '在建已投产', '在建未投产', '已停产']
- },
- computed: (0, _x.mapState)(['wineryForm']),
- methods: _objectSpread(_objectSpread({}, (0, _x.mapActions)(['setWineryFormAction'])), {}, {
- bindDateChange: function bindDateChange(event) {
- this.wineryForm.buildTime = event.$wx.detail.value;
- },
- bindRegionChange: function bindRegionChange(event) {
- this.wineryForm.region = event.$wx.detail.value;
- },
- onChangeWineryStatus: function onChangeWineryStatus(e) {
- this.wineryForm.wineryStatus = e.$wx.detail;
- },
- onGetMobile: function onGetMobile(e) {
- var _this = this;
-
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime2["default"].mark(function _callee() {
- var rsp;
- return _regeneratorRuntime2["default"].wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- wx.showLoading({
- title: '获取中...',
- mask: true
- });
- _context.prev = 1;
- _context.next = 4;
- return _userApis["default"].sendMobile({
- openid: _xiao4rBase["default"].getOpenid(),
- detail: e.$wx.detail
- });
-
- case 4:
- rsp = _context.sent;
-
- if (rsp.code === 200) {
- _this.wineryForm.mobile = rsp.data.mobile;
- }
-
- _xiao4rBase["default"].showToast(rsp.msg);
-
- _context.next = 12;
- break;
-
- case 9:
- _context.prev = 9;
- _context.t0 = _context["catch"](1);
-
- _xiao4rBase["default"].showToast('服务器连接异常,请联系管理员.');
-
- case 12:
- _context.prev = 12;
- wx.hideLoading();
- return _context.finish(12);
-
- case 15:
- case "end":
- return _context.stop();
- }
- }
- }, _callee, null, [[1, 9, 12, 15]]);
- }))();
- },
- onNext: function onNext() {
- console.log(this.form);
-
- if (!this.wineryForm.mobile) {
- _xiao4rBase["default"].showToast('请授权获取您的手机号');
-
- return;
- }
-
- if (!this.wineryForm.wineryName) {
- _xiao4rBase["default"].showToast('请输入您的酒庄名称');
-
- return;
- }
-
- if (!this.wineryForm.buildTime) {
- _xiao4rBase["default"].showToast('请输入您的酒庄成立时间');
-
- return;
- }
-
- if (!this.wineryForm.address) {
- _xiao4rBase["default"].showToast('请输入您的酒庄地址');
-
- return;
- }
-
- if (!this.wineryForm.wineryArea) {
- _xiao4rBase["default"].showToast('请输入您的酒庄总面积');
-
- return;
- }
-
- if (!this.wineryForm.buildArea) {
- _xiao4rBase["default"].showToast('请输入您的建筑总面积');
-
- return;
- } // this.setFormAction(this.form)
-
-
- _xiao4rBase["default"].navigateTo('form2');
- }
- }),
- created: function created() {
- var self = this;
- }
-}, {info: {"components":{},"on":{}}, handlers: {'12-5': {"getphonenumber": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onGetMobile.apply(_vm, $args || [$event]);
- })();
-}},'12-6': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.bindDateChange.apply(_vm, $args || [$event]);
- })();
-}},'12-7': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.bindRegionChange.apply(_vm, $args || [$event]);
- })();
-}},'12-8': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWineryStatus.apply(_vm, $args || [$event]);
- })();
-}},'12-9': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'21': {
- type: "input",
- expr: "wineryForm.wineryName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "wineryName", $v);
-
- }
- },'22': {
- type: "change",
- expr: "wineryForm.date",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "date", $v);
-
- }
- },'23': {
- type: "change",
- expr: "wineryForm.region",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "region", $v);
-
- }
- },'24': {
- type: "input",
- expr: "wineryForm.address",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "address", $v);
-
- }
- },'25': {
- type: "input",
- expr: "wineryForm.wineryArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "wineryArea", $v);
-
- }
- },'26': {
- type: "input",
- expr: "wineryForm.buildArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "buildArea", $v);
-
- }
- }}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form1.json b/mini-app/weapp/pages/form1.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/pages/form1.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form1.wxml b/mini-app/weapp/pages/form1.wxml
deleted file mode 100644
index 778e15ddf..000000000
--- a/mini-app/weapp/pages/form1.wxml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
- 绑定手机号
-
- 授权
-
-
-
-
-
- 酒庄全称
-
-
-
-
- 酒庄成立时间
-
-
-
-
-
-
-
-
- 酒庄地址(省市区)
-
-
-
-
-
-
-
- 酒庄地址(详细)
-
-
-
-
- 酒庄总面积
-
-
- 亩
-
-
-
-
- 建筑总面积
-
-
- 平方米
-
-
-
-
-
- 酒庄现状
-
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/form1.wxss b/mini-app/weapp/pages/form1.wxss
deleted file mode 100644
index 86ceefbab..000000000
--- a/mini-app/weapp/pages/form1.wxss
+++ /dev/null
@@ -1,20 +0,0 @@
-.header {
- width: 100%;
- height: 100rpx;
- display: flex;
-}
-input {
- margin: 12px 15px;
- font-size: 14px;
-}
-.cell-input {
- display: flex;
- justify-content: space-between;
- margin-right: 15px;
-}
-.cell-item {
- margin-left: 22px;
- margin-top: 12px;
- width: 300rpx;
-}
-
diff --git a/mini-app/weapp/pages/form2.js b/mini-app/weapp/pages/form2.js
deleted file mode 100644
index 6ca3444b1..000000000
--- a/mini-app/weapp/pages/form2.js
+++ /dev/null
@@ -1,72 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./../common/eventHub.js'));
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-var _x = require('./../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {
- // Page 级别 hook, 只对当前 Page 的 setData 生效。
- 'before-setData': function beforeSetData(dirty) {
- if (Math.random() < 0.2) {
- console.log('setData canceled');
- return false; // Cancel setData
- }
-
- dirty.time = +new Date();
- return dirty;
- }
- },
- data: {},
- computed: (0, _x.mapState)(['wineryForm']),
- methods: {
- onNext: function onNext() {
- _xiao4rBase["default"].navigateTo('form3');
- }
- },
- created: function created() {}
-}, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'13-0': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form2.json b/mini-app/weapp/pages/form2.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/pages/form2.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form2.wxml b/mini-app/weapp/pages/form2.wxml
deleted file mode 100644
index 81a63d629..000000000
--- a/mini-app/weapp/pages/form2.wxml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
- 填报指南
- 您好,仅需三步即可完成自主填报
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/form2.wxss b/mini-app/weapp/pages/form2.wxss
deleted file mode 100644
index a6a1a8bf6..000000000
--- a/mini-app/weapp/pages/form2.wxss
+++ /dev/null
@@ -1,43 +0,0 @@
-page {
- background-color: #F0F1F2;
-}
-.header {
- width: 100%;
- height: 320px;
- display: flex;
-}
-.header-cell {
- margin: 15px 15px 0 15px;
- display: flex;
- justify-content: space-between;
-}
-.header-title {
- width: 260rpx;
-}
-.header-value {
- width: 420rpx;
-}
-.fream {
- position: absolute;
- top: 265px;
- left: 0;
- right: 0;
- margin: 0 auto 0 auto;
- background: white;
- width: 610rpx;
- height: 638rpx;
- border: white 1px solid;
- border-radius: 10px;
- padding: 20px;
- display: flex;
- align-items: center;
- justify-items: center;
- justify-content: center;
- flex-direction: column;
-}
-.step-point {
- z-index: 99;
- background: white;
- color: #AC1630;
-}
-
diff --git a/mini-app/weapp/pages/form3.js b/mini-app/weapp/pages/form3.js
deleted file mode 100644
index f096da75a..000000000
--- a/mini-app/weapp/pages/form3.js
+++ /dev/null
@@ -1,1032 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./../common/eventHub.js'));
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-var _x = require('./../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-var _xiao4rApis = _interopRequireDefault(require('./../apis/xiao4rApis.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-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; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {// Page 级别 hook, 只对当前 Page 的 setData 生效。
- // 'before-setData': function(dirty) {
- // if (Math.random() < 0.2) {
- // console.log('setData canceled')
- // return false // Cancel setData
- // }
- // dirty.time = +new Date()
- // return dirty
- // }
- },
- data: {
- soilTypes: ['沙石', '砾石', '石灰岩', '混合'],
- irrigationTypes: ['漫灌', '喷灌', '滴灌'],
- redVarieties: ['赤霞珠', '梅洛', '品丽珠', '黑皮诺', '西拉', '歌海娜', '桑娇维塞', '内比奥罗', '丹魄', '马尔贝克', '其他'],
- whiteVarieties: ['霞多丽', '长相思', '雷司令', '灰皮诺', '赛美蓉', '琼瑶浆', '其他']
- },
- computed: (0, _x.mapState)(['wineryForm']),
- watch: {},
- methods: _objectSpread(_objectSpread({}, (0, _x.mapActions)(['setFormAction'])), {}, {
- onChangeSoilType: function onChangeSoilType(e) {
- this.wineryForm.soilType = e.$wx.detail;
- },
- onChangeIrrigationType: function onChangeIrrigationType(e) {
- this.wineryForm.irrigationType = e.$wx.detail;
- },
- onChangeRedVariety: function onChangeRedVariety(e) {
- this.wineryForm.redVariety.checked = e.$wx.detail;
- this.changeItem(this.wineryForm.redVariety.checked, this.wineryForm.redVariety.params);
- },
- onChangeWhiteVariety: function onChangeWhiteVariety(e) {
- console.log(e);
- this.wineryForm.whiteVariety.checked = e.$wx.detail;
- this.changeItem(this.wineryForm.whiteVariety.checked, this.wineryForm.whiteVariety.params);
- },
- changeItem: function changeItem(types, items) {
- for (var i = 0; i < items.length; i++) {
- var isChecked = false;
-
- for (var j = 0; j < types.length; j++) {
- // console.log(types[j])
- // console.log(items[i].name)
- if (types[j] === items[i].name) {
- isChecked = true;
- break;
- }
- }
-
- items[i].isChecked = isChecked;
-
- if (!items[i].isChecked) {
- items[i].msg = {
- area: '',
- treeOld: '',
- treeMaxOld: ''
- };
- }
- }
- },
- initVariety: function initVariety(types, fromList) {
- for (var i = 0; i < types.length; i++) {
- fromList.push({
- name: types[i],
- isChecked: false,
- msg: {
- area: '',
- treeOld: '',
- treeMaxOld: ''
- }
- });
- }
- },
- onNext: function onNext() {
- if (!this.wineryForm.plantArea) {
- _xiao4rBase["default"].showToast('请输入种植面积!');
-
- return;
- }
-
- if (!this.wineryForm.plantWeight) {
- _xiao4rBase["default"].showToast('请输入产量!');
-
- return;
- }
-
- var error = this.checkVariety(this.wineryForm.redVariety);
-
- if (error) {
- _xiao4rBase["default"].showToast('请检查红葡萄信息:' + error);
-
- return;
- }
-
- error = this.checkVariety(this.wineryForm.whiteVariety);
-
- if (error) {
- _xiao4rBase["default"].showToast('请检查白葡萄信息:' + error);
-
- return;
- } // this.setFormAction(this.form)
-
-
- _xiao4rBase["default"].navigateTo('form4');
- },
- onBack: function onBack() {
- // this.setFormAction(this.form)
- wx.navigateBack();
- },
- checkVariety: function checkVariety(variety) {
- var errorMsg = '';
- var isChecked = false;
-
- for (var i = 0; i < variety.params.length; i++) {
- var item = variety.params[i];
-
- if (item.isChecked) {
- isChecked = true;
-
- if (!item.msg.area || !item.msg.treeOld || !item.msg.treeMaxOld) {
- errorMsg = '请完善' + item.name + '品种信息!';
- }
- }
- }
-
- if (!isChecked) {
- errorMsg = '请选择葡萄品种!';
- }
-
- return errorMsg;
- }
- }),
- created: function created() {
- if (this.wineryForm.redVariety.params.length < 1) {
- this.initVariety(this.redVarieties, this.wineryForm.redVariety.params);
- }
-
- if (this.wineryForm.whiteVariety.params.length < 1) {
- this.initVariety(this.whiteVarieties, this.wineryForm.whiteVariety.params);
- }
- }
-}, {info: {"components":{},"on":{}}, handlers: {'14-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSoilType.apply(_vm, $args || [$event]);
- })();
-}},'14-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeRedVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWhiteVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-3': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeIrrigationType.apply(_vm, $args || [$event]);
- })();
-}},'14-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'14-5': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'6': {
- type: "input",
- expr: "wineryForm.plantArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantArea", $v);
-
- }
- },'7': {
- type: "input",
- expr: "wineryForm.plantWeight",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantWeight", $v);
-
- }
- },'8': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'9': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'10': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'11': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'12': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'13': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'14-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSoilType.apply(_vm, $args || [$event]);
- })();
-}},'14-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeRedVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWhiteVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-3': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeIrrigationType.apply(_vm, $args || [$event]);
- })();
-}},'14-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'14-5': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'6': {
- type: "input",
- expr: "wineryForm.plantArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantArea", $v);
-
- }
- },'7': {
- type: "input",
- expr: "wineryForm.plantWeight",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantWeight", $v);
-
- }
- },'8': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'9': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'10': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'11': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'12': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'13': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'14-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSoilType.apply(_vm, $args || [$event]);
- })();
-}},'14-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeRedVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWhiteVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-3': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeIrrigationType.apply(_vm, $args || [$event]);
- })();
-}},'14-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'14-5': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'6': {
- type: "input",
- expr: "wineryForm.plantArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantArea", $v);
-
- }
- },'7': {
- type: "input",
- expr: "wineryForm.plantWeight",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantWeight", $v);
-
- }
- },'8': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'9': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'10': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'11': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'12': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'13': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'14-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSoilType.apply(_vm, $args || [$event]);
- })();
-}},'14-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeRedVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWhiteVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-3': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeIrrigationType.apply(_vm, $args || [$event]);
- })();
-}},'14-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'14-5': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'6': {
- type: "input",
- expr: "wineryForm.plantArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantArea", $v);
-
- }
- },'7': {
- type: "input",
- expr: "wineryForm.plantWeight",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantWeight", $v);
-
- }
- },'8': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'9': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'10': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'11': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'12': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'13': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'14-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSoilType.apply(_vm, $args || [$event]);
- })();
-}},'14-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeRedVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWhiteVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-3': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeIrrigationType.apply(_vm, $args || [$event]);
- })();
-}},'14-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'14-5': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'6': {
- type: "input",
- expr: "wineryForm.plantArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantArea", $v);
-
- }
- },'7': {
- type: "input",
- expr: "wineryForm.plantWeight",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantWeight", $v);
-
- }
- },'8': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'9': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'10': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'11': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'12': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'13': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'14-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSoilType.apply(_vm, $args || [$event]);
- })();
-}},'14-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeRedVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWhiteVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-3': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeIrrigationType.apply(_vm, $args || [$event]);
- })();
-}},'14-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'14-5': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'6': {
- type: "input",
- expr: "wineryForm.plantArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantArea", $v);
-
- }
- },'7': {
- type: "input",
- expr: "wineryForm.plantWeight",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantWeight", $v);
-
- }
- },'8': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'9': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'10': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'11': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'12': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'13': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'14-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSoilType.apply(_vm, $args || [$event]);
- })();
-}},'14-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeRedVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeWhiteVariety.apply(_vm, $args || [$event]);
- })();
-}},'14-3': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeIrrigationType.apply(_vm, $args || [$event]);
- })();
-}},'14-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'14-5': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'6': {
- type: "input",
- expr: "wineryForm.plantArea",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantArea", $v);
-
- }
- },'7': {
- type: "input",
- expr: "wineryForm.plantWeight",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "plantWeight", $v);
-
- }
- },'8': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'9': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'10': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.redVariety.params)[$p[0]]);
-
- }
- },'11': {
- type: "input",
- expr: "item.msg.area",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "area", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'12': {
- type: "input",
- expr: "item.msg.treeOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- },'13': {
- type: "input",
- expr: "item.msg.treeMaxOld",
- handler: function set ($v, $p) {
- var _vm=this;
- function fn1(item) {
- _vm.$set(item.msg, "treeMaxOld", $v);
- }
- return fn1((_vm.wineryForm.whiteVariety.params)[$p[0]]);
-
- }
- }}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form3.json b/mini-app/weapp/pages/form3.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/pages/form3.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form3.wxml b/mini-app/weapp/pages/form3.wxml
deleted file mode 100644
index cec80aa86..000000000
--- a/mini-app/weapp/pages/form3.wxml
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
- 种植总面积
-
-
-
- 亩
-
-
-
- 斤
-
-
-
-
-
-
-
- 土壤类型
-
-
-
- {{item}}
-
-
-
-
-
-
-
- 红葡萄品种
-
-
-
-
-
- {{item.name}}
-
-
- 种地
-
- 亩树龄
-
- 年,最大树龄
-
- 年
-
-
-
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
-
- 白葡萄品种
-
-
-
-
-
- {{item.name}}
-
-
- 种地
-
- 亩树龄
-
- 年,最大树龄
-
- 年
-
-
-
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
-
- 主要灌溉方式
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/form3.wxss b/mini-app/weapp/pages/form3.wxss
deleted file mode 100644
index 557d7c3ee..000000000
--- a/mini-app/weapp/pages/form3.wxss
+++ /dev/null
@@ -1,52 +0,0 @@
-.header {
- width: 100%;
- height: 150rpx;
- display: flex;
- justify-content: center;
-}
-.cell-full-area {
- border: #ddd 1px solid;
- border-radius: 8px;
- width: 620rpx;
- padding: 16px;
- margin: 11px 15px;
- display: flex;
-}
-.cell1 {
- flex: 1;
- display: flex;
-}
-.cell1-input {
- width: 215rpx;
-}
-.cell2-radio {
- margin-left: 22px;
-}
-.cell3-cheakbox {
- margin-top: 10px;
- text-align: center;
- flex: 0 0 30%;
- width: 200rpx;
-}
-.cell3-cheakbox-checked {
- margin-top: 10px;
- text-align: center;
- flex: 1;
- width: 100%;
-}
-.cell3-input-line {
- flex: 1;
- display: flex;
- font-size: 14px;
- text-align: center;
- align-items: center;
- margin-left: 15px;
- margin-top: 5px;
-}
-.cell3-input {
- width: 96rpx;
- border: #ddd 1px solid;
- background: #FAFAFA;
- margin: 5px;
-}
-
diff --git a/mini-app/weapp/pages/form4.js b/mini-app/weapp/pages/form4.js
deleted file mode 100644
index 64e7a1e3d..000000000
--- a/mini-app/weapp/pages/form4.js
+++ /dev/null
@@ -1,312 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./../common/eventHub.js'));
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-var _x = require('./../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-var _xiao4rApis = _interopRequireDefault(require('./../apis/xiao4rApis.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {// Page 级别 hook, 只对当前 Page 的 setData 生效。
- // 'before-setData': function(dirty) {
- // if (Math.random() < 0.2) {
- // console.log('setData canceled')
- // return false // Cancel setData
- // }
- // dirty.time = +new Date()
- // return dirty
- // }
- },
- data: {
- fermentationProcessType: ['冷浸渍', '倒灌', '压帽', '二氧化碳浸渍', '整串发酵', '半二氧化碳浸渍', '酒泥陈酿'],
- containerType: ['不锈钢罐', '橡木桶'],
- clarificationMethodType: ['沉淀', '下胶', '过滤']
- },
- computed: (0, _x.mapState)(['wineryForm']),
- watch: {},
- methods: {
- onChangeFermentationProcess: function onChangeFermentationProcess(e) {
- this.wineryForm.fermentationProcess = e.$wx.detail;
- },
- onChangeContainer: function onChangeContainer(e) {
- this.wineryForm.container = e.$wx.detail;
- },
- onChangeClarificationMethod: function onChangeClarificationMethod(e) {
- this.wineryForm.clarificationMethod = e.$wx.detail;
- },
- onNext: function onNext() {
- if (this.wineryForm.fermentationProcess.length < 1) {
- _xiao4rBase["default"].showToast('请选择酒精发酵工艺!');
-
- return;
- }
-
- if (this.wineryForm.container.length < 1) {
- _xiao4rBase["default"].showToast('请选择热化容器!');
-
- return;
- }
-
- if (this.wineryForm.clarificationMethod.length < 1) {
- _xiao4rBase["default"].showToast('请选择澄清方式!');
-
- return;
- }
-
- _xiao4rBase["default"].navigateTo('form5');
- },
- onBack: function onBack() {
- wx.navigateBack();
- }
- },
- created: function created() {
- console.log(this.form);
- }
-}, {info: {"components":{},"on":{}}, handlers: {'15-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeFermentationProcess.apply(_vm, $args || [$event]);
- })();
-}},'15-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeContainer.apply(_vm, $args || [$event]);
- })();
-}},'15-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeClarificationMethod.apply(_vm, $args || [$event]);
- })();
-}},'15-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'15-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'15-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeFermentationProcess.apply(_vm, $args || [$event]);
- })();
-}},'15-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeContainer.apply(_vm, $args || [$event]);
- })();
-}},'15-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeClarificationMethod.apply(_vm, $args || [$event]);
- })();
-}},'15-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'15-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'15-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeFermentationProcess.apply(_vm, $args || [$event]);
- })();
-}},'15-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeContainer.apply(_vm, $args || [$event]);
- })();
-}},'15-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeClarificationMethod.apply(_vm, $args || [$event]);
- })();
-}},'15-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'15-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'15-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeFermentationProcess.apply(_vm, $args || [$event]);
- })();
-}},'15-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeContainer.apply(_vm, $args || [$event]);
- })();
-}},'15-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeClarificationMethod.apply(_vm, $args || [$event]);
- })();
-}},'15-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'15-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'15-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeFermentationProcess.apply(_vm, $args || [$event]);
- })();
-}},'15-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeContainer.apply(_vm, $args || [$event]);
- })();
-}},'15-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeClarificationMethod.apply(_vm, $args || [$event]);
- })();
-}},'15-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'15-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'15-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeFermentationProcess.apply(_vm, $args || [$event]);
- })();
-}},'15-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeContainer.apply(_vm, $args || [$event]);
- })();
-}},'15-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeClarificationMethod.apply(_vm, $args || [$event]);
- })();
-}},'15-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'15-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'15-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeFermentationProcess.apply(_vm, $args || [$event]);
- })();
-}},'15-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeContainer.apply(_vm, $args || [$event]);
- })();
-}},'15-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeClarificationMethod.apply(_vm, $args || [$event]);
- })();
-}},'15-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'15-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form4.json b/mini-app/weapp/pages/form4.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/pages/form4.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form4.wxml b/mini-app/weapp/pages/form4.wxml
deleted file mode 100644
index 62618eea3..000000000
--- a/mini-app/weapp/pages/form4.wxml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
- 酒精发酵工艺
-
-
-
- {{item}}
-
-
-
-
-
-
-
- 热化容器
-
-
-
- {{item}}
-
-
-
-
-
-
-
- 澄清方式
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/form4.wxss b/mini-app/weapp/pages/form4.wxss
deleted file mode 100644
index e0512eb01..000000000
--- a/mini-app/weapp/pages/form4.wxss
+++ /dev/null
@@ -1,17 +0,0 @@
-.header {
- width: 100%;
- height: 150rpx;
- display: flex;
- justify-content: center;
-}
-.cell-item {
- margin-left: 22px;
- margin-top: 12px;
- width: 300rpx;
-}
-.cell-item2 {
- margin-left: 22px;
- margin-top: 12px;
- width: 150rpx;
-}
-
diff --git a/mini-app/weapp/pages/form5.js b/mini-app/weapp/pages/form5.js
deleted file mode 100644
index f061181f2..000000000
--- a/mini-app/weapp/pages/form5.js
+++ /dev/null
@@ -1,549 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./../common/eventHub.js'));
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-var _x = require('./../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-var _xiao4rApis = _interopRequireDefault(require('./../apis/xiao4rApis.js'));
-
-var _validateUtils = _interopRequireDefault(require('./../js/utils/validateUtils.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {// Page 级别 hook, 只对当前 Page 的 setData 生效。
- // 'before-setData': function(dirty) {
- // if (Math.random() < 0.2) {
- // console.log('setData canceled')
- // return false // Cancel setData
- // }
- // dirty.time = +new Date()
- // return dirty
- // }
- },
- data: {
- mainPriceType: ['100以下', '100~199', '200~299', '300~399', '400~499', '500~599', '600~699', '700~799', '800~899', '900~999', '1000或以上'],
- salesModeType: ['自销', '渠道代理', '包销', '网销'],
- awardType: ['2017柏林葡萄酒大奖赛', '2017年第24届布鲁塞尔葡萄酒大赛', '第六届宁夏贺兰山东麓国际葡萄酒博览会', '2018柏林葡萄酒大奖赛', '2018第25届布鲁塞尔葡萄酒大赛', '2018Decanter(品醇客)世界葡萄酒大赛', '2019柏林葡萄酒大奖赛', '2019Decanter(品醇客)世界葡萄酒大赛', '2019第26届布鲁塞尔葡萄酒大赛', '第八届宁夏贺兰山东麓国际葡萄酒博览会', '2020柏林葡萄酒大奖赛', '2020第27届布鲁塞尔葡萄酒大赛', '第九届宁夏贺兰山东麓国际葡萄酒博览会']
- },
- computed: (0, _x.mapState)(['wineryForm']),
- watch: {},
- methods: {
- onChangeMainPrice: function onChangeMainPrice(e) {
- this.wineryForm.mainPrice = e.$wx.detail;
- },
- onChangeSalesMode: function onChangeSalesMode(e) {
- this.wineryForm.salesMode = e.$wx.detail;
- },
- onChangeAwards: function onChangeAwards(e) {
- console.log(e.$wx.detail);
- this.wineryForm.awards = e.$wx.detail;
- },
- onNext: function onNext() {
- if (!_validateUtils["default"].isIntOrDecimal(this.wineryForm.annualOutput)) {
- _xiao4rBase["default"].showToast('请输入正确的年产量!');
-
- return;
- }
-
- if (!_validateUtils["default"].isIntOrDecimal(this.wineryForm.stock)) {
- _xiao4rBase["default"].showToast('请输入正确的当前库存!');
-
- return;
- }
-
- if (!this.wineryForm.bucketCount) {
- _xiao4rBase["default"].showToast('请输入橡木桶数量!');
-
- return;
- }
-
- if (this.wineryForm.mainPrice.length < 1) {
- _xiao4rBase["default"].showToast('请选择主要产品定价!');
-
- return;
- }
-
- if (this.wineryForm.salesMode.length < 1) {
- _xiao4rBase["default"].showToast('请选择销售方式!');
-
- return;
- }
-
- _xiao4rBase["default"].navigateTo('form6');
- },
- onBack: function onBack() {
- wx.navigateBack();
- }
- },
- created: function created() {}
-}, {info: {"components":{},"on":{}}, handlers: {'16-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeMainPrice.apply(_vm, $args || [$event]);
- })();
-}},'16-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSalesMode.apply(_vm, $args || [$event]);
- })();
-}},'16-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeAwards.apply(_vm, $args || [$event]);
- })();
-}},'16-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'16-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'14': {
- type: "input",
- expr: "wineryForm.annualOutput",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "annualOutput", $v);
-
- }
- },'15': {
- type: "input",
- expr: "wineryForm.stock",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "stock", $v);
-
- }
- },'16': {
- type: "input",
- expr: "wineryForm.bucketCount",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "bucketCount", $v);
-
- }
- },'17': {
- type: "input",
- expr: "wineryForm.awardInformation",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "awardInformation", $v);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'16-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeMainPrice.apply(_vm, $args || [$event]);
- })();
-}},'16-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSalesMode.apply(_vm, $args || [$event]);
- })();
-}},'16-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeAwards.apply(_vm, $args || [$event]);
- })();
-}},'16-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'16-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'14': {
- type: "input",
- expr: "wineryForm.annualOutput",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "annualOutput", $v);
-
- }
- },'15': {
- type: "input",
- expr: "wineryForm.stock",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "stock", $v);
-
- }
- },'16': {
- type: "input",
- expr: "wineryForm.bucketCount",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "bucketCount", $v);
-
- }
- },'17': {
- type: "input",
- expr: "wineryForm.awardInformation",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "awardInformation", $v);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'16-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeMainPrice.apply(_vm, $args || [$event]);
- })();
-}},'16-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSalesMode.apply(_vm, $args || [$event]);
- })();
-}},'16-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeAwards.apply(_vm, $args || [$event]);
- })();
-}},'16-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'16-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'14': {
- type: "input",
- expr: "wineryForm.annualOutput",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "annualOutput", $v);
-
- }
- },'15': {
- type: "input",
- expr: "wineryForm.stock",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "stock", $v);
-
- }
- },'16': {
- type: "input",
- expr: "wineryForm.bucketCount",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "bucketCount", $v);
-
- }
- },'17': {
- type: "input",
- expr: "wineryForm.awardInformation",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "awardInformation", $v);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'16-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeMainPrice.apply(_vm, $args || [$event]);
- })();
-}},'16-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSalesMode.apply(_vm, $args || [$event]);
- })();
-}},'16-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeAwards.apply(_vm, $args || [$event]);
- })();
-}},'16-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'16-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'14': {
- type: "input",
- expr: "wineryForm.annualOutput",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "annualOutput", $v);
-
- }
- },'15': {
- type: "input",
- expr: "wineryForm.stock",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "stock", $v);
-
- }
- },'16': {
- type: "input",
- expr: "wineryForm.bucketCount",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "bucketCount", $v);
-
- }
- },'17': {
- type: "input",
- expr: "wineryForm.awardInformation",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "awardInformation", $v);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'16-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeMainPrice.apply(_vm, $args || [$event]);
- })();
-}},'16-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSalesMode.apply(_vm, $args || [$event]);
- })();
-}},'16-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeAwards.apply(_vm, $args || [$event]);
- })();
-}},'16-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'16-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'14': {
- type: "input",
- expr: "wineryForm.annualOutput",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "annualOutput", $v);
-
- }
- },'15': {
- type: "input",
- expr: "wineryForm.stock",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "stock", $v);
-
- }
- },'16': {
- type: "input",
- expr: "wineryForm.bucketCount",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "bucketCount", $v);
-
- }
- },'17': {
- type: "input",
- expr: "wineryForm.awardInformation",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "awardInformation", $v);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'16-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeMainPrice.apply(_vm, $args || [$event]);
- })();
-}},'16-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSalesMode.apply(_vm, $args || [$event]);
- })();
-}},'16-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeAwards.apply(_vm, $args || [$event]);
- })();
-}},'16-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'16-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'14': {
- type: "input",
- expr: "wineryForm.annualOutput",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "annualOutput", $v);
-
- }
- },'15': {
- type: "input",
- expr: "wineryForm.stock",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "stock", $v);
-
- }
- },'16': {
- type: "input",
- expr: "wineryForm.bucketCount",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "bucketCount", $v);
-
- }
- },'17': {
- type: "input",
- expr: "wineryForm.awardInformation",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "awardInformation", $v);
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'16-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeMainPrice.apply(_vm, $args || [$event]);
- })();
-}},'16-1': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSalesMode.apply(_vm, $args || [$event]);
- })();
-}},'16-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeAwards.apply(_vm, $args || [$event]);
- })();
-}},'16-3': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'16-4': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'14': {
- type: "input",
- expr: "wineryForm.annualOutput",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "annualOutput", $v);
-
- }
- },'15': {
- type: "input",
- expr: "wineryForm.stock",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "stock", $v);
-
- }
- },'16': {
- type: "input",
- expr: "wineryForm.bucketCount",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "bucketCount", $v);
-
- }
- },'17': {
- type: "input",
- expr: "wineryForm.awardInformation",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "awardInformation", $v);
-
- }
- }}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form5.json b/mini-app/weapp/pages/form5.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/pages/form5.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form5.wxml b/mini-app/weapp/pages/form5.wxml
deleted file mode 100644
index c6fb2ee2e..000000000
--- a/mini-app/weapp/pages/form5.wxml
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
- 年产量
-
-
- 万瓶
-
-
-
-
-
- 现有库存
-
-
- 万瓶
-
-
-
-
- 橡木桶数量
-
-
- 个
-
-
-
-
-
- 主要产品定价
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
-
- 销售方式
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
- 获奖信息
- (选填)
-
-
-
-
- {{item}}
-
-
-
-
-
- 其他奖项
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/form5.wxss b/mini-app/weapp/pages/form5.wxss
deleted file mode 100644
index 9d1791a37..000000000
--- a/mini-app/weapp/pages/form5.wxss
+++ /dev/null
@@ -1,30 +0,0 @@
-.header {
- width: 100%;
- height: 150rpx;
- display: flex;
- justify-content: center;
-}
-.cell-input {
- margin-left: 10px;
- margin-top: 12px;
- display: flex;
- justify-content: center;
- align-items: center;
-}
-.cell-input input {
- border: #dddddd solid 1px;
- border-radius: 8px;
- padding: 5px;
- width: 572rpx;
- margin-right: 10px;
-}
-.cell-item {
- margin-left: 22px;
- margin-top: 12px;
- width: 300rpx;
-}
-.cell-item2 {
- margin-left: 12px;
- margin-top: 12px;
-}
-
diff --git a/mini-app/weapp/pages/form6.js b/mini-app/weapp/pages/form6.js
deleted file mode 100644
index eff5f94e0..000000000
--- a/mini-app/weapp/pages/form6.js
+++ /dev/null
@@ -1,426 +0,0 @@
-"use strict";
-
-var _regeneratorRuntime2 = _interopRequireDefault(require('./../vendor.js')(3));
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./../common/eventHub.js'));
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-var _x = require('./../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-var _xiao4rApis = _interopRequireDefault(require('./../apis/xiao4rApis.js'));
-
-var _validateUtils = _interopRequireDefault(require('./../js/utils/validateUtils.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
-
-function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {// Page 级别 hook, 只对当前 Page 的 setData 生效。
- // 'before-setData': function(dirty) {
- // if (Math.random() < 0.2) {
- // console.log('setData canceled')
- // return false // Cancel setData
- // }
- // dirty.time = +new Date()
- // return dirty
- // }
- },
- data: {
- form: {},
- sloganType: ['葡萄酒·贺兰山', '葡萄酒之乡·神奇贺兰山', '中国葡萄酒·当然贺兰山', '中国葡萄酒·要喝贺兰山', '其他'],
- slogan: ''
- },
- computed: (0, _x.mapState)(['wineryForm']),
- watch: {},
- methods: {
- onChangeSlogan: function onChangeSlogan(e) {
- this.wineryForm.slogan = e.$wx.detail;
- },
- onNext: function onNext() {
- var _this = this;
-
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime2["default"].mark(function _callee() {
- var form, rsp;
- return _regeneratorRuntime2["default"].wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- if (_this.wineryForm.personName) {
- _context.next = 3;
- break;
- }
-
- _xiao4rBase["default"].showToast('请输入您的姓名!');
-
- return _context.abrupt("return");
-
- case 3:
- if (_validateUtils["default"].isEmail(_this.wineryForm.email)) {
- _context.next = 6;
- break;
- }
-
- _xiao4rBase["default"].showToast('请正确输入您的邮箱!');
-
- return _context.abrupt("return");
-
- case 6:
- form = _this.wineryForm;
-
- if (_this.wineryForm.slogan === '其他') {
- form.slogan = _this.slogan;
- }
-
- form.openid = _xiao4rBase["default"].getOpenid();
- wx.showLoading({
- title: '正在提交...',
- mask: true
- });
- _context.prev = 10;
- _context.next = 13;
- return _xiao4rApis["default"].postForm(form);
-
- case 13:
- rsp = _context.sent;
-
- if (rsp.code === 200) {
- _xiao4rBase["default"].showToast('提交成功!');
-
- wx.reLaunch({
- url: 'index'
- });
- } else {
- _xiao4rBase["default"].showToast('提交失败.' + rsp.msg);
- }
-
- _context.next = 20;
- break;
-
- case 17:
- _context.prev = 17;
- _context.t0 = _context["catch"](10);
-
- _xiao4rBase["default"].showToast('提交失败.', _context.t0);
-
- case 20:
- _context.prev = 20;
- wx.hideLoading();
- return _context.finish(20);
-
- case 23:
- case "end":
- return _context.stop();
- }
- }
- }, _callee, null, [[10, 17, 20, 23]]);
- }))();
- },
- onBack: function onBack() {
- wx.navigateBack();
- }
- },
- created: function created() {}
-}, {info: {"components":{},"on":{}}, handlers: {'17-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSlogan.apply(_vm, $args || [$event]);
- })();
-}},'17-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'17-2': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'18': {
- type: "input",
- expr: "wineryForm.personName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "personName", $v);
-
- }
- },'19': {
- type: "input",
- expr: "wineryForm.email",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "email", $v);
-
- }
- },'20': {
- type: "input",
- expr: "slogan",
- handler: function set ($v) {
- var _vm=this;
- _vm.slogan = $v;
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'17-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSlogan.apply(_vm, $args || [$event]);
- })();
-}},'17-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'17-2': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'18': {
- type: "input",
- expr: "wineryForm.personName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "personName", $v);
-
- }
- },'19': {
- type: "input",
- expr: "wineryForm.email",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "email", $v);
-
- }
- },'20': {
- type: "input",
- expr: "slogan",
- handler: function set ($v) {
- var _vm=this;
- _vm.slogan = $v;
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'17-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSlogan.apply(_vm, $args || [$event]);
- })();
-}},'17-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'17-2': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'18': {
- type: "input",
- expr: "wineryForm.personName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "personName", $v);
-
- }
- },'19': {
- type: "input",
- expr: "wineryForm.email",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "email", $v);
-
- }
- },'20': {
- type: "input",
- expr: "slogan",
- handler: function set ($v) {
- var _vm=this;
- _vm.slogan = $v;
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'17-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSlogan.apply(_vm, $args || [$event]);
- })();
-}},'17-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'17-2': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'18': {
- type: "input",
- expr: "wineryForm.personName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "personName", $v);
-
- }
- },'19': {
- type: "input",
- expr: "wineryForm.email",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "email", $v);
-
- }
- },'20': {
- type: "input",
- expr: "slogan",
- handler: function set ($v) {
- var _vm=this;
- _vm.slogan = $v;
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'17-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSlogan.apply(_vm, $args || [$event]);
- })();
-}},'17-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'17-2': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'18': {
- type: "input",
- expr: "wineryForm.personName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "personName", $v);
-
- }
- },'19': {
- type: "input",
- expr: "wineryForm.email",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "email", $v);
-
- }
- },'20': {
- type: "input",
- expr: "slogan",
- handler: function set ($v) {
- var _vm=this;
- _vm.slogan = $v;
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'17-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSlogan.apply(_vm, $args || [$event]);
- })();
-}},'17-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'17-2': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'18': {
- type: "input",
- expr: "wineryForm.personName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "personName", $v);
-
- }
- },'19': {
- type: "input",
- expr: "wineryForm.email",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "email", $v);
-
- }
- },'20': {
- type: "input",
- expr: "slogan",
- handler: function set ($v) {
- var _vm=this;
- _vm.slogan = $v;
-
- }
- }}, refs: undefined }, {info: {"components":{},"on":{}}, handlers: {'17-0': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeSlogan.apply(_vm, $args || [$event]);
- })();
-}},'17-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onBack();
- })();
-}},'17-2': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {'18': {
- type: "input",
- expr: "wineryForm.personName",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "personName", $v);
-
- }
- },'19': {
- type: "input",
- expr: "wineryForm.email",
- handler: function set ($v) {
- var _vm=this;
- _vm.$set(_vm.wineryForm, "email", $v);
-
- }
- },'20': {
- type: "input",
- expr: "slogan",
- handler: function set ($v) {
- var _vm=this;
- _vm.slogan = $v;
-
- }
- }}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form6.json b/mini-app/weapp/pages/form6.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/pages/form6.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/form6.wxml b/mini-app/weapp/pages/form6.wxml
deleted file mode 100644
index 059e5346f..000000000
--- a/mini-app/weapp/pages/form6.wxml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
- 填报完成
- 感谢您的填报,还有最后一步!
-
-
-
-
-
- 姓名
-
-
-
-
-
-
-
- 联系邮箱
-
-
-
-
-
-
-
-
- 贺兰山产区红酒传播语征集
-
-
-
-
-
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/form6.wxss b/mini-app/weapp/pages/form6.wxss
deleted file mode 100644
index b7ba35f9e..000000000
--- a/mini-app/weapp/pages/form6.wxss
+++ /dev/null
@@ -1,30 +0,0 @@
-.header {
- width: 100%;
- height: 150rpx;
- display: flex;
- justify-content: center;
-}
-.cell-input {
- display: flex;
- justify-content: center;
- align-items: center;
-}
-.cell-input input {
- margin-left: 10px;
- border: #dddddd solid 1px;
- border-radius: 8px;
- padding: 5px 10px;
- width: 480rpx;
-}
-input {
- margin-left: 8px;
- padding: 5px 10px;
- width: 480rpx;
-}
-.cell-item {
- margin-left: 22px;
- margin-top: 12px;
- display: flex;
- align-items: center;
-}
-
diff --git a/mini-app/weapp/pages/index.js b/mini-app/weapp/pages/index.js
deleted file mode 100644
index f886f7069..000000000
--- a/mini-app/weapp/pages/index.js
+++ /dev/null
@@ -1,203 +0,0 @@
-"use strict";
-
-var _regeneratorRuntime2 = _interopRequireDefault(require('./../vendor.js')(3));
-
-var _core = _interopRequireDefault(require('./../vendor.js')(0));
-
-var _eventHub = _interopRequireDefault(require('./../common/eventHub.js'));
-
-var _store = _interopRequireDefault(require('./../store/index.js'));
-
-var _x = require('./../vendor.js')(2);
-
-var _xiao4rBase = _interopRequireDefault(require('./../xiao4rBase.js'));
-
-var _xiao4rApis = _interopRequireDefault(require('./../apis/xiao4rApis.js'));
-
-var _userApis = _interopRequireDefault(require('./../apis/userApis.js'));
-
-var _request = _interopRequireDefault(require('./../js/request.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
-
-function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
-
-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; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {
- // Page 级别 hook, 只对当前 Page 的 setData 生效。
- 'before-setData': function beforeSetData(dirty) {
- if (Math.random() < 0.2) {
- console.log('setData canceled');
- return false; // Cancel setData
- }
-
- dirty.time = +new Date();
- return dirty;
- }
- },
- data: {
- user: _store["default"].state.user
- },
- computed: {
- testcomputed: function testcomputed() {
- return 'computed - ';
- },
- openid: function openid() {
- return _store["default"].state.user.openid;
- }
- },
- methods: _objectSpread(_objectSpread({}, (0, _x.mapActions)(['setUserAction', 'setWineryFormAction'])), {}, {
- handleViewTap: function handleViewTap() {
- console.log('handleVieTap clicked');
- },
- tap: function tap() {},
- callAppLaunch: function callAppLaunch() {
- _eventHub["default"].$emit('app-launch', {
- a: 1
- }, {
- b: 2
- });
- },
- onNext: function onNext() {
- _xiao4rBase["default"].navigateTo('form1'); // xiao4rApis.getAuthTest({ openid: store.state.user.openid }).then(r => {
- // wx.navigateToMiniProgram({
- // appId: 'wx88736d7d39e2eda6',
- // path: 'pages/oauth/authindex',
- // extraData: r.data
- // })
- // })
-
- },
- login: function login() {
- var self = this;
- wx.showLoading({
- title: '正在连接...',
- mask: true
- });
- wx.login({
- success: function success(res) {
- var req = _userApis["default"].getSession(res.code);
-
- req.then(function (rsp) {
- if (rsp.data.openid) {
- self.init(rsp.data.openid);
- } else {
- _xiao4rBase["default"].showToast('登录失败!' + res.errMsg);
-
- wx.hideLoading();
- }
- }); // request.requestTaskMap.get(req.taskId).abort()
- // console.log('中断请求,req:', req.taskId)
- },
- fail: function fail(res) {
- _xiao4rBase["default"].showToast('登录失败,正在重试.');
-
- wx.hideLoading();
- self.login();
- }
- });
- },
- init: function init(openid) {
- var _this = this;
-
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime2["default"].mark(function _callee() {
- var self;
- return _regeneratorRuntime2["default"].wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- self = _this;
-
- _xiao4rBase["default"].saveOpenid(openid);
-
- wx.getUserInfo({
- success: function success(res) {
- self.setUserAction({
- openid: _xiao4rBase["default"].getOpenid(),
- userInfo: res.userInfo
- });
- }
- });
- _context.next = 5;
- return _this.getForm();
-
- case 5:
- wx.hideLoading();
-
- case 6:
- case "end":
- return _context.stop();
- }
- }
- }, _callee);
- }))();
- },
- getForm: function getForm() {
- var _this2 = this;
-
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime2["default"].mark(function _callee2() {
- var rsp, temp;
- return _regeneratorRuntime2["default"].wrap(function _callee2$(_context2) {
- while (1) {
- switch (_context2.prev = _context2.next) {
- case 0:
- _context2.prev = 0;
- _context2.next = 3;
- return _xiao4rApis["default"].getForm({
- openid: _xiao4rBase["default"].getOpenid()
- });
-
- case 3:
- rsp = _context2.sent;
-
- if (rsp.code === 200) {
- temp = rsp.data;
- temp.region = temp.region.split(',');
- temp.fermentationProcess = temp.fermentationProcess.split(',');
- temp.clarificationMethod = temp.clarificationMethod.split(',');
- temp.mainPrice = temp.mainPrice.split(',');
- temp.salesMode = temp.salesMode.split(',');
- temp.container = temp.container.split(',');
- temp.awards = temp.awards.split(',');
- temp.redVariety = JSON.parse(temp.redVariety);
- temp.whiteVariety = JSON.parse(temp.whiteVariety);
-
- _this2.setWineryFormAction(temp);
- }
-
- _context2.next = 10;
- break;
-
- case 7:
- _context2.prev = 7;
- _context2.t0 = _context2["catch"](0);
-
- _xiao4rBase["default"].showToast('获取用户信息失败.' + _context2.t0);
-
- case 10:
- case "end":
- return _context2.stop();
- }
- }
- }, _callee2, null, [[0, 7]]);
- }))();
- }
- }),
- ready: function ready() {
- this.login();
- }
-}, {info: {"components":{},"on":{}}, handlers: {'11-1': {"tap": function proxy () {
- var _vm=this;
- return (function () {
- _vm.onNext();
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/index.json b/mini-app/weapp/pages/index.json
deleted file mode 100644
index dcfd40815..000000000
--- a/mini-app/weapp/pages/index.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/index.wxml b/mini-app/weapp/pages/index.wxml
deleted file mode 100644
index f471efbd1..000000000
--- a/mini-app/weapp/pages/index.wxml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-"use strict";
-
-var getTime = function getTime(time) {
- var date = getDate(time);
- var hour = date.getHours();
- var mins = date.getMinutes();
- var sec = date.getSeconds();
- var milli = date.getMilliseconds();
- return "".concat(hour, ":").concat(mins, ":").concat(sec, ".").concat(milli);
-};
-
-module.exports.getTime = getTime;
-
-
-
-
-
- 贺兰山东麓葡萄酒产区普查
- Helan Mountain winery census
-
- 欢迎您参加贺兰山酒庄普查!
-
- 在宁夏回族自治区政府大力推动以红酒产业为首的九大产业之际,为更好的服务我区酒庄及红酒企业,自治区红酒局决定于近期开展2021年贺兰山产区酒庄普查。
- 非常感谢您选择自主填报的方式参加酒庄普查。您通过微信小程序填报的信息会经加密存储在宁夏回族自治区红酒局,数据仅作为服务我区红酒产业总体规划使用。
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/index.wxss b/mini-app/weapp/pages/index.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/pages/index.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/pages/mall/goods-detail.js b/mini-app/weapp/pages/mall/goods-detail.js
deleted file mode 100644
index 37fd96a00..000000000
--- a/mini-app/weapp/pages/mall/goods-detail.js
+++ /dev/null
@@ -1,324 +0,0 @@
-"use strict";
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-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; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {},
- data: {
- goodsImages: ['https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=751441608,3469454349&fm=15&gp=0.jpg', 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=751441608,3469454349&fm=15&gp=0.jpg', 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=751441608,3469454349&fm=15&gp=0.jpg'],
- detail: '
富文本详情
',
- isShowSpec: false,
- count: 1
- },
- computed: {},
- methods: _objectSpread(_objectSpread({}, (0, _x.mapActions)(['setUserAction', 'setFormAction'])), {}, {
- handleViewTap: function handleViewTap() {
- console.log('handleVieTap clicked');
- },
- tap: function tap() {},
- onShowSpec: function onShowSpec() {
- this.isShowSpec = true;
- },
- onCloseSpec: function onCloseSpec() {
- this.isShowSpec = false;
- },
- onChangeCount: function onChangeCount(e) {
- console.log(e);
- },
- callAppLaunch: function callAppLaunch() {}
- }),
- ready: function ready() {}
-}, {info: {"components":{"van-goods-action":{"path":"./../../vant/goods-action/index"},"van-goods-action-icon":{"path":"./../../vant/goods-action-icon/index"},"van-goods-action-button":{"path":"./../../vant/goods-action-button/index"}},"on":{"19-3":["tap"],"19-4":["tap"]}}, handlers: {'19-0': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCount.apply(_vm, $args || [$event]);
- })();
-}},'19-3': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-4': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{"van-goods-action":{"path":"./../../vant/goods-action/index"},"van-goods-action-icon":{"path":"./../../vant/goods-action-icon/index"},"van-goods-action-button":{"path":"./../../vant/goods-action-button/index"}},"on":{"19-3":["tap"],"19-4":["tap"]}}, handlers: {'19-0': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCount.apply(_vm, $args || [$event]);
- })();
-}},'19-3': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-4': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{"van-goods-action":{"path":"./../../vant/goods-action/index"},"van-goods-action-icon":{"path":"./../../vant/goods-action-icon/index"},"van-goods-action-button":{"path":"./../../vant/goods-action-button/index"}},"on":{"19-3":["tap"],"19-4":["tap"]}}, handlers: {'19-0': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCount.apply(_vm, $args || [$event]);
- })();
-}},'19-3': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-4': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{"van-goods-action":{"path":"./../../vant/goods-action/index"},"van-goods-action-icon":{"path":"./../../vant/goods-action-icon/index"},"van-goods-action-button":{"path":"./../../vant/goods-action-button/index"}},"on":{"19-3":["tap"],"19-4":["tap"]}}, handlers: {'19-0': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCount.apply(_vm, $args || [$event]);
- })();
-}},'19-3': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-4': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{"van-goods-action":{"path":"./../../vant/goods-action/index"},"van-goods-action-icon":{"path":"./../../vant/goods-action-icon/index"},"van-goods-action-button":{"path":"./../../vant/goods-action-button/index"}},"on":{"19-3":["tap"],"19-4":["tap"]}}, handlers: {'19-0': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCount.apply(_vm, $args || [$event]);
- })();
-}},'19-3': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-4': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{"van-goods-action":{"path":"./../../vant/goods-action/index"},"van-goods-action-icon":{"path":"./../../vant/goods-action-icon/index"},"van-goods-action-button":{"path":"./../../vant/goods-action-button/index"}},"on":{"19-3":["tap"],"19-4":["tap"]}}, handlers: {'19-0': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCount.apply(_vm, $args || [$event]);
- })();
-}},'19-3': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-4': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined }, {info: {"components":{"van-goods-action":{"path":"./../../vant/goods-action/index"},"van-goods-action-icon":{"path":"./../../vant/goods-action-icon/index"},"van-goods-action-button":{"path":"./../../vant/goods-action-button/index"}},"on":{"19-3":["tap"],"19-4":["tap"]}}, handlers: {'19-0': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-1': {"close": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onCloseSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-2': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChangeCount.apply(_vm, $args || [$event]);
- })();
-}},'19-3': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}},'19-4': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onShowSpec.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/mall/goods-detail.json b/mini-app/weapp/pages/mall/goods-detail.json
deleted file mode 100644
index 8b29855aa..000000000
--- a/mini-app/weapp/pages/mall/goods-detail.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {
- "van-goods-action": "./../../vant/goods-action/index",
- "van-goods-action-icon": "./../../vant/goods-action-icon/index",
- "van-goods-action-button": "./../../vant/goods-action-button/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/mall/goods-detail.wxml b/mini-app/weapp/pages/mall/goods-detail.wxml
deleted file mode 100644
index 12cc1fca0..000000000
--- a/mini-app/weapp/pages/mall/goods-detail.wxml
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-"use strict";
-
-var getTime = function getTime(time) {
- var date = getDate(time);
- var hour = date.getHours();
- var mins = date.getMinutes();
- var sec = date.getSeconds();
- var milli = date.getMilliseconds();
- return "".concat(hour, ":").concat(mins, ":").concat(sec, ".").concat(milli);
-};
-
-module.exports.getTime = getTime;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 商品详情
-
-
-
-
-
-
-
-
-
- {{'已优惠¥xx元'}}
-
-
-
-
-
-
-
-
-
- 购买数量
- 剩余:xx
-
-
-
-
-
-
-
- 下一步
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/pages/mall/goods-detail.wxss b/mini-app/weapp/pages/mall/goods-detail.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/pages/mall/goods-detail.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/pages/mall/index.js b/mini-app/weapp/pages/mall/index.js
deleted file mode 100644
index 521e082a9..000000000
--- a/mini-app/weapp/pages/mall/index.js
+++ /dev/null
@@ -1,133 +0,0 @@
-"use strict";
-
-var _regeneratorRuntime2 = _interopRequireDefault(require('./../../vendor.js')(3));
-
-var _core = _interopRequireDefault(require('./../../vendor.js')(0));
-
-var _store = _interopRequireDefault(require('./../../store/index.js'));
-
-var _x = require('./../../vendor.js')(2);
-
-var _userApis = _interopRequireDefault(require('./../../apis/userApis.js'));
-
-var _xiao4rBase = _interopRequireDefault(require('./../../xiao4rBase.js'));
-
-var _eventHub = _interopRequireDefault(require('./../../common/eventHub.js'));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
-
-function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
-
-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; }
-
-_core["default"].page({
- store: _store["default"],
- hooks: {},
- data: {
- pageIndex: 0
- },
- computed: {},
- methods: _objectSpread(_objectSpread({}, (0, _x.mapActions)(['setUserAction', 'setTokenAction', 'setOpenidAction'])), {}, {
- onTest: function onTest() {
- _eventHub["default"].$emit('onShowDialogUserInfo');
- },
- handleViewTap: function handleViewTap() {
- console.log('handleVieTap clicked');
- },
- tap: function tap() {},
- onChange: function onChange(event) {
- this.pageIndex = event.$wx.detail;
- },
- callAppLaunch: function callAppLaunch() {},
- login: function login() {
- var self = this;
- wx.showLoading({
- title: '正在连接...',
- mask: true
- });
- wx.login({
- success: function success(res) {
- var req = _userApis["default"].getSession(res.code);
-
- req.then(function (rsp) {
- if (rsp.data.openid) {
- self.init(rsp.data.openid);
- } else {
- _xiao4rBase["default"].showToast('登录失败!' + res.errMsg);
-
- wx.hideLoading();
- }
- })["catch"](function (e) {
- _xiao4rBase["default"].showToast('登录失败!' + res.errMsg);
- }); // request.requestTaskMap.get(req.taskId).abort()
- // console.log('中断请求,req:', req.taskId)
- },
- fail: function fail(res) {
- _xiao4rBase["default"].showToast('登录失败,正在重试.');
-
- wx.hideLoading();
- self.login();
- }
- });
- },
- init: function init(openid) {
- var _this = this;
-
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime2["default"].mark(function _callee() {
- var rsp;
- return _regeneratorRuntime2["default"].wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- _xiao4rBase["default"].saveOpenid(openid);
-
- _context.next = 3;
- return _userApis["default"].loginByMini({
- openid: openid
- });
-
- case 3:
- rsp = _context.sent;
-
- if (rsp.token) {
- _this.setTokenAction(rsp.token);
- }
-
- wx.hideLoading();
-
- case 6:
- case "end":
- return _context.stop();
- }
- }
- }, _callee);
- }))();
- }
- }),
- ready: function ready() {
- this.login();
- },
- onShow: function onShow() {}
-}, {info: {"components":{"mall-home":{"path":"./../../components/mall/mall-home"},"mall-shopping":{"path":"./../../components/mall/mall-shopping"},"mall-bbs":{"path":"./../../components/mall/mall-bbs"},"mall-car":{"path":"./../../components/mall/mall-car"},"mall-my":{"path":"./../../components/mall/mall-my"},"dialog-registration":{"path":"./../../components/user/dialog-registration"}},"on":{}}, handlers: {'18-6': {"change": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onChange.apply(_vm, $args || [$event]);
- })();
-}},'18-7': {"tap": function proxy () {
- var $wx = arguments[arguments.length - 1].$wx;
- var $event = ($wx.detail && $wx.detail.arguments) ? $wx.detail.arguments[0] : arguments[arguments.length -1];
- var $args = $wx.detail && $wx.detail.arguments;
- var _vm=this;
- return (function () {
- _vm.onTest.apply(_vm, $args || [$event]);
- })();
-}}}, models: {}, refs: undefined });
\ No newline at end of file
diff --git a/mini-app/weapp/pages/mall/index.json b/mini-app/weapp/pages/mall/index.json
deleted file mode 100644
index 3f7bac9ce..000000000
--- a/mini-app/weapp/pages/mall/index.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "navigationBarTitleText": "",
- "component": true,
- "usingComponents": {
- "mall-home": "./../../components/mall/mall-home",
- "mall-shopping": "./../../components/mall/mall-shopping",
- "mall-bbs": "./../../components/mall/mall-bbs",
- "mall-car": "./../../components/mall/mall-car",
- "mall-my": "./../../components/mall/mall-my",
- "dialog-registration": "./../../components/user/dialog-registration"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/pages/mall/index.wxml b/mini-app/weapp/pages/mall/index.wxml
deleted file mode 100644
index 16c1cd2bd..000000000
--- a/mini-app/weapp/pages/mall/index.wxml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-"use strict";
-
-var getTime = function getTime(time) {
- var date = getDate(time);
- var hour = date.getHours();
- var mins = date.getMinutes();
- var sec = date.getSeconds();
- var milli = date.getMilliseconds();
- return "".concat(hour, ":").concat(mins, ":").concat(sec, ".").concat(milli);
-};
-
-module.exports.getTime = getTime;
-
-
-
-
- 热点
- 购物
- 交流
- 购物车
- 我的
-
-
-
-
-
-
-
-测试
-
-
diff --git a/mini-app/weapp/pages/mall/index.wxss b/mini-app/weapp/pages/mall/index.wxss
deleted file mode 100644
index 3607c3897..000000000
--- a/mini-app/weapp/pages/mall/index.wxss
+++ /dev/null
@@ -1,6 +0,0 @@
-.header {
- width: 100%;
- height: 536rpx;
- z-index: -10;
-}
-
diff --git a/mini-app/weapp/sitemap.json b/mini-app/weapp/sitemap.json
deleted file mode 100644
index ca02add20..000000000
--- a/mini-app/weapp/sitemap.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
- "rules": [{
- "action": "allow",
- "page": "*"
- }]
-}
\ No newline at end of file
diff --git a/mini-app/weapp/static/.gitignore b/mini-app/weapp/static/.gitignore
deleted file mode 100644
index e69de29bb..000000000
diff --git a/mini-app/weapp/static/img/index/head.png b/mini-app/weapp/static/img/index/head.png
deleted file mode 100644
index 578b0df45..000000000
Binary files a/mini-app/weapp/static/img/index/head.png and /dev/null differ
diff --git a/mini-app/weapp/store/index.js b/mini-app/weapp/store/index.js
deleted file mode 100644
index 841b51da0..000000000
--- a/mini-app/weapp/store/index.js
+++ /dev/null
@@ -1,75 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-
-var _x = _interopRequireDefault(require('./../vendor.js')(2));
-
-var _wineryForm = require('./wineryForm.js');
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
-var _default = new _x["default"].Store({
- state: {
- user: {
- openid: '',
- mobile: '',
- userInfo: {},
- token: ''
- },
- wineryForm: _wineryForm.wineryForm
- },
- mutations: {
- setUser: function setUser(state, user) {
- state.user = user;
- },
- setOpenid: function setOpenid(state, openid) {
- state.user.openid = openid;
- console.log('state.user.openid:', state.user.openid);
- },
- setMobile: function setMobile(state, mobile) {
- state.user.mobile = mobile;
- },
- setUserInfo: function setUserInfo(state, userInfo) {
- state.user.userInfo = userInfo;
- },
- setToken: function setToken(state, token) {
- state.user.token = token;
- },
- setWineryForm: function setWineryForm(state, form) {
- console.log('远程酒庄表单:', form);
- state.wineryForm = form;
- console.log('本地酒庄表单:', state.wineryForm);
- }
- },
- actions: {
- setUserAction: function setUserAction(_ref, user) {
- var commit = _ref.commit;
- commit('setUser', user);
- },
- setOpenidAction: function setOpenidAction(_ref2, openid) {
- var commit = _ref2.commit;
- commit('setOpenid', openid);
- },
- setMobileAction: function setMobileAction(_ref3, user) {
- var commit = _ref3.commit;
- commit('setMobile', user);
- },
- setUserInfoAction: function setUserInfoAction(_ref4, userInfo) {
- var commit = _ref4.commit;
- commit('setUserInfo', userInfo);
- },
- setTokenAction: function setTokenAction(_ref5, token) {
- var commit = _ref5.commit;
- commit('setToken', token);
- },
- setWineryFormAction: function setWineryFormAction(_ref6, form) {
- var commit = _ref6.commit;
- commit('setWineryForm', form);
- }
- }
-});
-
-exports["default"] = _default;
\ No newline at end of file
diff --git a/mini-app/weapp/store/wineryForm.js b/mini-app/weapp/store/wineryForm.js
deleted file mode 100644
index da56f8696..000000000
--- a/mini-app/weapp/store/wineryForm.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.wineryForm = void 0;
-var wineryForm = {
- openid: '',
- email: '',
- personName: '',
- mobile: '',
- wineryName: '',
- // 酒庄名称(具体)
- buildTime: '',
- // 建立时间(具体)
- region: ['宁夏回族自治区', '银川市', '西夏区'],
- // 酒庄地址(区)
- address: '',
- // 酒庄地址(具体)
- wineryArea: '',
- // 总面积
- buildArea: '',
- // 建筑面积
- wineryStatus: '已建成投产',
- // 酒庄现状
- plantArea: '',
- // 面积(亩)
- plantWeight: '',
- // 产量(斤)
- soilType: '沙粒',
- // 土壤类型
- redVariety: {
- params: [],
- checked: []
- },
- // 红葡萄品种
- whiteVariety: {
- params: [],
- checked: []
- },
- // 白葡萄品种
- irrigationType: '漫灌',
- // 灌溉方式
- fermentationProcess: [],
- // 发酵工艺
- container: [],
- // 热化容器
- clarificationMethod: [],
- // 澄清方式
- annualOutput: '',
- // 年产量
- stock: '',
- // 库存
- bucketCount: '',
- // 酒桶数量
- mainPrice: [],
- // 主要产品定价
- salesMode: [],
- // 销售方式
- awards: [],
- // 获奖信息
- awardInformation: '',
- // 获奖信息
- slogan: '葡萄酒·贺兰山' // 征集口号
-
-};
-exports.wineryForm = wineryForm;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/button/index.js b/mini-app/weapp/vant/button/index.js
deleted file mode 100644
index 6699f63eb..000000000
--- a/mini-app/weapp/vant/button/index.js
+++ /dev/null
@@ -1,66 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _button = require('./../mixins/button.js');
-
-var _openType = require('./../mixins/open-type.js');
-
-var _version = require('./../common/version.js');
-
-var mixins = [_button.button, _openType.openType];
-
-if ((0, _version.canIUseFormFieldButton)()) {
- mixins.push('wx://form-field-button');
-}
-
-(0, _component.VantComponent)({
- mixins: mixins,
- classes: ['hover-class', 'loading-class'],
- data: {
- baseStyle: ''
- },
- props: {
- formType: String,
- icon: String,
- classPrefix: {
- type: String,
- value: 'van-icon'
- },
- plain: Boolean,
- block: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- loadingText: String,
- customStyle: String,
- loadingType: {
- type: String,
- value: 'circular'
- },
- type: {
- type: String,
- value: 'default'
- },
- dataset: null,
- size: {
- type: String,
- value: 'normal'
- },
- loadingSize: {
- type: String,
- value: '20px'
- },
- color: String
- },
- methods: {
- onClick: function onClick() {
- if (!this.data.loading) {
- this.$emit('click');
- }
- },
- noop: function noop() {}
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/button/index.json b/mini-app/weapp/vant/button/index.json
deleted file mode 100644
index 27a6d281c..000000000
--- a/mini-app/weapp/vant/button/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index",
- "van-loading": "./../loading/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/button/index.wxml b/mini-app/weapp/vant/button/index.wxml
deleted file mode 100644
index 9704ed77c..000000000
--- a/mini-app/weapp/vant/button/index.wxml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/button/index.wxs b/mini-app/weapp/vant/button/index.wxs
deleted file mode 100644
index 21f2ba2cb..000000000
--- a/mini-app/weapp/vant/button/index.wxs
+++ /dev/null
@@ -1,39 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function rootStyle(data) {
- if (!data.color) {
- return '';
- }
-
- var properties = {
- color: data.plain ? data.color : '#fff',
- background: data.plain ? null : data.color,
- };
-
- // hide border when color is linear-gradient
- if (data.color.indexOf('gradient') !== -1) {
- properties.border = 0;
- } else {
- properties['border-color'] = data.color;
- }
-
- return style(properties);
-}
-
-function loadingColor(data) {
- if (data.plain) {
- return data.color ? data.color : '#c9c9c9';
- }
-
- if (data.type === 'default') {
- return '#c9c9c9';
- }
-
- return '#fff';
-}
-
-module.exports = {
- rootStyle: rootStyle,
- loadingColor: loadingColor,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/button/index.wxss b/mini-app/weapp/vant/button/index.wxss
deleted file mode 100644
index abe85e436..000000000
--- a/mini-app/weapp/vant/button/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-button{position:relative;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:0;text-align:center;vertical-align:middle;-webkit-appearance:none;-webkit-text-size-adjust:100%;height:44px;height:var(--button-default-height,44px);line-height:20px;line-height:var(--button-line-height,20px);font-size:16px;font-size:var(--button-default-font-size,16px);transition:opacity .2s;transition:opacity var(--animation-duration-fast,.2s);border-radius:2px;border-radius:var(--button-border-radius,2px)}.van-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;border:inherit;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:" ";background-color:#000;background-color:var(--black,#000);border-color:#000;border-color:var(--black,#000)}.van-button:after{border-width:0}.van-button--active:before{opacity:.15}.van-button--unclickable:after{display:none}.van-button--default{color:#323233;color:var(--button-default-color,#323233);background:#fff;background:var(--button-default-background-color,#fff);border:1px solid #ebedf0;border:var(--button-border-width,1px) solid var(--button-default-border-color,#ebedf0)}.van-button--primary{color:#fff;color:var(--button-primary-color,#fff);background:#07c160;background:var(--button-primary-background-color,#07c160);border:1px solid #07c160;border:var(--button-border-width,1px) solid var(--button-primary-border-color,#07c160)}.van-button--info{color:#fff;color:var(--button-info-color,#fff);background:#1989fa;background:var(--button-info-background-color,#1989fa);border:1px solid #1989fa;border:var(--button-border-width,1px) solid var(--button-info-border-color,#1989fa)}.van-button--danger{color:#fff;color:var(--button-danger-color,#fff);background:#ee0a24;background:var(--button-danger-background-color,#ee0a24);border:1px solid #ee0a24;border:var(--button-border-width,1px) solid var(--button-danger-border-color,#ee0a24)}.van-button--warning{color:#fff;color:var(--button-warning-color,#fff);background:#ff976a;background:var(--button-warning-background-color,#ff976a);border:1px solid #ff976a;border:var(--button-border-width,1px) solid var(--button-warning-border-color,#ff976a)}.van-button--plain{background:#fff;background:var(--button-plain-background-color,#fff)}.van-button--plain.van-button--primary{color:#07c160;color:var(--button-primary-background-color,#07c160)}.van-button--plain.van-button--info{color:#1989fa;color:var(--button-info-background-color,#1989fa)}.van-button--plain.van-button--danger{color:#ee0a24;color:var(--button-danger-background-color,#ee0a24)}.van-button--plain.van-button--warning{color:#ff976a;color:var(--button-warning-background-color,#ff976a)}.van-button--large{width:100%;height:50px;height:var(--button-large-height,50px)}.van-button--normal{padding:0 15px;font-size:14px;font-size:var(--button-normal-font-size,14px)}.van-button--small{min-width:60px;min-width:var(--button-small-min-width,60px);height:30px;height:var(--button-small-height,30px);padding:0 8px;padding:0 var(--padding-xs,8px);font-size:12px;font-size:var(--button-small-font-size,12px)}.van-button--mini{display:inline-block;min-width:50px;min-width:var(--button-mini-min-width,50px);height:22px;height:var(--button-mini-height,22px);font-size:10px;font-size:var(--button-mini-font-size,10px)}.van-button--mini+.van-button--mini{margin-left:5px}.van-button--block{display:-webkit-flex;display:flex;width:100%}.van-button--round{border-radius:999px;border-radius:var(--button-round-border-radius,999px)}.van-button--square{border-radius:0}.van-button--disabled{opacity:.5;opacity:var(--button-disabled-opacity,.5)}.van-button__text{display:inline}.van-button__icon+.van-button__text:not(:empty),.van-button__loading-text{margin-left:4px}.van-button__icon{min-width:1em;line-height:inherit!important;vertical-align:top}.van-button--hairline{padding-top:1px;border-width:0}.van-button--hairline:after{border-color:inherit;border-width:1px;border-radius:4px;border-radius:calc(var(--button-border-radius, 2px)*2)}.van-button--hairline.van-button--round:after{border-radius:999px;border-radius:var(--button-round-border-radius,999px)}.van-button--hairline.van-button--square:after{border-radius:0}
diff --git a/mini-app/weapp/vant/card/index.js b/mini-app/weapp/vant/card/index.js
deleted file mode 100644
index 0250c72e0..000000000
--- a/mini-app/weapp/vant/card/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-"use strict";
-
-var _link = require('./../mixins/link.js');
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- classes: ['num-class', 'desc-class', 'thumb-class', 'title-class', 'price-class', 'origin-price-class'],
- mixins: [_link.link],
- props: {
- tag: String,
- num: String,
- desc: String,
- thumb: String,
- title: String,
- price: {
- type: String,
- observer: 'updatePrice'
- },
- centered: Boolean,
- lazyLoad: Boolean,
- thumbLink: String,
- originPrice: String,
- thumbMode: {
- type: String,
- value: 'aspectFit'
- },
- currency: {
- type: String,
- value: '¥'
- }
- },
- methods: {
- updatePrice: function updatePrice() {
- var price = this.data.price;
- var priceArr = price.toString().split('.');
- this.setData({
- integerStr: priceArr[0],
- decimalStr: priceArr[1] ? ".".concat(priceArr[1]) : ''
- });
- },
- onClickThumb: function onClickThumb() {
- this.jumpLink('thumbLink');
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/card/index.json b/mini-app/weapp/vant/card/index.json
deleted file mode 100644
index 4416f5789..000000000
--- a/mini-app/weapp/vant/card/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-tag": "./../tag/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/card/index.wxml b/mini-app/weapp/vant/card/index.wxml
deleted file mode 100644
index 08df6697c..000000000
--- a/mini-app/weapp/vant/card/index.wxml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/card/index.wxss b/mini-app/weapp/vant/card/index.wxss
deleted file mode 100644
index bdb130a87..000000000
--- a/mini-app/weapp/vant/card/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-card{position:relative;box-sizing:border-box;padding:8px 16px;padding:var(--card-padding,8px 16px);font-size:12px;font-size:var(--card-font-size,12px);color:#323233;color:var(--card-text-color,#323233);background-color:#fafafa;background-color:var(--card-background-color,#fafafa)}.van-card__header{display:-webkit-flex;display:flex}.van-card__header--center{-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-card__thumb{position:relative;-webkit-flex:none;flex:none;width:88px;width:var(--card-thumb-size,88px);height:88px;height:var(--card-thumb-size,88px);margin-right:8px;margin-right:var(--padding-xs,8px)}.van-card__thumb:empty{display:none}.van-card__img{width:100%;height:100%;border-radius:8px;border-radius:var(--border-radius-lg,8px)}.van-card__content{position:relative;display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:space-between;justify-content:space-between;min-width:0;min-height:88px;min-height:var(--card-thumb-size,88px)}.van-card__content--center{-webkit-justify-content:center;justify-content:center}.van-card__desc,.van-card__title{word-wrap:break-word}.van-card__title{font-weight:700;line-height:16px;line-height:var(--card-title-line-height,16px)}.van-card__desc{line-height:20px;line-height:var(--card-desc-line-height,20px);color:#646566;color:var(--card-desc-color,#646566)}.van-card__bottom{line-height:20px}.van-card__price{display:inline-block;font-weight:700;color:#ee0a24;color:var(--card-price-color,#ee0a24);font-size:12px;font-size:var(--card-price-font-size,12px)}.van-card__price-integer{font-size:16px;font-size:var(--card-price-integer-font-size,16px)}.van-card__price-decimal,.van-card__price-integer{font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif;font-family:var(--card-price-font-family,Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif)}.van-card__origin-price{display:inline-block;margin-left:5px;text-decoration:line-through;font-size:10px;font-size:var(--card-origin-price-font-size,10px);color:#646566;color:var(--card-origin-price-color,#646566)}.van-card__num{float:right}.van-card__tag{position:absolute!important;top:2px;left:0}.van-card__footer{-webkit-flex:none;flex:none;width:100%;text-align:right}
diff --git a/mini-app/weapp/vant/cell-group/index.js b/mini-app/weapp/vant/cell-group/index.js
deleted file mode 100644
index 4cd1d7c96..000000000
--- a/mini-app/weapp/vant/cell-group/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- title: String,
- border: {
- type: Boolean,
- value: true
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/cell-group/index.json b/mini-app/weapp/vant/cell-group/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/cell-group/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/cell-group/index.wxml b/mini-app/weapp/vant/cell-group/index.wxml
deleted file mode 100644
index 6e0b471df..000000000
--- a/mini-app/weapp/vant/cell-group/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
- {{ title }}
-
-
-
-
diff --git a/mini-app/weapp/vant/cell-group/index.wxss b/mini-app/weapp/vant/cell-group/index.wxss
deleted file mode 100644
index b7c64fc2a..000000000
--- a/mini-app/weapp/vant/cell-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-cell-group__title{padding:16px 16px 8px;padding:var(--cell-group-title-padding,16px 16px 8px);font-size:14px;font-size:var(--cell-group-title-font-size,14px);line-height:16px;line-height:var(--cell-group-title-line-height,16px);color:#969799;color:var(--cell-group-title-color,#969799)}
diff --git a/mini-app/weapp/vant/cell/index.js b/mini-app/weapp/vant/cell/index.js
deleted file mode 100644
index 537051300..000000000
--- a/mini-app/weapp/vant/cell/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-"use strict";
-
-var _link = require('./../mixins/link.js');
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- classes: ['title-class', 'label-class', 'value-class', 'right-icon-class', 'hover-class'],
- mixins: [_link.link],
- props: {
- title: null,
- value: null,
- icon: String,
- size: String,
- label: String,
- center: Boolean,
- isLink: Boolean,
- required: Boolean,
- clickable: Boolean,
- titleWidth: String,
- customStyle: String,
- arrowDirection: String,
- useLabelSlot: Boolean,
- border: {
- type: Boolean,
- value: true
- },
- titleStyle: String
- },
- methods: {
- onClick: function onClick(event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/cell/index.json b/mini-app/weapp/vant/cell/index.json
deleted file mode 100644
index aed2ff4bf..000000000
--- a/mini-app/weapp/vant/cell/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/cell/index.wxml b/mini-app/weapp/vant/cell/index.wxml
deleted file mode 100644
index e83777fd9..000000000
--- a/mini-app/weapp/vant/cell/index.wxml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ title }}
-
-
-
-
- {{ label }}
-
-
-
-
- {{ value }}
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/cell/index.wxss b/mini-app/weapp/vant/cell/index.wxss
deleted file mode 100644
index 5a8e4f01e..000000000
--- a/mini-app/weapp/vant/cell/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-cell{position:relative;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;padding:var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);font-size:14px;font-size:var(--cell-font-size,14px);line-height:24px;line-height:var(--cell-line-height,24px);color:#323233;color:var(--cell-text-color,#323233);background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-cell--borderless:after{display:none}.van-cell-group{background-color:#fff;background-color:var(--cell-background-color,#fff)}.van-cell__label{margin-top:3px;margin-top:var(--cell-label-margin-top,3px);font-size:12px;font-size:var(--cell-label-font-size,12px);line-height:18px;line-height:var(--cell-label-line-height,18px);color:#969799;color:var(--cell-label-color,#969799)}.van-cell__value{overflow:hidden;text-align:right;vertical-align:middle;color:#969799;color:var(--cell-value-color,#969799)}.van-cell__title,.van-cell__value{-webkit-flex:1;flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:24px;height:var(--cell-line-height,24px);font-size:16px;font-size:var(--cell-icon-size,16px)}.van-cell__left-icon-wrap{margin-right:4px;margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{margin-left:4px;margin-left:var(--padding-base,4px);color:#969799;color:var(--cell-right-icon-color,#969799)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:24px;line-height:var(--cell-line-height,24px)}.van-cell--clickable.van-cell--hover{background-color:#f2f3f5;background-color:var(--cell-active-color,#f2f3f5)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;content:"*";left:8px;left:var(--padding-xs,8px);font-size:14px;font-size:var(--cell-font-size,14px);color:#ee0a24;color:var(--cell-required-color,#ee0a24)}.van-cell--center{-webkit-align-items:center;align-items:center}.van-cell--large{padding-top:12px;padding-top:var(--cell-large-vertical-padding,12px);padding-bottom:12px;padding-bottom:var(--cell-large-vertical-padding,12px)}.van-cell--large .van-cell__title{font-size:16px;font-size:var(--cell-large-title-font-size,16px)}.van-cell--large .van-cell__value{font-size:16px;font-size:var(--cell-large-value-font-size,16px)}.van-cell--large .van-cell__label{font-size:14px;font-size:var(--cell-large-label-font-size,14px)}
diff --git a/mini-app/weapp/vant/checkbox-group/index.js b/mini-app/weapp/vant/checkbox-group/index.js
deleted file mode 100644
index f8b894b9b..000000000
--- a/mini-app/weapp/vant/checkbox-group/index.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- field: true,
- relation: {
- name: 'checkbox',
- type: 'descendant',
- current: 'checkbox-group',
- linked: function linked(target) {
- this.updateChild(target);
- }
- },
- props: {
- max: Number,
- value: {
- type: Array,
- observer: 'updateChildren'
- },
- disabled: {
- type: Boolean,
- observer: 'updateChildren'
- }
- },
- methods: {
- updateChildren: function updateChildren() {
- var _this = this;
-
- (this.children || []).forEach(function (child) {
- return _this.updateChild(child);
- });
- },
- updateChild: function updateChild(child) {
- var _this$data = this.data,
- value = _this$data.value,
- disabled = _this$data.disabled;
- child.setData({
- value: value.indexOf(child.data.name) !== -1,
- parentDisabled: disabled
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/checkbox-group/index.json b/mini-app/weapp/vant/checkbox-group/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/checkbox-group/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/checkbox-group/index.wxml b/mini-app/weapp/vant/checkbox-group/index.wxml
deleted file mode 100644
index 4fa864ce7..000000000
--- a/mini-app/weapp/vant/checkbox-group/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/mini-app/weapp/vant/checkbox-group/index.wxss b/mini-app/weapp/vant/checkbox-group/index.wxss
deleted file mode 100644
index ecfdfde88..000000000
--- a/mini-app/weapp/vant/checkbox-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';
diff --git a/mini-app/weapp/vant/checkbox/index.js b/mini-app/weapp/vant/checkbox/index.js
deleted file mode 100644
index 29b203229..000000000
--- a/mini-app/weapp/vant/checkbox/index.js
+++ /dev/null
@@ -1,90 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-function emit(target, value) {
- target.$emit('input', value);
- target.$emit('change', value);
-}
-
-(0, _component.VantComponent)({
- field: true,
- relation: {
- name: 'checkbox-group',
- type: 'ancestor',
- current: 'checkbox'
- },
- classes: ['icon-class', 'label-class'],
- props: {
- value: Boolean,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: String,
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round'
- },
- iconSize: {
- type: null,
- value: 20
- }
- },
- data: {
- parentDisabled: false
- },
- methods: {
- emitChange: function emitChange(value) {
- if (this.parent) {
- this.setParentValue(this.parent, value);
- } else {
- emit(this, value);
- }
- },
- toggle: function toggle() {
- var _this$data = this.data,
- parentDisabled = _this$data.parentDisabled,
- disabled = _this$data.disabled,
- value = _this$data.value;
-
- if (!disabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- onClickLabel: function onClickLabel() {
- var _this$data2 = this.data,
- labelDisabled = _this$data2.labelDisabled,
- parentDisabled = _this$data2.parentDisabled,
- disabled = _this$data2.disabled,
- value = _this$data2.value;
-
- if (!disabled && !labelDisabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- setParentValue: function setParentValue(parent, value) {
- var parentValue = parent.data.value.slice();
- var name = this.data.name;
- var max = parent.data.max;
-
- if (value) {
- if (max && parentValue.length >= max) {
- return;
- }
-
- if (parentValue.indexOf(name) === -1) {
- parentValue.push(name);
- emit(parent, parentValue);
- }
- } else {
- var index = parentValue.indexOf(name);
-
- if (index !== -1) {
- parentValue.splice(index, 1);
- emit(parent, parentValue);
- }
- }
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/checkbox/index.json b/mini-app/weapp/vant/checkbox/index.json
deleted file mode 100644
index aed2ff4bf..000000000
--- a/mini-app/weapp/vant/checkbox/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/checkbox/index.wxml b/mini-app/weapp/vant/checkbox/index.wxml
deleted file mode 100644
index bf478c642..000000000
--- a/mini-app/weapp/vant/checkbox/index.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/checkbox/index.wxs b/mini-app/weapp/vant/checkbox/index.wxs
deleted file mode 100644
index 8a0274ea9..000000000
--- a/mini-app/weapp/vant/checkbox/index.wxs
+++ /dev/null
@@ -1,20 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
- var styles = {
- 'font-size': addUnit(iconSize),
- };
-
- if (checkedColor && value && !disabled && !parentDisabled) {
- styles['border-color'] = checkedColor;
- styles['background-color'] = checkedColor;
- }
-
- return style(styles);
-}
-
-module.exports = {
- iconStyle: iconStyle,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/checkbox/index.wxss b/mini-app/weapp/vant/checkbox/index.wxss
deleted file mode 100644
index d84c418b9..000000000
--- a/mini-app/weapp/vant/checkbox/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-checkbox{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none}.van-checkbox__icon-wrap,.van-checkbox__label{line-height:20px;line-height:var(--checkbox-size,20px)}.van-checkbox__icon-wrap{-webkit-flex:none;flex:none}.van-checkbox__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:1em;height:1em;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;font-size:var(--checkbox-size,20px);border:1px solid #c8c9cc;border:1px solid var(--checkbox-border-color,#c8c9cc);transition-duration:.2s;transition-duration:var(--checkbox-transition-duration,.2s)}.van-checkbox__icon--round{border-radius:100%}.van-checkbox__icon--checked{color:#fff;color:var(--white,#fff);background-color:#1989fa;background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:#1989fa;border-color:var(--checkbox-checked-icon-color,#1989fa)}.van-checkbox__icon--disabled{background-color:#ebedf0;background-color:var(--checkbox-disabled-background-color,#ebedf0);border-color:#c8c9cc;border-color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__icon--disabled.van-checkbox__icon--checked{color:#c8c9cc;color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__label{word-wrap:break-word;margin-left:10px;margin-left:var(--checkbox-label-margin,10px);color:#323233;color:var(--checkbox-label-color,#323233)}.van-checkbox__label--left{float:left;margin:0 10px 0 0;margin:0 var(--checkbox-label-margin,10px) 0 0}.van-checkbox__label--disabled{color:#c8c9cc;color:var(--checkbox-disabled-label-color,#c8c9cc)}.van-checkbox__label:empty{margin:0}
diff --git a/mini-app/weapp/vant/col/index.js b/mini-app/weapp/vant/col/index.js
deleted file mode 100644
index f60a63f7f..000000000
--- a/mini-app/weapp/vant/col/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- relation: {
- name: 'row',
- type: 'ancestor',
- current: 'col'
- },
- props: {
- span: Number,
- offset: Number
- },
- data: {
- viewStyle: ''
- },
- methods: {
- setGutter: function setGutter(gutter) {
- var padding = "".concat(gutter / 2, "px");
- var viewStyle = gutter ? "padding-left: ".concat(padding, "; padding-right: ").concat(padding, ";") : '';
-
- if (viewStyle !== this.data.viewStyle) {
- this.setData({
- viewStyle: viewStyle
- });
- }
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/col/index.json b/mini-app/weapp/vant/col/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/col/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/col/index.wxml b/mini-app/weapp/vant/col/index.wxml
deleted file mode 100644
index d14769055..000000000
--- a/mini-app/weapp/vant/col/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/col/index.wxss b/mini-app/weapp/vant/col/index.wxss
deleted file mode 100644
index 923417c6e..000000000
--- a/mini-app/weapp/vant/col/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-col{float:left;box-sizing:border-box}.van-col--1{width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{width:100%}.van-col--offset-24{margin-left:100%}
diff --git a/mini-app/weapp/vant/common/color.js b/mini-app/weapp/vant/common/color.js
deleted file mode 100644
index 3a4e4a300..000000000
--- a/mini-app/weapp/vant/common/color.js
+++ /dev/null
@@ -1,20 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0;
-var RED = '#ee0a24';
-exports.RED = RED;
-var BLUE = '#1989fa';
-exports.BLUE = BLUE;
-var WHITE = '#fff';
-exports.WHITE = WHITE;
-var GREEN = '#07c160';
-exports.GREEN = GREEN;
-var ORANGE = '#ff976a';
-exports.ORANGE = ORANGE;
-var GRAY = '#323233';
-exports.GRAY = GRAY;
-var GRAY_DARK = '#969799';
-exports.GRAY_DARK = GRAY_DARK;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/common/component.js b/mini-app/weapp/vant/common/component.js
deleted file mode 100644
index 80b0d2e65..000000000
--- a/mini-app/weapp/vant/common/component.js
+++ /dev/null
@@ -1,131 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.VantComponent = VantComponent;
-
-var _basic = require('./../mixins/basic.js');
-
-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 relationFunctions = {
- ancestor: {
- linked: function linked(parent) {
- // @ts-ignore
- this.parent = parent;
- },
- unlinked: function unlinked() {
- // @ts-ignore
- this.parent = null;
- }
- },
- descendant: {
- linked: function linked(child) {
- // @ts-ignore
- this.children = this.children || []; // @ts-ignore
-
- this.children.push(child);
- },
- unlinked: function unlinked(child) {
- // @ts-ignore
- this.children = (this.children || []).filter(function (it) {
- return it !== child;
- });
- }
- }
-};
-
-function mapKeys(source, target, map) {
- Object.keys(map).forEach(function (key) {
- if (source[key]) {
- target[map[key]] = source[key];
- }
- });
-}
-
-function makeRelation(options, vantOptions, relation) {
- var type = relation.type,
- name = relation.name,
- _linked = relation.linked,
- _unlinked = relation.unlinked,
- _linkChanged = relation.linkChanged;
- var beforeCreate = vantOptions.beforeCreate,
- destroyed = vantOptions.destroyed;
-
- if (type === 'descendant') {
- options.created = function () {
- beforeCreate && beforeCreate.bind(this)();
- this.children = this.children || [];
- };
-
- options.detached = function () {
- this.children = [];
- destroyed && destroyed.bind(this)();
- };
- }
-
- options.relations = Object.assign(options.relations || {}, _defineProperty({}, "../".concat(name, "/index"), {
- type: type,
- linked: function linked(node) {
- relationFunctions[type].linked.bind(this)(node);
- _linked && _linked.bind(this)(node);
- },
- linkChanged: function linkChanged(node) {
- _linkChanged && _linkChanged.bind(this)(node);
- },
- unlinked: function unlinked(node) {
- relationFunctions[type].unlinked.bind(this)(node);
- _unlinked && _unlinked.bind(this)(node);
- }
- }));
-}
-
-function VantComponent() {
- var vantOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var options = {};
- mapKeys(vantOptions, options, {
- data: 'data',
- props: 'properties',
- mixins: 'behaviors',
- methods: 'methods',
- beforeCreate: 'created',
- created: 'attached',
- mounted: 'ready',
- relations: 'relations',
- destroyed: 'detached',
- classes: 'externalClasses'
- });
- var relation = vantOptions.relation;
-
- if (relation) {
- makeRelation(options, vantOptions, relation);
- } // add default externalClasses
-
-
- options.externalClasses = options.externalClasses || [];
- options.externalClasses.push('custom-class'); // add default behaviors
-
- options.behaviors = options.behaviors || [];
- options.behaviors.push(_basic.basic); // map field to form-field behavior
-
- if (vantOptions.field) {
- options.behaviors.push('wx://form-field');
- }
-
- if (options.properties) {
- Object.keys(options.properties).forEach(function (name) {
- if (Array.isArray(options.properties[name])) {
- // miniprogram do not allow multi type
- options.properties[name] = null;
- }
- });
- } // add default options
-
-
- options.options = {
- multipleSlots: true,
- addGlobalClass: true
- };
- Component(options);
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/common/index.wxss b/mini-app/weapp/vant/common/index.wxss
deleted file mode 100644
index 976825d7b..000000000
--- a/mini-app/weapp/vant/common/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{display:table;clear:both;content:""}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/common/utils.js b/mini-app/weapp/vant/common/utils.js
deleted file mode 100644
index a8041e0b8..000000000
--- a/mini-app/weapp/vant/common/utils.js
+++ /dev/null
@@ -1,114 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.range = range;
-exports.nextTick = nextTick;
-exports.getSystemInfoSync = getSystemInfoSync;
-exports.addUnit = addUnit;
-exports.requestAnimationFrame = requestAnimationFrame;
-exports.pickExclude = pickExclude;
-exports.getRect = getRect;
-exports.getAllRect = getAllRect;
-exports.groupSetData = groupSetData;
-exports.toPromise = toPromise;
-
-var _validator = require('./validator.js');
-
-var _version = require('./version.js');
-
-function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
-}
-
-function nextTick(cb) {
- if ((0, _version.canIUseNextTick)()) {
- wx.nextTick(cb);
- } else {
- setTimeout(function () {
- cb();
- }, 1000 / 30);
- }
-}
-
-var systemInfo;
-
-function getSystemInfoSync() {
- if (systemInfo == null) {
- systemInfo = wx.getSystemInfoSync();
- }
-
- return systemInfo;
-}
-
-function addUnit(value) {
- if (!(0, _validator.isDef)(value)) {
- return undefined;
- }
-
- value = String(value);
- return (0, _validator.isNumber)(value) ? "".concat(value, "px") : value;
-}
-
-function requestAnimationFrame(cb) {
- var systemInfo = getSystemInfoSync();
-
- if (systemInfo.platform === 'devtools') {
- return setTimeout(function () {
- cb();
- }, 1000 / 30);
- }
-
- return wx.createSelectorQuery().selectViewport().boundingClientRect().exec(function () {
- cb();
- });
-}
-
-function pickExclude(obj, keys) {
- if (!(0, _validator.isPlainObject)(obj)) {
- return {};
- }
-
- return Object.keys(obj).reduce(function (prev, key) {
- if (!keys.includes(key)) {
- prev[key] = obj[key];
- }
-
- return prev;
- }, {});
-}
-
-function getRect(context, selector) {
- return new Promise(function (resolve) {
- wx.createSelectorQuery()["in"](context).select(selector).boundingClientRect().exec(function () {
- var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- return resolve(rect[0]);
- });
- });
-}
-
-function getAllRect(context, selector) {
- return new Promise(function (resolve) {
- wx.createSelectorQuery()["in"](context).selectAll(selector).boundingClientRect().exec(function () {
- var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- return resolve(rect[0]);
- });
- });
-}
-
-function groupSetData(context, cb) {
- if ((0, _version.canIUseGroupSetData)()) {
- context.groupSetData(cb);
- } else {
- cb();
- }
-}
-
-function toPromise(promiseLike) {
- if ((0, _validator.isPromise)(promiseLike)) {
- return promiseLike;
- }
-
- return Promise.resolve(promiseLike);
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/common/validator.js b/mini-app/weapp/vant/common/validator.js
deleted file mode 100644
index 5e3d5d080..000000000
--- a/mini-app/weapp/vant/common/validator.js
+++ /dev/null
@@ -1,57 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.isFunction = isFunction;
-exports.isPlainObject = isPlainObject;
-exports.isPromise = isPromise;
-exports.isDef = isDef;
-exports.isObj = isObj;
-exports.isNumber = isNumber;
-exports.isBoolean = isBoolean;
-exports.isImageUrl = isImageUrl;
-exports.isVideoUrl = isVideoUrl;
-
-function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
-function isFunction(val) {
- return typeof val === 'function';
-}
-
-function isPlainObject(val) {
- return val !== null && _typeof(val) === 'object' && !Array.isArray(val);
-}
-
-function isPromise(val) {
- return isPlainObject(val) && isFunction(val.then) && isFunction(val["catch"]);
-}
-
-function isDef(value) {
- return value !== undefined && value !== null;
-}
-
-function isObj(x) {
- var type = _typeof(x);
-
- return x !== null && (type === 'object' || type === 'function');
-}
-
-function isNumber(value) {
- return /^\d+(\.\d+)?$/.test(value);
-}
-
-function isBoolean(value) {
- return typeof value === 'boolean';
-}
-
-var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
-var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
-
-function isImageUrl(url) {
- return IMAGE_REGEXP.test(url);
-}
-
-function isVideoUrl(url) {
- return VIDEO_REGEXP.test(url);
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/common/version.js b/mini-app/weapp/vant/common/version.js
deleted file mode 100644
index 9df4bd31f..000000000
--- a/mini-app/weapp/vant/common/version.js
+++ /dev/null
@@ -1,65 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.canIUseModel = canIUseModel;
-exports.canIUseFormFieldButton = canIUseFormFieldButton;
-exports.canIUseAnimate = canIUseAnimate;
-exports.canIUseGroupSetData = canIUseGroupSetData;
-exports.canIUseNextTick = canIUseNextTick;
-
-var _utils = require('./utils.js');
-
-function compareVersion(v1, v2) {
- v1 = v1.split('.');
- v2 = v2.split('.');
- var len = Math.max(v1.length, v2.length);
-
- while (v1.length < len) {
- v1.push('0');
- }
-
- while (v2.length < len) {
- v2.push('0');
- }
-
- for (var i = 0; i < len; i++) {
- var num1 = parseInt(v1[i], 10);
- var num2 = parseInt(v2[i], 10);
-
- if (num1 > num2) {
- return 1;
- }
-
- if (num1 < num2) {
- return -1;
- }
- }
-
- return 0;
-}
-
-function canIUseModel() {
- var system = (0, _utils.getSystemInfoSync)();
- return compareVersion(system.SDKVersion, '2.9.3') >= 0;
-}
-
-function canIUseFormFieldButton() {
- var system = (0, _utils.getSystemInfoSync)();
- return compareVersion(system.SDKVersion, '2.10.3') >= 0;
-}
-
-function canIUseAnimate() {
- var system = (0, _utils.getSystemInfoSync)();
- return compareVersion(system.SDKVersion, '2.9.0') >= 0;
-}
-
-function canIUseGroupSetData() {
- var system = (0, _utils.getSystemInfoSync)();
- return compareVersion(system.SDKVersion, '2.4.0') >= 0;
-}
-
-function canIUseNextTick() {
- return wx.canIUse('nextTick');
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/datetime-picker/index.js b/mini-app/weapp/vant/datetime-picker/index.js
deleted file mode 100644
index f8df8413d..000000000
--- a/mini-app/weapp/vant/datetime-picker/index.js
+++ /dev/null
@@ -1,398 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _validator = require('./../common/validator.js');
-
-var _shared = require('./../picker/shared.js');
-
-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; }
-
-function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
-
-function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
-
-function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
-
-function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
-
-function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
-
-function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
-
-var currentYear = new Date().getFullYear();
-
-function isValidDate(date) {
- return (0, _validator.isDef)(date) && !isNaN(new Date(date).getTime());
-}
-
-function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
-}
-
-function padZero(val) {
- return "00".concat(val).slice(-2);
-}
-
-function times(n, iteratee) {
- var index = -1;
- var result = Array(n < 0 ? 0 : n);
-
- while (++index < n) {
- result[index] = iteratee(index);
- }
-
- return result;
-}
-
-function getTrueValue(formattedValue) {
- if (formattedValue === undefined) {
- formattedValue = '1';
- }
-
- while (isNaN(parseInt(formattedValue, 10))) {
- formattedValue = formattedValue.slice(1);
- }
-
- return parseInt(formattedValue, 10);
-}
-
-function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
-}
-
-var defaultFormatter = function defaultFormatter(type, value) {
- return value;
-};
-
-(0, _component.VantComponent)({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: Object.assign(Object.assign({}, _shared.pickerProps), {
- value: {
- type: null,
- observer: 'updateValue'
- },
- filter: null,
- type: {
- type: String,
- value: 'datetime',
- observer: 'updateValue'
- },
- showToolbar: {
- type: Boolean,
- value: true
- },
- formatter: {
- type: null,
- value: defaultFormatter
- },
- minDate: {
- type: Number,
- value: new Date(currentYear - 10, 0, 1).getTime(),
- observer: 'updateValue'
- },
- maxDate: {
- type: Number,
- value: new Date(currentYear + 10, 11, 31).getTime(),
- observer: 'updateValue'
- },
- minHour: {
- type: Number,
- value: 0,
- observer: 'updateValue'
- },
- maxHour: {
- type: Number,
- value: 23,
- observer: 'updateValue'
- },
- minMinute: {
- type: Number,
- value: 0,
- observer: 'updateValue'
- },
- maxMinute: {
- type: Number,
- value: 59,
- observer: 'updateValue'
- }
- }),
- data: {
- innerValue: Date.now(),
- columns: []
- },
- methods: {
- updateValue: function updateValue() {
- var _this = this;
-
- var data = this.data;
- var val = this.correctValue(data.value);
- var isEqual = val === data.innerValue;
-
- if (!isEqual) {
- this.updateColumnValue(val).then(function () {
- _this.$emit('input', val);
- });
- } else {
- this.updateColumns();
- }
- },
- getPicker: function getPicker() {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-datetime-picker');
- var picker = this.picker;
- var setColumnValues = picker.setColumnValues;
-
- picker.setColumnValues = function () {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return setColumnValues.apply(picker, [].concat(args, [false]));
- };
- }
-
- return this.picker;
- },
- updateColumns: function updateColumns() {
- var _this$data$formatter = this.data.formatter,
- formatter = _this$data$formatter === void 0 ? defaultFormatter : _this$data$formatter;
- var results = this.getOriginColumns().map(function (column) {
- return {
- values: column.values.map(function (value) {
- return formatter(column.type, value);
- })
- };
- });
- return this.set({
- columns: results
- });
- },
- getOriginColumns: function getOriginColumns() {
- var filter = this.data.filter;
- var results = this.getRanges().map(function (_ref) {
- var type = _ref.type,
- range = _ref.range;
- var values = times(range[1] - range[0] + 1, function (index) {
- var value = range[0] + index;
- value = type === 'year' ? "".concat(value) : padZero(value);
- return value;
- });
-
- if (filter) {
- values = filter(type, values);
- }
-
- return {
- type: type,
- values: values
- };
- });
- return results;
- },
- getRanges: function getRanges() {
- var data = this.data;
-
- if (data.type === 'time') {
- return [{
- type: 'hour',
- range: [data.minHour, data.maxHour]
- }, {
- type: 'minute',
- range: [data.minMinute, data.maxMinute]
- }];
- }
-
- var _this$getBoundary = this.getBoundary('max', data.innerValue),
- maxYear = _this$getBoundary.maxYear,
- maxDate = _this$getBoundary.maxDate,
- maxMonth = _this$getBoundary.maxMonth,
- maxHour = _this$getBoundary.maxHour,
- maxMinute = _this$getBoundary.maxMinute;
-
- var _this$getBoundary2 = this.getBoundary('min', data.innerValue),
- minYear = _this$getBoundary2.minYear,
- minDate = _this$getBoundary2.minDate,
- minMonth = _this$getBoundary2.minMonth,
- minHour = _this$getBoundary2.minHour,
- minMinute = _this$getBoundary2.minMinute;
-
- var result = [{
- type: 'year',
- range: [minYear, maxYear]
- }, {
- type: 'month',
- range: [minMonth, maxMonth]
- }, {
- type: 'day',
- range: [minDate, maxDate]
- }, {
- type: 'hour',
- range: [minHour, maxHour]
- }, {
- type: 'minute',
- range: [minMinute, maxMinute]
- }];
- if (data.type === 'date') result.splice(3, 2);
- if (data.type === 'year-month') result.splice(2, 3);
- return result;
- },
- correctValue: function correctValue(value) {
- var data = this.data; // validate value
-
- var isDateType = data.type !== 'time';
-
- if (isDateType && !isValidDate(value)) {
- value = data.minDate;
- } else if (!isDateType && !value) {
- var minHour = data.minHour;
- value = "".concat(padZero(minHour), ":00");
- } // time type
-
-
- if (!isDateType) {
- var _value$split = value.split(':'),
- _value$split2 = _slicedToArray(_value$split, 2),
- hour = _value$split2[0],
- minute = _value$split2[1];
-
- hour = padZero(range(hour, data.minHour, data.maxHour));
- minute = padZero(range(minute, data.minMinute, data.maxMinute));
- return "".concat(hour, ":").concat(minute);
- } // date type
-
-
- value = Math.max(value, data.minDate);
- value = Math.min(value, data.maxDate);
- return value;
- },
- getBoundary: function getBoundary(type, innerValue) {
- var _ref2;
-
- var value = new Date(innerValue);
- var boundary = new Date(this.data["".concat(type, "Date")]);
- var year = boundary.getFullYear();
- var month = 1;
- var date = 1;
- var hour = 0;
- var minute = 0;
-
- if (type === 'max') {
- month = 12;
- date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
- hour = 23;
- minute = 59;
- }
-
- if (value.getFullYear() === year) {
- month = boundary.getMonth() + 1;
-
- if (value.getMonth() + 1 === month) {
- date = boundary.getDate();
-
- if (value.getDate() === date) {
- hour = boundary.getHours();
-
- if (value.getHours() === hour) {
- minute = boundary.getMinutes();
- }
- }
- }
- }
-
- return _ref2 = {}, _defineProperty(_ref2, "".concat(type, "Year"), year), _defineProperty(_ref2, "".concat(type, "Month"), month), _defineProperty(_ref2, "".concat(type, "Date"), date), _defineProperty(_ref2, "".concat(type, "Hour"), hour), _defineProperty(_ref2, "".concat(type, "Minute"), minute), _ref2;
- },
- onCancel: function onCancel() {
- this.$emit('cancel');
- },
- onConfirm: function onConfirm() {
- this.$emit('confirm', this.data.innerValue);
- },
- onChange: function onChange() {
- var _this2 = this;
-
- var data = this.data;
- var value;
- var picker = this.getPicker();
- var originColumns = this.getOriginColumns();
-
- if (data.type === 'time') {
- var indexes = picker.getIndexes();
- value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
- } else {
- var _indexes = picker.getIndexes();
-
- var values = _indexes.map(function (value, index) {
- return originColumns[index].values[value];
- });
-
- var year = getTrueValue(values[0]);
- var month = getTrueValue(values[1]);
- var maxDate = getMonthEndDay(year, month);
- var date = getTrueValue(values[2]);
-
- if (data.type === 'year-month') {
- date = 1;
- }
-
- date = date > maxDate ? maxDate : date;
- var hour = 0;
- var minute = 0;
-
- if (data.type === 'datetime') {
- hour = getTrueValue(values[3]);
- minute = getTrueValue(values[4]);
- }
-
- value = new Date(year, month - 1, date, hour, minute);
- }
-
- value = this.correctValue(value);
- this.updateColumnValue(value).then(function () {
- _this2.$emit('input', value);
-
- _this2.$emit('change', picker);
- });
- },
- updateColumnValue: function updateColumnValue(value) {
- var _this3 = this;
-
- var values = [];
- var type = this.data.type;
- var formatter = this.data.formatter || defaultFormatter;
- var picker = this.getPicker();
-
- if (type === 'time') {
- var pair = value.split(':');
- values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
- } else {
- var date = new Date(value);
- values = [formatter('year', "".concat(date.getFullYear())), formatter('month', padZero(date.getMonth() + 1))];
-
- if (type === 'date') {
- values.push(formatter('day', padZero(date.getDate())));
- }
-
- if (type === 'datetime') {
- values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
- }
- }
-
- return this.set({
- innerValue: value
- }).then(function () {
- return _this3.updateColumns();
- }).then(function () {
- return picker.setValues(values);
- });
- }
- },
- created: function created() {
- var _this4 = this;
-
- var innerValue = this.correctValue(this.data.value);
- this.updateColumnValue(innerValue).then(function () {
- _this4.$emit('input', innerValue);
- });
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/datetime-picker/index.json b/mini-app/weapp/vant/datetime-picker/index.json
deleted file mode 100644
index 1c776a368..000000000
--- a/mini-app/weapp/vant/datetime-picker/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-picker": "./../picker/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/datetime-picker/index.wxml b/mini-app/weapp/vant/datetime-picker/index.wxml
deleted file mode 100644
index ade22024e..000000000
--- a/mini-app/weapp/vant/datetime-picker/index.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/mini-app/weapp/vant/datetime-picker/index.wxss b/mini-app/weapp/vant/datetime-picker/index.wxss
deleted file mode 100644
index ecfdfde88..000000000
--- a/mini-app/weapp/vant/datetime-picker/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';
diff --git a/mini-app/weapp/vant/dialog/index.js b/mini-app/weapp/vant/dialog/index.js
deleted file mode 100644
index b6222761a..000000000
--- a/mini-app/weapp/vant/dialog/index.js
+++ /dev/null
@@ -1,142 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _button = require('./../mixins/button.js');
-
-var _openType = require('./../mixins/open-type.js');
-
-var _color = require('./../common/color.js');
-
-var _utils = require('./../common/utils.js');
-
-(0, _component.VantComponent)({
- mixins: [_button.button, _openType.openType],
- props: {
- show: {
- type: Boolean,
- observer: function observer(show) {
- !show && this.stopLoading();
- }
- },
- title: String,
- message: String,
- theme: {
- type: String,
- value: 'default'
- },
- useSlot: Boolean,
- className: String,
- customStyle: String,
- asyncClose: Boolean,
- messageAlign: String,
- beforeClose: null,
- overlayStyle: String,
- useTitleSlot: Boolean,
- showCancelButton: Boolean,
- closeOnClickOverlay: Boolean,
- confirmButtonOpenType: String,
- width: null,
- zIndex: {
- type: Number,
- value: 2000
- },
- confirmButtonText: {
- type: String,
- value: '确认'
- },
- cancelButtonText: {
- type: String,
- value: '取消'
- },
- confirmButtonColor: {
- type: String,
- value: _color.RED
- },
- cancelButtonColor: {
- type: String,
- value: _color.GRAY
- },
- showConfirmButton: {
- type: Boolean,
- value: true
- },
- overlay: {
- type: Boolean,
- value: true
- },
- transition: {
- type: String,
- value: 'scale'
- }
- },
- data: {
- loading: {
- confirm: false,
- cancel: false
- }
- },
- methods: {
- onConfirm: function onConfirm() {
- this.handleAction('confirm');
- },
- onCancel: function onCancel() {
- this.handleAction('cancel');
- },
- onClickOverlay: function onClickOverlay() {
- this.onClose('overlay');
- },
- close: function close(action) {
- var _this = this;
-
- this.setData({
- show: false
- });
- wx.nextTick(function () {
- _this.$emit('close', action);
-
- var callback = _this.data.callback;
-
- if (callback) {
- callback(action, _this);
- }
- });
- },
- stopLoading: function stopLoading() {
- this.setData({
- loading: {
- confirm: false,
- cancel: false
- }
- });
- },
- handleAction: function handleAction(action) {
- var _this2 = this;
-
- this.$emit(action, {
- dialog: this
- });
- var _this$data = this.data,
- asyncClose = _this$data.asyncClose,
- beforeClose = _this$data.beforeClose;
-
- if (!asyncClose && !beforeClose) {
- this.close(action);
- return;
- } // this.setData({
- // [`loading.${action}`]: true,
- // });
-
-
- if (beforeClose) {
- (0, _utils.toPromise)(beforeClose(action)).then(function (value) {
- if (value) {
- _this2.close(action);
- } else {
- _this2.stopLoading();
- }
- });
- }
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/dialog/index.json b/mini-app/weapp/vant/dialog/index.json
deleted file mode 100644
index 19461b7ce..000000000
--- a/mini-app/weapp/vant/dialog/index.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-button": "./../button/index",
- "van-popup": "./../popup/index",
- "van-goods-action": "./../goods-action/index",
- "van-goods-action-button": "./../goods-action-button/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/dialog/index.wxml b/mini-app/weapp/vant/dialog/index.wxml
deleted file mode 100644
index 59608f296..000000000
--- a/mini-app/weapp/vant/dialog/index.wxml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ message }}
-
-
-
-
- {{ cancelButtonText }}
-
-
- {{ confirmButtonText }}
-
-
-
-
-
diff --git a/mini-app/weapp/vant/dialog/index.wxss b/mini-app/weapp/vant/dialog/index.wxss
deleted file mode 100644
index b2bbca8cf..000000000
--- a/mini-app/weapp/vant/dialog/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-dialog{top:45%!important;overflow:hidden;width:320px;width:var(--dialog-width,320px);font-size:16px;font-size:var(--dialog-font-size,16px);border-radius:16px;border-radius:var(--dialog-border-radius,16px);background-color:#fff;background-color:var(--dialog-background-color,#fff)}@media (max-width:321px){.van-dialog{width:90%;width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{text-align:center;padding-top:24px;padding-top:var(--dialog-header-padding-top,24px);font-weight:500;font-weight:var(--dialog-header-font-weight,500);line-height:24px;line-height:var(--dialog-header-line-height,24px)}.van-dialog__header--isolated{padding:24px 0;padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{overflow-y:auto;text-align:center;-webkit-overflow-scrolling:touch;font-size:14px;font-size:var(--dialog-message-font-size,14px);line-height:20px;line-height:var(--dialog-message-line-height,20px);max-height:60vh;max-height:var(--dialog-message-max-height,60vh);padding:24px;padding:var(--dialog-message-padding,24px)}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{padding-top:8px;padding-top:var(--dialog-has-title-message-padding-top,8px);color:#646566;color:var(--dialog-has-title-message-text-color,#646566)}.van-dialog__message--round-button{padding-bottom:16px;color:#323233}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:-webkit-flex;display:flex}.van-dialog__footer--round-button{position:relative!important;padding:8px 24px 16px!important}.van-dialog__button{-webkit-flex:1;flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}
diff --git a/mini-app/weapp/vant/divider/index.js b/mini-app/weapp/vant/divider/index.js
deleted file mode 100644
index 844f0bb34..000000000
--- a/mini-app/weapp/vant/divider/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- dashed: {
- type: Boolean,
- value: false
- },
- hairline: {
- type: Boolean,
- value: false
- },
- contentPosition: {
- type: String,
- value: ''
- },
- fontSize: {
- type: Number,
- value: ''
- },
- borderColor: {
- type: String,
- value: ''
- },
- textColor: {
- type: String,
- value: ''
- },
- customStyle: {
- type: String,
- value: ''
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/divider/index.json b/mini-app/weapp/vant/divider/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/divider/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/divider/index.wxml b/mini-app/weapp/vant/divider/index.wxml
deleted file mode 100644
index fa7475d96..000000000
--- a/mini-app/weapp/vant/divider/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/divider/index.wxss b/mini-app/weapp/vant/divider/index.wxss
deleted file mode 100644
index d042df676..000000000
--- a/mini-app/weapp/vant/divider/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-divider{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin:16px 0;margin:var(--divider-margin,16px 0);color:#969799;color:var(--divider-text-color,#969799);font-size:14px;font-size:var(--divider-font-size,14px);line-height:24px;line-height:var(--divider-line-height,24px);border:0 solid #ebedf0;border-color:var(--divider-border-color,#ebedf0)}.van-divider:after,.van-divider:before{display:block;-webkit-flex:1;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:1px 0 0}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:16px;margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:16px;margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:10%;max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:10%;max-width:var(--divider-content-right-width,10%)}
diff --git a/mini-app/weapp/vant/field/index.js b/mini-app/weapp/vant/field/index.js
deleted file mode 100644
index fd30c0c09..000000000
--- a/mini-app/weapp/vant/field/index.js
+++ /dev/null
@@ -1,145 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _props = require('./props.js');
-
-(0, _component.VantComponent)({
- field: true,
- classes: ['input-class', 'right-icon-class', 'label-class'],
- props: Object.assign(Object.assign(Object.assign(Object.assign({}, _props.commonProps), _props.inputProps), _props.textareaProps), {
- size: String,
- icon: String,
- label: String,
- error: Boolean,
- center: Boolean,
- isLink: Boolean,
- leftIcon: String,
- rightIcon: String,
- autosize: [Boolean, Object],
- required: Boolean,
- iconClass: String,
- clickable: Boolean,
- inputAlign: String,
- customStyle: String,
- errorMessage: String,
- arrowDirection: String,
- showWordLimit: Boolean,
- errorMessageAlign: String,
- readonly: {
- type: Boolean,
- observer: 'setShowClear'
- },
- clearable: {
- type: Boolean,
- observer: 'setShowClear'
- },
- border: {
- type: Boolean,
- value: true
- },
- titleWidth: {
- type: String,
- value: '6.2em'
- }
- }),
- data: {
- focused: false,
- innerValue: '',
- showClear: false
- },
- created: function created() {
- this.value = this.data.value;
- this.setData({
- innerValue: this.value
- });
- },
- methods: {
- onInput: function onInput(event) {
- var _ref = event.detail || {},
- _ref$value = _ref.value,
- value = _ref$value === void 0 ? '' : _ref$value;
-
- this.value = value;
- this.setShowClear();
- this.emitChange();
- },
- onFocus: function onFocus(event) {
- this.focused = true;
- this.setShowClear();
- this.$emit('focus', event.detail);
- },
- onBlur: function onBlur(event) {
- this.focused = false;
- this.setShowClear();
- this.$emit('blur', event.detail);
- },
- onClickIcon: function onClickIcon() {
- this.$emit('click-icon');
- },
- onClear: function onClear() {
- var _this = this;
-
- this.setData({
- innerValue: ''
- });
- this.value = '';
- this.setShowClear();
- wx.nextTick(function () {
- _this.emitChange();
-
- _this.$emit('clear', '');
- });
- },
- onConfirm: function onConfirm(event) {
- var _ref2 = event.detail || {},
- _ref2$value = _ref2.value,
- value = _ref2$value === void 0 ? '' : _ref2$value;
-
- this.value = value;
- this.setShowClear();
- this.$emit('confirm', value);
- },
- setValue: function setValue(value) {
- this.value = value;
- this.setShowClear();
-
- if (value === '') {
- this.setData({
- innerValue: ''
- });
- }
-
- this.emitChange();
- },
- onLineChange: function onLineChange(event) {
- this.$emit('linechange', event.detail);
- },
- onKeyboardHeightChange: function onKeyboardHeightChange(event) {
- this.$emit('keyboardheightchange', event.detail);
- },
- emitChange: function emitChange() {
- var _this2 = this;
-
- this.setData({
- value: this.value
- });
- wx.nextTick(function () {
- _this2.$emit('input', _this2.value);
-
- _this2.$emit('change', _this2.value);
- });
- },
- setShowClear: function setShowClear() {
- var _this$data = this.data,
- clearable = _this$data.clearable,
- readonly = _this$data.readonly;
- var focused = this.focused,
- value = this.value;
- this.setData({
- showClear: !!clearable && !!focused && !!value && !readonly
- });
- },
- noop: function noop() {}
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/field/index.json b/mini-app/weapp/vant/field/index.json
deleted file mode 100644
index f4f8f0b1c..000000000
--- a/mini-app/weapp/vant/field/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "./../cell/index",
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/field/index.wxml b/mini-app/weapp/vant/field/index.wxml
deleted file mode 100644
index 8ef1e47a7..000000000
--- a/mini-app/weapp/vant/field/index.wxml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ value.length >= maxlength ? maxlength : value.length }}/{{ maxlength }}
-
-
- {{ errorMessage }}
-
-
diff --git a/mini-app/weapp/vant/field/index.wxs b/mini-app/weapp/vant/field/index.wxs
deleted file mode 100644
index 758003cc0..000000000
--- a/mini-app/weapp/vant/field/index.wxs
+++ /dev/null
@@ -1,21 +0,0 @@
-/* eslint-disable */
-var utils = require('../wxs/utils.wxs');
-
-function inputStyle(autosize) {
- if (autosize && autosize.constructor === 'Object') {
- var style = '';
- if (autosize.minHeight) {
- style += 'min-height:' + utils.addUnit(autosize.minHeight) + ';';
- }
- if (autosize.maxHeight) {
- style += 'max-height:' + utils.addUnit(autosize.maxHeight) + ';';
- }
- return style;
- }
-
- return '';
-}
-
-module.exports = {
- inputStyle: inputStyle
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/field/index.wxss b/mini-app/weapp/vant/field/index.wxss
deleted file mode 100644
index 42452a302..000000000
--- a/mini-app/weapp/vant/field/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-field{--cell-icon-size:16px;--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:#646566;color:var(--field-label-color,#646566)}.van-field__label--disabled{color:#c8c9cc;color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}.van-field__body--textarea{padding:3.6px 0;line-height:1.2em}.van-field__body--textarea,.van-field__input{box-sizing:border-box;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__input{position:relative;display:block;width:100%;margin:0;padding:0;line-height:inherit;text-align:left;background-color:initial;border:0;resize:none;color:#323233;color:var(--field-input-text-color,#323233);height:24px;height:var(--cell-line-height,24px)}.van-field__input--textarea{height:18px;height:var(--field-text-area-min-height,18px);min-height:18px;min-height:var(--field-text-area-min-height,18px)}.van-field__input--error{color:#ee0a24;color:var(--field-input-error-text-color,#ee0a24)}.van-field__input--disabled{background-color:initial;opacity:1;color:#c8c9cc;color:var(--field-input-disabled-text-color,#c8c9cc)}.van-field__input--center{text-align:center}.van-field__input--right{text-align:right}.van-field__placeholder{position:absolute;top:0;right:0;left:0;pointer-events:none;color:#c8c9cc;color:var(--field-placeholder-text-color,#c8c9cc)}.van-field__placeholder--error{color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;min-height:24px;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;vertical-align:middle;padding:0 8px;padding:0 var(--padding-xs,8px);margin-right:-8px;margin-right:-var(--padding-xs,8px)}.van-field__button,.van-field__clear-root,.van-field__icon-container{-webkit-flex-shrink:0;flex-shrink:0}.van-field__clear-root{font-size:16px;font-size:var(--field-clear-icon-size,16px);color:#c8c9cc;color:var(--field-clear-icon-color,#c8c9cc)}.van-field__icon-container{font-size:16px;font-size:var(--field-icon-size,16px);color:#969799;color:var(--field-icon-container-color,#969799)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:8px;padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{text-align:left;font-size:12px;font-size:var(--field-error-message-text-font-size,12px);color:#ee0a24;color:var(--field-error-message-color,#ee0a24)}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{text-align:right;margin-top:4px;margin-top:var(--padding-base,4px);color:#646566;color:var(--field-word-limit-color,#646566);font-size:12px;font-size:var(--field-word-limit-font-size,12px);line-height:16px;line-height:var(--field-word-limit-line-height,16px)}.van-field__word-num{display:inline}.van-field__word-num--full{color:#ee0a24;color:var(--field-word-num-full-color,#ee0a24)}
diff --git a/mini-app/weapp/vant/field/props.js b/mini-app/weapp/vant/field/props.js
deleted file mode 100644
index d3a1599e5..000000000
--- a/mini-app/weapp/vant/field/props.js
+++ /dev/null
@@ -1,74 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
-var commonProps = {
- value: {
- type: String,
- observer: function observer(value) {
- if (value !== this.value) {
- this.setData({
- innerValue: value
- });
- this.value = value;
- }
- }
- },
- placeholder: String,
- placeholderStyle: String,
- placeholderClass: String,
- disabled: Boolean,
- maxlength: {
- type: Number,
- value: -1
- },
- cursorSpacing: {
- type: Number,
- value: 50
- },
- autoFocus: Boolean,
- focus: Boolean,
- cursor: {
- type: Number,
- value: -1
- },
- selectionStart: {
- type: Number,
- value: -1
- },
- selectionEnd: {
- type: Number,
- value: -1
- },
- adjustPosition: {
- type: Boolean,
- value: true
- },
- holdKeyboard: Boolean
-};
-exports.commonProps = commonProps;
-var inputProps = {
- type: {
- type: String,
- value: 'text'
- },
- password: Boolean,
- confirmType: String,
- confirmHold: Boolean
-};
-exports.inputProps = inputProps;
-var textareaProps = {
- autoHeight: Boolean,
- fixed: Boolean,
- showConfirmBar: {
- type: Boolean,
- value: true
- },
- disableDefaultPadding: {
- type: Boolean,
- value: true
- }
-};
-exports.textareaProps = textareaProps;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/goods-action-button/index.js b/mini-app/weapp/vant/goods-action-button/index.js
deleted file mode 100644
index d04747f70..000000000
--- a/mini-app/weapp/vant/goods-action-button/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _link = require('./../mixins/link.js');
-
-var _button = require('./../mixins/button.js');
-
-var _openType = require('./../mixins/open-type.js');
-
-(0, _component.VantComponent)({
- mixins: [_link.link, _button.button, _openType.openType],
- relation: {
- type: 'ancestor',
- name: 'goods-action',
- current: 'goods-action-button'
- },
- props: {
- text: String,
- color: String,
- loading: Boolean,
- disabled: Boolean,
- plain: Boolean,
- type: {
- type: String,
- value: 'danger'
- }
- },
- methods: {
- onClick: function onClick(event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- },
- updateStyle: function updateStyle() {
- if (this.parent == null) {
- return;
- }
-
- var _this$parent$children = this.parent.children,
- children = _this$parent$children === void 0 ? [] : _this$parent$children;
- var length = children.length;
- var index = children.indexOf(this);
- this.setData({
- isFirst: index === 0,
- isLast: index === length - 1
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/goods-action-button/index.json b/mini-app/weapp/vant/goods-action-button/index.json
deleted file mode 100644
index 05b22eac8..000000000
--- a/mini-app/weapp/vant/goods-action-button/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-button": "./../button/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/goods-action-button/index.wxml b/mini-app/weapp/vant/goods-action-button/index.wxml
deleted file mode 100644
index 5154cda6c..000000000
--- a/mini-app/weapp/vant/goods-action-button/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
- {{ text }}
-
-
diff --git a/mini-app/weapp/vant/goods-action-button/index.wxss b/mini-app/weapp/vant/goods-action-button/index.wxss
deleted file mode 100644
index 1ec05c379..000000000
--- a/mini-app/weapp/vant/goods-action-button/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-goods-action-button{--button-warning-background-color:linear-gradient(90deg,#ffd01e,#ff8917);--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(90deg,#ffd01e,#ff8917));--button-danger-background-color:linear-gradient(90deg,#ff6034,#ee0a24);--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(90deg,#ff6034,#ee0a24));--button-default-height:40px;--button-default-height:var(--goods-action-button-height,40px);--button-line-height:20px;--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:#fff;--button-plain-background-color:var(--goods-action-button-plain-color,#fff);display:block;--button-border-width:0}.van-goods-action-button--first{margin-left:5px;--button-border-radius:20px 0 0 20px;--button-border-radius:var(--goods-action-button-border-radius,20px) 0 0 var(--goods-action-button-border-radius,20px)}.van-goods-action-button--last{margin-right:5px;--button-border-radius:0 20px 20px 0;--button-border-radius:0 var(--goods-action-button-border-radius,20px) var(--goods-action-button-border-radius,20px) 0}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:20px;--button-border-radius:var(--goods-action-button-border-radius,20px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{width:100%;font-weight:500!important;font-weight:var(--font-weight-bold,500)!important}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
diff --git a/mini-app/weapp/vant/goods-action-icon/index.js b/mini-app/weapp/vant/goods-action-icon/index.js
deleted file mode 100644
index e1e55031b..000000000
--- a/mini-app/weapp/vant/goods-action-icon/index.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _button = require('./../mixins/button.js');
-
-var _link = require('./../mixins/link.js');
-
-var _openType = require('./../mixins/open-type.js');
-
-(0, _component.VantComponent)({
- classes: ['icon-class', 'text-class'],
- mixins: [_link.link, _button.button, _openType.openType],
- props: {
- text: String,
- dot: Boolean,
- info: String,
- icon: String,
- disabled: Boolean,
- loading: Boolean
- },
- methods: {
- onClick: function onClick(event) {
- this.$emit('click', event.detail);
- this.jumpLink();
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/goods-action-icon/index.json b/mini-app/weapp/vant/goods-action-icon/index.json
deleted file mode 100644
index faf81542d..000000000
--- a/mini-app/weapp/vant/goods-action-icon/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index",
- "van-button": "./../button/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/goods-action-icon/index.wxml b/mini-app/weapp/vant/goods-action-icon/index.wxml
deleted file mode 100644
index 1983cae46..000000000
--- a/mini-app/weapp/vant/goods-action-icon/index.wxml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
- {{ text }}
-
diff --git a/mini-app/weapp/vant/goods-action-icon/index.wxss b/mini-app/weapp/vant/goods-action-icon/index.wxss
deleted file mode 100644
index bbdf89aa5..000000000
--- a/mini-app/weapp/vant/goods-action-icon/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-goods-action-icon{display:-webkit-flex!important;display:flex!important;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center!important;justify-content:center!important;line-height:1!important;border:none!important;font-size:10px!important;font-size:var(--goods-action-icon-font-size,10px)!important;color:#646566!important;color:var(--goods-action-icon-text-color,#646566)!important;min-width:48px;min-width:var(--goods-action-icon-width,48px);height:50px!important;height:var(--goods-action-icon-height,50px)!important}.van-goods-action-icon__icon{display:-webkit-flex;display:flex;margin:0 auto 5px;color:#323233;color:var(--goods-action-icon-color,#323233);font-size:18px;font-size:var(--goods-action-icon-size,18px)}
diff --git a/mini-app/weapp/vant/goods-action/index.js b/mini-app/weapp/vant/goods-action/index.js
deleted file mode 100644
index f389edf1c..000000000
--- a/mini-app/weapp/vant/goods-action/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- relation: {
- type: 'descendant',
- name: 'goods-action-button',
- current: 'goods-action',
- linked: function linked() {
- this.updateStyle();
- },
- unlinked: function unlinked() {
- this.updateStyle();
- },
- linkChanged: function linkChanged() {
- this.updateStyle();
- }
- },
- props: {
- safeAreaInsetBottom: {
- type: Boolean,
- value: true
- }
- },
- methods: {
- updateStyle: function updateStyle() {
- var _this = this;
-
- wx.nextTick(function () {
- _this.children.forEach(function (child) {
- child.updateStyle();
- });
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/goods-action/index.json b/mini-app/weapp/vant/goods-action/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/goods-action/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/goods-action/index.wxml b/mini-app/weapp/vant/goods-action/index.wxml
deleted file mode 100644
index 23a04be54..000000000
--- a/mini-app/weapp/vant/goods-action/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/goods-action/index.wxss b/mini-app/weapp/vant/goods-action/index.wxss
deleted file mode 100644
index 07ff6e9ff..000000000
--- a/mini-app/weapp/vant/goods-action/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;box-sizing:initial;height:50px;height:var(--goods-action-height,50px);background-color:#fff;background-color:var(--goods-action-background-color,#fff)}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
diff --git a/mini-app/weapp/vant/grid-item/index.js b/mini-app/weapp/vant/grid-item/index.js
deleted file mode 100644
index 1405e9c6d..000000000
--- a/mini-app/weapp/vant/grid-item/index.js
+++ /dev/null
@@ -1,64 +0,0 @@
-"use strict";
-
-var _link = require('./../mixins/link.js');
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- relation: {
- name: 'grid',
- type: 'ancestor',
- current: 'grid-item'
- },
- classes: ['content-class', 'icon-class', 'text-class'],
- mixins: [_link.link],
- props: {
- icon: String,
- iconColor: String,
- dot: Boolean,
- info: null,
- badge: null,
- text: String,
- useSlot: Boolean
- },
- data: {
- viewStyle: ''
- },
- mounted: function mounted() {
- this.updateStyle();
- },
- methods: {
- updateStyle: function updateStyle() {
- if (!this.parent) {
- return;
- }
-
- var _this$parent = this.parent,
- data = _this$parent.data,
- children = _this$parent.children;
- var columnNum = data.columnNum,
- border = data.border,
- square = data.square,
- gutter = data.gutter,
- clickable = data.clickable,
- center = data.center,
- direction = data.direction,
- iconSize = data.iconSize;
- this.setData({
- center: center,
- border: border,
- square: square,
- gutter: gutter,
- clickable: clickable,
- direction: direction,
- iconSize: iconSize,
- index: children.indexOf(this),
- columnNum: columnNum
- });
- },
- onClick: function onClick() {
- this.$emit('click');
- this.jumpLink();
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/grid-item/index.json b/mini-app/weapp/vant/grid-item/index.json
deleted file mode 100644
index aed2ff4bf..000000000
--- a/mini-app/weapp/vant/grid-item/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/grid-item/index.wxml b/mini-app/weapp/vant/grid-item/index.wxml
deleted file mode 100644
index aaf09a01f..000000000
--- a/mini-app/weapp/vant/grid-item/index.wxml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ text }}
-
-
-
-
-
diff --git a/mini-app/weapp/vant/grid-item/index.wxs b/mini-app/weapp/vant/grid-item/index.wxs
deleted file mode 100644
index 31c7b45a9..000000000
--- a/mini-app/weapp/vant/grid-item/index.wxs
+++ /dev/null
@@ -1,32 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function wrapperStyle(data) {
- var width = 100 / data.columnNum + '%';
-
- return style({
- width: width,
- 'padding-top': data.square ? width : null,
- 'padding-right': addUnit(data.gutter),
- 'margin-top':
- data.index >= data.columnNum && !data.square
- ? addUnit(data.gutter)
- : null,
- });
-}
-
-function contentStyle(data) {
- return data.square
- ? style({
- right: addUnit(data.gutter),
- bottom: addUnit(data.gutter),
- height: 'auto',
- })
- : '';
-}
-
-module.exports = {
- wrapperStyle: wrapperStyle,
- contentStyle: contentStyle,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/grid-item/index.wxss b/mini-app/weapp/vant/grid-item/index.wxss
deleted file mode 100644
index ff7f5dfc3..000000000
--- a/mini-app/weapp/vant/grid-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid-item{position:relative;float:left;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__content{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;box-sizing:border-box;height:100%;padding:16px 8px;padding:var(--grid-item-content-padding,16px 8px);background-color:#fff;background-color:var(--grid-item-content-background-color,#fff)}.van-grid-item__content:after{z-index:1;border-width:0 1px 1px 0;border-bottom-width:var(--border-width-base,1px);border-right-width:var(--border-width-base,1px);border-top-width:0}.van-grid-item__content--surround:after{border-width:1px;border-width:var(--border-width-base,1px)}.van-grid-item__content--center{-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--horizontal{-webkit-flex-direction:row;flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__icon+.van-grid-item__text{margin-top:0;margin-left:8px}.van-grid-item__content--clickable:active{background-color:#f2f3f5;background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:26px;font-size:var(--grid-item-icon-size,26px);height:26px;height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:#646566;color:var(--grid-item-text-color,#646566);font-size:12px;font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
diff --git a/mini-app/weapp/vant/grid/index.js b/mini-app/weapp/vant/grid/index.js
deleted file mode 100644
index 8864ffdb0..000000000
--- a/mini-app/weapp/vant/grid/index.js
+++ /dev/null
@@ -1,56 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- relation: {
- name: 'grid-item',
- type: 'descendant',
- current: 'grid'
- },
- props: {
- square: {
- type: Boolean,
- observer: 'updateChildren'
- },
- gutter: {
- type: [Number, String],
- value: 0,
- observer: 'updateChildren'
- },
- clickable: {
- type: Boolean,
- observer: 'updateChildren'
- },
- columnNum: {
- type: Number,
- value: 4,
- observer: 'updateChildren'
- },
- center: {
- type: Boolean,
- value: true,
- observer: 'updateChildren'
- },
- border: {
- type: Boolean,
- value: true,
- observer: 'updateChildren'
- },
- direction: {
- type: String,
- observer: 'updateChildren'
- },
- iconSize: {
- type: String,
- observer: 'updateChildren'
- }
- },
- methods: {
- updateChildren: function updateChildren() {
- this.children.forEach(function (child) {
- child.updateStyle();
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/grid/index.json b/mini-app/weapp/vant/grid/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/grid/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/grid/index.wxml b/mini-app/weapp/vant/grid/index.wxml
deleted file mode 100644
index 5c4d12ce4..000000000
--- a/mini-app/weapp/vant/grid/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/grid/index.wxs b/mini-app/weapp/vant/grid/index.wxs
deleted file mode 100644
index 02c181328..000000000
--- a/mini-app/weapp/vant/grid/index.wxs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style({
- 'padding-left': addUnit(data.gutter),
- });
-}
-
-module.exports = {
- rootStyle: rootStyle,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/grid/index.wxss b/mini-app/weapp/vant/grid/index.wxss
deleted file mode 100644
index f0b1757e6..000000000
--- a/mini-app/weapp/vant/grid/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid{position:relative;box-sizing:border-box;overflow:hidden}
diff --git a/mini-app/weapp/vant/icon/index.js b/mini-app/weapp/vant/icon/index.js
deleted file mode 100644
index a9ed66140..000000000
--- a/mini-app/weapp/vant/icon/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- dot: Boolean,
- info: null,
- size: null,
- color: String,
- customStyle: String,
- classPrefix: {
- type: String,
- value: 'van-icon'
- },
- name: String
- },
- methods: {
- onClick: function onClick() {
- this.$emit('click');
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/icon/index.json b/mini-app/weapp/vant/icon/index.json
deleted file mode 100644
index 81d20d76c..000000000
--- a/mini-app/weapp/vant/icon/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-info": "./../info/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/icon/index.wxml b/mini-app/weapp/vant/icon/index.wxml
deleted file mode 100644
index ab1967a1e..000000000
--- a/mini-app/weapp/vant/icon/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/icon/index.wxs b/mini-app/weapp/vant/icon/index.wxs
deleted file mode 100644
index bdf9dc72d..000000000
--- a/mini-app/weapp/vant/icon/index.wxs
+++ /dev/null
@@ -1,39 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function isImage(name) {
- return name.indexOf('/') !== -1;
-}
-
-function rootClass(data) {
- var classes = ['custom-class'];
-
- if (data.classPrefix != null) {
- classes.push(data.classPrefix);
- }
-
- if (isImage(data.name)) {
- classes.push('van-icon--image');
- } else if (data.classPrefix != null) {
- classes.push(data.classPrefix + '-' + data.name);
- }
-
- return classes.join(' ');
-}
-
-function rootStyle(data) {
- return style([
- {
- color: data.color,
- 'font-size': addUnit(data.size),
- },
- data.customStyle,
- ]);
-}
-
-module.exports = {
- isImage: isImage,
- rootClass: rootClass,
- rootStyle: rootStyle,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/icon/index.wxss b/mini-app/weapp/vant/icon/index.wxss
deleted file mode 100644
index e35ffee6e..000000000
--- a/mini-app/weapp/vant/icon/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url(https://img.yzcdn.cn/vant/vant-icon-96970a.woff2) format("woff2"),url(https://img.yzcdn.cn/vant/vant-icon-96970a.woff) format("woff"),url(https://img.yzcdn.cn/vant/vant-icon-96970a.ttf) format("truetype")}.van-icon{position:relative;font:normal normal normal 14px/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon,.van-icon:before{display:inline-block}.van-icon-add-o:before{content:"\F000"}.van-icon-add-square:before{content:"\F001"}.van-icon-add:before{content:"\F002"}.van-icon-after-sale:before{content:"\F003"}.van-icon-aim:before{content:"\F004"}.van-icon-alipay:before{content:"\F005"}.van-icon-apps-o:before{content:"\F006"}.van-icon-arrow-down:before{content:"\F007"}.van-icon-arrow-left:before{content:"\F008"}.van-icon-arrow-up:before{content:"\F009"}.van-icon-arrow:before{content:"\F00A"}.van-icon-ascending:before{content:"\F00B"}.van-icon-audio:before{content:"\F00C"}.van-icon-award-o:before{content:"\F00D"}.van-icon-award:before{content:"\F00E"}.van-icon-back-top:before{content:"\F0E6"}.van-icon-bag-o:before{content:"\F00F"}.van-icon-bag:before{content:"\F010"}.van-icon-balance-list-o:before{content:"\F011"}.van-icon-balance-list:before{content:"\F012"}.van-icon-balance-o:before{content:"\F013"}.van-icon-balance-pay:before{content:"\F014"}.van-icon-bar-chart-o:before{content:"\F015"}.van-icon-bars:before{content:"\F016"}.van-icon-bell:before{content:"\F017"}.van-icon-bill-o:before{content:"\F018"}.van-icon-bill:before{content:"\F019"}.van-icon-birthday-cake-o:before{content:"\F01A"}.van-icon-bookmark-o:before{content:"\F01B"}.van-icon-bookmark:before{content:"\F01C"}.van-icon-browsing-history-o:before{content:"\F01D"}.van-icon-browsing-history:before{content:"\F01E"}.van-icon-brush-o:before{content:"\F01F"}.van-icon-bulb-o:before{content:"\F020"}.van-icon-bullhorn-o:before{content:"\F021"}.van-icon-calendar-o:before{content:"\F022"}.van-icon-card:before{content:"\F023"}.van-icon-cart-circle-o:before{content:"\F024"}.van-icon-cart-circle:before{content:"\F025"}.van-icon-cart-o:before{content:"\F026"}.van-icon-cart:before{content:"\F027"}.van-icon-cash-back-record:before{content:"\F028"}.van-icon-cash-on-deliver:before{content:"\F029"}.van-icon-cashier-o:before{content:"\F02A"}.van-icon-certificate:before{content:"\F02B"}.van-icon-chart-trending-o:before{content:"\F02C"}.van-icon-chat-o:before{content:"\F02D"}.van-icon-chat:before{content:"\F02E"}.van-icon-checked:before{content:"\F02F"}.van-icon-circle:before{content:"\F030"}.van-icon-clear:before{content:"\F031"}.van-icon-clock-o:before{content:"\F032"}.van-icon-clock:before{content:"\F033"}.van-icon-close:before{content:"\F034"}.van-icon-closed-eye:before{content:"\F035"}.van-icon-cluster-o:before{content:"\F036"}.van-icon-cluster:before{content:"\F037"}.van-icon-column:before{content:"\F038"}.van-icon-comment-circle-o:before{content:"\F039"}.van-icon-comment-circle:before{content:"\F03A"}.van-icon-comment-o:before{content:"\F03B"}.van-icon-comment:before{content:"\F03C"}.van-icon-completed:before{content:"\F03D"}.van-icon-contact:before{content:"\F03E"}.van-icon-coupon-o:before{content:"\F03F"}.van-icon-coupon:before{content:"\F040"}.van-icon-credit-pay:before{content:"\F041"}.van-icon-cross:before{content:"\F042"}.van-icon-debit-pay:before{content:"\F043"}.van-icon-delete:before{content:"\F044"}.van-icon-descending:before{content:"\F045"}.van-icon-description:before{content:"\F046"}.van-icon-desktop-o:before{content:"\F047"}.van-icon-diamond-o:before{content:"\F048"}.van-icon-diamond:before{content:"\F049"}.van-icon-discount:before{content:"\F04A"}.van-icon-down:before{content:"\F04B"}.van-icon-ecard-pay:before{content:"\F04C"}.van-icon-edit:before{content:"\F04D"}.van-icon-ellipsis:before{content:"\F04E"}.van-icon-empty:before{content:"\F04F"}.van-icon-enlarge:before{content:"\F0E4"}.van-icon-envelop-o:before{content:"\F050"}.van-icon-exchange:before{content:"\F051"}.van-icon-expand-o:before{content:"\F052"}.van-icon-expand:before{content:"\F053"}.van-icon-eye-o:before{content:"\F054"}.van-icon-eye:before{content:"\F055"}.van-icon-fail:before{content:"\F056"}.van-icon-failure:before{content:"\F057"}.van-icon-filter-o:before{content:"\F058"}.van-icon-fire-o:before{content:"\F059"}.van-icon-fire:before{content:"\F05A"}.van-icon-flag-o:before{content:"\F05B"}.van-icon-flower-o:before{content:"\F05C"}.van-icon-free-postage:before{content:"\F05D"}.van-icon-friends-o:before{content:"\F05E"}.van-icon-friends:before{content:"\F05F"}.van-icon-gem-o:before{content:"\F060"}.van-icon-gem:before{content:"\F061"}.van-icon-gift-card-o:before{content:"\F062"}.van-icon-gift-card:before{content:"\F063"}.van-icon-gift-o:before{content:"\F064"}.van-icon-gift:before{content:"\F065"}.van-icon-gold-coin-o:before{content:"\F066"}.van-icon-gold-coin:before{content:"\F067"}.van-icon-good-job-o:before{content:"\F068"}.van-icon-good-job:before{content:"\F069"}.van-icon-goods-collect-o:before{content:"\F06A"}.van-icon-goods-collect:before{content:"\F06B"}.van-icon-graphic:before{content:"\F06C"}.van-icon-home-o:before{content:"\F06D"}.van-icon-hot-o:before{content:"\F06E"}.van-icon-hot-sale-o:before{content:"\F06F"}.van-icon-hot-sale:before{content:"\F070"}.van-icon-hot:before{content:"\F071"}.van-icon-hotel-o:before{content:"\F072"}.van-icon-idcard:before{content:"\F073"}.van-icon-info-o:before{content:"\F074"}.van-icon-info:before{content:"\F075"}.van-icon-invition:before{content:"\F076"}.van-icon-label-o:before{content:"\F077"}.van-icon-label:before{content:"\F078"}.van-icon-like-o:before{content:"\F079"}.van-icon-like:before{content:"\F07A"}.van-icon-live:before{content:"\F07B"}.van-icon-location-o:before{content:"\F07C"}.van-icon-location:before{content:"\F07D"}.van-icon-lock:before{content:"\F07E"}.van-icon-logistics:before{content:"\F07F"}.van-icon-manager-o:before{content:"\F080"}.van-icon-manager:before{content:"\F081"}.van-icon-map-marked:before{content:"\F082"}.van-icon-medal-o:before{content:"\F083"}.van-icon-medal:before{content:"\F084"}.van-icon-minus:before{content:"\F0E8"}.van-icon-more-o:before{content:"\F085"}.van-icon-more:before{content:"\F086"}.van-icon-music-o:before{content:"\F087"}.van-icon-music:before{content:"\F088"}.van-icon-new-arrival-o:before{content:"\F089"}.van-icon-new-arrival:before{content:"\F08A"}.van-icon-new-o:before{content:"\F08B"}.van-icon-new:before{content:"\F08C"}.van-icon-newspaper-o:before{content:"\F08D"}.van-icon-notes-o:before{content:"\F08E"}.van-icon-orders-o:before{content:"\F08F"}.van-icon-other-pay:before{content:"\F090"}.van-icon-paid:before{content:"\F091"}.van-icon-passed:before{content:"\F092"}.van-icon-pause-circle-o:before{content:"\F093"}.van-icon-pause-circle:before{content:"\F094"}.van-icon-pause:before{content:"\F095"}.van-icon-peer-pay:before{content:"\F096"}.van-icon-pending-payment:before{content:"\F097"}.van-icon-phone-circle-o:before{content:"\F098"}.van-icon-phone-circle:before{content:"\F099"}.van-icon-phone-o:before{content:"\F09A"}.van-icon-phone:before{content:"\F09B"}.van-icon-photo-fail:before{content:"\F0E5"}.van-icon-photo-o:before{content:"\F09C"}.van-icon-photo:before{content:"\F09D"}.van-icon-photograph:before{content:"\F09E"}.van-icon-play-circle-o:before{content:"\F09F"}.van-icon-play-circle:before{content:"\F0A0"}.van-icon-play:before{content:"\F0A1"}.van-icon-plus:before{content:"\F0A2"}.van-icon-point-gift-o:before{content:"\F0A3"}.van-icon-point-gift:before{content:"\F0A4"}.van-icon-points:before{content:"\F0A5"}.van-icon-printer:before{content:"\F0A6"}.van-icon-qr-invalid:before{content:"\F0A7"}.van-icon-qr:before{content:"\F0A8"}.van-icon-question-o:before{content:"\F0A9"}.van-icon-question:before{content:"\F0AA"}.van-icon-records:before{content:"\F0AB"}.van-icon-refund-o:before{content:"\F0AC"}.van-icon-replay:before{content:"\F0AD"}.van-icon-scan:before{content:"\F0AE"}.van-icon-search:before{content:"\F0AF"}.van-icon-send-gift-o:before{content:"\F0B0"}.van-icon-send-gift:before{content:"\F0B1"}.van-icon-service-o:before{content:"\F0B2"}.van-icon-service:before{content:"\F0B3"}.van-icon-setting-o:before{content:"\F0B4"}.van-icon-setting:before{content:"\F0B5"}.van-icon-share-o:before{content:"\F0E7"}.van-icon-share:before{content:"\F0B6"}.van-icon-shop-collect-o:before{content:"\F0B7"}.van-icon-shop-collect:before{content:"\F0B8"}.van-icon-shop-o:before{content:"\F0B9"}.van-icon-shop:before{content:"\F0BA"}.van-icon-shopping-cart-o:before{content:"\F0BB"}.van-icon-shopping-cart:before{content:"\F0BC"}.van-icon-shrink:before{content:"\F0BD"}.van-icon-sign:before{content:"\F0BE"}.van-icon-smile-comment-o:before{content:"\F0BF"}.van-icon-smile-comment:before{content:"\F0C0"}.van-icon-smile-o:before{content:"\F0C1"}.van-icon-smile:before{content:"\F0C2"}.van-icon-star-o:before{content:"\F0C3"}.van-icon-star:before{content:"\F0C4"}.van-icon-stop-circle-o:before{content:"\F0C5"}.van-icon-stop-circle:before{content:"\F0C6"}.van-icon-stop:before{content:"\F0C7"}.van-icon-success:before{content:"\F0C8"}.van-icon-thumb-circle-o:before{content:"\F0C9"}.van-icon-thumb-circle:before{content:"\F0CA"}.van-icon-todo-list-o:before{content:"\F0CB"}.van-icon-todo-list:before{content:"\F0CC"}.van-icon-tosend:before{content:"\F0CD"}.van-icon-tv-o:before{content:"\F0CE"}.van-icon-umbrella-circle:before{content:"\F0CF"}.van-icon-underway-o:before{content:"\F0D0"}.van-icon-underway:before{content:"\F0D1"}.van-icon-upgrade:before{content:"\F0D2"}.van-icon-user-circle-o:before{content:"\F0D3"}.van-icon-user-o:before{content:"\F0D4"}.van-icon-video-o:before{content:"\F0D5"}.van-icon-video:before{content:"\F0D6"}.van-icon-vip-card-o:before{content:"\F0D7"}.van-icon-vip-card:before{content:"\F0D8"}.van-icon-volume-o:before{content:"\F0D9"}.van-icon-volume:before{content:"\F0DA"}.van-icon-wap-home-o:before{content:"\F0DB"}.van-icon-wap-home:before{content:"\F0DC"}.van-icon-wap-nav:before{content:"\F0DD"}.van-icon-warn-o:before{content:"\F0DE"}.van-icon-warning-o:before{content:"\F0DF"}.van-icon-warning:before{content:"\F0E0"}.van-icon-weapp-nav:before{content:"\F0E1"}.van-icon-wechat:before{content:"\F0E2"}.van-icon-youzan-shield:before{content:"\F0E3"}:host{display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-icon--image{width:1em;height:1em}.van-icon__image{width:100%;height:100%}.van-icon__info{z-index:1}
diff --git a/mini-app/weapp/vant/image/index.js b/mini-app/weapp/vant/image/index.js
deleted file mode 100644
index 05a7bc5b9..000000000
--- a/mini-app/weapp/vant/image/index.js
+++ /dev/null
@@ -1,66 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _button = require('./../mixins/button.js');
-
-var _openType = require('./../mixins/open-type.js');
-
-(0, _component.VantComponent)({
- mixins: [_button.button, _openType.openType],
- classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
- props: {
- src: {
- type: String,
- observer: function observer() {
- this.setData({
- error: false,
- loading: true
- });
- }
- },
- round: Boolean,
- width: null,
- height: null,
- radius: null,
- lazyLoad: Boolean,
- useErrorSlot: Boolean,
- useLoadingSlot: Boolean,
- showMenuByLongpress: Boolean,
- fit: {
- type: String,
- value: 'fill'
- },
- showError: {
- type: Boolean,
- value: true
- },
- showLoading: {
- type: Boolean,
- value: true
- }
- },
- data: {
- error: false,
- loading: true,
- viewStyle: ''
- },
- methods: {
- onLoad: function onLoad(event) {
- this.setData({
- loading: false
- });
- this.$emit('load', event.detail);
- },
- onError: function onError(event) {
- this.setData({
- loading: false,
- error: true
- });
- this.$emit('error', event.detail);
- },
- onClick: function onClick(event) {
- this.$emit('click', event.detail);
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/image/index.json b/mini-app/weapp/vant/image/index.json
deleted file mode 100644
index 27a6d281c..000000000
--- a/mini-app/weapp/vant/image/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index",
- "van-loading": "./../loading/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/image/index.wxml b/mini-app/weapp/vant/image/index.wxml
deleted file mode 100644
index 575f320c6..000000000
--- a/mini-app/weapp/vant/image/index.wxml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/image/index.wxs b/mini-app/weapp/vant/image/index.wxs
deleted file mode 100644
index 4336f49d1..000000000
--- a/mini-app/weapp/vant/image/index.wxs
+++ /dev/null
@@ -1,32 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
- return style([
- {
- width: addUnit(data.width),
- height: addUnit(data.height),
- 'border-radius': addUnit(data.radius),
- },
- data.radius ? 'overflow: hidden' : null,
- ]);
-}
-
-var FIT_MODE_MAP = {
- none: 'center',
- fill: 'scaleToFill',
- cover: 'aspectFill',
- contain: 'aspectFit',
- widthFix: 'widthFix',
- heightFix: 'heightFix',
-};
-
-function mode(fit) {
- return FIT_MODE_MAP[fit];
-}
-
-module.exports = {
- rootStyle: rootStyle,
- mode: mode,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/image/index.wxss b/mini-app/weapp/vant/image/index.wxss
deleted file mode 100644
index 137d57081..000000000
--- a/mini-app/weapp/vant/image/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#969799;color:var(--image-placeholder-text-color,#969799);font-size:14px;font-size:var(--image-placeholder-font-size,14px);background-color:#f7f8fa;background-color:var(--image-placeholder-background-color,#f7f8fa)}.van-image__loading-icon{color:#dcdee0;color:var(--image-loading-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:#dcdee0;color:var(--image-error-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-error-icon-size,32px)!important}
diff --git a/mini-app/weapp/vant/info/index.js b/mini-app/weapp/vant/info/index.js
deleted file mode 100644
index e4177ea60..000000000
--- a/mini-app/weapp/vant/info/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- dot: Boolean,
- info: null,
- customStyle: String
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/info/index.json b/mini-app/weapp/vant/info/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/info/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/info/index.wxml b/mini-app/weapp/vant/info/index.wxml
deleted file mode 100644
index f7e86a73b..000000000
--- a/mini-app/weapp/vant/info/index.wxml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-{{ dot ? '' : info }}
diff --git a/mini-app/weapp/vant/info/index.wxss b/mini-app/weapp/vant/info/index.wxss
deleted file mode 100644
index 35ec72788..000000000
--- a/mini-app/weapp/vant/info/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-info{position:absolute;top:0;right:0;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;white-space:nowrap;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%;height:16px;height:var(--info-size,16px);min-width:16px;min-width:var(--info-size,16px);padding:0 3px;padding:var(--info-padding,0 3px);color:#fff;color:var(--info-color,#fff);font-weight:500;font-weight:var(--info-font-weight,500);font-size:12px;font-size:var(--info-font-size,12px);font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;font-family:var(--info-font-family,-apple-system-font,Helvetica Neue,Arial,sans-serif);background-color:#ee0a24;background-color:var(--info-background-color,#ee0a24);border:1px solid #fff;border:var(--info-border-width,1px) solid var(--white,#fff);border-radius:16px;border-radius:var(--info-size,16px)}.van-info--dot{min-width:0;border-radius:100%;width:8px;width:var(--info-dot-size,8px);height:8px;height:var(--info-dot-size,8px);background-color:#ee0a24;background-color:var(--info-dot-color,#ee0a24)}
diff --git a/mini-app/weapp/vant/loading/index.js b/mini-app/weapp/vant/loading/index.js
deleted file mode 100644
index f2a70b770..000000000
--- a/mini-app/weapp/vant/loading/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- color: String,
- vertical: Boolean,
- type: {
- type: String,
- value: 'circular'
- },
- size: String,
- textSize: String
- },
- data: {
- array12: Array.from({
- length: 12
- })
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/loading/index.json b/mini-app/weapp/vant/loading/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/loading/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/loading/index.wxml b/mini-app/weapp/vant/loading/index.wxml
deleted file mode 100644
index d32e5bad7..000000000
--- a/mini-app/weapp/vant/loading/index.wxml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/loading/index.wxss b/mini-app/weapp/vant/loading/index.wxss
deleted file mode 100644
index 86ca372b5..000000000
--- a/mini-app/weapp/vant/loading/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{font-size:0;line-height:1}.van-loading{display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#c8c9cc;color:var(--loading-spinner-color,#c8c9cc)}.van-loading__spinner{position:relative;box-sizing:border-box;width:30px;width:var(--loading-spinner-size,30px);max-width:100%;max-height:100%;height:30px;height:var(--loading-spinner-size,30px);-webkit-animation:van-rotate .8s linear infinite;animation:van-rotate .8s linear infinite;-webkit-animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite}.van-loading__spinner--spinner{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.van-loading__spinner--circular{border:1px solid transparent;border-top-color:initial;border-radius:100%}.van-loading__text{margin-left:8px;margin-left:var(--padding-xs,8px);color:#969799;color:var(--loading-text-color,#969799);font-size:14px;font-size:var(--loading-text-font-size,14px);line-height:20px;line-height:var(--loading-text-line-height,20px)}.van-loading__text:empty{display:none}.van-loading--vertical{-webkit-flex-direction:column;flex-direction:column}.van-loading--vertical .van-loading__text{margin:8px 0 0;margin:var(--padding-xs,8px) 0 0}.van-loading__dot{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__dot:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__dot:first-of-type{-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.van-loading__dot:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.van-loading__dot:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.van-loading__dot:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.van-loading__dot:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.van-loading__dot:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.van-loading__dot:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.van-loading__dot:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.van-loading__dot:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.van-loading__dot:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.van-loading__dot:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.van-loading__dot:nth-of-type(12){-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:.3125}@-webkit-keyframes van-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes van-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}
diff --git a/mini-app/weapp/vant/mixins/basic.js b/mini-app/weapp/vant/mixins/basic.js
deleted file mode 100644
index b5d103a31..000000000
--- a/mini-app/weapp/vant/mixins/basic.js
+++ /dev/null
@@ -1,20 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.basic = void 0;
-var basic = Behavior({
- methods: {
- $emit: function $emit(name, detail, options) {
- this.triggerEvent(name, detail, options);
- },
- set: function set(data, callback) {
- this.setData(data, callback);
- return new Promise(function (resolve) {
- return wx.nextTick(resolve);
- });
- }
- }
-});
-exports.basic = basic;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/mixins/button.js b/mini-app/weapp/vant/mixins/button.js
deleted file mode 100644
index f3a4292cd..000000000
--- a/mini-app/weapp/vant/mixins/button.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.button = void 0;
-var button = Behavior({
- externalClasses: ['hover-class'],
- properties: {
- id: String,
- lang: String,
- businessId: Number,
- sessionFrom: String,
- sendMessageTitle: String,
- sendMessagePath: String,
- sendMessageImg: String,
- showMessageCard: Boolean,
- appParameter: String,
- ariaLabel: String
- }
-});
-exports.button = button;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/mixins/link.js b/mini-app/weapp/vant/mixins/link.js
deleted file mode 100644
index 6fedf3f52..000000000
--- a/mini-app/weapp/vant/mixins/link.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.link = void 0;
-var link = Behavior({
- properties: {
- url: String,
- linkType: {
- type: String,
- value: 'navigateTo'
- }
- },
- methods: {
- jumpLink: function jumpLink() {
- var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
- var url = this.data[urlKey];
-
- if (url) {
- if (this.data.linkType === 'navigateTo' && getCurrentPages().length > 9) {
- wx.redirectTo({
- url: url
- });
- } else {
- wx[this.data.linkType]({
- url: url
- });
- }
- }
- }
- }
-});
-exports.link = link;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/mixins/open-type.js b/mini-app/weapp/vant/mixins/open-type.js
deleted file mode 100644
index d51028edf..000000000
--- a/mini-app/weapp/vant/mixins/open-type.js
+++ /dev/null
@@ -1,33 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.openType = void 0;
-// @ts-nocheck
-var openType = Behavior({
- properties: {
- openType: String
- },
- methods: {
- bindGetUserInfo: function bindGetUserInfo(event) {
- this.$emit('getuserinfo', event.detail);
- },
- bindContact: function bindContact(event) {
- this.$emit('contact', event.detail);
- },
- bindGetPhoneNumber: function bindGetPhoneNumber(event) {
- this.$emit('getphonenumber', event.detail);
- },
- bindError: function bindError(event) {
- this.$emit('error', event.detail);
- },
- bindLaunchApp: function bindLaunchApp(event) {
- this.$emit('launchapp', event.detail);
- },
- bindOpenSetting: function bindOpenSetting(event) {
- this.$emit('opensetting', event.detail);
- }
- }
-});
-exports.openType = openType;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/mixins/transition.js b/mini-app/weapp/vant/mixins/transition.js
deleted file mode 100644
index 50b17c4b6..000000000
--- a/mini-app/weapp/vant/mixins/transition.js
+++ /dev/null
@@ -1,151 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.transition = transition;
-
-var _utils = require('./../common/utils.js');
-
-var _validator = require('./../common/validator.js');
-
-// @ts-nocheck
-var getClassNames = function getClassNames(name) {
- return {
- enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
- 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
- leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
- 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class")
- };
-};
-
-function transition(showDefaultValue) {
- return Behavior({
- properties: {
- customStyle: String,
- // @ts-ignore
- show: {
- type: Boolean,
- value: showDefaultValue,
- observer: 'observeShow'
- },
- // @ts-ignore
- duration: {
- type: null,
- value: 300,
- observer: 'observeDuration'
- },
- name: {
- type: String,
- value: 'fade'
- }
- },
- data: {
- type: '',
- inited: false,
- display: false
- },
- methods: {
- observeShow: function observeShow(value, old) {
- if (value === old) {
- return;
- }
-
- value ? this.enter() : this.leave();
- },
- enter: function enter() {
- var _this = this;
-
- var _this$data = this.data,
- duration = _this$data.duration,
- name = _this$data.name;
- var classNames = getClassNames(name);
- var currentDuration = (0, _validator.isObj)(duration) ? duration.enter : duration;
- this.status = 'enter';
- this.$emit('before-enter');
- (0, _utils.requestAnimationFrame)(function () {
- _this.checkStatus('enter');
-
- _this.$emit('enter');
-
- _this.setData({
- inited: true,
- display: true,
- classes: classNames.enter,
- currentDuration: currentDuration
- });
-
- (0, _utils.requestAnimationFrame)(function () {
- _this.checkStatus('enter');
-
- _this.transitionEnded = false;
-
- _this.setData({
- classes: classNames['enter-to']
- });
- });
- });
- },
- leave: function leave() {
- var _this2 = this;
-
- if (!this.data.display) {
- return;
- }
-
- var _this$data2 = this.data,
- duration = _this$data2.duration,
- name = _this$data2.name;
- var classNames = getClassNames(name);
- var currentDuration = (0, _validator.isObj)(duration) ? duration.leave : duration;
- this.status = 'leave';
- this.$emit('before-leave');
- (0, _utils.requestAnimationFrame)(function () {
- _this2.checkStatus('leave');
-
- _this2.$emit('leave');
-
- _this2.setData({
- classes: classNames.leave,
- currentDuration: currentDuration
- });
-
- (0, _utils.requestAnimationFrame)(function () {
- _this2.checkStatus('leave');
-
- _this2.transitionEnded = false;
- setTimeout(function () {
- return _this2.onTransitionEnd();
- }, currentDuration);
-
- _this2.setData({
- classes: classNames['leave-to']
- });
- });
- });
- },
- checkStatus: function checkStatus(status) {
- if (status !== this.status) {
- throw new Error("incongruent status: ".concat(status));
- }
- },
- onTransitionEnd: function onTransitionEnd() {
- if (this.transitionEnded) {
- return;
- }
-
- this.transitionEnded = true;
- this.$emit("after-".concat(this.status));
- var _this$data3 = this.data,
- show = _this$data3.show,
- display = _this$data3.display;
-
- if (!show && display) {
- this.setData({
- display: false
- });
- }
- }
- }
- });
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/nav-bar/index.js b/mini-app/weapp/vant/nav-bar/index.js
deleted file mode 100644
index 2b053ec96..000000000
--- a/mini-app/weapp/vant/nav-bar/index.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _utils = require('./../common/utils.js');
-
-(0, _component.VantComponent)({
- classes: ['title-class'],
- props: {
- title: String,
- fixed: {
- type: Boolean,
- observer: 'setHeight'
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight'
- },
- leftText: String,
- rightText: String,
- customStyle: String,
- leftArrow: Boolean,
- border: {
- type: Boolean,
- value: true
- },
- zIndex: {
- type: Number,
- value: 1
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: true
- }
- },
- data: {
- height: 46
- },
- created: function created() {
- var _getSystemInfoSync = (0, _utils.getSystemInfoSync)(),
- statusBarHeight = _getSystemInfoSync.statusBarHeight;
-
- this.setData({
- statusBarHeight: statusBarHeight,
- height: 46 + statusBarHeight
- });
- },
- mounted: function mounted() {
- this.setHeight();
- },
- methods: {
- onClickLeft: function onClickLeft() {
- this.$emit('click-left');
- },
- onClickRight: function onClickRight() {
- this.$emit('click-right');
- },
- setHeight: function setHeight() {
- var _this = this;
-
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
-
- wx.nextTick(function () {
- (0, _utils.getRect)(_this, '.van-nav-bar').then(function (res) {
- if (res && 'height' in res) {
- _this.setData({
- height: res.height
- });
- }
- });
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/nav-bar/index.json b/mini-app/weapp/vant/nav-bar/index.json
deleted file mode 100644
index aed2ff4bf..000000000
--- a/mini-app/weapp/vant/nav-bar/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/nav-bar/index.wxml b/mini-app/weapp/vant/nav-bar/index.wxml
deleted file mode 100644
index 32a65cc65..000000000
--- a/mini-app/weapp/vant/nav-bar/index.wxml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ leftText }}
-
-
-
-
- {{ title }}
-
-
-
- {{ rightText }}
-
-
-
-
diff --git a/mini-app/weapp/vant/nav-bar/index.wxs b/mini-app/weapp/vant/nav-bar/index.wxs
deleted file mode 100644
index 1646e8d10..000000000
--- a/mini-app/weapp/vant/nav-bar/index.wxs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function barStyle(data) {
- return style({
- 'z-index': data.zIndex,
- 'padding-top': data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0,
- });
-}
-
-module.exports = {
- barStyle: barStyle,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/nav-bar/index.wxss b/mini-app/weapp/vant/nav-bar/index.wxss
deleted file mode 100644
index 077eaf691..000000000
--- a/mini-app/weapp/vant/nav-bar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-nav-bar{position:relative;text-align:center;-webkit-user-select:none;user-select:none;height:46px;height:var(--nav-bar-height,46px);line-height:46px;line-height:var(--nav-bar-height,46px);background-color:#fff;background-color:var(--nav-bar-background-color,#fff)}.van-nav-bar__content{position:relative;height:100%}.van-nav-bar__text{display:inline-block;vertical-align:middle;margin:0 -16px;margin:0 -var(--padding-md,16px);padding:0 16px;padding:0 var(--padding-md,16px);color:#1989fa;color:var(--nav-bar-text-color,#1989fa)}.van-nav-bar__text--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-nav-bar__arrow{vertical-align:middle;font-size:16px!important;font-size:var(--nav-bar-arrow-size,16px)!important;color:#1989fa!important;color:var(--nav-bar-icon-color,#1989fa)!important}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar__title{max-width:60%;margin:0 auto;color:#323233;color:var(--nav-bar-title-text-color,#323233);font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--nav-bar-title-font-size,16px)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:14px;font-size:var(--font-size-md,14px)}.van-nav-bar__left{left:16px;left:var(--padding-md,16px)}.van-nav-bar__right{right:16px;right:var(--padding-md,16px)}
diff --git a/mini-app/weapp/vant/overlay/index.js b/mini-app/weapp/vant/overlay/index.js
deleted file mode 100644
index ab8384681..000000000
--- a/mini-app/weapp/vant/overlay/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- show: Boolean,
- customStyle: String,
- duration: {
- type: null,
- value: 300
- },
- zIndex: {
- type: Number,
- value: 1
- }
- },
- methods: {
- onClick: function onClick() {
- this.$emit('click');
- },
- // for prevent touchmove
- noop: function noop() {}
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/overlay/index.json b/mini-app/weapp/vant/overlay/index.json
deleted file mode 100644
index 952cd9b9a..000000000
--- a/mini-app/weapp/vant/overlay/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-transition": "./../transition/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/overlay/index.wxml b/mini-app/weapp/vant/overlay/index.wxml
deleted file mode 100644
index 9212348b0..000000000
--- a/mini-app/weapp/vant/overlay/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/mini-app/weapp/vant/overlay/index.wxss b/mini-app/weapp/vant/overlay/index.wxss
deleted file mode 100644
index 2ff84a59a..000000000
--- a/mini-app/weapp/vant/overlay/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);background-color:var(--overlay-background-color,rgba(0,0,0,.7))}
diff --git a/mini-app/weapp/vant/panel/index.js b/mini-app/weapp/vant/panel/index.js
deleted file mode 100644
index 33c177f73..000000000
--- a/mini-app/weapp/vant/panel/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- classes: ['header-class', 'footer-class'],
- props: {
- desc: String,
- title: String,
- status: String,
- useFooterSlot: Boolean
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/panel/index.json b/mini-app/weapp/vant/panel/index.json
deleted file mode 100644
index 7285edfcb..000000000
--- a/mini-app/weapp/vant/panel/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "./../cell/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/panel/index.wxml b/mini-app/weapp/vant/panel/index.wxml
deleted file mode 100644
index 3f135d23d..000000000
--- a/mini-app/weapp/vant/panel/index.wxml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/panel/index.wxss b/mini-app/weapp/vant/panel/index.wxss
deleted file mode 100644
index 97cd75fb0..000000000
--- a/mini-app/weapp/vant/panel/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-panel{background:#fff;background:var(--panel-background-color,#fff)}.van-panel__header-value{color:#ee0a24;color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:8px 16px;padding:var(--panel-footer-padding,8px 16px)}
diff --git a/mini-app/weapp/vant/picker-column/index.js b/mini-app/weapp/vant/picker-column/index.js
deleted file mode 100644
index 8f74b94ac..000000000
--- a/mini-app/weapp/vant/picker-column/index.js
+++ /dev/null
@@ -1,139 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _utils = require('./../common/utils.js');
-
-var _validator = require('./../common/validator.js');
-
-var DEFAULT_DURATION = 200;
-(0, _component.VantComponent)({
- classes: ['active-class'],
- props: {
- valueKey: String,
- className: String,
- itemHeight: Number,
- visibleItemCount: Number,
- initialOptions: {
- type: Array,
- value: []
- },
- defaultIndex: {
- type: Number,
- value: 0,
- observer: function observer(value) {
- this.setIndex(value);
- }
- }
- },
- data: {
- startY: 0,
- offset: 0,
- duration: 0,
- startOffset: 0,
- options: [],
- currentIndex: 0
- },
- created: function created() {
- var _this = this;
-
- var _this$data = this.data,
- defaultIndex = _this$data.defaultIndex,
- initialOptions = _this$data.initialOptions;
- this.set({
- currentIndex: defaultIndex,
- options: initialOptions
- }).then(function () {
- _this.setIndex(defaultIndex);
- });
- },
- methods: {
- getCount: function getCount() {
- return this.data.options.length;
- },
- onTouchStart: function onTouchStart(event) {
- this.setData({
- startY: event.touches[0].clientY,
- startOffset: this.data.offset,
- duration: 0
- });
- },
- onTouchMove: function onTouchMove(event) {
- var data = this.data;
- var deltaY = event.touches[0].clientY - data.startY;
- this.setData({
- offset: (0, _utils.range)(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight)
- });
- },
- onTouchEnd: function onTouchEnd() {
- var data = this.data;
-
- if (data.offset !== data.startOffset) {
- this.setData({
- duration: DEFAULT_DURATION
- });
- var index = (0, _utils.range)(Math.round(-data.offset / data.itemHeight), 0, this.getCount() - 1);
- this.setIndex(index, true);
- }
- },
- onClickItem: function onClickItem(event) {
- var index = event.currentTarget.dataset.index;
- this.setIndex(index, true);
- },
- adjustIndex: function adjustIndex(index) {
- var data = this.data;
- var count = this.getCount();
- index = (0, _utils.range)(index, 0, count);
-
- for (var i = index; i < count; i++) {
- if (!this.isDisabled(data.options[i])) return i;
- }
-
- for (var _i = index - 1; _i >= 0; _i--) {
- if (!this.isDisabled(data.options[_i])) return _i;
- }
- },
- isDisabled: function isDisabled(option) {
- return (0, _validator.isObj)(option) && option.disabled;
- },
- getOptionText: function getOptionText(option) {
- var data = this.data;
- return (0, _validator.isObj)(option) && data.valueKey in option ? option[data.valueKey] : option;
- },
- setIndex: function setIndex(index, userAction) {
- var _this2 = this;
-
- var data = this.data;
- index = this.adjustIndex(index) || 0;
- var offset = -index * data.itemHeight;
-
- if (index !== data.currentIndex) {
- return this.set({
- offset: offset,
- currentIndex: index
- }).then(function () {
- userAction && _this2.$emit('change', index);
- });
- }
-
- return this.set({
- offset: offset
- });
- },
- setValue: function setValue(value) {
- var options = this.data.options;
-
- for (var i = 0; i < options.length; i++) {
- if (this.getOptionText(options[i]) === value) {
- return this.setIndex(i);
- }
- }
-
- return Promise.resolve();
- },
- getValue: function getValue() {
- var data = this.data;
- return data.options[data.currentIndex];
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/picker-column/index.json b/mini-app/weapp/vant/picker-column/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/picker-column/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/picker-column/index.wxml b/mini-app/weapp/vant/picker-column/index.wxml
deleted file mode 100644
index b1a3abcf7..000000000
--- a/mini-app/weapp/vant/picker-column/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
- {{ getOptionText(option, valueKey) }}
-
-
diff --git a/mini-app/weapp/vant/picker-column/index.wxs b/mini-app/weapp/vant/picker-column/index.wxs
deleted file mode 100644
index 684c65bed..000000000
--- a/mini-app/weapp/vant/picker-column/index.wxs
+++ /dev/null
@@ -1,8 +0,0 @@
-function isObj(x) {
- var type = typeof x;
- return x !== null && (type === 'object' || type === 'function');
-}
-
-module.exports = function (option, valueKey) {
- return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/picker-column/index.wxss b/mini-app/weapp/vant/picker-column/index.wxss
deleted file mode 100644
index eddd77444..000000000
--- a/mini-app/weapp/vant/picker-column/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-picker-column{overflow:hidden;text-align:center;color:#000;color:var(--picker-option-text-color,#000);font-size:16px;font-size:var(--picker-option-font-size,16px)}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{font-weight:500;font-weight:var(--font-weight-bold,500);color:#323233;color:var(--picker-option-selected-text-color,#323233)}.van-picker-column__item--disabled{opacity:.3;opacity:var(--picker-option-disabled-opacity,.3)}
diff --git a/mini-app/weapp/vant/picker/index.js b/mini-app/weapp/vant/picker/index.js
deleted file mode 100644
index 17c7b0fe3..000000000
--- a/mini-app/weapp/vant/picker/index.js
+++ /dev/null
@@ -1,174 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _shared = require('./shared.js');
-
-(0, _component.VantComponent)({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: Object.assign(Object.assign({}, _shared.pickerProps), {
- valueKey: {
- type: String,
- value: 'text'
- },
- toolbarPosition: {
- type: String,
- value: 'top'
- },
- defaultIndex: {
- type: Number,
- value: 0
- },
- columns: {
- type: Array,
- value: [],
- observer: function observer() {
- var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- this.simple = columns.length && !columns[0].values;
- this.children = this.selectAllComponents('.van-picker__column');
-
- if (Array.isArray(this.children) && this.children.length) {
- this.setColumns()["catch"](function () {});
- }
- }
- }
- }),
- beforeCreate: function beforeCreate() {
- this.children = [];
- },
- methods: {
- noop: function noop() {},
- setColumns: function setColumns() {
- var _this = this;
-
- var data = this.data;
- var columns = this.simple ? [{
- values: data.columns
- }] : data.columns;
- var stack = columns.map(function (column, index) {
- return _this.setColumnValues(index, column.values);
- });
- return Promise.all(stack);
- },
- emit: function emit(event) {
- var type = event.currentTarget.dataset.type;
-
- if (this.simple) {
- this.$emit(type, {
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0)
- });
- } else {
- this.$emit(type, {
- value: this.getValues(),
- index: this.getIndexes()
- });
- }
- },
- onChange: function onChange(event) {
- if (this.simple) {
- this.$emit('change', {
- picker: this,
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0)
- });
- } else {
- this.$emit('change', {
- picker: this,
- value: this.getValues(),
- index: event.currentTarget.dataset.index
- });
- }
- },
- // get column instance by index
- getColumn: function getColumn(index) {
- return this.children[index];
- },
- // get column value by index
- getColumnValue: function getColumnValue(index) {
- var column = this.getColumn(index);
- return column && column.getValue();
- },
- // set column value by index
- setColumnValue: function setColumnValue(index, value) {
- var column = this.getColumn(index);
-
- if (column == null) {
- return Promise.reject(new Error('setColumnValue: 对应列不存在'));
- }
-
- return column.setValue(value);
- },
- // get column option index by column index
- getColumnIndex: function getColumnIndex(columnIndex) {
- return (this.getColumn(columnIndex) || {}).data.currentIndex;
- },
- // set column option index by column index
- setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
- var column = this.getColumn(columnIndex);
-
- if (column == null) {
- return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
- }
-
- return column.setIndex(optionIndex);
- },
- // get options of column by index
- getColumnValues: function getColumnValues(index) {
- return (this.children[index] || {}).data.options;
- },
- // set options of column by index
- setColumnValues: function setColumnValues(index, options) {
- var needReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- var column = this.children[index];
-
- if (column == null) {
- return Promise.reject(new Error('setColumnValues: 对应列不存在'));
- }
-
- var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
-
- if (isSame) {
- return Promise.resolve();
- }
-
- return column.set({
- options: options
- }).then(function () {
- if (needReset) {
- column.setIndex(0);
- }
- });
- },
- // get values of all columns
- getValues: function getValues() {
- return this.children.map(function (child) {
- return child.getValue();
- });
- },
- // set values of all columns
- setValues: function setValues(values) {
- var _this2 = this;
-
- var stack = values.map(function (value, index) {
- return _this2.setColumnValue(index, value);
- });
- return Promise.all(stack);
- },
- // get indexes of all columns
- getIndexes: function getIndexes() {
- return this.children.map(function (child) {
- return child.data.currentIndex;
- });
- },
- // set indexes of all columns
- setIndexes: function setIndexes(indexes) {
- var _this3 = this;
-
- var stack = indexes.map(function (optionIndex, columnIndex) {
- return _this3.setColumnIndex(columnIndex, optionIndex);
- });
- return Promise.all(stack);
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/picker/index.json b/mini-app/weapp/vant/picker/index.json
deleted file mode 100644
index e09c6de4d..000000000
--- a/mini-app/weapp/vant/picker/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "loading": "./../loading/index",
- "picker-column": "./../picker-column/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/picker/index.wxml b/mini-app/weapp/vant/picker/index.wxml
deleted file mode 100644
index b73ba027d..000000000
--- a/mini-app/weapp/vant/picker/index.wxml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-function isSimple(columns) {
- return columns.length && !columns[0].values;
- }
- module.exports = isSimple;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- function isSimple(columns) {
- return columns.length && !columns[0].values;
- }
- module.exports = isSimple;
-
diff --git a/mini-app/weapp/vant/picker/index.wxss b/mini-app/weapp/vant/picker/index.wxss
deleted file mode 100644
index df84efcb0..000000000
--- a/mini-app/weapp/vant/picker/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-picker{position:relative;overflow:hidden;-webkit-text-size-adjust:100%;-webkit-user-select:none;user-select:none;background-color:#fff;background-color:var(--picker-background-color,#fff)}.van-picker__toolbar{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;height:44px;height:var(--picker-toolbar-height,44px);line-height:44px;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{padding:0 16px;padding:var(--picker-action-padding,0 16px);font-size:14px;font-size:var(--picker-action-font-size,14px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:#576b95;color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:#969799;color:var(--picker-cancel-action-color,#969799)}.van-picker__title{max-width:50%;text-align:center;font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--picker-option-font-size,16px)}.van-picker__columns{position:relative;display:-webkit-flex;display:flex}.van-picker__column{-webkit-flex:1 1;flex:1 1;width:0}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background-color:hsla(0,0%,100%,.9);background-color:var(--picker-loading-mask-color,hsla(0,0%,100%,.9))}.van-picker__mask{top:0;left:0;z-index:2;width:100%;height:100%;background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-repeat:no-repeat;background-position:top,bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden}.van-picker__frame,.van-picker__mask{position:absolute;pointer-events:none}.van-picker__frame{top:50%;right:16px;left:16px;z-index:1;-webkit-transform:translateY(-50%);transform:translateY(-50%)}
diff --git a/mini-app/weapp/vant/picker/shared.js b/mini-app/weapp/vant/picker/shared.js
deleted file mode 100644
index 07d960aa6..000000000
--- a/mini-app/weapp/vant/picker/shared.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.pickerProps = void 0;
-var pickerProps = {
- title: String,
- loading: Boolean,
- showToolbar: Boolean,
- cancelButtonText: {
- type: String,
- value: '取消'
- },
- confirmButtonText: {
- type: String,
- value: '确认'
- },
- visibleItemCount: {
- type: Number,
- value: 6
- },
- itemHeight: {
- type: Number,
- value: 44
- }
-};
-exports.pickerProps = pickerProps;
\ No newline at end of file
diff --git a/mini-app/weapp/vant/popup/index.js b/mini-app/weapp/vant/popup/index.js
deleted file mode 100644
index ff33e6b80..000000000
--- a/mini-app/weapp/vant/popup/index.js
+++ /dev/null
@@ -1,86 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _transition = require('./../mixins/transition.js');
-
-(0, _component.VantComponent)({
- classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
- mixins: [(0, _transition.transition)(false)],
- props: {
- round: Boolean,
- closeable: Boolean,
- customStyle: String,
- overlayStyle: String,
- transition: {
- type: String,
- observer: 'observeClass'
- },
- zIndex: {
- type: Number,
- value: 100
- },
- overlay: {
- type: Boolean,
- value: true
- },
- closeIcon: {
- type: String,
- value: 'cross'
- },
- closeIconPosition: {
- type: String,
- value: 'top-right'
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true
- },
- position: {
- type: String,
- value: 'center',
- observer: 'observeClass'
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: false
- }
- },
- created: function created() {
- this.observeClass();
- },
- methods: {
- onClickCloseIcon: function onClickCloseIcon() {
- this.$emit('close');
- },
- onClickOverlay: function onClickOverlay() {
- this.$emit('click-overlay');
-
- if (this.data.closeOnClickOverlay) {
- this.$emit('close');
- }
- },
- observeClass: function observeClass() {
- var _this$data = this.data,
- transition = _this$data.transition,
- position = _this$data.position,
- duration = _this$data.duration;
- var updateData = {
- name: transition || position
- };
-
- if (transition === 'none') {
- updateData.duration = 0;
- this.originDuration = duration;
- } else if (this.originDuration != null) {
- updateData.duration = this.originDuration;
- }
-
- this.setData(updateData);
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/popup/index.json b/mini-app/weapp/vant/popup/index.json
deleted file mode 100644
index 8de9ffe1f..000000000
--- a/mini-app/weapp/vant/popup/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index",
- "van-overlay": "./../overlay/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/popup/index.wxml b/mini-app/weapp/vant/popup/index.wxml
deleted file mode 100644
index bd1165c92..000000000
--- a/mini-app/weapp/vant/popup/index.wxml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/popup/index.wxs b/mini-app/weapp/vant/popup/index.wxs
deleted file mode 100644
index 6327972c2..000000000
--- a/mini-app/weapp/vant/popup/index.wxs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-
-function popupClass(data) {
- return style([
- {
- 'z-index': data.zIndex,
- '-webkit-transition-duration': data.currentDuration + 'ms',
- 'transition-duration': data.currentDuration + 'ms',
- },
- data.display ? null : 'display: none',
- data.customStyle,
- ]);
-}
-
-module.exports = {
- popupClass: popupClass,
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vant/popup/index.wxss b/mini-app/weapp/vant/popup/index.wxss
deleted file mode 100644
index 8a8ce3ca9..000000000
--- a/mini-app/weapp/vant/popup/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-popup{position:fixed;box-sizing:border-box;max-height:100%;overflow-y:auto;transition-timing-function:ease;-webkit-animation:ease both;animation:ease both;-webkit-overflow-scrolling:touch;background-color:#fff;background-color:var(--popup-background-color,#fff)}.van-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:16px;border-radius:var(--popup-round-border-radius,16px)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 16px 16px;border-radius:0 0 var(--popup-round-border-radius,16px) var(--popup-round-border-radius,16px)}.van-popup--right{top:50%;right:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:16px 0 0 16px;border-radius:var(--popup-round-border-radius,16px) 0 0 var(--popup-round-border-radius,16px)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:16px 16px 0 0;border-radius:var(--popup-round-border-radius,16px) var(--popup-round-border-radius,16px) 0 0}.van-popup--left{top:50%;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 16px 16px 0;border-radius:0 var(--popup-round-border-radius,16px) var(--popup-round-border-radius,16px) 0}.van-popup--bottom.van-popup--safe{padding-bottom:env(safe-area-inset-bottom)}.van-popup--safeTop{padding-top:env(safe-area-inset-top)}.van-popup__close-icon{position:absolute;z-index:1;z-index:var(--popup-close-icon-z-index,1);color:#969799;color:var(--popup-close-icon-color,#969799);font-size:18px;font-size:var(--popup-close-icon-size,18px)}.van-popup__close-icon--top-left{top:16px;top:var(--popup-close-icon-margin,16px);left:16px;left:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--top-right{top:16px;top:var(--popup-close-icon-margin,16px);right:16px;right:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-left{bottom:16px;bottom:var(--popup-close-icon-margin,16px);left:16px;left:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-right{right:16px;right:var(--popup-close-icon-margin,16px);bottom:16px;bottom:var(--popup-close-icon-margin,16px)}.van-popup__close-icon:active{opacity:.6}.van-scale-enter-active,.van-scale-leave-active{transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.van-scale-enter,.van-scale-leave-to{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-center-enter-active,.van-center-leave-active{transition-property:opacity}.van-center-enter,.van-center-leave-to{opacity:0}.van-bottom-enter-active,.van-bottom-leave-active,.van-left-enter-active,.van-left-leave-active,.van-right-enter-active,.van-right-leave-active,.van-top-enter-active,.van-top-leave-active{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-bottom-enter,.van-bottom-leave-to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.van-top-enter,.van-top-leave-to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.van-left-enter,.van-left-leave-to{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.van-right-enter,.van-right-leave-to{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}
diff --git a/mini-app/weapp/vant/radio-group/index.js b/mini-app/weapp/vant/radio-group/index.js
deleted file mode 100644
index fd207642f..000000000
--- a/mini-app/weapp/vant/radio-group/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- field: true,
- relation: {
- name: 'radio',
- type: 'descendant',
- current: 'radio-group',
- linked: function linked(target) {
- this.updateChild(target);
- }
- },
- props: {
- value: {
- type: null,
- observer: 'updateChildren'
- },
- disabled: {
- type: Boolean,
- observer: 'updateChildren'
- }
- },
- methods: {
- updateChildren: function updateChildren() {
- var _this = this;
-
- (this.children || []).forEach(function (child) {
- return _this.updateChild(child);
- });
- },
- updateChild: function updateChild(child) {
- var _this$data = this.data,
- value = _this$data.value,
- disabled = _this$data.disabled;
- child.setData({
- value: value,
- disabled: disabled || child.data.disabled
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/radio-group/index.json b/mini-app/weapp/vant/radio-group/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/radio-group/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/radio-group/index.wxml b/mini-app/weapp/vant/radio-group/index.wxml
deleted file mode 100644
index 4fa864ce7..000000000
--- a/mini-app/weapp/vant/radio-group/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/mini-app/weapp/vant/radio-group/index.wxss b/mini-app/weapp/vant/radio-group/index.wxss
deleted file mode 100644
index ecfdfde88..000000000
--- a/mini-app/weapp/vant/radio-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';
diff --git a/mini-app/weapp/vant/radio/index.js b/mini-app/weapp/vant/radio/index.js
deleted file mode 100644
index d639940f8..000000000
--- a/mini-app/weapp/vant/radio/index.js
+++ /dev/null
@@ -1,55 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- field: true,
- relation: {
- name: 'radio-group',
- type: 'ancestor',
- current: 'radio'
- },
- classes: ['icon-class', 'label-class'],
- props: {
- name: null,
- value: null,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right'
- },
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round'
- },
- iconSize: {
- type: null,
- value: 20
- }
- },
- methods: {
- emitChange: function emitChange(value) {
- var instance = this.parent || this;
- instance.$emit('input', value);
- instance.$emit('change', value);
- },
- onChange: function onChange() {
- if (!this.data.disabled) {
- this.emitChange(this.data.name);
- }
- },
- onClickLabel: function onClickLabel() {
- var _this$data = this.data,
- disabled = _this$data.disabled,
- labelDisabled = _this$data.labelDisabled,
- name = _this$data.name;
-
- if (!disabled && !labelDisabled) {
- this.emitChange(name);
- }
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/radio/index.json b/mini-app/weapp/vant/radio/index.json
deleted file mode 100644
index aed2ff4bf..000000000
--- a/mini-app/weapp/vant/radio/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/radio/index.wxml b/mini-app/weapp/vant/radio/index.wxml
deleted file mode 100644
index 499b68a1a..000000000
--- a/mini-app/weapp/vant/radio/index.wxml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/radio/index.wxss b/mini-app/weapp/vant/radio/index.wxss
deleted file mode 100644
index 0d9ab173d..000000000
--- a/mini-app/weapp/vant/radio/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-radio{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none}.van-radio__icon-wrap{-webkit-flex:none;flex:none}.van-radio__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:1em;height:1em;color:transparent;text-align:center;transition-property:color,border-color,background-color;border:1px solid #c8c9cc;border:1px solid var(--radio-border-color,#c8c9cc);font-size:20px;font-size:var(--radio-size,20px);transition-duration:.2s;transition-duration:var(--radio-transition-duration,.2s)}.van-radio__icon--round{border-radius:100%}.van-radio__icon--checked{color:#fff;color:var(--white,#fff);background-color:#1989fa;background-color:var(--radio-checked-icon-color,#1989fa);border-color:#1989fa;border-color:var(--radio-checked-icon-color,#1989fa)}.van-radio__icon--disabled{background-color:#ebedf0;background-color:var(--radio-disabled-background-color,#ebedf0);border-color:#c8c9cc;border-color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__icon--disabled.van-radio__icon--checked{color:#c8c9cc;color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__label{word-wrap:break-word;margin-left:10px;margin-left:var(--radio-label-margin,10px);color:#323233;color:var(--radio-label-color,#323233);line-height:20px;line-height:var(--radio-size,20px)}.van-radio__label--left{float:left;margin:0 10px 0 0;margin:0 var(--radio-label-margin,10px) 0 0}.van-radio__label--disabled{color:#c8c9cc;color:var(--radio-disabled-label-color,#c8c9cc)}.van-radio__label:empty{margin:0}
diff --git a/mini-app/weapp/vant/row/index.js b/mini-app/weapp/vant/row/index.js
deleted file mode 100644
index 730a8423e..000000000
--- a/mini-app/weapp/vant/row/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- relation: {
- name: 'col',
- type: 'descendant',
- current: 'row',
- linked: function linked(target) {
- if (this.data.gutter) {
- target.setGutter(this.data.gutter);
- }
- }
- },
- props: {
- gutter: {
- type: Number,
- observer: 'setGutter'
- }
- },
- data: {
- viewStyle: ''
- },
- mounted: function mounted() {
- if (this.data.gutter) {
- this.setGutter();
- }
- },
- methods: {
- setGutter: function setGutter() {
- var _this = this;
-
- var gutter = this.data.gutter;
- var margin = "-".concat(Number(gutter) / 2, "px");
- var viewStyle = gutter ? "margin-right: ".concat(margin, "; margin-left: ").concat(margin, ";") : '';
- this.setData({
- viewStyle: viewStyle
- });
- this.getRelationNodes('../col/index').forEach(function (col) {
- col.setGutter(_this.data.gutter);
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/row/index.json b/mini-app/weapp/vant/row/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/row/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/row/index.wxml b/mini-app/weapp/vant/row/index.wxml
deleted file mode 100644
index ab8fcf58b..000000000
--- a/mini-app/weapp/vant/row/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/mini-app/weapp/vant/row/index.wxss b/mini-app/weapp/vant/row/index.wxss
deleted file mode 100644
index f8bfbdcc2..000000000
--- a/mini-app/weapp/vant/row/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-row:after{display:table;clear:both;content:""}
diff --git a/mini-app/weapp/vant/stepper/index.js b/mini-app/weapp/vant/stepper/index.js
deleted file mode 100644
index f2dde7b17..000000000
--- a/mini-app/weapp/vant/stepper/index.js
+++ /dev/null
@@ -1,216 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _validator = require('./../common/validator.js');
-
-var LONG_PRESS_START_TIME = 600;
-var LONG_PRESS_INTERVAL = 200; // add num and avoid float number
-
-function add(num1, num2) {
- var cardinal = Math.pow(10, 10);
- return Math.round((num1 + num2) * cardinal) / cardinal;
-}
-
-function equal(value1, value2) {
- return String(value1) === String(value2);
-}
-
-(0, _component.VantComponent)({
- field: true,
- classes: ['input-class', 'plus-class', 'minus-class'],
- props: {
- value: {
- type: null,
- observer: function observer(value) {
- if (!equal(value, this.data.currentValue)) {
- this.setData({
- currentValue: this.format(value)
- });
- }
- }
- },
- integer: {
- type: Boolean,
- observer: 'check'
- },
- disabled: Boolean,
- inputWidth: null,
- buttonSize: null,
- asyncChange: Boolean,
- disableInput: Boolean,
- decimalLength: {
- type: Number,
- value: null,
- observer: 'check'
- },
- min: {
- type: null,
- value: 1,
- observer: 'check'
- },
- max: {
- type: null,
- value: Number.MAX_SAFE_INTEGER,
- observer: 'check'
- },
- step: {
- type: null,
- value: 1
- },
- showPlus: {
- type: Boolean,
- value: true
- },
- showMinus: {
- type: Boolean,
- value: true
- },
- disablePlus: Boolean,
- disableMinus: Boolean,
- longPress: {
- type: Boolean,
- value: true
- }
- },
- data: {
- currentValue: ''
- },
- created: function created() {
- this.setData({
- currentValue: this.format(this.data.value)
- });
- },
- methods: {
- check: function check() {
- var val = this.format(this.data.currentValue);
-
- if (!equal(val, this.data.currentValue)) {
- this.setData({
- currentValue: val
- });
- }
- },
- isDisabled: function isDisabled(type) {
- if (type === 'plus') {
- return this.data.disabled || this.data.disablePlus || this.data.currentValue >= this.data.max;
- }
-
- return this.data.disabled || this.data.disableMinus || this.data.currentValue <= this.data.min;
- },
- onFocus: function onFocus(event) {
- this.$emit('focus', event.detail);
- },
- onBlur: function onBlur(event) {
- var value = this.format(event.detail.value);
- this.emitChange(value);
- this.$emit('blur', Object.assign(Object.assign({}, event.detail), {
- value: value
- }));
- },
- // filter illegal characters
- filter: function filter(value) {
- value = String(value).replace(/[^0-9.-]/g, '');
-
- if (this.data.integer && value.indexOf('.') !== -1) {
- value = value.split('.')[0];
- }
-
- return value;
- },
- // limit value range
- format: function format(value) {
- value = this.filter(value); // format range
-
- value = value === '' ? 0 : +value;
- value = Math.max(Math.min(this.data.max, value), this.data.min); // format decimal
-
- if ((0, _validator.isDef)(this.data.decimalLength)) {
- value = value.toFixed(this.data.decimalLength);
- }
-
- return value;
- },
- onInput: function onInput(event) {
- var _ref = event.detail || {},
- _ref$value = _ref.value,
- value = _ref$value === void 0 ? '' : _ref$value; // allow input to be empty
-
-
- if (value === '') {
- return;
- }
-
- var formatted = this.filter(value); // limit max decimal length
-
- if ((0, _validator.isDef)(this.data.decimalLength) && formatted.indexOf('.') !== -1) {
- var pair = formatted.split('.');
- formatted = "".concat(pair[0], ".").concat(pair[1].slice(0, this.data.decimalLength));
- }
-
- this.emitChange(formatted);
- },
- emitChange: function emitChange(value) {
- if (!this.data.asyncChange) {
- this.setData({
- currentValue: value
- });
- }
-
- this.$emit('change', value);
- },
- onChange: function onChange() {
- var type = this.type;
-
- if (this.isDisabled(type)) {
- this.$emit('overlimit', type);
- return;
- }
-
- var diff = type === 'minus' ? -this.data.step : +this.data.step;
- var value = this.format(add(+this.data.currentValue, diff));
- this.emitChange(value);
- this.$emit(type);
- },
- longPressStep: function longPressStep() {
- var _this = this;
-
- this.longPressTimer = setTimeout(function () {
- _this.onChange();
-
- _this.longPressStep();
- }, LONG_PRESS_INTERVAL);
- },
- onTap: function onTap(event) {
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.onChange();
- },
- onTouchStart: function onTouchStart(event) {
- var _this2 = this;
-
- if (!this.data.longPress) {
- return;
- }
-
- clearTimeout(this.longPressTimer);
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.isLongPress = false;
- this.longPressTimer = setTimeout(function () {
- _this2.isLongPress = true;
-
- _this2.onChange();
-
- _this2.longPressStep();
- }, LONG_PRESS_START_TIME);
- },
- onTouchEnd: function onTouchEnd() {
- if (!this.data.longPress) {
- return;
- }
-
- clearTimeout(this.longPressTimer);
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/stepper/index.json b/mini-app/weapp/vant/stepper/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/stepper/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/stepper/index.wxml b/mini-app/weapp/vant/stepper/index.wxml
deleted file mode 100644
index d96b3425b..000000000
--- a/mini-app/weapp/vant/stepper/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/stepper/index.wxss b/mini-app/weapp/vant/stepper/index.wxss
deleted file mode 100644
index b39cc1c09..000000000
--- a/mini-app/weapp/vant/stepper/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-stepper{font-size:0}.van-stepper__minus,.van-stepper__plus{position:relative;display:inline-block;box-sizing:border-box;margin:1px;vertical-align:middle;border:0;background-color:#f2f3f5;background-color:var(--stepper-background-color,#f2f3f5);color:#323233;color:var(--stepper-button-icon-color,#323233);width:28px;width:var(--stepper-input-height,28px);height:28px;height:var(--stepper-input-height,28px);padding:4px;padding:var(--padding-base,4px)}.van-stepper__minus:before,.van-stepper__plus:before{width:9px;height:1px}.van-stepper__minus:after,.van-stepper__plus:after{width:1px;height:9px}.van-stepper__minus:after,.van-stepper__minus:before,.van-stepper__plus:after,.van-stepper__plus:before{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;background-color:currentColor;content:""}.van-stepper__minus--hover,.van-stepper__plus--hover{background-color:#e8e8e8;background-color:var(--stepper-active-color,#e8e8e8)}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:#c8c9cc;color:var(--stepper-button-disabled-icon-color,#c8c9cc)}.van-stepper__minus--disabled,.van-stepper__minus--disabled.van-stepper__minus--hover,.van-stepper__minus--disabled.van-stepper__plus--hover,.van-stepper__plus--disabled,.van-stepper__plus--disabled.van-stepper__minus--hover,.van-stepper__plus--disabled.van-stepper__plus--hover{background-color:#f7f8fa;background-color:var(--stepper-button-disabled-color,#f7f8fa)}.van-stepper__minus{border-radius:4px 0 0 4px;border-radius:var(--stepper-border-radius,4px) 0 0 var(--stepper-border-radius,4px)}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 4px 4px 0;border-radius:0 var(--stepper-border-radius,4px) var(--stepper-border-radius,4px) 0}.van-stepper__input{display:inline-block;box-sizing:border-box;min-height:0;margin:1px;padding:1px;text-align:center;vertical-align:middle;border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none;font-size:14px;font-size:var(--stepper-input-font-size,14px);color:#323233;color:var(--stepper-input-text-color,#323233);background-color:#f2f3f5;background-color:var(--stepper-background-color,#f2f3f5);width:32px;width:var(--stepper-input-width,32px);height:28px;height:var(--stepper-input-height,28px)}.van-stepper__input--disabled{color:#c8c9cc;color:var(--stepper-input-disabled-text-color,#c8c9cc);background-color:#f2f3f5;background-color:var(--stepper-input-disabled-background-color,#f2f3f5)}
diff --git a/mini-app/weapp/vant/steps/index.js b/mini-app/weapp/vant/steps/index.js
deleted file mode 100644
index 12584ef6b..000000000
--- a/mini-app/weapp/vant/steps/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _color = require('./../common/color.js');
-
-(0, _component.VantComponent)({
- classes: ['desc-class'],
- props: {
- icon: String,
- steps: Array,
- active: Number,
- direction: {
- type: String,
- value: 'horizontal'
- },
- activeColor: {
- type: String,
- value: _color.GREEN
- },
- inactiveColor: {
- type: String,
- value: _color.GRAY_DARK
- },
- activeIcon: {
- type: String,
- value: 'checked'
- },
- inactiveIcon: String
- },
- methods: {
- onClick: function onClick(event) {
- var index = event.currentTarget.dataset.index;
- this.$emit('click-step', index);
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/steps/index.json b/mini-app/weapp/vant/steps/index.json
deleted file mode 100644
index aed2ff4bf..000000000
--- a/mini-app/weapp/vant/steps/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/steps/index.wxml b/mini-app/weapp/vant/steps/index.wxml
deleted file mode 100644
index 33b7e873d..000000000
--- a/mini-app/weapp/vant/steps/index.wxml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-function get(index, active) {
- if (index < active) {
- return 'finish';
- } else if (index === active) {
- return 'process';
- }
-
- return 'inactive';
-}
-
-module.exports = get;
-
-
-
-
-
-
-
-
- {{ item.text }}
- {{ item.desc }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/steps/index.wxss b/mini-app/weapp/vant/steps/index.wxss
deleted file mode 100644
index 6bbdb67ae..000000000
--- a/mini-app/weapp/vant/steps/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-steps{overflow:hidden;background-color:#fff;background-color:var(--steps-background-color,#fff)}.van-steps--horizontal{padding:10px}.van-steps--horizontal .van-step__wrapper{position:relative;display:-webkit-flex;display:flex;overflow:hidden}.van-steps--vertical{padding-left:10px}.van-steps--vertical .van-step__wrapper{padding:0 0 0 20px}.van-step{position:relative;-webkit-flex:1;flex:1;font-size:14px;font-size:var(--step-font-size,14px);color:#969799;color:var(--step-text-color,#969799)}.van-step--finish{color:#323233;color:var(--step-finish-text-color,#323233)}.van-step__circle{border-radius:50%;width:5px;width:var(--step-circle-size,5px);height:5px;height:var(--step-circle-size,5px);background-color:#969799;background-color:var(--step-circle-color,#969799)}.van-step--horizontal{padding-bottom:14px}.van-step--horizontal:first-child .van-step__title{-webkit-transform:none;transform:none}.van-step--horizontal:first-child .van-step__circle-container{padding:0 8px 0 0;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal:last-child{position:absolute;right:0;width:auto}.van-step--horizontal:last-child .van-step__title{text-align:right;-webkit-transform:none;transform:none}.van-step--horizontal:last-child .van-step__circle-container{right:0;padding:0 0 0 8px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal .van-step__circle-container{position:absolute;bottom:6px;z-index:1;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0);background-color:#fff;background-color:var(--white,#fff);padding:0 8px;padding:0 var(--padding-xs,8px)}.van-step--horizontal .van-step__title{display:inline-block;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);font-size:12px;font-size:var(--step-horizontal-title-font-size,12px)}.van-step--horizontal .van-step__line{position:absolute;right:0;bottom:6px;left:0;height:1px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}.van-step--horizontal.van-step--process{color:#323233;color:var(--step-process-text-color,#323233)}.van-step--horizontal.van-step--process .van-step__icon{display:block;line-height:1;font-size:12px;font-size:var(--step-icon-size,12px)}.van-step--vertical{padding:10px 10px 10px 0;line-height:18px}.van-step--vertical:after{border-bottom-width:1px}.van-step--vertical:last-child:after{border-bottom-width:none}.van-step--vertical:first-child:before{position:absolute;top:0;left:-15px;z-index:1;width:1px;height:20px;content:"";background-color:#fff;background-color:var(--white,#fff)}.van-step--vertical .van-step__circle,.van-step--vertical .van-step__icon,.van-step--vertical .van-step__line{position:absolute;top:19px;left:-14px;z-index:2;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-step--vertical .van-step__icon{line-height:1;font-size:12px;font-size:var(--step-icon-size,12px)}.van-step--vertical .van-step__line{z-index:1;width:1px;height:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}
diff --git a/mini-app/weapp/vant/submit-bar/index.js b/mini-app/weapp/vant/submit-bar/index.js
deleted file mode 100644
index 84ef618e6..000000000
--- a/mini-app/weapp/vant/submit-bar/index.js
+++ /dev/null
@@ -1,62 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- classes: ['bar-class', 'price-class', 'button-class'],
- props: {
- tip: {
- type: null,
- observer: 'updateTip'
- },
- tipIcon: String,
- type: Number,
- price: {
- type: null,
- observer: 'updatePrice'
- },
- label: String,
- loading: Boolean,
- disabled: Boolean,
- buttonText: String,
- currency: {
- type: String,
- value: '¥'
- },
- buttonType: {
- type: String,
- value: 'danger'
- },
- decimalLength: {
- type: Number,
- value: 2,
- observer: 'updatePrice'
- },
- suffixLabel: String,
- safeAreaInsetBottom: {
- type: Boolean,
- value: true
- }
- },
- methods: {
- updatePrice: function updatePrice() {
- var _this$data = this.data,
- price = _this$data.price,
- decimalLength = _this$data.decimalLength;
- var priceStrArr = typeof price === 'number' && (price / 100).toFixed(decimalLength).split('.');
- this.setData({
- hasPrice: typeof price === 'number',
- integerStr: priceStrArr && priceStrArr[0],
- decimalStr: decimalLength && priceStrArr ? ".".concat(priceStrArr[1]) : ''
- });
- },
- updateTip: function updateTip() {
- this.setData({
- hasTip: typeof this.data.tip === 'string'
- });
- },
- onSubmit: function onSubmit(event) {
- this.$emit('submit', event.detail);
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/submit-bar/index.json b/mini-app/weapp/vant/submit-bar/index.json
deleted file mode 100644
index faf81542d..000000000
--- a/mini-app/weapp/vant/submit-bar/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index",
- "van-button": "./../button/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/submit-bar/index.wxml b/mini-app/weapp/vant/submit-bar/index.wxml
deleted file mode 100644
index 808c35325..000000000
--- a/mini-app/weapp/vant/submit-bar/index.wxml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ tip }}
-
-
-
-
-
-
-
- {{ label || '合计:' }}
-
- {{ currency }}
- {{ integerStr }}{{decimalStr}}
-
- {{ suffixLabel }}
-
-
- {{ loading ? '' : buttonText }}
-
-
-
-
-
diff --git a/mini-app/weapp/vant/submit-bar/index.wxss b/mini-app/weapp/vant/submit-bar/index.wxss
deleted file mode 100644
index 36031bdcb..000000000
--- a/mini-app/weapp/vant/submit-bar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-submit-bar{position:fixed;bottom:0;left:0;width:100%;-webkit-user-select:none;user-select:none;z-index:100;z-index:var(--submit-bar-z-index,100);background-color:#fff;background-color:var(--submit-bar-background-color,#fff)}.van-submit-bar__tip{padding:10px;padding:var(--submit-bar-tip-padding,10px);color:#f56723;color:var(--submit-bar-tip-color,#f56723);font-size:12px;font-size:var(--submit-bar-tip-font-size,12px);line-height:1.5;line-height:var(--submit-bar-tip-line-height,1.5);background-color:#fff7cc;background-color:var(--submit-bar-tip-background-color,#fff7cc)}.van-submit-bar__tip:empty{display:none}.van-submit-bar__tip-icon{width:12px;height:12px;margin-right:4px;vertical-align:middle;font-size:12px;font-size:var(--submit-bar-tip-icon-size,12px);min-width:18px;min-width:calc(var(--submit-bar-tip-icon-size, 12px)*1.5)}.van-submit-bar__tip-text{display:inline;vertical-align:middle}.van-submit-bar__bar{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:flex-end;justify-content:flex-end;padding:0 16px;padding:var(--submit-bar-padding,0 16px);height:50px;height:var(--submit-bar-height,50px);font-size:14px;font-size:var(--submit-bar-text-font-size,14px);background-color:#fff;background-color:var(--submit-bar-background-color,#fff)}.van-submit-bar__safe{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.van-submit-bar__text{-webkit-flex:1;flex:1;text-align:right;color:#323233;color:var(--submit-bar-text-color,#323233);padding-right:12px;padding-right:var(--padding-sm,12px)}.van-submit-bar__price,.van-submit-bar__text{font-weight:500;font-weight:var(--font-weight-bold,500)}.van-submit-bar__price{color:#ee0a24;color:var(--submit-bar-price-color,#ee0a24);font-size:12px;font-size:var(--submit-bar-price-font-size,12px)}.van-submit-bar__price-integer{font-size:20px;font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif}.van-submit-bar__currency{font-size:12px;font-size:var(--submit-bar-currency-font-size,12px)}.van-submit-bar__suffix-label{margin-left:5px}.van-submit-bar__button{width:110px;width:var(--submit-bar-button-width,110px);font-weight:500;font-weight:var(--font-weight-bold,500);--button-default-height:40px!important;--button-default-height:var(--submit-bar-button-height,40px)!important;--button-line-height:40px!important;--button-line-height:var(--submit-bar-button-height,40px)!important}
diff --git a/mini-app/weapp/vant/tabbar-item/index.js b/mini-app/weapp/vant/tabbar-item/index.js
deleted file mode 100644
index a25853e85..000000000
--- a/mini-app/weapp/vant/tabbar-item/index.js
+++ /dev/null
@@ -1,69 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- info: null,
- name: null,
- icon: String,
- dot: Boolean,
- iconPrefix: {
- type: String,
- value: 'van-icon'
- }
- },
- relation: {
- name: 'tabbar',
- type: 'ancestor',
- current: 'tabbar-item'
- },
- data: {
- active: false
- },
- methods: {
- onClick: function onClick() {
- var parent = this.parent;
-
- if (parent) {
- var index = parent.children.indexOf(this);
- var active = this.data.name || index;
-
- if (active !== this.data.active) {
- parent.$emit('change', active);
- }
- }
-
- this.$emit('click');
- },
- updateFromParent: function updateFromParent() {
- var parent = this.parent;
-
- if (!parent) {
- return;
- }
-
- var index = parent.children.indexOf(this);
- var parentData = parent.data;
- var data = this.data;
- var active = (data.name || index) === parentData.active;
- var patch = {};
-
- if (active !== data.active) {
- patch.active = active;
- }
-
- if (parentData.activeColor !== data.activeColor) {
- patch.activeColor = parentData.activeColor;
- }
-
- if (parentData.inactiveColor !== data.inactiveColor) {
- patch.inactiveColor = parentData.inactiveColor;
- }
-
- if (Object.keys(patch).length > 0) {
- this.setData(patch);
- }
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/tabbar-item/index.json b/mini-app/weapp/vant/tabbar-item/index.json
deleted file mode 100644
index 5f49a3c30..000000000
--- a/mini-app/weapp/vant/tabbar-item/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index",
- "van-info": "./../info/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/tabbar-item/index.wxml b/mini-app/weapp/vant/tabbar-item/index.wxml
deleted file mode 100644
index 15d9d937f..000000000
--- a/mini-app/weapp/vant/tabbar-item/index.wxml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/tabbar-item/index.wxss b/mini-app/weapp/vant/tabbar-item/index.wxss
deleted file mode 100644
index 5dd9ce1ba..000000000
--- a/mini-app/weapp/vant/tabbar-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-tabbar-item{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;color:#646566;color:var(--tabbar-item-text-color,#646566);font-size:12px;font-size:var(--tabbar-item-font-size,12px);line-height:1;line-height:var(--tabbar-item-line-height,1)}.van-tabbar-item__icon{position:relative;margin-bottom:4px;margin-bottom:var(--tabbar-item-margin-bottom,4px);font-size:22px;font-size:var(--tabbar-item-icon-size,22px)}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:#1989fa;color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:2px}
diff --git a/mini-app/weapp/vant/tabbar/index.js b/mini-app/weapp/vant/tabbar/index.js
deleted file mode 100644
index 71cced6f3..000000000
--- a/mini-app/weapp/vant/tabbar/index.js
+++ /dev/null
@@ -1,86 +0,0 @@
-"use strict";
-
-var _utils = require('./../common/utils.js');
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- relation: {
- name: 'tabbar-item',
- type: 'descendant',
- current: 'tabbar',
- linked: function linked(target) {
- target.parent = this;
- target.updateFromParent();
- },
- unlinked: function unlinked() {
- this.updateChildren();
- }
- },
- props: {
- active: {
- type: null,
- observer: 'updateChildren'
- },
- activeColor: {
- type: String,
- observer: 'updateChildren'
- },
- inactiveColor: {
- type: String,
- observer: 'updateChildren'
- },
- fixed: {
- type: Boolean,
- value: true,
- observer: 'setHeight'
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight'
- },
- border: {
- type: Boolean,
- value: true
- },
- zIndex: {
- type: Number,
- value: 1
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true
- }
- },
- data: {
- height: 50
- },
- methods: {
- updateChildren: function updateChildren() {
- var children = this.children;
-
- if (!Array.isArray(children) || !children.length) {
- return;
- }
-
- children.forEach(function (child) {
- return child.updateFromParent();
- });
- },
- setHeight: function setHeight() {
- var _this = this;
-
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
-
- wx.nextTick(function () {
- (0, _utils.getRect)(_this, '.van-tabbar').then(function (res) {
- _this.setData({
- height: res.height
- });
- });
- });
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/tabbar/index.json b/mini-app/weapp/vant/tabbar/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/tabbar/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/tabbar/index.wxml b/mini-app/weapp/vant/tabbar/index.wxml
deleted file mode 100644
index b1d35bd80..000000000
--- a/mini-app/weapp/vant/tabbar/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/tabbar/index.wxss b/mini-app/weapp/vant/tabbar/index.wxss
deleted file mode 100644
index 26339cf69..000000000
--- a/mini-app/weapp/vant/tabbar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-tabbar{display:-webkit-flex;display:flex;box-sizing:initial;width:100%;height:50px;height:var(--tabbar-height,50px);background-color:#fff;background-color:var(--tabbar-background-color,#fff)}.van-tabbar--fixed{position:fixed;bottom:0;left:0}.van-tabbar--safe{padding-bottom:env(safe-area-inset-bottom)}
diff --git a/mini-app/weapp/vant/tag/index.js b/mini-app/weapp/vant/tag/index.js
deleted file mode 100644
index 18317dbbd..000000000
--- a/mini-app/weapp/vant/tag/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-(0, _component.VantComponent)({
- props: {
- size: String,
- mark: Boolean,
- color: String,
- plain: Boolean,
- round: Boolean,
- textColor: String,
- type: {
- type: String,
- value: 'default'
- },
- closeable: Boolean
- },
- methods: {
- onClose: function onClose() {
- this.$emit('close');
- }
- }
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/tag/index.json b/mini-app/weapp/vant/tag/index.json
deleted file mode 100644
index aed2ff4bf..000000000
--- a/mini-app/weapp/vant/tag/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "./../icon/index"
- }
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/tag/index.wxml b/mini-app/weapp/vant/tag/index.wxml
deleted file mode 100644
index 5fdb28a61..000000000
--- a/mini-app/weapp/vant/tag/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/mini-app/weapp/vant/tag/index.wxss b/mini-app/weapp/vant/tag/index.wxss
deleted file mode 100644
index e1413b482..000000000
--- a/mini-app/weapp/vant/tag/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-tag{position:relative;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;padding:0 4px;padding:var(--tag-padding,0 4px);color:#fff;color:var(--tag-text-color,#fff);font-size:12px;font-size:var(--tag-font-size,12px);line-height:16px;line-height:var(--tag-line-height,16px);border-radius:2px;border-radius:var(--tag-border-radius,2px)}.van-tag--default{background-color:#969799;background-color:var(--tag-default-color,#969799)}.van-tag--default.van-tag--plain{color:#969799;color:var(--tag-default-color,#969799)}.van-tag--danger{background-color:#ee0a24;background-color:var(--tag-danger-color,#ee0a24)}.van-tag--danger.van-tag--plain{color:#ee0a24;color:var(--tag-danger-color,#ee0a24)}.van-tag--primary{background-color:#1989fa;background-color:var(--tag-primary-color,#1989fa)}.van-tag--primary.van-tag--plain{color:#1989fa;color:var(--tag-primary-color,#1989fa)}.van-tag--success{background-color:#07c160;background-color:var(--tag-success-color,#07c160)}.van-tag--success.van-tag--plain{color:#07c160;color:var(--tag-success-color,#07c160)}.van-tag--warning{background-color:#ff976a;background-color:var(--tag-warning-color,#ff976a)}.van-tag--warning.van-tag--plain{color:#ff976a;color:var(--tag-warning-color,#ff976a)}.van-tag--plain{background-color:#fff;background-color:var(--tag-plain-background-color,#fff)}.van-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-radius:inherit;content:"";pointer-events:none}.van-tag--medium{padding:2px 6px;padding:var(--tag-medium-padding,2px 6px)}.van-tag--large{padding:4px 8px;padding:var(--tag-large-padding,4px 8px);font-size:14px;font-size:var(--tag-large-font-size,14px);border-radius:4px;border-radius:var(--tag-large-border-radius,4px)}.van-tag--mark{border-radius:0 999px 999px 0;border-radius:0 var(--tag-round-border-radius,999px) var(--tag-round-border-radius,999px) 0}.van-tag--mark:after{display:block;width:2px;content:""}.van-tag--round{border-radius:999px;border-radius:var(--tag-round-border-radius,999px)}.van-tag__close{min-width:1em;margin-left:2px}
diff --git a/mini-app/weapp/vant/transition/index.js b/mini-app/weapp/vant/transition/index.js
deleted file mode 100644
index 9ca9d17cd..000000000
--- a/mini-app/weapp/vant/transition/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-
-var _component = require('./../common/component.js');
-
-var _transition = require('./../mixins/transition.js');
-
-(0, _component.VantComponent)({
- classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class'],
- mixins: [(0, _transition.transition)(true)]
-});
\ No newline at end of file
diff --git a/mini-app/weapp/vant/transition/index.json b/mini-app/weapp/vant/transition/index.json
deleted file mode 100644
index 7e37c0353..000000000
--- a/mini-app/weapp/vant/transition/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/mini-app/weapp/vant/transition/index.wxml b/mini-app/weapp/vant/transition/index.wxml
deleted file mode 100644
index 412e8afca..000000000
--- a/mini-app/weapp/vant/transition/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
diff --git a/mini-app/weapp/vant/transition/index.wxss b/mini-app/weapp/vant/transition/index.wxss
deleted file mode 100644
index b3a5f59ba..000000000
--- a/mini-app/weapp/vant/transition/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-transition{transition-timing-function:ease}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-fade-down-enter-active,.van-fade-down-leave-active,.van-fade-left-enter-active,.van-fade-left-leave-active,.van-fade-right-enter-active,.van-fade-right-leave-active,.van-fade-up-enter-active,.van-fade-up-leave-active{transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.van-fade-up-enter,.van-fade-up-leave-to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);opacity:0}.van-fade-down-enter,.van-fade-down-leave-to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);opacity:0}.van-fade-left-enter,.van-fade-left-leave-to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);opacity:0}.van-fade-right-enter,.van-fade-right-leave-to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}.van-slide-down-enter-active,.van-slide-down-leave-active,.van-slide-left-enter-active,.van-slide-left-leave-active,.van-slide-right-enter-active,.van-slide-right-leave-active,.van-slide-up-enter-active,.van-slide-up-leave-active{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.van-slide-up-enter,.van-slide-up-leave-to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.van-slide-down-enter,.van-slide-down-leave-to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.van-slide-left-enter,.van-slide-left-leave-to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.van-slide-right-enter,.van-slide-right-leave-to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}
diff --git a/mini-app/weapp/vant/wxs/add-unit.wxs b/mini-app/weapp/vant/wxs/add-unit.wxs
deleted file mode 100644
index 52f18b558..000000000
--- a/mini-app/weapp/vant/wxs/add-unit.wxs
+++ /dev/null
@@ -1,12 +0,0 @@
-/* eslint-disable */
-var REGEXP = getRegExp('^\d+(\.\d+)?$');
-
-function addUnit(value) {
- if (value == null) {
- return undefined;
- }
-
- return REGEXP.test('' + value) ? value + 'px' : value;
-}
-
-module.exports = addUnit;
diff --git a/mini-app/weapp/vant/wxs/array.wxs b/mini-app/weapp/vant/wxs/array.wxs
deleted file mode 100644
index 610089cd5..000000000
--- a/mini-app/weapp/vant/wxs/array.wxs
+++ /dev/null
@@ -1,5 +0,0 @@
-function isArray(array) {
- return array && array.constructor === 'Array';
-}
-
-module.exports.isArray = isArray;
diff --git a/mini-app/weapp/vant/wxs/bem.wxs b/mini-app/weapp/vant/wxs/bem.wxs
deleted file mode 100644
index 1efa129ee..000000000
--- a/mini-app/weapp/vant/wxs/bem.wxs
+++ /dev/null
@@ -1,39 +0,0 @@
-/* eslint-disable */
-var array = require('./array.wxs');
-var object = require('./object.wxs');
-var PREFIX = 'van-';
-
-function join(name, mods) {
- name = PREFIX + name;
- mods = mods.map(function(mod) {
- return name + '--' + mod;
- });
- mods.unshift(name);
- return mods.join(' ');
-}
-
-function traversing(mods, conf) {
- if (!conf) {
- return;
- }
-
- if (typeof conf === 'string' || typeof conf === 'number') {
- mods.push(conf);
- } else if (array.isArray(conf)) {
- conf.forEach(function(item) {
- traversing(mods, item);
- });
- } else if (typeof conf === 'object') {
- object.keys(conf).forEach(function(key) {
- conf[key] && mods.push(key);
- });
- }
-}
-
-function bem(name, conf) {
- var mods = [];
- traversing(mods, conf);
- return join(name, mods);
-}
-
-module.exports = bem;
diff --git a/mini-app/weapp/vant/wxs/memoize.wxs b/mini-app/weapp/vant/wxs/memoize.wxs
deleted file mode 100644
index 8f7f46dd2..000000000
--- a/mini-app/weapp/vant/wxs/memoize.wxs
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Simple memoize
- * wxs doesn't support fn.apply, so this memoize only support up to 2 args
- */
-/* eslint-disable */
-
-function isPrimitive(value) {
- var type = typeof value;
- return (
- type === 'boolean' ||
- type === 'number' ||
- type === 'string' ||
- type === 'undefined' ||
- value === null
- );
-}
-
-// mock simple fn.call in wxs
-function call(fn, args) {
- if (args.length === 2) {
- return fn(args[0], args[1]);
- }
-
- if (args.length === 1) {
- return fn(args[0]);
- }
-
- return fn();
-}
-
-function serializer(args) {
- if (args.length === 1 && isPrimitive(args[0])) {
- return args[0];
- }
- var obj = {};
- for (var i = 0; i < args.length; i++) {
- obj['key' + i] = args[i];
- }
- return JSON.stringify(obj);
-}
-
-function memoize(fn) {
- var cache = {};
-
- return function() {
- var key = serializer(arguments);
- if (cache[key] === undefined) {
- cache[key] = call(fn, arguments);
- }
-
- return cache[key];
- };
-}
-
-module.exports = memoize;
diff --git a/mini-app/weapp/vant/wxs/object.wxs b/mini-app/weapp/vant/wxs/object.wxs
deleted file mode 100644
index e07710776..000000000
--- a/mini-app/weapp/vant/wxs/object.wxs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-var REGEXP = getRegExp('{|}|"', 'g');
-
-function keys(obj) {
- return JSON.stringify(obj)
- .replace(REGEXP, '')
- .split(',')
- .map(function(item) {
- return item.split(':')[0];
- });
-}
-
-module.exports.keys = keys;
diff --git a/mini-app/weapp/vant/wxs/style.wxs b/mini-app/weapp/vant/wxs/style.wxs
deleted file mode 100644
index 3139cde4a..000000000
--- a/mini-app/weapp/vant/wxs/style.wxs
+++ /dev/null
@@ -1,32 +0,0 @@
-/* eslint-disable */
-var object = require('./object.wxs');
-var array = require('./array.wxs');
-
-function style(styles) {
- if (array.isArray(styles)) {
- return styles
- .filter(function (item) {
- return item != null;
- })
- .map(function (item) {
- return style(item);
- })
- .join(';');
- }
-
- if ('Object' === styles.constructor) {
- return object
- .keys(styles)
- .filter(function (key) {
- return styles[key] != null;
- })
- .map(function (key) {
- return [key, [styles[key]]].join(':');
- })
- .join(';');
- }
-
- return styles;
-}
-
-module.exports = style;
diff --git a/mini-app/weapp/vant/wxs/utils.wxs b/mini-app/weapp/vant/wxs/utils.wxs
deleted file mode 100644
index 656e64eeb..000000000
--- a/mini-app/weapp/vant/wxs/utils.wxs
+++ /dev/null
@@ -1,10 +0,0 @@
-/* eslint-disable */
-var bem = require('./bem.wxs');
-var memoize = require('./memoize.wxs');
-var addUnit = require('./add-unit.wxs');
-
-module.exports = {
- bem: memoize(bem),
- memoize: memoize,
- addUnit: addUnit
-};
\ No newline at end of file
diff --git a/mini-app/weapp/vendor.js b/mini-app/weapp/vendor.js
deleted file mode 100644
index 444d65592..000000000
--- a/mini-app/weapp/vendor.js
+++ /dev/null
@@ -1,4880 +0,0 @@
-
-var window = { Number: Number, Array: Array, Date: Date, Error: Error, Math: Math, Object: Object, Function: Function, RegExp: RegExp, String: String, TypeError: TypeError, parseInt: parseInt, parseFloat: parseFloat, isNaN: isNaN };
-var global = window;
-var process = { env: {} };
-(function(modules) {
- // The module cache
- var installedModules = {};
- // The require function
- function __wepy_require(moduleId) {
- // Check if module is in cache
- if(installedModules[moduleId])
- return installedModules[moduleId].exports;
- // Create a new module (and put it into the cache)
- var module = installedModules[moduleId] = {
- exports: {},
- id: moduleId,
- loaded: false
- };
- // Execute the module function
- modules[moduleId].call(module.exports, module, module.exports, __wepy_require);
- // Flag the module as loaded
- module.loaded = true;
- // Return the exports of the module
- return module.exports;
- }
- // expose the modules object (__webpack_modules__)
- __wepy_require.m = modules;
- // expose the module cache
- __wepy_require.c = installedModules;
- // __webpack_public_path__
- __wepy_require.p = "/";
- // Load entry module and return exports
- module.exports = __wepy_require;
- return __wepy_require;
-})([
-/***** module 0 start *****/
-/***** /Users/tottimctj/Project/Xiao4r/hope_wine/node_modules/_@wepy_core@2.1.0@@wepy/core/dist/wepy.js *****/
-function(module, exports, __wepy_require) {'use strict';
-
-// can we use __proto__?
-function getHasProto() {
- var hasProto = false;
- if ('__proto__' in {}) {
- var fn = function () {};
- var arr = [];
- arr.__proto__ = { push: fn };
- hasProto = fn === arr.push;
- }
- return hasProto;
-}
-var hasProto = getHasProto();
-
-var _Set; // $flow-disable-line
-/* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) {
- // use native Set when available.
- _Set = Set;
-} else {
- // a non-standard Set polyfill that only works with primitive keys.
- _Set = /*@__PURE__*/(function () {
- function Set() {
- this.set = Object.create(null);
- }
- Set.prototype.has = function has (key) {
- return this.set[key] === true;
- };
- Set.prototype.add = function add (key) {
- this.set[key] = true;
- };
- Set.prototype.clear = function clear () {
- this.set = Object.create(null);
- };
-
- return Set;
- }());
-}
-
-/* istanbul ignore next */
-function isNative(Ctor) {
- return typeof Ctor === 'function' && /native code/.test(Ctor.toString());
-}
-
-/**
- * String type check
- */
-var isStr = function (v) { return typeof v === 'string'; };
-/**
- * Number type check
- */
-var isNum = function (v) { return typeof v === 'number'; };
-/**
- * Array type check
- */
-var isArr = Array.isArray;
-/**
- * undefined type check
- */
-var isUndef = function (v) { return v === undefined; };
-/**
- * Function type check
- */
-var isFunc = function (v) { return typeof v === 'function'; };
-/**
- * Quick object check - this is primarily used to tell
- * Objects from primitive values when we know the value
- * is a JSON-compliant type.
- */
-function isObject(obj) {
- return obj !== null && typeof obj === 'object';
-}
-
-var isObj = isObject;
-/**
- * Strict object type check. Only returns true
- * for plain JavaScript objects.
- */
-var _toString = Object.prototype.toString;
-function isPlainObject(obj) {
- return _toString.call(obj) === '[object Object]';
-}
-
-/**
- * Check whether the object has the property.
- */
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-function hasOwn(obj, key) {
- return hasOwnProperty.call(obj, key);
-}
-
-/**
- * Perform no operation.
- * Stubbing args to make Flow happy without leaving useless transpiled code
- * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)
- */
-// eslint-disable-next-line
-function noop(a, b, c) {}
-
-/**
- * Check if val is a valid array index.
- */
-function isValidArrayIndex(val) {
- var n = parseFloat(String(val));
- return n >= 0 && Math.floor(n) === n && isFinite(val);
-}
-
-/**
- * Convert an Array-lik object to a real Array
- */
-function toArray(list, start) {
- if ( start === void 0 ) start = 0;
-
- var i = list.length - start;
- var rst = new Array(i);
- while (i--) {
- rst[i] = list[i + start];
- }
- return rst;
-}
-
-/**
- * Cached simply key function return
- */
-var cached = function (fn) {
- var cache = {};
- return function (str) { return cache[str] || (cache[str] = fn(str)); };
-};
-
-var camelizeRE = /-(\w)/g;
-
-/**
- * camelize words
- * e.g. my-key => myKey
- */
-var camelize = cached(function (str) { return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); }); });
-
-/*
- * extend objects
- * e.g.
- * extend({}, {a: 1}) : extend {a: 1} to {}
- * extend(true, [], [1,2,3]) : deep extend [1,2,3] to an empty array
- * extend(true, {}, {a: 1}, {b: 2}) : deep extend two objects to {}
- */
-function extend() {
- var arguments$1 = arguments;
-
- var options,
- name,
- src,
- copy,
- copyIsArray,
- clone,
- target = arguments[0] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if (typeof target === 'boolean') {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[i] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if (typeof target !== 'object' && !(typeof target === 'function')) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if (i === length) {
- target = this;
- i--;
- }
-
- for (; i < length; i++) {
- // Only deal with non-null/undefined values
- if ((options = arguments$1[i])) {
- // Extend the base object
- for (name in options) {
- src = target[name];
- copy = options[name];
-
- // Prevent never-ending loop
- if (target === copy) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if (deep && copy && (isPlainObject(copy) || (copyIsArray = Array.isArray(copy)))) {
- if (copyIsArray) {
- copyIsArray = false;
- clone = src && Array.isArray(src) ? src : [];
- } else {
- clone = src && isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- target[name] = extend(deep, clone, copy);
-
- // Don't bring in undefined values => bring undefined values
- } else {
- target[name] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-}
-
-/*
- * clone objects, return a cloned object default to use deep clone
- * e.g.
- * clone({a: 1})
- * clone({a: b: {c : 1}}, false);
- */
-function clone(sth, deep) {
- if ( deep === void 0 ) deep = true;
-
- if (isArr(sth)) {
- return extend(deep, [], sth);
- } else if ('' + sth === 'null') {
- return sth;
- } else if (isPlainObject(sth)) {
- return extend(deep, {}, sth);
- } else {
- return sth;
- }
-}
-
-var WEAPP_APP_LIFECYCLE = ['onLaunch', 'onShow', 'onHide', 'onError', 'onPageNotFound'];
-
-var WEAPP_PAGE_LIFECYCLE = [
- 'onLoad',
- 'onShow',
- 'onReady',
- 'onHide',
- 'onUnload',
- 'onPullDownRefresh',
- 'onReachBottom',
- 'onShareAppMessage',
- 'onPageScroll',
- 'onTabItemTap',
- 'onResize'
-];
-
-var WEAPP_COMPONENT_LIFECYCLE = ['beforeCreate', 'created', 'attached', 'ready', 'moved', 'detached'];
-
-var WEAPP_LIFECYCLE = []
- .concat(WEAPP_APP_LIFECYCLE)
- .concat(WEAPP_PAGE_LIFECYCLE)
- .concat(WEAPP_COMPONENT_LIFECYCLE);
-
-var config = {};
-
-var warn = noop;
-
-var generateComponentTrace = function(vm) {
- return ("Found in component: \"" + (vm.$is) + "\"");
-};
-
-{
- var hasConsole = typeof console !== 'undefined';
- // TODO
- warn = function (msg, vm) {
- if (hasConsole && !config.silent) {
- // eslint-disable-next-line
- console.error("[WePY warn]: " + msg + (vm ? generateComponentTrace(vm) : ''));
- }
- };
-}
-
-function handleError(err, vm, info) {
- if (vm) {
- var cur = vm;
- while ((cur = cur.$parent)) {
- var hooks = cur.$options.errorCaptured;
- if (hooks) {
- for (var i = 0; i < hooks.length; i++) {
- try {
- var capture = hooks[i].call(cur, err, vm, info) === false;
- if (capture) { return; }
- } catch (e) {
- globalHandleError(e, cur, 'errorCaptured hook');
- }
- }
- }
- }
- }
- globalHandleError(err, vm, info);
-}
-
-function globalHandleError(err, vm, info) {
- if (config.errorHandler) {
- try {
- return config.errorHandler.call(null, err, vm, info);
- } catch (e) {
- logError(e, null, 'config.errorHandler');
- }
- }
- logError(err, vm, info);
-}
-
-function logError(err, vm, info) {
- {
- warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
- }
- /* istanbul ignore else */
- if (typeof console !== 'undefined') {
- // eslint-disable-next-line
- console.error(err);
- } else {
- throw err;
- }
-}
-
-var callbacks = [];
-var pending = false;
-
-function flushCallbacks() {
- pending = false;
- var copies = callbacks.slice(0);
- callbacks.length = 0;
- for (var i = 0; i < copies.length; i++) {
- copies[i]();
- }
-}
-
-// Here we have async deferring wrappers using both micro and macro tasks.
-// In < 2.4 we used micro tasks everywhere, but there are some scenarios where
-// micro tasks have too high a priority and fires in between supposedly
-// sequential events (e.g. #4521, #6690) or even between bubbling of the same
-// event (#6566). However, using macro tasks everywhere also has subtle problems
-// when state is changed right before repaint (e.g. #6813, out-in transitions).
-// Here we use micro task by default, but expose a way to force macro task when
-// needed (e.g. in event handlers attached by v-on).
-var microTimerFunc;
-var macroTimerFunc;
-var useMacroTask = false;
-
-// Determine (macro) Task defer implementation.
-// Technically setImmediate should be the ideal choice, but it's only available
-// in IE. The only polyfill that consistently queues the callback after all DOM
-// events triggered in the same loop is by using MessageChannel.
-/* istanbul ignore if */
-if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
- macroTimerFunc = function () {
- setImmediate(flushCallbacks);
- };
-} else if (
- /* eslint-disable no-undef */
- typeof MessageChannel !== 'undefined' &&
- (isNative(MessageChannel) ||
- // PhantomJS
- MessageChannel.toString() === '[object MessageChannelConstructor]')
-) {
- var channel = new MessageChannel();
- var port = channel.port2;
- channel.port1.onmessage = flushCallbacks;
- macroTimerFunc = function () {
- port.postMessage(1);
- };
- /* eslint-enable no-undef */
-} else {
- /* istanbul ignore next */
- macroTimerFunc = function () {
- setTimeout(flushCallbacks, 0);
- };
-}
-
-// Determine MicroTask defer implementation.
-/* istanbul ignore next, $flow-disable-line */
-if (typeof Promise !== 'undefined' && isNative(Promise)) {
- var p = Promise.resolve();
- microTimerFunc = function () {
- p.then(flushCallbacks);
- // in problematic UIWebViews, Promise.then doesn't completely break, but
- // it can get stuck in a weird state where callbacks are pushed into the
- // microtask queue but the queue isn't being flushed, until the browser
- // needs to do some other work, e.g. handle a timer. Therefore we can
- // "force" the microtask queue to be flushed by adding an empty timer.
- // if (isIOS) setTimeout(noop)
- };
-} else {
- // fallback to macro
- microTimerFunc = macroTimerFunc;
-}
-
-function nextTick(cb, ctx) {
- var _resolve;
- callbacks.push(function () {
- if (cb) {
- try {
- cb.call(ctx);
- } catch (e) {
- handleError(e, ctx, 'nextTick');
- }
- } else if (_resolve) {
- _resolve(ctx);
- }
- });
- if (!pending) {
- pending = true;
- if (useMacroTask) {
- macroTimerFunc();
- } else {
- microTimerFunc();
- }
- }
- // $flow-disable-line
- if (!cb && typeof Promise !== 'undefined') {
- return new Promise(function (resolve) {
- _resolve = resolve;
- });
- }
-}
-
-var renderCallbacks = [];
-
-function renderFlushCallbacks() {
- var copies = renderCallbacks.slice(0);
- renderCallbacks.length = 0;
- for (var i = 0; i < copies.length; i++) {
- copies[i]();
- }
-}
-
-function renderNextTick(cb, ctx) {
- var _resolve;
- renderCallbacks.push(function () {
- if (cb) {
- try {
- cb.call(ctx);
- } catch (e) {
- handleError(e, ctx, 'nextTick');
- }
- } else if (_resolve) {
- _resolve(ctx);
- }
- });
-
- if (!cb && typeof Promise !== 'undefined') {
- return new Promise(function (resolve) {
- _resolve = resolve;
- });
- }
-}
-
-/**
- * Parse a v-model expression into a base path and a final key segment.
- * Handles both dot-path and possible square brackets.
- *
- * Possible cases:
- *
- * - test
- * - test[key]
- * - test[test1[key]]
- * - test["a"][key]
- * - xxx.test[a[a].test1[key]]
- * - test.xxx.a["asa"][test1[key]]
- *
- */
-
-/**
- * Remove an item from an array
- */
-function remove(arr, item) {
- if (arr.length) {
- var index = arr.indexOf(item);
- if (index > -1) {
- return arr.splice(index, 1);
- }
- }
-}
-
-/**
- * Define a property.
- */
-function def(obj, key, val, enumerable) {
- Object.defineProperty(obj, key, {
- value: val,
- enumerable: !!enumerable,
- writable: true,
- configurable: true
- });
-}
-
-/**
- * Parse simple path.
- */
-var bailRE = /[^\w.$]/;
-function parsePath(path) {
- if (bailRE.test(path)) {
- return;
- }
- var segments = path.split('.');
- return function(obj) {
- for (var i = 0; i < segments.length; i++) {
- if (!obj) { return; }
- obj = obj[segments[i]];
- }
- return obj;
- };
-}
-
-// import type Watcher from './watcher'
-
-var uid = 0;
-
-/**
- * A dep is an observable that can have multiple
- * directives subscribing to it.
- */
-var Dep = function Dep() {
- this.id = uid++;
- this.subs = [];
-};
-
-Dep.prototype.addSub = function addSub (sub) {
- this.subs.push(sub);
-};
-
-Dep.prototype.removeSub = function removeSub (sub) {
- remove(this.subs, sub);
-};
-
-Dep.prototype.depend = function depend () {
- if (Dep.target) {
- Dep.target.addDep(this);
- }
-};
-
-Dep.prototype.notify = function notify () {
- // stabilize the subscriber list first
- var subs = this.subs.slice();
- for (var i = 0, l = subs.length; i < l; i++) {
- subs[i].update();
- }
-};
-
-// the current target watcher being evaluated.
-// this is globally unique because there could be only one
-// watcher being evaluated at any time.
-Dep.target = null;
-var targetStack = [];
-
-function pushTarget(_target) {
- if (Dep.target) { targetStack.push(Dep.target); }
- Dep.target = _target;
-}
-
-function popTarget() {
- Dep.target = targetStack.pop();
-}
-
-/**
- * @desc ObserverPath 类以及相关处理函数
- * Observer 所在位置对应在整棵 data tree 的路径集合
- * @createDate 2019-07-21
- */
-
-/**
- * 生成完整路径
- * @param key {String|Number} 当为字符串时,说明是属性名,当为数字时,说明是索引
- * @param parentPath {String} 父路径
- * @return {string}
- */
-var setPath = function (key, parentPath) {
- return isNum(key) ? (parentPath + "[" + key + "]") : (parentPath + "." + key);
-};
-
-/**
- * 得到 ObserverPath
- * @param value 被观察对象
- * @return {ObserverPath|null}
- */
-var pickOp = function (value) {
- return isObject(value) && hasOwn(value, '__ob__') ? value.__ob__.op : null;
-};
-
-var ObserverPath = function ObserverPath(key, ob, parentOp) {
- this.ob = ob;
- // eslint-disable-next-line eqeqeq
- if (parentOp) {
- var ref = getPathMap(key, parentOp.pathKeys, parentOp.pathMap);
- var combinePathKeys = ref.combinePathKeys;
- var combinePathMap = ref.combinePathMap;
- this.pathKeys = combinePathKeys;
- this.pathMap = combinePathMap;
- } else {
- this.pathKeys = null;
- this.pathMap = null;
- }
-};
-
-ObserverPath.prototype.traverseOp = function traverseOp (key, pathKeys, pathMap, handler) {
- // 得到 newKey 和 pathMap 组合的路径集合
- var ref = getPathMap(key, pathKeys, pathMap);
- var combinePathMap = ref.combinePathMap;
- var combinePathKeys = ref.combinePathKeys;
- var handlePathKeys = [];
- var handlePathMap = {};
- var hasChange = false;
-
- // 遍历 combinePathMap
- for (var i = 0; i < combinePathKeys.length; i++) {
- var pathObj = handler(combinePathMap[combinePathKeys[i]], this);
- if (pathObj) {
- hasChange = true;
- handlePathKeys.push(pathObj.path);
- handlePathMap[pathObj.path] = pathObj;
- }
- }
-
- if (hasChange) {
- var value = this.ob.value;
- if (Array.isArray(value)) {
- for (var i$1 = 0; i$1 < value.length; i$1++) {
- var op = pickOp(value[i$1]);
- op && op.traverseOp(i$1, handlePathKeys, handlePathMap, handler);
- }
- } else {
- var keys = Object.keys(value);
- for (var i$2 = 0; i$2 < keys.length; i$2++) {
- var key$1 = keys[i$2];
- var op$1 = pickOp(value[key$1]);
- op$1 && op$1.traverseOp(key$1, handlePathKeys, handlePathMap, handler);
- }
- }
- }
-};
-
-ObserverPath.prototype.addPath = function addPath (pathObj) {
- this.pathKeys.push(pathObj.path);
- this.pathMap[pathObj.path] = pathObj;
-};
-
-ObserverPath.prototype.delPath = function delPath (path) {
- remove(this.pathKeys, path);
- delete this.pathMap[path];
-};
-
-/**
- * 添加新的 __ob__ 的 path
- */
-function addPaths(newKey, op, parentOp) {
- op.traverseOp(newKey, parentOp.pathKeys, parentOp.pathMap, handler);
-
- function handler(pathObj, op) {
- if (!(pathObj.path in op.pathMap)) {
- // 新增一条 path
- op.addPath(pathObj);
- return pathObj;
- } else {
- return null;
- }
- }
-}
-
-/**
- * 删除指定的 __ob__ 的 path
- */
-function cleanPaths(oldKey, op, parentOp) {
- op.traverseOp(oldKey, parentOp.pathKeys, parentOp.pathMap, handler);
-
- function handler(pathObj, op) {
- // 删除一条 path
- op.delPath(pathObj.path);
- return pathObj;
- }
-}
-
-/**
- * 得到 pathMap 与 key 组合后的路径集合
- */
-function getPathMap(key, pathKeys, pathMap) {
- var obj;
-
- if (pathMap) {
- // console.log('pathMap', pathMap)
- var combinePathKeys = [];
- var combinePathMap = {};
- for (var i = 0; i < pathKeys.length; i++) {
- var path = setPath(key, pathMap[pathKeys[i]].path);
- combinePathKeys.push(path);
- combinePathMap[path] = { key: key, root: pathMap[pathKeys[i]].root, path: path };
- }
- return { combinePathKeys: combinePathKeys, combinePathMap: combinePathMap };
- } else {
- return {
- combinePathKeys: [key],
- combinePathMap: ( obj = {}, obj[key] = { key: key, root: key, path: key }, obj)
- };
- }
-}
-
-/*
- * not type checking this file because flow doesn't play well with
- * dynamically accessing methods on Array prototype
- */
-
-var arrayProto = Array.prototype;
-var arrayMethods = Object.create(arrayProto);
-
-var methodsToPatch = ['push', 'pop', 'shift', 'unshift', 'splice', 'sort', 'reverse'];
-
-/**
- * Intercept mutating methods and emit events
- */
-methodsToPatch.forEach(function(method) {
- // cache original method
- var original = arrayProto[method];
- def(arrayMethods, method, function mutator() {
- var args = [], len$1 = arguments.length;
- while ( len$1-- ) args[ len$1 ] = arguments[ len$1 ];
-
- var len = this.length;
- // 清除已经失效的 paths
- if (len > 0) {
- switch (method) {
- case 'pop':
- delInvalidPaths(len - 1, this[len - 1], this);
- break;
- case 'shift':
- delInvalidPaths(0, this[0], this);
- break;
- case 'splice':
- case 'sort':
- case 'reverse':
- for (var i = 0; i < this.length; i++) {
- delInvalidPaths(i, this[i], this);
- }
- }
- }
-
- var result = original.apply(this, args);
- var ob = this.__ob__;
- var vm = ob.vm;
-
- // push parent key to dirty, wait to setData
- if (vm.$dirty) {
- if (method === 'push') {
- var lastIndex = ob.value.length - 1;
- vm.$dirty.set(ob.op, lastIndex, ob.value[lastIndex]);
- } else {
- vm.$dirty.set(ob.op, null, ob.value);
- }
- }
-
- // 这里和 vue 不一样,所有变异方法都需要更新 path
- ob.observeArray(ob.key, ob.value);
-
- // notify change
- ob.dep.notify();
- return result;
- });
-});
-
-function delInvalidPaths(key, value, parent) {
- if (isObject(value) && hasOwn(value, '__ob__')) {
- // delete invalid paths
- cleanPaths(key, value.__ob__.op, parent.__ob__.op);
- }
-}
-
-var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
-
-/**
- * By default, when a reactive property is set, the new value is
- * also converted to become reactive. However when passing down props,
- * we don't want to force conversion because the value may be a nested value
- * under a frozen data structure. Converting it would defeat the optimization.
- */
-var observerState = {
- shouldConvert: true
-};
-
-/**
- * Observer class that are attached to each observed
- * object. Once attached, the observer converts target
- * object's property keys into getter/setters that
- * collect dependencies and dispatches updates.
- */
-var Observer = function Observer(ref) {
- var vm = ref.vm;
- var key = ref.key;
- var value = ref.value;
- var parent = ref.parent;
-
- this.value = value;
- this.dep = new Dep();
- this.vmCount = 0;
- this.vm = vm;
- this.op = new ObserverPath(key, this, parent && parent.__ob__ && parent.__ob__.op);
-
- def(value, '__ob__', this);
- if (Array.isArray(value)) {
- var augment = hasProto ? protoAugment : copyAugment;
- augment(value, arrayMethods, arrayKeys);
- this.observeArray(key, value);
- } else {
- this.walk(key, value);
- }
-};
-
-/**
- * Walk through each property and convert them into
- * getter/setters. This method should only be called when
- * value type is Object.
- */
-Observer.prototype.walk = function walk (key, obj) {
- var keys = Object.keys(obj);
- for (var i = 0; i < keys.length; i++) {
- defineReactive({ vm: this.vm, obj: obj, key: keys[i], value: obj[keys[i]], parent: obj });
- //defineReactive(this.vm, obj, keys[i], obj[keys[i]]);
- }
-};
-
-/**
- * Observe a list of Array items.
- */
-Observer.prototype.observeArray = function observeArray (key, items) {
- for (var i = 0, l = items.length; i < l; i++) {
- observe({ vm: this.vm, key: i, value: items[i], parent: items });
- }
-};
-
-/**
- * Check if path exsit in vm
- */
-Observer.prototype.hasPath = function hasPath (path) {
- var value = this.vm;
- var key = '';
- var i = 0;
- while (i < path.length) {
- if (path[i] !== '.' && path[i] !== '[' && path[i] !== ']') {
- key += path[i];
- } else if (key.length !== 0) {
- value = value[key];
- key = '';
- if (!isObject(value)) {
- return false;
- }
- }
- i++;
- }
- return true;
-};
-
-/**
- * Is this path value equal
- */
-Observer.prototype.isPathEq = function isPathEq (path, value) {
- var objValue = this.vm;
- var key = '';
- var i = 0;
- while (i < path.length) {
- if (path[i] !== '.' && path[i] !== '[' && path[i] !== ']') {
- key += path[i];
- } else if (key.length !== 0) {
- objValue = objValue[key];
- key = '';
- if (!isObject(objValue)) {
- return false;
- }
- }
- i++;
- }
- if (key.length !== 0) {
- objValue = objValue[key];
- }
- return value === objValue;
-};
-
-// helpers
-
-/**
- * Augment an target Object or Array by intercepting
- * the prototype chain using __proto__
- */
-function protoAugment(target, src) {
- /* eslint-disable no-proto */
- target.__proto__ = src;
- /* eslint-enable no-proto */
-}
-
-/**
- * Augment an target Object or Array by defining
- * hidden properties.
- */
-/* istanbul ignore next */
-function copyAugment(target, src, keys) {
- for (var i = 0, l = keys.length; i < l; i++) {
- var key = keys[i];
- def(target, key, src[key]);
- }
-}
-
-/**
- * Attempt to create an observer instance for a value,
- * returns the new observer if successfully observed,
- * or the existing observer if the value already has one.
- */
-function observe(ref) {
- var vm = ref.vm;
- var key = ref.key;
- var value = ref.value;
- var parent = ref.parent;
- var root = ref.root;
-
- if (!isObject(value)) {
- return;
- }
- var ob;
- if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
- ob = value.__ob__;
- var op = ob.op;
- addPaths(key, op, parent.__ob__.op);
- } else if (
- observerState.shouldConvert &&
- (Array.isArray(value) || isPlainObject(value)) &&
- Object.isExtensible(value) &&
- !value._isVue
- ) {
- ob = new Observer({ vm: vm, key: key, value: value, parent: parent });
- }
- if (root && ob) {
- ob.vmCount++;
- }
- return ob;
-}
-
-/**
- * Define a reactive property on an Object.
- */
-function defineReactive(ref) {
- var vm = ref.vm;
- var obj = ref.obj;
- var key = ref.key;
- var value = ref.value;
- var parent = ref.parent;
- var customSetter = ref.customSetter;
- var shallow = ref.shallow;
-
- var dep = new Dep();
-
- var property = Object.getOwnPropertyDescriptor(obj, key);
- if (property && property.configurable === false) {
- return;
- }
-
- // cater for pre-defined getter/setters
- var getter = property && property.get;
- if (!getter && arguments.length === 2) {
- value = obj[key];
- }
- var setter = property && property.set;
-
- var childOb = !shallow && observe({ vm: vm, key: key, value: value, parent: obj });
- Object.defineProperty(obj, key, {
- enumerable: true,
- configurable: true,
- get: function reactiveGetter() {
- var val = getter ? getter.call(obj) : value;
- if (Dep.target) {
- dep.depend();
- if (childOb) {
- childOb.dep.depend();
- if (Array.isArray(val)) {
- dependArray(val);
- }
- }
- }
- return val;
- },
- set: function reactiveSetter(newVal) {
- var val = getter ? getter.call(obj) : value;
- /* eslint-disable no-self-compare */
- if (newVal === val || (newVal !== newVal && val !== val)) {
- return;
- }
-
- if (isObject(value) && hasOwn(value, '__ob__')) {
- /**
- * 删掉无效的 paths
- * 注意:即使 path 只有一个也要删掉,因为其子节点可能有多个 path
- */
- cleanPaths(key, value.__ob__.op, parent.__ob__.op);
- }
-
- /* eslint-enable no-self-compare */
- if ("development" !== 'production' && customSetter) {
- customSetter();
- }
- if (setter) {
- setter.call(obj, newVal);
- } else {
- value = newVal;
- }
-
- // Have to set dirty after value assigned, otherwise the dirty key is incrrect.
- if (vm) {
- // push parent key to dirty, wait to setData
- if (vm.$dirty) {
- vm.$dirty.set(obj.__ob__.op, key, newVal);
- }
- }
- childOb = !shallow && observe({ vm: vm, key: key, value: newVal, parent: parent });
- dep.notify();
- }
- });
-}
-
-/**
- * Set a property on an object. Adds the new property and
- * triggers change notification if the property doesn't
- * already exist.
- */
-function set(vm, target, key, val) {
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.length = Math.max(target.length, key);
- target.splice(key, 1, val);
- return val;
- }
-
- if (key in target && !(key in Object.prototype)) {
- target[key] = val;
- return val;
- }
-
- var ob = target.__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- "development" !== 'production' &&
- warn(
- 'Avoid adding reactive properties to a Vue instance or its root $data ' +
- 'at runtime - declare it upfront in the data option.'
- );
- return val;
- }
-
- if (!ob) {
- target[key] = val;
- return val;
- }
-
- if (isObject(target[key]) && hasOwn(target[key], '__ob__')) {
- // delete invalid paths
- cleanPaths(key, target[key].__ob__.op, ob.op);
- }
- defineReactive({ vm: vm, obj: ob.value, key: key, value: val, parent: ob.value });
- if (vm) {
- // push parent key to dirty, wait to setData
- if (vm.$dirty && hasOwn(target, '__ob__')) {
- vm.$dirty.set(target.__ob__.op, key, val);
- }
- }
- ob.dep.notify();
- return val;
-}
-
-/**
- * Delete a property and trigger change if necessary.
- */
-function del(target, key) {
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.splice(key, 1);
- return;
- }
-
- var ob = target.__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- "development" !== 'production' &&
- warn('Avoid deleting properties on a Vue instance or its root $data ' + '- just set it to null.');
- return;
- }
-
- if (!hasOwn(target, key)) {
- return;
- }
-
- // set $dirty
- target[key] = null;
- delete target[key];
- if (!ob) {
- return;
- }
- ob.dep.notify();
-}
-
-/**
- * Collect dependencies on array elements when the array is touched, since
- * we cannot intercept array element access like property getters.
- */
-function dependArray(value) {
- for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
- e = value[i];
- e && e.__ob__ && e.__ob__.dep.depend();
- if (Array.isArray(e)) {
- dependArray(e);
- }
- }
-}
-
-var Base = function Base() {
- this._events = {};
- this._watchers = [];
-};
-
-Base.prototype.$set = function $set (target, key, val) {
- return set(this, target, key, val);
-};
-
-Base.prototype.$delete = function $delete (target, key) {
- return del(target, key);
-};
-
-Base.prototype.$on = function $on (event, fn) {
- var this$1 = this;
-
- if (isArr(event)) {
- event.forEach(function (item) {
- if (isStr(item)) {
- this$1.$on(item, fn);
- } else if (isObj(item)) {
- this$1.$on(item.event, item.fn);
- }
- });
- } else {
- (this._events[event] || (this._events[event] = [])).push(fn);
- }
- return this;
-};
-
-Base.prototype.$once = function $once () {};
-
-Base.prototype.$off = function $off (event, fn) {
- var this$1 = this;
-
- if (!event && !fn) {
- this._events = Object.create(null);
- return this;
- }
-
- if (isArr(event)) {
- event.forEach(function (item) {
- if (isStr(item)) {
- this$1.$off(item, fn);
- } else if (isObj(item)) {
- this$1.$off(item.event, item.fn);
- }
- });
- return this;
- }
- if (!this._events[event]) { return this; }
-
- if (!fn) {
- this._events[event] = null;
- return this;
- }
-
- if (fn) {
- var fns = this._events[event];
- var i = fns.length;
- while (i--) {
- var tmp = fns[i];
- if (tmp === fn || tmp.fn === fn) {
- fns.splice(i, 1);
- break;
- }
- }
- }
- return this;
-};
-
-Base.prototype.$emit = function $emit (event) {
- var this$1 = this;
-
- var vm = this;
- var lowerCaseEvent = event.toLowerCase();
- var fns = this._events[event] || [];
- if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
- // TODO: handler warn
- }
- var args = toArray(arguments, 1);
- fns.forEach(function (fn) {
- try {
- fn.apply(this$1, args);
- } catch (e) {
- handleError(e, vm, ("event handler for \"" + event + "\""));
- }
- });
- return this;
-};
-
-var seenObjects = new _Set();
-
-/**
- * Recursively traverse an object to evoke all converted
- * getters, so that every nested property inside the object
- * is collected as a "deep" dependency.
- */
-function traverse(val) {
- _traverse(val, seenObjects);
- seenObjects.clear();
-}
-
-function _traverse(val, seen) {
- var i, keys;
- var isA = Array.isArray(val);
- if ((!isA && !isObject(val)) || Object.isFrozen(val)) {
- return;
- }
- if (val.__ob__) {
- var depId = val.__ob__.dep.id;
- if (seen.has(depId)) {
- return;
- }
- seen.add(depId);
- }
- if (isA) {
- i = val.length;
- while (i--) { _traverse(val[i], seen); }
- } else {
- keys = Object.keys(val);
- i = keys.length;
- while (i--) { _traverse(val[keys[i]], seen); }
- }
-}
-
-//import { callHook, activateChildComponent } from '../instance/lifecycle';
-
-var MAX_UPDATE_COUNT = 100;
-
-var queue = [];
-var activatedChildren = [];
-var has = {};
-var circular = {};
-var waiting = false;
-var flushing = false;
-var index = 0;
-
-/**
- * Reset the scheduler's state.
- */
-function resetSchedulerState() {
- index = queue.length = activatedChildren.length = 0;
- has = {};
- {
- circular = {};
- }
- waiting = flushing = false;
-}
-
-/**
- * Flush both queues and run the watchers.
- */
-function flushSchedulerQueue(times) {
- if ( times === void 0 ) times = 0;
-
- flushing = true;
- var watcher, id;
-
- // Sort queue before flush.
- // This ensures that:
- // 1. Components are updated from parent to child. (because parent is always
- // created before the child)
- // 2. A component's user watchers are run before its render watcher (because
- // user watchers are created before the render watcher)
- // 3. If a component is destroyed during a parent component's watcher run,
- // its watchers can be skipped.
- times === 0 && queue.sort(function (a, b) { return a.id - b.id; });
-
- // do not cache length because more watchers might be pushed
- // as we run existing watchers
- // there would be mutilple renderWatcher in the queue.
- var renderWatcher = [];
- if (times === 0) {
- index = 0;
- }
- for (; index < queue.length; index++) {
- // if it's renderWatcher, run it in the end
- watcher = queue[index];
- if (watcher && watcher.isRenderWatcher) {
- renderWatcher.push(watcher);
- continue;
- }
- id = watcher.id;
- has[id] = null;
- watcher.run();
- // in dev build, check and stop circular updates.
- // eslint-disable-next-line
- if ("development" !== 'production' && has[id] != null) {
- circular[id] = (circular[id] || 0) + 1;
- if (circular[id] > MAX_UPDATE_COUNT) {
- warn(
- 'You may have an infinite update loop ' +
- (watcher.user ? ("in watcher with expression \"" + (watcher.expression) + "\"") : "in a component render function."),
- watcher.vm
- );
- resetSchedulerState();
- return;
- }
- }
- }
- // Run renderWatcher in the end.
- if (renderWatcher.length) {
- renderWatcher.forEach(function (watcher) {
- has[watcher.id] = null;
- watcher.run();
- });
- }
-
- // It may added new watcher to the queue in render watcher
- var pendingQueue = queue.slice(index);
-
- if (pendingQueue.length) {
- flushSchedulerQueue(times + 1);
- } else {
- // keep copies of post queues before resetting state
- // const activatedQueue = activatedChildren.slice()
- // const updatedQueue = queue.slice()
-
- resetSchedulerState();
-
- // call component updated and activated hooks
- // callActivatedHooks(activatedQueue)
- // callUpdatedHooks(updatedQueue)
-
- // devtool hook
- /* istanbul ignore if */
- /*
- if (devtools && config.devtools) {
- devtools.emit('flush')
- }*/
- }
-}
-
-/*
-function callActivatedHooks(queue) {
- for (let i = 0; i < queue.length; i++) {
- queue[i]._inactive = true;
- activateChildComponent(queue[i], true);
- }
-}
-*/
-
-/**
- * Push a watcher into the watcher queue.
- * Jobs with duplicate IDs will be skipped unless it's
- * pushed when the queue is being flushed.
- */
-function queueWatcher(watcher) {
- var id = watcher.id;
- // eslint-disable-next-line
- if (has[id] == null) {
- has[id] = true;
- if (!flushing) {
- queue.push(watcher);
- } else {
- // if already flushing, splice the watcher based on its id
- // if already past its id, it will be run next immediately.
- var i = queue.length - 1;
- while (i > index && queue[i].id > watcher.id) {
- i--;
- }
- queue.splice(i + 1, 0, watcher);
- }
- // queue the flush
- if (!waiting) {
- waiting = true;
- nextTick(flushSchedulerQueue);
- }
- }
-}
-
-//import { SimpleSet } from '../util/index';
-
-var uid$1 = 0;
-
-/**
- * A watcher parses an expression, collects dependencies,
- * and fires callback when the expression value changes.
- * This is used for both the $watch() api and directives.
- */
-var Watcher = function Watcher(vm, expOrFn, cb, options, isRenderWatcher) {
- this.vm = vm;
- if (isRenderWatcher) {
- vm._watcher = this;
- }
- vm._watchers.push(this);
- // options
- if (options) {
- this.deep = !!options.deep;
- this.user = !!options.user;
- this.computed = !!options.computed;
- this.sync = !!options.sync;
- } else {
- this.deep = this.user = this.computed = this.sync = false;
- }
- this.cb = cb;
- this.id = ++uid$1; // uid for batching
- this.active = true;
- this.dirty = this.computed; // for computed watchers
- this.deps = [];
- this.newDeps = [];
- this.depIds = new _Set();
- this.newDepIds = new _Set();
- this.isRenderWatcher = isRenderWatcher;
- this.expression = expOrFn.toString();
- // parse expression for getter
- if (typeof expOrFn === 'function') {
- this.getter = expOrFn;
- } else {
- this.getter = parsePath(expOrFn);
- if (!this.getter) {
- this.getter = function() {};
- "development" !== 'production' &&
- warn(
- "Failed watching path: \"" + expOrFn + "\" " +
- 'Watcher only accepts simple dot-delimited paths. ' +
- 'For full control, use a function instead.',
- vm
- );
- }
- }
- this.value = this.computed ? undefined : this.get();
-};
-
-/**
- * Evaluate the getter, and re-collect dependencies.
- */
-Watcher.prototype.get = function get () {
- pushTarget(this);
- var value;
- var vm = this.vm;
- try {
- value = this.getter.call(vm, vm);
- } catch (e) {
- if (this.user) {
- handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
- } else {
- throw e;
- }
- } finally {
- // "touch" every property so they are all tracked as
- // dependencies for deep watching
- if (this.deep) {
- traverse(value);
- }
- popTarget();
- if (!this.isRenderWatcher) { this.cleanupDeps(); }
- }
- return value;
-};
-
-/**
- * Add a dependency to this directive.
- */
-Watcher.prototype.addDep = function addDep (dep) {
- var id = dep.id;
- if (!this.newDepIds.has(id)) {
- this.newDepIds.add(id);
- this.newDeps.push(dep);
- if (!this.depIds.has(id)) {
- dep.addSub(this);
- }
- }
-};
-
-/**
- * Clean up for dependency collection.
- */
-Watcher.prototype.cleanupDeps = function cleanupDeps () {
- var i = this.deps.length;
- while (i--) {
- var dep = this.deps[i];
- if (!this.newDepIds.has(dep.id)) {
- dep.removeSub(this);
- }
- }
- var tmp = this.depIds;
- this.depIds = this.newDepIds;
- this.newDepIds = tmp;
- this.newDepIds.clear();
- tmp = this.deps;
- this.deps = this.newDeps;
- this.newDeps = tmp;
- this.newDeps.length = 0;
-};
-
-/**
- * Subscriber interface.
- * Will be called when a dependency changes.
- */
-Watcher.prototype.update = function update () {
- /* istanbul ignore else */
- if (this.computed) {
- this.dirty = true;
- } else if (this.sync) {
- this.run();
- } else {
- queueWatcher(this);
- }
-};
-
-/**
- * Scheduler job interface.
- * Will be called by the scheduler.
- */
-Watcher.prototype.run = function run () {
- if (this.active) {
- var value = this.get();
- if (
- value !== this.value ||
- // Deep watchers and watchers on Object/Arrays should fire even
- // when the value is the same, because the value may
- // have mutated.
- isObject(value) ||
- this.deep
- ) {
- // set new value
- var oldValue = this.value;
- this.value = value;
- if (this.user) {
- try {
- this.cb.call(this.vm, value, oldValue);
- } catch (e) {
- handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
- }
- } else {
- this.cb.call(this.vm, value, oldValue);
- }
- }
- }
-};
-
-/**
- * Evaluate the value of the watcher.
- * This only gets called for computed watchers.
- */
-Watcher.prototype.evaluate = function evaluate () {
- this.value = this.get();
- if (this.vm.$dirty) {
- var keyVal =
- this._computedWatchers && this._computedWatchers[this.key]
- ? this.vm._computedWatchers[this.key].value
- : this.value;
- this.vm.$dirty.push(this.key, this.key, keyVal, this.value);
- }
- this.dirty = false;
- return this.value;
-};
-
-/**
- * Depend on all deps collected by this watcher.
- */
-Watcher.prototype.depend = function depend () {
- if (Dep.target) {
- var i = this.deps.length;
- while (i--) {
- this.deps[i].depend();
- }
- }
-};
-
-/**
- * Remove self from all dependencies' subscriber list.
- */
-Watcher.prototype.teardown = function teardown () {
- if (this.active) {
- // remove self from vm's watcher list
- // this is a somewhat expensive operation so we skip it
- // if the vm is being destroyed.
- if (!this.vm._isBeingDestroyed) {
- remove(this.vm._watchers, this);
- }
- var i = this.deps.length;
- while (i--) {
- this.deps[i].removeSub(this);
- }
- this.active = false;
- }
-};
-
-var WepyComponent = /*@__PURE__*/(function (Base$$1) {
- function WepyComponent () {
- Base$$1.apply(this, arguments);
- }
-
- if ( Base$$1 ) WepyComponent.__proto__ = Base$$1;
- WepyComponent.prototype = Object.create( Base$$1 && Base$$1.prototype );
- WepyComponent.prototype.constructor = WepyComponent;
-
- WepyComponent.prototype.$watch = function $watch (expOrFn, cb, options) {
- var this$1 = this;
-
- var vm = this;
- if (isArr(cb)) {
- cb.forEach(function (handler) {
- this$1.$watch(expOrFn, handler, options);
- });
- }
- if (isPlainObject(cb)) {
- var handler = cb;
- options = handler;
- handler = handler.handler;
- if (typeof handler === 'string') { handler = this[handler]; }
- return this.$watch(expOrFn, handler, options);
- }
-
- options = options || {};
- options.user = true;
- var watcher = new Watcher(vm, expOrFn, cb, options);
- if (options.immediate) {
- cb.call(vm, watcher.value);
- }
- return function unwatchFn() {
- watcher.teardown();
- };
- };
-
- WepyComponent.prototype.$forceUpdate = function $forceUpdate () {
- if (this._watcher) {
- this._watcher.update();
- }
- };
-
- WepyComponent.prototype.$emit = function $emit (event) {
- var args = [], len = arguments.length - 1;
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
-
- var fns = this._events[event];
-
- if (fns) {
- Base$$1.prototype.$emit.apply(this, arguments);
- } else {
- this.$wx.triggerEvent(event, { arguments: args });
- }
-
- return this;
- };
-
- WepyComponent.prototype.$trigger = function $trigger (event, data, option) {
- this.$wx.triggerEvent(event, { arguments: [data] }, option);
- };
-
- return WepyComponent;
-}(Base));
-
-WepyComponent.prototype.$nextTick = renderNextTick;
-
-var sharedPropertyDefinition = {
- enumerable: true,
- configurable: true,
- get: noop,
- set: noop
-};
-
-function proxy(target, sourceKey, key) {
- sharedPropertyDefinition.get = function proxyGetter() {
- return this[sourceKey][key];
- };
- sharedPropertyDefinition.set = function proxySetter(val) {
- this[sourceKey][key] = val;
- };
- Object.defineProperty(target, key, sharedPropertyDefinition);
-}
-
-/*
- * patch data option
- */
-function patchData(output, data) {
- if (!data) {
- data = {};
- }
- output.data = data;
-}
-
-/*
- * init data
- */
-function initData(vm, data) {
- if (!data) {
- data = {};
- }
- var _data;
- if (typeof data === 'function') {
- _data = data.call(vm);
- } else {
- _data = clone(data);
- }
- vm._data = _data;
- Object.keys(_data).forEach(function (key) {
- proxy(vm, '_data', key);
- });
-
- observe({
- vm: vm,
- key: '',
- value: _data,
- parent: '',
- root: true
- });
- //observe(vm, _data, null, true);
-}
-
-function initWatch(vm, watch) {
- if (watch) {
- Object.keys(watch).forEach(function (key) {
- vm.$watch(key, watch[key]);
- });
- }
-}
-
-function createComputedGetter(key) {
- return function computedGetter() {
- var watcher = this._computedWatchers && this._computedWatchers[key];
- if (watcher) {
- watcher.key = key;
- if (watcher.dirty) {
- watcher.evaluate();
- }
- if (Dep.target) {
- watcher.depend();
- }
- return watcher.value;
- }
- };
-}
-
-/*
- * init computed
- */
-function initComputed(vm, computed) {
- if (!computed) {
- return;
- }
- var watchers = (vm._computedWatchers = Object.create(null));
- var computedWatcherOptions = { computed: true };
-
- Object.keys(computed).forEach(function (key) {
- var def = computed[key];
- var getter = typeof def === 'object' ? def.get : def;
-
- if (!getter || typeof getter !== 'function') {
- // eslint-disable-next-line
- console.error(("Getter is missing for computed property \"" + key + "\""));
- }
-
- // push to dirty after dep called.
- watchers[key] = new Watcher(
- vm,
- getter || function() {},
- function() {
- // evaluate will set dirty
- // vm.$dirty.push(key, key, newv);
- },
- computedWatcherOptions
- );
-
- if (typeof def === 'function') {
- sharedPropertyDefinition.get = createComputedGetter(key);
- sharedPropertyDefinition.set = function() {};
- } else {
- sharedPropertyDefinition.get = def.cache !== false ? createComputedGetter(key) : def.get;
- sharedPropertyDefinition.set = def.set;
- }
-
- Object.defineProperty(vm, key, sharedPropertyDefinition);
- });
-}
-
-var WepyConstructor = /*@__PURE__*/(function (WepyComponent$$1) {
- function WepyConstructor(opt) {
- if ( opt === void 0 ) opt = {};
-
- WepyComponent$$1.call(this);
- var vm = new WepyComponent$$1();
-
- // Only need data and watchers for a empty WepyComponent
- if (opt.data) {
- initData(vm, opt.data);
- }
- initWatch(vm);
-
- initComputed(vm, opt.computed);
- return vm;
- }
-
- if ( WepyComponent$$1 ) WepyConstructor.__proto__ = WepyComponent$$1;
- WepyConstructor.prototype = Object.create( WepyComponent$$1 && WepyComponent$$1.prototype );
- WepyConstructor.prototype.constructor = WepyConstructor;
-
- return WepyConstructor;
-}(WepyComponent));
-
-var $global = Object.create(null);
-
-function use(plugin) {
- var args = [], len = arguments.length - 1;
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
-
- if (plugin.installed) {
- return this;
- }
-
- var install = plugin.install || plugin;
-
- if (isFunc(install)) {
- install.apply(plugin, [this].concat(args));
- }
-
- plugin.installed = 1;
-}
-
-function mixin(options) {
- if ( options === void 0 ) options = {};
-
- $global.mixin = ($global.mixin || []).concat(options);
-}
-
-var WepyApp = /*@__PURE__*/(function (Base$$1) {
- function WepyApp() {
- Base$$1.call(this);
- }
-
- if ( Base$$1 ) WepyApp.__proto__ = Base$$1;
- WepyApp.prototype = Object.create( Base$$1 && Base$$1.prototype );
- WepyApp.prototype.constructor = WepyApp;
-
- return WepyApp;
-}(Base));
-
-var WepyPage = /*@__PURE__*/(function (WepyComponent$$1) {
- function WepyPage () {
- WepyComponent$$1.apply(this, arguments);
- }
-
- if ( WepyComponent$$1 ) WepyPage.__proto__ = WepyComponent$$1;
- WepyPage.prototype = Object.create( WepyComponent$$1 && WepyComponent$$1.prototype );
- WepyPage.prototype.constructor = WepyPage;
-
- WepyPage.prototype.$launch = function $launch (url, params) {
- this.$route('reLaunch', url, params);
- };
- WepyPage.prototype.$navigate = function $navigate (url, params) {
- this.$route('navigate', url, params);
- };
-
- WepyPage.prototype.$redirect = function $redirect (url, params) {
- this.$route('redirect', url, params);
- };
-
- WepyPage.prototype.$back = function $back (p) {
- if ( p === void 0 ) p = {};
-
- if (isNum(p)) { p = { delta: p }; }
-
- if (!p.delta) { p.delta = 1; }
-
- return wx.navigateBack(p);
- };
-
- WepyPage.prototype.$route = function $route (type, url, params) {
- if ( params === void 0 ) params = {};
-
- var wxparams;
- if (isStr(url)) {
- var paramsList = [];
- if (isObj(params)) {
- for (var k in params) {
- if (!isUndef(params[k])) {
- paramsList.push((k + "=" + (encodeURIComponent(params[k]))));
- }
- }
- }
- if (paramsList.length) { url = url + '?' + paramsList.join('&'); }
-
- wxparams = { url: url };
- } else {
- wxparams = url;
- }
- var fn = wx[type] || wx[type + 'To'];
- if (isFunc(fn)) {
- return fn(wxparams);
- }
- };
-
- return WepyPage;
-}(WepyComponent));
-
-function callUserHook(vm, hookName, arg) {
- var pageHook = vm.hooks ? vm.hooks[hookName] : null;
- var appHook = vm.$app && vm.$app.hooks ? vm.$app.hooks[hookName] : null;
-
- if (!vm.$app) {
- warn('$app is not initialized in this Component', vm);
- }
-
- var result = arg;
-
- // First run page hook, and then run app hook
- // Pass page hook result to app hook
- // If return undefined, then return default argument
- [pageHook, appHook].forEach(function (fn) {
- if (isFunc(fn)) {
- result = fn.call(vm, result);
- if (isUndef(result)) {
- result = arg;
- }
- }
- });
-
- return result;
-}
-
-function initHooks(vm, hooks) {
- if ( hooks === void 0 ) hooks = {};
-
- vm.hooks = hooks;
-}
-
-var AllowedTypes = [String, Number, Boolean, Object, Array, null];
-
-var observerFn = function() {
- return function(newVal, oldVal, changedPaths) {
- var vm = this.$wepy;
-
- // changedPaths 长度大于 1,说明是由内部赋值改变的 prop
- if (changedPaths.length > 1) {
- return;
- }
- var _data = newVal;
- if (typeof _data === 'function') {
- _data = _data.call(vm);
- }
- vm[changedPaths[0]] = _data;
- };
-};
-/*
- * patch props option
- */
-function patchProps(output, props) {
- var newProps = {};
- if (isStr(props)) {
- newProps = [props];
- }
- if (isArr(props)) {
- props.forEach(function (prop) {
- newProps[prop] = {
- type: null,
- observer: observerFn(output, props, prop)
- };
- });
- } else if (isObj(props)) {
- for (var k in props) {
- var prop = props[k];
- var newProp = {};
-
- // props.type
- if (isUndef(prop.type)) {
- newProp.type = null;
- } else if (isArr(prop.type)) {
- newProp.type = null;
- // eslint-disable-next-line
- console.warn(("In mini-app, mutiple type is not allowed. The type of \"" + k + "\" will changed to \"null\""));
- } else if (AllowedTypes.indexOf(prop.type) === -1) {
- newProp.type = null;
- // eslint-disable-next-line
- console.warn(
- ("Type property of props \"" + k + "\" is invalid. Only String/Number/Boolean/Object/Array/null is allowed in weapp Component")
- );
- } else {
- newProp.type = prop.type;
- }
-
- // props.default
- if (!isUndef(prop.default)) {
- if (isFunc(prop.default)) {
- newProp.value = prop.default.call(output);
- } else {
- newProp.value = prop.default;
- }
- }
- // TODO
- // props.validator
- // props.required
-
- newProp.observer = observerFn(output, props, prop);
-
- newProps[k] = newProp;
- }
- }
-
- // eslint-disable-next-line
- Object.keys(newProps).forEach(function (prop) {});
-
- output.properties = newProps;
-}
-
-/*
- * init props
- */
-function initProps(vm, properties) {
- vm._props = {};
-
- if (!properties) {
- return;
- }
-
- Object.keys(properties).forEach(function (key) {
- vm._props[key] = properties[key].value;
- proxy(vm, '_props', key);
- });
-
- observe({
- vm: vm,
- key: '',
- value: vm._props,
- root: true
- });
-}
-
-function initRender(vm, keys, computedKeys) {
- vm._init = false;
- var dirtyFromAttach = null;
- return new Watcher(
- vm,
- function() {
- if (!vm._init) {
- keys.forEach(function (key) { return clone(vm[key]); });
- }
-
- if (vm.$dirty.length() || dirtyFromAttach) {
- var keys$1 = vm.$dirty.get('key');
- computedKeys.forEach(function (key) { return vm[key]; });
- var dirty = vm.$dirty.pop();
-
- // TODO: reset subs
- Object.keys(keys$1).forEach(function (key) { return clone(vm[key]); });
-
- if (vm._init) {
- dirty = callUserHook(vm, 'before-setData', dirty);
- }
-
- // vm._fromSelf = true;
- if (dirty || dirtyFromAttach) {
- // init render is in lifecycle, setData in lifecycle will not work, so cacheData is needed.
- if (!vm._init) {
- if (dirtyFromAttach === null) {
- dirtyFromAttach = {};
- }
- Object.assign(dirtyFromAttach, dirty);
- } else if (dirtyFromAttach) {
- // setData in attached
- vm.$wx.setData(Object.assign(dirtyFromAttach, dirty || {}), renderFlushCallbacks);
- dirtyFromAttach = null;
- } else {
- vm.$wx.setData(dirty, renderFlushCallbacks);
- }
- }
- }
- vm._init = true;
- },
- function() {},
- null,
- true
- );
-}
-
-var Event = function Event(e) {
- var detail = e.detail;
- var target = e.target;
- var currentTarget = e.currentTarget;
- this.$wx = e;
- this.type = e.type;
- this.timeStamp = e.timeStamp;
- if (detail) {
- this.x = detail.x;
- this.y = detail.y;
- }
-
- this.target = target;
- this.currentTarget = currentTarget;
- this.touches = e.touches;
- this.changedTouches = e.changedTouches;
-};
-
-/**
- * Transform wxml data-xx params to an array
- */
-function transformParams(dataset, type, hasModel) {
- if ( hasModel === void 0 ) hasModel = false;
-
- var i = 0;
- var params = [];
- var modelParams = [];
-
- var noParams = false;
- var noModelParams = !hasModel;
-
- var camelizedType = camelize(type);
- while (i++ < 26 && (!noParams || !noModelParams)) {
- var alpha = String.fromCharCode(64 + i);
- if (!noParams) {
- var key = 'wpy' + camelizedType + alpha;
- if (!(key in dataset)) {
- // it can be undefined;
- noParams = true;
- } else {
- params.push(dataset[key]);
- }
- }
- if (!noModelParams && hasModel) {
- var modelKey = 'model' + alpha;
- if (!(modelKey in dataset)) {
- noModelParams = true;
- } else {
- modelParams.push(dataset[modelKey]);
- }
- }
- }
-
- return {
- handler: params,
- model: modelParams
- };
-}
-
-var dispatcher = function(e) {
- var vm = this.$wepy;
- var type = e.type;
- // touchstart do not have currentTarget
- var dataset = (e.currentTarget || e.target).dataset || {};
- var evtid = dataset.wpyEvt;
- var modelId = dataset.modelId;
- var rel = vm.$rel || {};
- var handler = rel.handlers && rel.handlers[evtid] && rel.handlers[evtid][type];
- var model = rel.models && rel.models[modelId];
-
- if (!handler && !model) {
- return;
- }
-
- var params = transformParams(dataset, type, !!model);
-
- // Call model method
- if (model && type === model.type && isFunc(model.handler)) {
- model.handler.call(vm, e.detail.value, params.model);
- }
-
- // Call handler method
- if (isFunc(handler)) {
- var $event = new Event(e);
- var paramsWithEvent = params.handler.concat($event);
- var args = (e.detail && e.detail.arguments) || [];
-
- var hookRes = callUserHook(vm, 'before-event', {
- event: $event,
- params: paramsWithEvent,
- args: args
- });
-
- if (hookRes === false) {
- // Event cancelled.
- return;
- }
- return handler.apply(vm, paramsWithEvent);
- } else if (!model) {
- throw new Error('Unrecognized event');
- }
-};
-
-/*
- * initialize page methods, also the app
- */
-function initMethods(vm, methods) {
- if (methods) {
- Object.keys(methods).forEach(function (method) {
- vm[method] = methods[method];
- });
- }
-}
-
-/*
- * patch method option
- */
-function patchMethods(output, methods) {
- output.methods = {};
- var target = output.methods;
-
- target.__initComponent = function(e) {
- var child = e.detail;
- var ref$1 = e.target.dataset;
- var ref = ref$1.ref;
- var wpyEvt = ref$1.wpyEvt;
- var vm = this.$wepy;
- vm.$children.push(child);
- if (ref) {
- if (vm.$refs[ref]) {
- warn('duplicate ref "' + ref + '" will be covered by the last instance.\n', vm);
- }
- vm.$refs[ref] = child;
- }
- child.$evtId = wpyEvt;
- child.$parent = vm;
- child.$app = vm.$app;
- child.$root = vm.$root;
- return vm;
- };
- target.__dispatcher = dispatcher;
-
- // TODO: perf
- // Only orginal component method goes to target. no need to add all methods.
- if (methods) {
- Object.keys(methods).forEach(function (method) {
- target[method] = methods[method];
- });
- }
-}
-
-var Dirty = function Dirty(type) {
- this.reset();
-
- // path||key
- this.type = type || 'path';
-};
-
-Dirty.prototype.push = function push (key, path, keyValue, pathValue) {
- if (pathValue === undefined) {
- return;
- }
- this._keys[key] = keyValue;
- this._path[path] = pathValue;
- this._length++;
-};
-
-Dirty.prototype.pop = function pop () {
- var data = Object.create(null);
- if (this.type === 'path') {
- data = this._path;
- } else if (this.type === 'key') {
- data = this._keys;
- }
- this.reset();
- return data;
-};
-
-Dirty.prototype.get = function get (type) {
- return type === 'path' ? this._path : this._keys;
-};
-
-/**
- * Set dirty from a ObserverPath
- */
-Dirty.prototype.set = function set (op, key, value) {
- var pathMap;
- var pathKeys;
- // eslint-disable-next-line eqeqeq
- if (key != null) {
- var ref = getPathMap(key, op.pathKeys, op.pathMap);
- var combinePathKeys = ref.combinePathKeys;
- var combinePathMap = ref.combinePathMap;
- pathKeys = combinePathKeys;
- pathMap = combinePathMap;
- } else {
- pathKeys = op.pathKeys;
- pathMap = op.pathMap;
- }
- /**
- * 出于性能考虑,使用 usingComponents 时, setData 内容不会被直接深复制,
- * 即 this.setData({ field: obj }) 后 this.data.field === obj 。
- * 因此不需要所有 path 都 setData 。
- */
- var ref$1 = pathMap[pathKeys[0]];
- var root = ref$1.root;
- var path = ref$1.path;
- this.push(root, path, root === path ? value : op.ob.vm[root], value);
-};
-
-Dirty.prototype.reset = function reset () {
- this._keys = {};
- this._path = {};
- this._length = 0;
- return this;
-};
-
-Dirty.prototype.length = function length () {
- return this._length;
-};
-
-var comid = 0;
-var app;
-
-var callUserMethod = function(vm, userOpt, method, args) {
- var result;
- var methods = userOpt[method];
- if (isFunc(methods)) {
- result = userOpt[method].apply(vm, args);
- } else if (isArr(methods)) {
- for (var i in methods) {
- if (isFunc(methods[i])) {
- result = methods[i].apply(vm, args);
- }
- }
- }
- return result;
-};
-
-var getLifeCycle = function (defaultLifecycle, rel, type) {
- var lifecycle = defaultLifecycle.concat([]);
- if (rel && rel.lifecycle && rel.lifecycle[type]) {
- var userDefinedLifecycle = [];
- if (isFunc(rel.lifecycle[type])) {
- userDefinedLifecycle = rel.lifecycle[type].call(null, lifecycle);
- }
- userDefinedLifecycle.forEach(function (u) {
- if (lifecycle.indexOf(u) > -1) {
- warn(("'" + u + "' is already implemented in current version, please remove it from your lifecycel config"));
- } else {
- lifecycle.push(u);
- }
- });
- }
- return lifecycle;
-};
-
-/*
- * patch app lifecyle
- */
-function patchAppLifecycle(appConfig, options, rel) {
- if ( rel === void 0 ) rel = {};
-
- appConfig.onLaunch = function() {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- var vm = new WepyApp();
- app = vm;
- vm.$options = options;
- vm.$route = {};
- vm.$rel = rel;
-
- vm.$wx = this;
- this.$wepy = vm;
-
- initHooks(vm, options.hooks);
-
- initMethods(vm, options.methods);
-
- return callUserMethod(vm, vm.$options, 'onLaunch', args);
- };
-
- var lifecycle = getLifeCycle(WEAPP_APP_LIFECYCLE, rel, 'app');
-
- lifecycle.forEach(function (k) {
- // it's not defined aready && user defined it && it's an array or function
- if (!appConfig[k] && options[k] && (isFunc(options[k]) || isArr(options[k]))) {
- appConfig[k] = function() {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- return callUserMethod(app, app.$options, k, args);
- };
- }
- });
-}
-
-function patchLifecycle(output, options, rel, isComponent) {
- var initClass = isComponent ? WepyComponent : WepyPage;
- var initLifecycle = function() {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- var vm = new initClass();
-
- vm.$dirty = new Dirty('path');
- vm.$children = [];
- vm.$refs = {};
-
- this.$wepy = vm;
- vm.$wx = this;
- vm.$is = this.is;
- vm.$options = options;
- vm.$rel = rel;
- vm._watchers = [];
- if (!isComponent) {
- vm.$root = vm;
- }
- if (app) {
- vm.$app = app;
- }
- if (this.is === 'custom-tab-bar/index') {
- vm.$app = app;
- vm.$parent = app;
- }
-
- vm.$id = ++comid + (isComponent ? '.1' : '.0');
-
- callUserMethod(vm, vm.$options, 'beforeCreate', args);
-
- initHooks(vm, options.hooks);
-
- initProps(vm, output.properties);
-
- initData(vm, output.data, isComponent);
-
- initMethods(vm, options.methods);
-
- initComputed(vm, options.computed, true);
-
- initWatch(vm, options.watch);
-
- // create render watcher
- initRender(
- vm,
- Object.keys(vm._data)
- .concat(Object.keys(vm._props))
- .concat(Object.keys(vm._computedWatchers || {})),
- Object.keys(vm._computedWatchers || {})
- );
-
- return callUserMethod(vm, vm.$options, 'created', args);
- };
-
- output.created = initLifecycle;
- if (isComponent) {
- output.attached = function() {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- // Component attached
- var outProps = output.properties || {};
- // this.propperties are includes datas
- var acceptProps = this.properties;
- var vm = this.$wepy;
-
- this.triggerEvent('_init', vm);
-
- // created 不能调用 setData,如果有 dirty 在此更新
- vm.$forceUpdate();
-
- Object.keys(outProps).forEach(function (k) { return (vm[k] = acceptProps[k]); });
-
- return callUserMethod(vm, vm.$options, 'attached', args);
- };
- } else {
- output.attached = function() {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- // Page attached
- var vm = this.$wepy;
- var app = vm.$app;
- // eslint-disable-next-line
- var pages = getCurrentPages();
- var currentPage = pages[pages.length - 1];
- var path = currentPage.__route__;
- var webViewId = currentPage.__wxWebviewId__;
-
- var refs = rel.refs || [];
- var query = wx.createSelectorQuery();
-
- refs.forEach(function (item) {
- // {
- // id: { name: 'hello', bind: true },
- // ref: { name: 'value', bind: false }
- // }
- var idAttr = item.id;
- var refAttr = item.ref;
- var actualAttrIdName = idAttr.name;
- var actualAttrRefName = refAttr.name;
- var selector = "#" + actualAttrIdName;
-
- if (idAttr.bind) {
- // if id is a bind attr
- actualAttrIdName = vm[idAttr.name];
- selector = "#" + actualAttrIdName;
- vm.$watch(idAttr.name, function(newAttrName) {
- actualAttrIdName = newAttrName;
- selector = "#" + actualAttrIdName;
- vm.$refs[actualAttrRefName] = query.select(selector);
- });
- }
-
- if (refAttr.bind) {
- // if ref is a bind attr
- actualAttrRefName = vm[refAttr.name];
-
- vm.$watch(refAttr.name, function(newAttrName, oldAttrName) {
- actualAttrRefName = newAttrName;
- vm.$refs[oldAttrName] = null;
- vm.$refs[newAttrName] = query.select(selector);
- });
- }
- vm.$refs[actualAttrRefName] = query.select(selector);
- });
-
- // created 不能调用 setData,如果有 dirty 在此更新
- vm.$forceUpdate();
-
- if (app.$route.path !== path) {
- app.$route.path = path;
- app.$route.webViewId = webViewId;
- vm.routed && vm.routed();
- }
-
- // TODO: page attached
- return callUserMethod(vm, vm.$options, 'attached', args);
- };
- // Page lifecycle will be called under methods
- // e.g:
- // Component({
- // methods: {
- // onLoad () {
- // console.log('page onload')
- // }
- // }
- // })
-
- var lifecycle$1 = getLifeCycle(WEAPP_PAGE_LIFECYCLE, rel, 'page');
-
- lifecycle$1.forEach(function (k) {
- if (!output[k] && options[k] && (isFunc(options[k]) || isArr(options[k]))) {
- output.methods[k] = function() {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- return callUserMethod(this.$wepy, this.$wepy.$options, k, args);
- };
- }
- });
- }
- var lifecycle = getLifeCycle(WEAPP_COMPONENT_LIFECYCLE, rel, 'component');
-
- lifecycle.forEach(function (k) {
- // beforeCreate is not a real lifecycle
- if (!output[k] && k !== 'beforeCreate' && (isFunc(options[k]) || isArr(options[k]))) {
- output[k] = function() {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
-
- return callUserMethod(this.$wepy, this.$wepy.$options, k, args);
- };
- }
- });
-}
-
-var config$1 = {
- optionMergeStrategies: {},
- constants: {
- WEAPP_LIFECYCLE: WEAPP_LIFECYCLE,
- WEAPP_APP_LIFECYCLE: WEAPP_APP_LIFECYCLE,
- WEAPP_PAGE_LIFECYCLE: WEAPP_PAGE_LIFECYCLE,
- WEAPP_COMPONENT_LIFECYCLE: WEAPP_COMPONENT_LIFECYCLE
- }
-};
-
-// [Default Strategy]
-// Update if it's not exist in output. Can be replaced by option[key].
-// e.g.
-// export default {
-// myCustomMethod () {
-// // doSomething
-// }
-// }
-//
-// [Merge Strategy]
-// Replaced by the latest mixins property.
-// e.g.
-// export default {
-// data: {
-// a: 1
-// }
-// }
-//
-// [Lifecycle Strategy]
-// Extend lifecycle. update lifecycle to an array.
-// e.g.
-// export default {
-// onShow: {
-// console.log('onShow');
-// }
-// }
-var globalMixinPatched = false;
-
-var strats = null;
-
-function getStrategy(key) {
- if (!strats) {
- initStrats();
- }
- if (strats[key]) {
- return strats[key];
- } else {
- return defaultStrat;
- }
-}
-function defaultStrat(output, option, key, data) {
- if (!output[key]) {
- output[key] = data;
- }
-}
-
-function simpleMerge(parentVal, childVal) {
- return !parentVal || !childVal ? parentVal || childVal : Object.assign({}, parentVal, childVal);
-}
-
-function initStrats() {
- if (strats) { return strats; }
-
- strats = config$1.optionMergeStrategies;
-
- strats.data = strats.props = strats.methods = strats.computed = strats.watch = strats.hooks = function mergeStrategy(
- output,
- option,
- key,
- data
- ) {
- option[key] = simpleMerge(option[key], data);
- };
-
- WEAPP_LIFECYCLE.forEach(function (lifecycle) {
- if (!strats[lifecycle]) {
- strats[lifecycle] = function lifeCycleStrategy(output, option, key, data) {
- if (!option[key]) {
- option[key] = isArr(data) ? data : [data];
- } else {
- option[key] = [data].concat(option[key]);
- }
- };
- }
- });
-}
-
-function patchMixins(output, option, mixins) {
- if (!mixins && !$global.mixin) {
- return;
- }
-
- if (!globalMixinPatched) {
- var globalMixin = $global.mixin || [];
-
- mixins = globalMixin.concat(mixins);
- globalMixinPatched = true;
- }
-
- if (isArr(mixins)) {
- mixins.forEach(function (mixin) { return patchMixins(output, option, mixin); });
- globalMixinPatched = false;
- } else {
- if (!strats) {
- initStrats();
- }
- for (var k in mixins) {
- strat = getStrategy(k);
- var strat = strats[k] || defaultStrat;
- strat(output, option, k, mixins[k]);
- }
- }
-}
-
-function patchRelations(output, relations) {
- if (!relations) {
- relations = {};
- }
- output.relations = relations;
-}
-
-function app$1(option, rel) {
- var appConfig = {};
-
- patchMixins(appConfig, option, option.mixins);
- patchAppLifecycle(appConfig, option, rel);
-
- return App(appConfig);
-}
-
-function component(opt, rel) {
- if ( opt === void 0 ) opt = {};
-
- var compConfig = {
- externalClasses: opt.externalClasses || [],
- // support component options property
- // example: options: {addGlobalClass:true}
- options: opt.options || {}
- };
-
- patchMixins(compConfig, opt, opt.mixins);
-
- if (opt.properties) {
- compConfig.properties = opt.properties;
- if (opt.props) {
- // eslint-disable-next-line no-console
- console.warn("props will be ignore, if properties is set");
- }
- } else if (opt.props) {
- patchProps(compConfig, opt.props);
- }
-
- patchMethods(compConfig, opt.methods, true);
-
- patchData(compConfig, opt.data, true);
-
- patchRelations(compConfig, opt.relations);
-
- patchLifecycle(compConfig, opt, rel, true);
-
- return Component(compConfig);
-}
-
-function page(opt, rel) {
- if ( opt === void 0 ) opt = {};
-
- var pageConfig = {
- externalClasses: opt.externalClasses || [],
- // support component options property
- // example: options: {addGlobalClass:true}
- options: opt.options || {}
- };
-
- patchMixins(pageConfig, opt, opt.mixins);
-
- if (opt.properties) {
- pageConfig.properties = opt.properties;
- if (opt.props) {
- // eslint-disable-next-line
- console.warn("props will be ignore, if properties is set");
- }
- } else if (opt.props) {
- patchProps(pageConfig, opt.props);
- }
-
- patchMethods(pageConfig, opt.methods);
-
- patchData(pageConfig, opt.data);
-
- patchLifecycle(pageConfig, opt, rel);
-
- return Component(pageConfig);
-}
-
-function initGlobalAPI(wepy) {
- wepy.use = use;
- wepy.mixin = mixin;
-
- wepy.set = function(target, key, val) {
- set.apply(wepy, [undefined, target, key, val]);
- };
-
- wepy.delete = del;
-
- wepy.observe = observe;
-
- wepy.nextTick = renderNextTick;
-
- wepy.app = app$1;
- wepy.page = page;
- wepy.component = component;
-
- return wepy;
-}
-
-var wepy = initGlobalAPI(WepyConstructor);
-
-wepy.config = config$1;
-wepy.global = $global;
-wepy.version = "2.0.0-alpha.16";
-
-module.exports = wepy;
-
-},/***** module 0 end *****/
-
-
-/***** module 1 start *****/
-/***** /Users/tottimctj/Project/Xiao4r/hope_wine/node_modules/_vuex@3.6.0@vuex/dist/vuex.common.js *****/
-function(module, exports, __wepy_require) {/*!
- * vuex v3.6.0
- * (c) 2020 Evan You
- * @license MIT
- */
-'use strict';
-
-function applyMixin (Vue) {
- var version = Number(Vue.version.split('.')[0]);
-
- if (version >= 2) {
- Vue.mixin({ beforeCreate: vuexInit });
- } else {
- // override init and inject vuex init procedure
- // for 1.x backwards compatibility.
- var _init = Vue.prototype._init;
- Vue.prototype._init = function (options) {
- if ( options === void 0 ) options = {};
-
- options.init = options.init
- ? [vuexInit].concat(options.init)
- : vuexInit;
- _init.call(this, options);
- };
- }
-
- /**
- * Vuex init hook, injected into each instances init hooks list.
- */
-
- function vuexInit () {
- var options = this.$options;
- // store injection
- if (options.store) {
- this.$store = typeof options.store === 'function'
- ? options.store()
- : options.store;
- } else if (options.parent && options.parent.$store) {
- this.$store = options.parent.$store;
- }
- }
-}
-
-var target = typeof window !== 'undefined'
- ? window
- : typeof global !== 'undefined'
- ? global
- : {};
-var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
-
-function devtoolPlugin (store) {
- if (!devtoolHook) { return }
-
- store._devtoolHook = devtoolHook;
-
- devtoolHook.emit('vuex:init', store);
-
- devtoolHook.on('vuex:travel-to-state', function (targetState) {
- store.replaceState(targetState);
- });
-
- store.subscribe(function (mutation, state) {
- devtoolHook.emit('vuex:mutation', mutation, state);
- }, { prepend: true });
-
- store.subscribeAction(function (action, state) {
- devtoolHook.emit('vuex:action', action, state);
- }, { prepend: true });
-}
-
-/**
- * Get the first item that pass the test
- * by second argument function
- *
- * @param {Array} list
- * @param {Function} f
- * @return {*}
- */
-function find (list, f) {
- return list.filter(f)[0]
-}
-
-/**
- * Deep copy the given object considering circular structure.
- * This function caches all nested objects and its copies.
- * If it detects circular structure, use cached copy to avoid infinite loop.
- *
- * @param {*} obj
- * @param {Array