|
@@ -215,6 +215,10 @@ var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/r
|
|
|
//
|
|
|
//
|
|
|
//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
var _default = {
|
|
|
data: function data() {
|
|
|
return {
|
|
@@ -271,14 +275,14 @@ var _default = {
|
|
|
search: function search() {
|
|
|
var _this = this;
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
|
- var that, res, arr;
|
|
|
+ var that, res, arr, aee;
|
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
|
while (1) {
|
|
|
switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
that = _this;
|
|
|
if (!that.id) {
|
|
|
- _context2.next = 15;
|
|
|
+ _context2.next = 19;
|
|
|
break;
|
|
|
}
|
|
|
_context2.next = 4;
|
|
@@ -286,7 +290,7 @@ var _default = {
|
|
|
case 4:
|
|
|
res = _context2.sent;
|
|
|
if (!(res.errcode == '0')) {
|
|
|
- _context2.next = 14;
|
|
|
+ _context2.next = 18;
|
|
|
break;
|
|
|
}
|
|
|
_context2.next = 8;
|
|
@@ -294,15 +298,20 @@ var _default = {
|
|
|
case 8:
|
|
|
arr = _context2.sent;
|
|
|
if (arr.errcode === 0) res.data.user_tel = arr.data.tel;
|
|
|
+ _context2.next = 12;
|
|
|
+ return that.$api("/User/".concat(res.data.supplier), 'GET', {});
|
|
|
+ case 12:
|
|
|
+ aee = _context2.sent;
|
|
|
+ if (aee.errcode === 0) res.data.supplier_tel = aee.data.tel;
|
|
|
res.data.zhStatus = that.searchDict(res.data.status, 'status');
|
|
|
that.$set(that, "info", res.data);
|
|
|
- _context2.next = 15;
|
|
|
+ _context2.next = 19;
|
|
|
break;
|
|
|
- case 14:
|
|
|
+ case 18:
|
|
|
uni.showToast({
|
|
|
title: res.errmsg
|
|
|
});
|
|
|
- case 15:
|
|
|
+ case 19:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|