mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 01:48:47 +08:00
忽略文件
This commit is contained in:
parent
09ab5ee17a
commit
e323b2d970
@ -24,7 +24,7 @@
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"appid": "wx76ec015fc31a1946",
|
||||
"projectname": "hope_wine",
|
||||
"projectname": "mini-app",
|
||||
"miniprogramRoot": "weapp/",
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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 });
|
||||
@ -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"
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
|
||||
<view style="padding: 10px;">
|
||||
|
||||
<van-row>
|
||||
<van-col span="8">
|
||||
<van-image src></van-image>
|
||||
</van-col>
|
||||
<van-col span="8">span: 8</van-col>
|
||||
</van-row>
|
||||
|
||||
<van-panel wx:for="{{ list }}" wx:for-index="index" wx:for-item="item" wx:key="index" key="{{ index }}" title="{{ item.user }}" desc="三星客户" status=" " use-footer-slot>
|
||||
<view style="display: flex;font-size: 14px;">{{item.context}}</view>
|
||||
|
||||
<van-grid column-num="3" border="{{ false }}">
|
||||
<van-grid-item use-slot wx:for="{{ 3 }}" wx:for-item="index">
|
||||
<image src="https://img.yzcdn.cn/vant/apple-{{ index + 1 }}.jpg" style="width: 100%; height: 90px;"></image>
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
|
||||
<van-divider></van-divider>
|
||||
<view style="display: flex;font-size: 14px;">
|
||||
<label style="color: cornflowerblue;">用户xxx<label style="color: #333333;">的回复: 内容很牛逼,挺内容很牛逼,挺内容很牛逼,挺内容很牛逼,挺内容很牛逼,挺</label></label>
|
||||
|
||||
</view>
|
||||
<view slot="footer">
|
||||
<view style="display: flex;justify-content: flex-end;">
|
||||
<van-button wx:if="{{ true }}" size="small">删除</van-button>
|
||||
<van-button wx:if="{{ true }}" size="small" type="danger" style="margin-left: 10px;">编辑</van-button>
|
||||
<van-button size="small" type="danger" data-wpy-evt="84-0" bind:tap="__dispatcher" data-wpytap-a="{{ item }}" style="margin-left: 10px;">回复</van-button>
|
||||
</view>
|
||||
</view>
|
||||
</van-panel>
|
||||
|
||||
|
||||
<van-dialog use-slot title="标题" show="{{ isShowInput }}" show-cancel-button data-wpy-evt="84-1" bind:close="__dispatcher" bind:confirm="__dispatcher">
|
||||
<image src="https://img.yzcdn.cn/1.jpg"></image>
|
||||
</van-dialog>
|
||||
|
||||
</view>
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,7 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"styleIsolation": "shared",
|
||||
"addGlobalClass": true,
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
|
||||
|
||||
|
||||
<view style="padding: 0 10px 110px 0;background: #fafafa;">
|
||||
<van-checkbox-group value="{{ selectedList }}" data-wpy-evt="85-0" bind:change="__dispatcher">
|
||||
<view wx:for="{{ list }}" wx:for-index="index" wx:for-item="item" wx:key="index" key="{{ index }}" style="margin-top: 10px;border: #fafafa 1px solid; border-radius: 10px;">
|
||||
<van-card price="{{ item.price/100 }}" desc="描述信息" title="商品标题" nun="n">
|
||||
<view slot="thumb">
|
||||
<view style="display: inline-flex;align-items: center;margin-top: 12px;">
|
||||
<van-checkbox name="{{ item.id }}"></van-checkbox>
|
||||
<image src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=751441608,3469454349&fm=15&gp=0.jpg" class="van-card__thumb"></image>
|
||||
</view>
|
||||
</view>
|
||||
</van-card>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
|
||||
<van-submit-bar price="{{ price }}" button-text="提交订单" button-class="submit-btn" data-wpy-evt="85-1" bind:submit="__dispatcher">
|
||||
<van-checkbox value="{{ isAllSelect }}" data-wpy-evt="85-2" bind:change="__dispatcher" style="margin-top:5px;">全选</van-checkbox>
|
||||
</van-submit-bar>
|
||||
</view>
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
|
||||
|
||||
<view>
|
||||
home
|
||||
</view>
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,2 +0,0 @@
|
||||
|
||||
<view>my</view>
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
|
||||
|
||||
<view style="padding: 0 10px;background: #fafafa;">
|
||||
|
||||
<view wx:for="{{ list }}" wx:for-index="index" wx:for-item="item" wx:key="index" key="{{ index }}" style="margin-top: 10px;border: #fafafa 1px solid; border-radius: 10px;">
|
||||
<van-card price="2.00" desc="描述信息" title="商品标题" thumb="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=751441608,3469454349&fm=15&gp=0.jpg" data-wpy-evt="83-0" bind:tap="__dispatcher" data-wpytap-a="{{ item }}">
|
||||
<view slot="num" style="float:right;">
|
||||
<view>{{"已优惠¥xx元"}} </view>
|
||||
</view>
|
||||
|
||||
</van-card>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
|
||||
<van-nav-bar border="{{false}}" custom-style="background:#AC1630;color:#FFF;" data-wpy-evt="20-0" bind:click-left="__dispatcher">
|
||||
<van-icon name="arrow-left" slot="left" color="#fff"></van-icon>
|
||||
<label slot="title" style="color: #fff;">{{title}}</label>
|
||||
</van-nav-bar>
|
||||
@ -1 +0,0 @@
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,36 +0,0 @@
|
||||
|
||||
|
||||
<view>
|
||||
<van-dialog use-slot title="新用户注册" show="{{ isShow }}" show-cancel-button confirm-button-open-type="getUserInfo" asyncClose="{{ true }}" data-wpy-evt="87-42" bind:close="__dispatcher" bind:cancel="__dispatcher" bind:getuserinfo="__dispatcher">
|
||||
<van-field label="手机号:" title-width="60px" value="{{ user.mobile }}" center clearable readonly placeholder="请实名授权获取手机号" border="{{ false }}" use-button-slot>
|
||||
<van-button slot="button" size="small" plain type="info" open-type="getPhoneNumber" data-wpy-evt="87-45" bind:getphonenumber="__dispatcher">授权
|
||||
</van-button>
|
||||
</van-field>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<view style="margin:10px;">
|
||||
<van-checkbox value="{{ isChecked }}" shape="square" checked-color="#AC1630" data-wpy-evt="87-46" bind:change="__dispatcher" style="font-size: 14px;color: #AC1630;">
|
||||
我同意<label style="color: cornflowerblue;">xxxxx </label>用户协议
|
||||
</van-checkbox>
|
||||
</view>
|
||||
|
||||
</van-dialog>
|
||||
</view>
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
}
|
||||
@ -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;
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,77 +0,0 @@
|
||||
|
||||
<nav-bar></nav-bar>
|
||||
<view class="header background-color">
|
||||
|
||||
<label style="font-size: 26px;margin: 0px 0 0 15px;color: #FFF;">酒庄基础信息填写</label>
|
||||
</view>
|
||||
<view style="margin-top: 32px;">
|
||||
<view>
|
||||
<label class="cell-title">绑定手机号</label>
|
||||
<van-field value="{{ wineryForm.mobile }}" center clearable readonly placeholder="请点击授权获取手机号" border="{{ false }}" use-button-slot>
|
||||
<van-button slot="button" size="small" plain type="info" open-type="getPhoneNumber" data-wpy-evt="12-5" bind:getphonenumber="__dispatcher">授权
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
<view class="cell">
|
||||
<label class="cell-title">酒庄全称</label>
|
||||
<input value="{{ wineryForm.wineryName }}" bindinput="__dispatcher" data-model-id="21" center clearable placeholder="请输入酒庄全称" style="color: #AC1630;" />
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
<view class="cell">
|
||||
<label class="cell-title">酒庄成立时间</label>
|
||||
<picker mode="date" value="{{ wineryForm.date }}" bindchange="__dispatcher" data-model-id="22" end="{{maxDate}}" data-wpy-evt="12-6" bind:change="__dispatcher">
|
||||
<van-field value="{{ wineryForm.buildTime }}" center clearable readonly placeholder="请选择" border="{{ false }}"></van-field>
|
||||
</picker>
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="cell">
|
||||
<label class="cell-title">酒庄地址(省市区)</label>
|
||||
|
||||
<picker mode="region" value="{{ wineryForm.region }}" bindchange="__dispatcher" data-model-id="23" data-wpy-evt="12-7" bind:change="__dispatcher">
|
||||
<van-field value="{{ wineryForm.region }}" center clearable readonly placeholder="请选择" border="{{ false }}"></van-field>
|
||||
</picker>
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
<view class="cell">
|
||||
<label class="cell-title">酒庄地址(详细)</label>
|
||||
<input value="{{ wineryForm.address }}" bindinput="__dispatcher" data-model-id="24" center clearable placeholder="请输入酒庄地址" />
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
<view class="cell">
|
||||
<label class="cell-title">酒庄总面积</label>
|
||||
<view class="cell-input">
|
||||
<input value="{{ wineryForm.wineryArea }}" bindinput="__dispatcher" data-model-id="25" type="number" center clearable placeholder="请输入酒庄总面积" use-button-slot />
|
||||
<label slot="button" size="small">亩</label>
|
||||
</view>
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
<view class="cell">
|
||||
<label class="cell-title">建筑总面积</label>
|
||||
<view class="cell-input">
|
||||
<input value="{{ wineryForm.buildArea }}" bindinput="__dispatcher" data-model-id="26" type="number" center clearable placeholder="请输入建筑总面积" use-button-slot />
|
||||
<label slot="button" size="small">平方米</label>
|
||||
</view>
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">酒庄现状</label>
|
||||
<van-radio-group value="{{ wineryForm.wineryStatus }}" data-wpy-evt="12-8" bind:change="__dispatcher">
|
||||
|
||||
<view style="display: flex;margin: 5px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ wineryStatusType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item">
|
||||
<van-radio name="{{item}}" checked-color="#AC3016" class="cell2-radio">{{item}}</van-radio>
|
||||
</view>
|
||||
</view>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
<view style="display: flex;align-items: center; width: 100%;margin: 25px 0 25px 0;">
|
||||
<button data-wpy-evt="12-9" bind:tap="__dispatcher" style="width: 686rpx;" class="buttonColor">下一步</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,40 +0,0 @@
|
||||
|
||||
|
||||
<nav-bar></nav-bar>
|
||||
|
||||
<view class="header background-color">
|
||||
|
||||
<view style="font-size: 15px;font-weight: lighter;color: #FFF; width: 100%;">
|
||||
<view class="header-cell">
|
||||
<label class="header-title">酒庄名称:</label>
|
||||
<label class="header-value">{{wineryForm.wineryName}}</label>
|
||||
</view>
|
||||
<view class="header-cell">
|
||||
<label class="header-title">酒庄面积:</label>
|
||||
<label class="header-value">{{wineryForm.wineryArea}}亩</label>
|
||||
</view>
|
||||
<view class="header-cell">
|
||||
<label class="header-title">酒庄成立时间:</label>
|
||||
<label class="header-value">{{wineryForm.buildTime}}</label>
|
||||
</view>
|
||||
<view class="header-cell">
|
||||
<label class="header-title">酒庄地址:</label>
|
||||
<label class="header-value">{{wineryForm.region}} {{wineryForm.address}} </label>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="fream">
|
||||
|
||||
<view style="width: 558rpx; text-align: left; flex-direction: column;display: flex;">
|
||||
<sapn style="color: #333;font-size: 20px;font-weight: bold;">填报指南</sapn>
|
||||
<sapn style="color: #999; font-size: 14px;">您好,仅需三步即可完成自主填报</sapn>
|
||||
</view>
|
||||
<image src="https://www.xiao4r.com/xiao4rstatic/hope_wine/step.png" style="width: 558rpx;margin-top: 16px;"></image>
|
||||
|
||||
</view>
|
||||
<view style="display: flex;align-items: center; width: 100%;margin: 520rpx 0 25px 0;">
|
||||
<button data-wpy-evt="13-0" bind:tap="__dispatcher" style="width: 686rpx;" class="buttonColor">下一步</button>
|
||||
</view>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,120 +0,0 @@
|
||||
|
||||
<nav-bar></nav-bar>
|
||||
<view class="header background-color">
|
||||
|
||||
<image src="https://www.xiao4r.com/xiao4rstatic/hope_wine/step1.png" style="width:612rpx; height:120rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 32px;">
|
||||
<view>
|
||||
<label class="cell-title">种植总面积</label>
|
||||
<view class="cell-full-area">
|
||||
<view class="cell1">
|
||||
<input value="{{ wineryForm.plantArea }}" bindinput="__dispatcher" data-model-id="6" type="number" placeholder="请输入" class="cell1-input" />
|
||||
<label>亩</label>
|
||||
</view>
|
||||
<view class="cell1">
|
||||
<input value="{{ wineryForm.plantWeight }}" bindinput="__dispatcher" data-model-id="7" type="number" placeholder="请输入" class="cell1-input" />
|
||||
<label>斤</label>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="boom"></view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">土壤类型</label>
|
||||
<van-radio-group value="{{ wineryForm.soilType }}" data-wpy-evt="14-0" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin-top: 22px;">
|
||||
<van-radio wx:for="{{ soilTypes }}" wx:for-index="index" wx:for-item="item" wx:key="index" name="{{item}}" checked-color="#AC1630" class="cell2-radio">
|
||||
{{item}}
|
||||
</van-radio>
|
||||
</view>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 10px;">
|
||||
<label class="cell-title">红葡萄品种</label>
|
||||
<van-checkbox-group value="{{ wineryForm.redVariety.checked }}" data-wpy-evt="14-1" bind:change="__dispatcher">
|
||||
<view style="display: flex;flex-direction: column;">
|
||||
<view wx:for="{{ wineryForm.redVariety.params }}" wx:for-index="index" wx:for-item="item" wx:key="index">
|
||||
<view wx:if="{{ item.isChecked }}" style="margin-top: 5px;margin-bottom: 5px;">
|
||||
<view style="margin-left:20px;">
|
||||
<van-checkbox name="{{item.name}}" checked-color="#AC1630">{{item.name}}</van-checkbox>
|
||||
</view>
|
||||
<view class="cell3-input-line">
|
||||
<label>种地</label>
|
||||
<input value="{{ item.msg.area }}" bindinput="__dispatcher" data-model-id="8" data-model-a="{{ index }}" type="number" placeholder="请输入" class="cell3-input" />
|
||||
<label>亩树龄</label>
|
||||
<input value="{{ item.msg.treeOld }}" bindinput="__dispatcher" data-model-id="9" data-model-a="{{ index }}" type="number" placeholder="请输入" class="cell3-input" />
|
||||
<label>年,最大树龄</label>
|
||||
<input value="{{ item.msg.treeMaxOld }}" bindinput="__dispatcher" data-model-id="10" data-model-a="{{ index }}" type="number" placeholder="请输入" class="cell3-input" />
|
||||
<label>年</label>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;margin: 5px 15px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ wineryForm.redVariety.params }}" wx:for-index="index" wx:for-item="item" wx:key="index">
|
||||
<view wx:if="{{ !item.isChecked }}" class="cell3-cheakbox">
|
||||
<van-checkbox name="{{item.name}}" checked-color="#AC1630">{{item.name}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 10px;">
|
||||
<label class="cell-title">白葡萄品种</label>
|
||||
<van-checkbox-group value="{{ wineryForm.whiteVariety.checked }}" data-wpy-evt="14-2" bind:change="__dispatcher">
|
||||
<view style="display: flex;flex-direction: column;">
|
||||
<view wx:for="{{ wineryForm.whiteVariety.params }}" wx:for-index="index" wx:for-item="item" wx:key="index">
|
||||
<view wx:if="{{ item.isChecked }}" style="margin-top: 10px;margin-bottom: 5px;">
|
||||
<view style="margin-left:20px;">
|
||||
<van-checkbox name="{{item.name}}" checked-color="#AC1630">{{item.name}}</van-checkbox>
|
||||
</view>
|
||||
<view class="cell3-input-line">
|
||||
<label>种地</label>
|
||||
<input value="{{ item.msg.area }}" bindinput="__dispatcher" data-model-id="11" data-model-a="{{ index }}" type="number" placeholder="请输入" class="cell3-input" />
|
||||
<label>亩树龄</label>
|
||||
<input value="{{ item.msg.treeOld }}" bindinput="__dispatcher" data-model-id="12" data-model-a="{{ index }}" type="number" placeholder="请输入" class="cell3-input" />
|
||||
<label>年,最大树龄</label>
|
||||
<input value="{{ item.msg.treeMaxOld }}" bindinput="__dispatcher" data-model-id="13" data-model-a="{{ index }}" type="number" placeholder="请输入" class="cell3-input" />
|
||||
<label>年</label>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;margin: 5px 15px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ wineryForm.whiteVariety.params }}" wx:for-index="index" wx:for-item="item" wx:key="index">
|
||||
<view wx:if="{{ !item.isChecked }}" class="cell3-cheakbox">
|
||||
<van-checkbox name="{{item.name}}" checked-color="#AC1630">{{item.name}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">主要灌溉方式</label>
|
||||
<van-radio-group value="{{ wineryForm.irrigationType }}" data-wpy-evt="14-3" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin-top: 22px;">
|
||||
<van-radio wx:for="{{ irrigationTypes }}" wx:for-index="index" wx:for-item="item" wx:key="index" name="{{item}}" checked-color="#AC1630" class="cell2-radio">
|
||||
{{item}}
|
||||
</van-radio>
|
||||
</view>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="display: flex;align-items: center; width: 100%;margin: 25px 0 25px 0;">
|
||||
<button data-wpy-evt="14-4" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor-cancel">上一步</button>
|
||||
<button data-wpy-evt="14-5" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor">下一步</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,50 +0,0 @@
|
||||
|
||||
<nav-bar></nav-bar>
|
||||
<view class="header background-color">
|
||||
|
||||
<image src="https://www.xiao4r.com/xiao4rstatic/hope_wine/step2.png" style="width:612rpx; height:120rpx;"></image>
|
||||
</view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">酒精发酵工艺</label>
|
||||
<van-checkbox-group value="{{ wineryForm.fermentationProcess }}" data-wpy-evt="15-0" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin: 5px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ fermentationProcessType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item">
|
||||
<van-checkbox name="{{item}}" checked-color="#AC1630">{{item}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">热化容器</label>
|
||||
<van-checkbox-group value="{{ wineryForm.container }}" data-wpy-evt="15-1" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin: 5px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ containerType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item">
|
||||
<van-checkbox name="{{item}}" checked-color="#AC1630">{{item}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">澄清方式</label>
|
||||
<van-checkbox-group value="{{ wineryForm.clarificationMethod }}" data-wpy-evt="15-2" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin: 5px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ clarificationMethodType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item2">
|
||||
<van-checkbox name="{{item}}" checked-color="#AC1630">{{item}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="display: flex;align-items: center; width: 100%;margin: 25px 0 25px 0;">
|
||||
<button data-wpy-evt="15-3" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor-cancel">上一步</button>
|
||||
<button data-wpy-evt="15-4" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor">下一步</button>
|
||||
</view>
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,89 +0,0 @@
|
||||
|
||||
<nav-bar></nav-bar>
|
||||
<view class="header background-color">
|
||||
<image src="https://www.xiao4r.com/xiao4rstatic/hope_wine/step3.png" style="width:612rpx; height:120rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">年产量</label>
|
||||
<view class="cell-input">
|
||||
<input value="{{ wineryForm.annualOutput }}" bindinput="__dispatcher" data-model-id="14" type="digit" placeholder="请输入" class="input" />
|
||||
<label>万瓶</label>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">现有库存</label>
|
||||
<view class="cell-input">
|
||||
<input value="{{ wineryForm.stock }}" bindinput="__dispatcher" data-model-id="15" type="digit" placeholder="请输入" class="input" />
|
||||
<label>万瓶</label>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">橡木桶数量</label>
|
||||
<view class="cell-input">
|
||||
<input value="{{ wineryForm.bucketCount }}" bindinput="__dispatcher" data-model-id="16" type="number" placeholder="请输入" class="input" />
|
||||
<label> 个</label>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">主要产品定价</label>
|
||||
<van-checkbox-group value="{{ wineryForm.mainPrice }}" data-wpy-evt="16-0" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin: 5px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ mainPriceType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item">
|
||||
<van-checkbox name="{{item}}" checked-color="#AC1630">{{item}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label class="cell-title">销售方式</label>
|
||||
<van-checkbox-group value="{{ wineryForm.salesMode }}" data-wpy-evt="16-1" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin: 5px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ salesModeType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item2">
|
||||
<van-checkbox name="{{item}}" checked-color="#AC1630">{{item}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<view style="display: flex;align-items: center;">
|
||||
<label class="cell-title">获奖信息</label>
|
||||
<label style="font-size: 12px;">(选填)</label>
|
||||
</view>
|
||||
<van-checkbox-group value="{{ wineryForm.awards }}" data-wpy-evt="16-2" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin: 5px 5px;flex-wrap: wrap;">
|
||||
<view wx:for="{{ awardType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item2">
|
||||
<van-checkbox name="{{item}}" checked-color="#AC1630">{{item}}</van-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
</van-checkbox-group>
|
||||
|
||||
<view style="display: flex;align-items: center;">
|
||||
<label class="cell-title">其他奖项</label>
|
||||
</view>
|
||||
<view style="margin: 10px;border: #ddd 1px solid; border-radius: 8px;padding: 5px;">
|
||||
|
||||
<textarea value="{{ wineryForm.awardInformation }}" bindinput="__dispatcher" data-model-id="17" auto-height="{{false}}" clearable autosize />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="display: flex;align-items: center; width: 100%;margin: 25px 0 25px 0;">
|
||||
<button data-wpy-evt="16-3" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor-cancel">上一步</button>
|
||||
<button data-wpy-evt="16-4" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor">下一步</button>
|
||||
</view>
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,58 +0,0 @@
|
||||
|
||||
<nav-bar></nav-bar>
|
||||
<view class="header background-color">
|
||||
<image src="https://www.xiao4r.com/xiao4rstatic/hope_wine/step4.png" style="width:612rpx; height:120rpx;"></image>
|
||||
</view>
|
||||
|
||||
<view style="margin-top: 32px;margin-bottom: 20px;display: flex;justify-content: center;flex-direction: column;align-items: center;">
|
||||
<image src="https://www.xiao4r.com/xiao4rstatic/hope_wine/success.png" style="width:110rpx; height:110rpx;"></image>
|
||||
<label style="color:#333;margin-top: 24px;">填报完成</label>
|
||||
<label style="color: #999;margin-top: 8px;font-size: 13px;">感谢您的填报,还有最后一步!</label>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<view class="cell">
|
||||
<label class="cell-title">姓名</label>
|
||||
<input value="{{ wineryForm.personName }}" bindinput="__dispatcher" data-model-id="18" center clearable placeholder="请输入您的姓名" />
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<view class="cell">
|
||||
<label class="cell-title">联系邮箱</label>
|
||||
<input value="{{ wineryForm.email }}" bindinput="__dispatcher" data-model-id="19" center clearable placeholder="请输入您的联系邮箱" />
|
||||
<van-divider customStyle="margin: 0 5px;"></van-divider>
|
||||
</view>
|
||||
</view>
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="margin-top: 10px;padding-bottom: 20px;">
|
||||
<label style="color: #AC1630;" class="cell-title">贺兰山产区红酒传播语征集</label>
|
||||
<van-radio-group value="{{ wineryForm.slogan }}" data-wpy-evt="17-0" bind:change="__dispatcher">
|
||||
<view style="display: flex;margin: 5px;flex-direction: column;">
|
||||
<view wx:for="{{ sloganType }}" wx:for-index="index" wx:for-item="item" wx:key="index" class="cell-item">
|
||||
<view wx:if="{{ index === 4 }}" class="cell-input">
|
||||
<van-radio name="{{item}}" checked-color="#AC1630"></van-radio>
|
||||
<input value="{{ slogan }}" bindinput="__dispatcher" data-model-id="20" clearable placeholder="请输入您的口号" />
|
||||
</view>
|
||||
<view wx:else>
|
||||
<van-radio name="{{item}}" checked-color="#AC1630">{{item}}</van-radio>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="boom"></view>
|
||||
|
||||
|
||||
<view style="display: flex;align-items: center; width: 100%;margin: 25px 0 25px 0;">
|
||||
<button data-wpy-evt="17-1" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor-cancel">上一步</button>
|
||||
<button data-wpy-evt="17-2" bind:tap="__dispatcher" style="width: 326rpx;" class="buttonColor">提交上报</button>
|
||||
</view>
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,32 +0,0 @@
|
||||
<!---------- wxs start ----------->
|
||||
<wxs module="m1">
|
||||
"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;
|
||||
</wxs>
|
||||
<!---------- wxs end ----------->
|
||||
|
||||
<image src="https://www.xiao4r.com/xiao4rstatic/hope_wine/head.png" class="header"></image>
|
||||
<view style="margin: 0px 25px;" class="container">
|
||||
<label style="color: #333;font-size: 26px;">贺兰山东麓葡萄酒产区普查</label>
|
||||
<label style="color: #333;font-size: 13px;">Helan Mountain winery census</label>
|
||||
<view style="display: flex;flex-direction:column; margin-top: 24px;">
|
||||
<label style="color: #333;font-size: 16px;">欢迎您参加贺兰山酒庄普查!</label>
|
||||
<text style="color: #666;font-size: 16px;margin-top: 4px;">
|
||||
在宁夏回族自治区政府大力推动以红酒产业为首的九大产业之际,为更好的服务我区酒庄及红酒企业,自治区红酒局决定于近期开展2021年贺兰山产区酒庄普查。
|
||||
非常感谢您选择自主填报的方式参加酒庄普查。您通过微信小程序填报的信息会经加密存储在宁夏回族自治区红酒局,数据仅作为服务我区红酒产业总体规划使用。
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center; width: 100%;margin: 25px 0 25px 0;">
|
||||
<button data-wpy-evt="11-1" bind:tap="__dispatcher" style="width: 686rpx;" class="buttonColor">已阅知</button>
|
||||
</view>
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -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: '<p style=\'color: #AC1630\'>富文本详情</p>',
|
||||
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 });
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
@ -1,73 +0,0 @@
|
||||
<!---------- wxs start ----------->
|
||||
<wxs module="m1">
|
||||
"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;
|
||||
</wxs>
|
||||
<!---------- wxs end ----------->
|
||||
|
||||
|
||||
<nav-bar title="商品详情"></nav-bar>
|
||||
|
||||
<swiper indicator-dots="true" autoplay="true" interval="3000">
|
||||
<block wx:for="{{ goodsImages }}" wx:for-index="index" wx:for-item="item" wx:key="index">
|
||||
<swiper-item>
|
||||
<view class="swiper-item">
|
||||
<image src="{{ item }}"></image>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
|
||||
<van-cell title="标题能显示多长标题能显示多长" value="内容能显示多长" label="描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息" border="{{ false }}"></van-cell>
|
||||
<van-cell title="选择规格" is-link data-wpy-evt="19-0" bind:tap="__dispatcher"></van-cell>
|
||||
|
||||
<view style="margin: 10px 15px;">
|
||||
<label>商品详情</label>
|
||||
<view style="margin-top: 10px;">
|
||||
<rich-text nodes="{{ detail }}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<van-popup show="{{ isShowSpec }}" closeable position="bottom" custom-style="height: 240px" data-wpy-evt="19-1" bind:close="__dispatcher">
|
||||
<van-card price="2.00" desc="描述信息" title="商品标题" thumb="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=751441608,3469454349&fm=15&gp=0.jpg">
|
||||
<view slot="num" style="float:right;">
|
||||
<view>{{'已优惠¥xx元'}}</view>
|
||||
</view>
|
||||
|
||||
</van-card>
|
||||
|
||||
<van-divider></van-divider>
|
||||
|
||||
<van-row>
|
||||
<van-col offset="1" span="8">
|
||||
<view style="display: flex; flex-direction: column;">
|
||||
<label>购买数量</label>
|
||||
<label style="font-size: 12px; color: #cccccc;">剩余:xx</label>
|
||||
</view>
|
||||
</van-col>
|
||||
<van-col offset="7" span="8">
|
||||
<van-stepper value="{{ count }}" data-wpy-evt="19-2" bind:change="__dispatcher"></van-stepper>
|
||||
</van-col>
|
||||
</van-row>
|
||||
|
||||
<van-button round type="danger" size="small" style="float:right;margin-top:10px;margin-right: 10px;">下一步</van-button>
|
||||
|
||||
</van-popup>
|
||||
|
||||
<van-goods-action bind_init="__initComponent">
|
||||
<van-goods-action-icon bind_init="__initComponent" icon="cart-o" text="购物车" info="5"></van-goods-action-icon>
|
||||
<van-goods-action-icon bind_init="__initComponent" icon="shop-o" text="酒庄"></van-goods-action-icon>
|
||||
<van-goods-action-button bind_init="__initComponent" color="#be99ff" text="加入购物车" type="warning" data-wpy-evt="19-3" bind:tap="__dispatcher"></van-goods-action-button>
|
||||
<van-goods-action-button bind_init="__initComponent" color="#7232dd" text="立即购买" data-wpy-evt="19-4" bind:tap="__dispatcher"></van-goods-action-button>
|
||||
</van-goods-action>
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
@ -1,33 +0,0 @@
|
||||
<!---------- wxs start ----------->
|
||||
<wxs module="m1">
|
||||
"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;
|
||||
</wxs>
|
||||
<!---------- wxs end ----------->
|
||||
|
||||
<van-tabbar active="{{ pageIndex }}" data-wpy-evt="18-6" bind:change="__dispatcher">
|
||||
<van-tabbar-item icon="home-o">热点</van-tabbar-item>
|
||||
<van-tabbar-item icon="shopping-cart-o">购物</van-tabbar-item>
|
||||
<van-tabbar-item icon="comment-o">交流</van-tabbar-item>
|
||||
<van-tabbar-item icon="shopping-cart-o">购物车</van-tabbar-item>
|
||||
<van-tabbar-item icon="user-o">我的</van-tabbar-item>
|
||||
</van-tabbar>
|
||||
<mall-home bind_init="__initComponent" wx:if="{{ pageIndex === 0 }}"></mall-home>
|
||||
<mall-shopping bind_init="__initComponent" wx:elif="{{ pageIndex === 1 }}"></mall-shopping>
|
||||
<mall-bbs bind_init="__initComponent" wx:elif="{{ pageIndex === 2 }}"></mall-bbs>
|
||||
<mall-car bind_init="__initComponent" wx:elif="{{ pageIndex === 3 }}"></mall-car>
|
||||
<mall-my bind_init="__initComponent" wx:elif="{{ pageIndex === 4 }}"></mall-my>
|
||||
<dialog-registration bind_init="__initComponent"></dialog-registration>
|
||||
<van-button data-wpy-evt="18-7" bind:tap="__dispatcher">测试</van-button>
|
||||
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 536rpx;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
{
|
||||
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
|
||||
"rules": [{
|
||||
"action": "allow",
|
||||
"page": "*"
|
||||
}]
|
||||
}
|
||||
0
mini-app/weapp/static/.gitignore
vendored
0
mini-app/weapp/static/.gitignore
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 790 KiB |
@ -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;
|
||||
@ -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;
|
||||
@ -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() {}
|
||||
}
|
||||
});
|
||||
@ -1,7 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-icon": "./../icon/index",
|
||||
"van-loading": "./../loading/index"
|
||||
}
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
<!---------- wxs start ----------->
|
||||
<wxs module="utils" src="../wxs/utils.wxs"></wxs>
|
||||
<wxs module="computed" src="./index.wxs"></wxs>
|
||||
<!---------- wxs end ----------->
|
||||
|
||||
|
||||
|
||||
<button id="{{ id }}" data-detail="{{ dataset }}" class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}" hover-class="van-button--active hover-class" lang="{{ lang }}" form-type="{{ formType }}" style="{{ computed.rootStyle({ plain, color }) }} {{ customStyle }}" open-type="{{ disabled ? '' : openType }}" business-id="{{ businessId }}" session-from="{{ sessionFrom }}" send-message-title="{{ sendMessageTitle }}" send-message-path="{{ sendMessagePath }}" send-message-img="{{ sendMessageImg }}" show-message-card="{{ showMessageCard }}" app-parameter="{{ appParameter }}" aria-label="{{ ariaLabel }}" bindtap="{{ !disabled ? 'onClick' : 'noop' }}" bindgetuserinfo="bindGetUserInfo" bindcontact="bindContact" bindgetphonenumber="bindGetPhoneNumber" binderror="bindError" bindlaunchapp="bindLaunchApp" bindopensetting="bindOpenSetting">
|
||||
<block wx:if="{{ loading }}">
|
||||
<van-loading custom-class="loading-class" size="{{ loadingSize }}" type="{{ loadingType }}" color="{{ computed.loadingColor({ type, color, plain }) }}"></van-loading>
|
||||
<view wx:if="{{ loadingText }}" class="van-button__loading-text">
|
||||
{{ loadingText }}
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else="">
|
||||
<van-icon wx:if="{{ icon }}" size="1.2em" name="{{ icon }}" class-prefix="{{ classPrefix }}" class="van-button__icon" custom-style="line-height: inherit;"></van-icon>
|
||||
<view class="van-button__text">
|
||||
<slot></slot>
|
||||
</view>
|
||||
</block>
|
||||
</button>
|
||||
@ -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,
|
||||
};
|
||||
@ -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}
|
||||
@ -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');
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-tag": "./../tag/index"
|
||||
}
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
<!---------- wxs start ----------->
|
||||
<wxs module="utils" src="../wxs/utils.wxs"></wxs>
|
||||
<!---------- wxs end ----------->
|
||||
|
||||
|
||||
<view class="custom-class van-card">
|
||||
<view class="{{ utils.bem('card__header', { center: centered }) }}">
|
||||
<view class="van-card__thumb" bind:tap="onClickThumb">
|
||||
<image wx:if="{{ thumb }}" src="{{ thumb }}" mode="{{ thumbMode }}" lazy-load="{{ lazyLoad }}" class="van-card__img thumb-class"></image>
|
||||
<slot wx:else="" name="thumb"></slot>
|
||||
<van-tag wx:if="{{ tag }}" mark="" type="danger" custom-class="van-card__tag">
|
||||
{{ tag }}
|
||||
</van-tag>
|
||||
<slot wx:else="" name="tag"></slot>
|
||||
</view>
|
||||
|
||||
<view class="van-card__content {{ utils.bem('card__content', { center: centered }) }}">
|
||||
<view>
|
||||
<view wx:if="{{ title }}" class="van-card__title title-class">{{ title }}</view>
|
||||
<slot wx:else="" name="title"></slot>
|
||||
|
||||
<view wx:if="{{ desc }}" class="van-card__desc desc-class">{{ desc }}</view>
|
||||
<slot wx:else="" name="desc"></slot>
|
||||
|
||||
<slot name="tags"></slot>
|
||||
</view>
|
||||
|
||||
<view class="van-card__bottom">
|
||||
<slot name="price-top"></slot>
|
||||
<view wx:if="{{ price || price === 0 }}" class="van-card__price price-class">
|
||||
<text>{{ currency }}</text>
|
||||
<text class="van-card__price-integer">{{ integerStr }}</text>
|
||||
<text class="van-card__price-decimal">{{ decimalStr }}</text>
|
||||
</view>
|
||||
<slot wx:else="" name="price"></slot>
|
||||
<view wx:if="{{ originPrice || originPrice === 0 }}" class="van-card__origin-price origin-price-class">{{ currency }} {{ originPrice }}</view>
|
||||
<slot wx:else="" name="origin-price"></slot>
|
||||
<view wx:if="{{ num }}" class="van-card__num num-class">x {{ num }}</view>
|
||||
<slot wx:else="" name="num"></slot>
|
||||
<slot name="bottom"></slot>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="van-card__footer">
|
||||
<slot name="footer"></slot>
|
||||
</view>
|
||||
</view>
|
||||
@ -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}
|
||||
@ -1,13 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _component = require('./../common/component.js');
|
||||
|
||||
(0, _component.VantComponent)({
|
||||
props: {
|
||||
title: String,
|
||||
border: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
<view
|
||||
wx:if="{{ title }}"
|
||||
class="van-cell-group__title"
|
||||
>
|
||||
{{ title }}
|
||||
</view>
|
||||
<view class="custom-class van-cell-group {{ border ? 'van-hairline--top-bottom' : '' }}">
|
||||
<slot />
|
||||
</view>
|
||||
@ -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)}
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-icon": "./../icon/index"
|
||||
}
|
||||
}
|
||||
@ -1,29 +0,0 @@
|
||||
<!---------- wxs start ----------->
|
||||
<wxs module="utils" src="../wxs/utils.wxs"></wxs>
|
||||
<!---------- wxs end ----------->
|
||||
|
||||
|
||||
<view class="custom-class {{ utils.bem('cell', [size, { center, required, borderless: !border, clickable: isLink || clickable }]) }}" hover-class="van-cell--hover hover-class" hover-stay-time="70" style="{{ customStyle }}" bind:tap="onClick">
|
||||
<van-icon wx:if="{{ icon }}" name="{{ icon }}" class="van-cell__left-icon-wrap" custom-class="van-cell__left-icon"></van-icon>
|
||||
<slot wx:else="" name="icon"></slot>
|
||||
|
||||
<view style="{{ (titleWidth ? 'max-width:' + titleWidth + ';min-width:' + titleWidth + ';' : '') + titleStyle }}" class="van-cell__title title-class">
|
||||
<block wx:if="{{ title }}">{{ title }}</block>
|
||||
<slot wx:else="" name="title"></slot>
|
||||
|
||||
<view wx:if="{{ label || useLabelSlot }}" class="van-cell__label label-class">
|
||||
<slot wx:if="{{ useLabelSlot }}" name="label"></slot>
|
||||
<block wx:elif="{{ label }}">{{ label }}</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="van-cell__value value-class">
|
||||
<block wx:if="{{ value || value === 0 }}">{{ value }}</block>
|
||||
<slot wx:else=""></slot>
|
||||
</view>
|
||||
|
||||
<van-icon wx:if="{{ isLink }}" name="{{ arrowDirection ? 'arrow' + '-' + arrowDirection : 'arrow' }}" class="van-cell__right-icon-wrap right-icon-class" custom-class="van-cell__right-icon"></van-icon>
|
||||
<slot wx:else="" name="right-icon"></slot>
|
||||
|
||||
<slot name="extra"></slot>
|
||||
</view>
|
||||
@ -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)}
|
||||
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
<slot />
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user