|
@@ -229,13 +229,12 @@ var _default = {
|
|
|
switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
that = this;
|
|
|
- that.searchToken();
|
|
|
- _context.next = 4;
|
|
|
- return that.searchOther();
|
|
|
- case 4:
|
|
|
- _context.next = 6;
|
|
|
+ _context.next = 3;
|
|
|
+ return that.searchToken();
|
|
|
+ case 3:
|
|
|
+ _context.next = 5;
|
|
|
return that.search();
|
|
|
- case 6:
|
|
|
+ case 5:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
@@ -271,37 +270,27 @@ var _default = {
|
|
|
while (1) {
|
|
|
switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
- that = _this;
|
|
|
- case 1:
|
|
|
+ that = _this; // 广告
|
|
|
+ _context2.next = 3;
|
|
|
+ return that.$api("/adv", 'GET', {
|
|
|
+ is_use: '0'
|
|
|
+ });
|
|
|
+ case 3:
|
|
|
+ res = _context2.sent;
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ that.$set(that, "advertList", res.data);
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.errmsg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee2);
|
|
|
}))();
|
|
|
- },
|
|
|
- // 查询其他信息
|
|
|
- searchOther: function searchOther() {
|
|
|
- var _this2 = this;
|
|
|
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
|
- var that, res;
|
|
|
- return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
|
- while (1) {
|
|
|
- switch (_context3.prev = _context3.next) {
|
|
|
- case 0:
|
|
|
- that = _this2; // // 查询类型
|
|
|
- // res = await that.$api(`/dictData`, 'GET', {
|
|
|
- // type: 'home_tabs',
|
|
|
- // is_use: '0',
|
|
|
- // })
|
|
|
- // if (res.errcode == '0') that.$set(that, `typeList`, res.data);
|
|
|
- case 1:
|
|
|
- case "end":
|
|
|
- return _context3.stop();
|
|
|
- }
|
|
|
- }
|
|
|
- }, _callee3);
|
|
|
- }))();
|
|
|
}
|
|
|
}
|
|
|
};
|