更换请求地址之前的内容
This commit is contained in:
parent
7c1984398c
commit
e7438abac8
@ -205,11 +205,11 @@ export default {
|
|||||||
typeName: '投诉'
|
typeName: '投诉'
|
||||||
},
|
},
|
||||||
// msgType: [{ type: 2000, name: '投诉' }, { type: 4000, name: '咨询' }, { type: 1000, name: '建议' }],
|
// msgType: [{ type: 2000, name: '投诉' }, { type: 4000, name: '咨询' }, { type: 1000, name: '建议' }],
|
||||||
msgType: [{ type: 1000, name: '投诉' }, { type: 1050, name: '表扬' }, { type: 4000, name: "咨询建议" }],
|
msgType: [{ type: 1000, name: '投诉' }, { type: 1050, name: '表扬' }, { type: 4000, name: "咨询/建议" }],
|
||||||
msgTypeObj: {
|
msgTypeObj: {
|
||||||
2000: "投诉",
|
2000: "投诉",
|
||||||
1050: "表扬",
|
1050: "表扬",
|
||||||
4000: "咨询建议",
|
4000: "咨询/建议",
|
||||||
},
|
},
|
||||||
typeIndex: 0,
|
typeIndex: 0,
|
||||||
serverIndex: 0,
|
serverIndex: 0,
|
||||||
|
|||||||
@ -650,6 +650,35 @@ export default {
|
|||||||
...this.serviceDetail,
|
...this.serviceDetail,
|
||||||
...res
|
...res
|
||||||
}
|
}
|
||||||
|
let _this = this
|
||||||
|
// 如果已经有了 当前的服务区 那就 获取一下定位 看看 跟原本的是否一致
|
||||||
|
uni.getLocation({
|
||||||
|
type: "gcj02",
|
||||||
|
altitude: true,
|
||||||
|
success: (res) => {
|
||||||
|
let seatInfo = {
|
||||||
|
latitude: res.latitude,
|
||||||
|
longitude: res.longitude,
|
||||||
|
};
|
||||||
|
if (JSON.stringify(_this.seat) === JSON.stringify(seatInfo)) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
|
||||||
|
uni.setStorageSync("actualLocation", JSON.stringify(seatInfo));
|
||||||
|
_this.seat = seatInfo;
|
||||||
|
let latitude = res.latitude;
|
||||||
|
let longitude = res.longitude;
|
||||||
|
_this.handleGetNearService(latitude, longitude);
|
||||||
|
// 获得附近的景区数据
|
||||||
|
_this.handleGetScenicData(latitude, longitude);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.getLocalServer();
|
this.getLocalServer();
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"usingComponents": {},
|
||||||
"usingComponents": {}
|
"component": true
|
||||||
}
|
}
|
||||||
186
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
186
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
@ -461,7 +461,7 @@ var _default = {
|
|||||||
onLoad: function onLoad(options) {
|
onLoad: function onLoad(options) {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||||||
var systemInfo, height, currentService, seatInfo, res, funList, newFunList, loadPromises;
|
var systemInfo, height, currentService, seatInfo, res, _this3, funList, newFunList, loadPromises;
|
||||||
return _regenerator.default.wrap(function _callee$(_context) {
|
return _regenerator.default.wrap(function _callee$(_context) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context.prev = _context.next) {
|
switch (_context.prev = _context.next) {
|
||||||
@ -493,6 +493,28 @@ var _default = {
|
|||||||
if (currentService) {
|
if (currentService) {
|
||||||
res = _this2.handleMergeDetail(currentService);
|
res = _this2.handleMergeDetail(currentService);
|
||||||
_this2.serviceDetail = _objectSpread(_objectSpread({}, _this2.serviceDetail), res);
|
_this2.serviceDetail = _objectSpread(_objectSpread({}, _this2.serviceDetail), res);
|
||||||
|
_this3 = _this2; // 如果已经有了 当前的服务区 那就 获取一下定位 看看 跟原本的是否一致
|
||||||
|
uni.getLocation({
|
||||||
|
type: "gcj02",
|
||||||
|
altitude: true,
|
||||||
|
success: function success(res) {
|
||||||
|
var seatInfo = {
|
||||||
|
latitude: res.latitude,
|
||||||
|
longitude: res.longitude
|
||||||
|
};
|
||||||
|
if (JSON.stringify(_this3.seat) === JSON.stringify(seatInfo)) {} else {
|
||||||
|
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
|
||||||
|
uni.setStorageSync("actualLocation", JSON.stringify(seatInfo));
|
||||||
|
_this3.seat = seatInfo;
|
||||||
|
var latitude = res.latitude;
|
||||||
|
var longitude = res.longitude;
|
||||||
|
_this3.handleGetNearService(latitude, longitude);
|
||||||
|
// 获得附近的景区数据
|
||||||
|
_this3.handleGetScenicData(latitude, longitude);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: function fail(err) {}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
_this2.getLocalServer();
|
_this2.getLocalServer();
|
||||||
}
|
}
|
||||||
@ -564,9 +586,9 @@ var _default = {
|
|||||||
// if (new Date("2025-06-25 00:00:00").getTime() < new Date().getTime() && new Date("2025-07-02 23:59:59").getTime() > new Date().getTime()) {
|
// if (new Date("2025-06-25 00:00:00").getTime() < new Date().getTime() && new Date("2025-07-02 23:59:59").getTime() > new Date().getTime()) {
|
||||||
if (new Date(_this2.poster.PRESALE_STARTTIME).getTime() < new Date().getTime() && new Date(_this2.poster.PRESALE_ENDTIME).getTime() > new Date().getTime()) {
|
if (new Date(_this2.poster.PRESALE_STARTTIME).getTime() < new Date().getTime() && new Date(_this2.poster.PRESALE_ENDTIME).getTime() > new Date().getTime()) {
|
||||||
_this2.$refs.noticeRef.open("center");
|
_this2.$refs.noticeRef.open("center");
|
||||||
var _this3 = _this2;
|
var _this4 = _this2;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
_this3.$refs.noticeRef.close();
|
_this4.$refs.noticeRef.close();
|
||||||
}, 8000);
|
}, 8000);
|
||||||
} else {
|
} else {
|
||||||
_this2.showPoster = false;
|
_this2.showPoster = false;
|
||||||
@ -582,7 +604,7 @@ var _default = {
|
|||||||
}))();
|
}))();
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
var _this4 = this;
|
var _this5 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
||||||
var currentService, obj, newObj, idList, funList, newFunList;
|
var currentService, obj, newObj, idList, funList, newFunList;
|
||||||
return _regenerator.default.wrap(function _callee2$(_context2) {
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
||||||
@ -591,7 +613,7 @@ var _default = {
|
|||||||
case 0:
|
case 0:
|
||||||
// onShow 中不控制骨架屏,骨架屏只在 onLoad 中控制一次
|
// onShow 中不控制骨架屏,骨架屏只在 onLoad 中控制一次
|
||||||
// 如果不是首次加载,直接显示内容
|
// 如果不是首次加载,直接显示内容
|
||||||
if (!_this4.isPageLoading && _this4.skeletonControl && !_this4.skeletonControl.showSkeleton) {
|
if (!_this5.isPageLoading && _this5.skeletonControl && !_this5.skeletonControl.showSkeleton) {
|
||||||
// 非首次访问,确保内容显示
|
// 非首次访问,确保内容显示
|
||||||
}
|
}
|
||||||
currentService = uni.getStorageSync("currentService");
|
currentService = uni.getStorageSync("currentService");
|
||||||
@ -600,10 +622,10 @@ var _default = {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_context2.next = 5;
|
_context2.next = 5;
|
||||||
return _this4.handleGetServiceDetail(currentService.SERVERPART_ID);
|
return _this5.handleGetServiceDetail(currentService.SERVERPART_ID);
|
||||||
case 5:
|
case 5:
|
||||||
// this.serviceDetail = currentService;
|
// this.serviceDetail = currentService;
|
||||||
obj = _this4.handleMergeDetail(currentService);
|
obj = _this5.handleMergeDetail(currentService);
|
||||||
newObj = _objectSpread(_objectSpread({}, currentService), {}, {
|
newObj = _objectSpread(_objectSpread({}, currentService), {}, {
|
||||||
sumDetail: obj,
|
sumDetail: obj,
|
||||||
haveREFUELINGGUN: obj.haveREFUELINGGUN,
|
haveREFUELINGGUN: obj.haveREFUELINGGUN,
|
||||||
@ -613,10 +635,10 @@ var _default = {
|
|||||||
HASMOTHER: obj.HASMOTHER,
|
HASMOTHER: obj.HASMOTHER,
|
||||||
HASPILOTLOUNGE: obj.HASPILOTLOUNGE
|
HASPILOTLOUNGE: obj.HASPILOTLOUNGE
|
||||||
});
|
});
|
||||||
_this4.serviceDetail = newObj;
|
_this5.serviceDetail = newObj;
|
||||||
idList = [1212, 1222, 1139, 1215];
|
idList = [1212, 1222, 1139, 1215];
|
||||||
if (idList.indexOf(_this4.serviceDetail.SERVERPART_ID) !== -1) {
|
if (idList.indexOf(_this5.serviceDetail.SERVERPART_ID) !== -1) {
|
||||||
_this4.handleGetChargingStation(_this4.serviceDetail);
|
_this5.handleGetChargingStation(_this5.serviceDetail);
|
||||||
}
|
}
|
||||||
case 10:
|
case 10:
|
||||||
funList = uni.getStorageSync("funList");
|
funList = uni.getStorageSync("funList");
|
||||||
@ -627,7 +649,7 @@ var _default = {
|
|||||||
item.index = index + 1;
|
item.index = index + 1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
_this4.funList = newFunList;
|
_this5.funList = newFunList;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (new Date("2025-03-02 8:00:00").getTime() < new Date().getTime()) {
|
// if (new Date("2025-03-02 8:00:00").getTime() < new Date().getTime()) {
|
||||||
@ -709,7 +731,7 @@ var _default = {
|
|||||||
methods: {
|
methods: {
|
||||||
// 请求景区信息
|
// 请求景区信息
|
||||||
handleGetScenicData: function handleGetScenicData(latitude, longitude) {
|
handleGetScenicData: function handleGetScenicData(latitude, longitude) {
|
||||||
var _this5 = this;
|
var _this6 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
||||||
var SCENICAREA, SCENICAREAOBJ, field, fieldList, req, data, list, res;
|
var SCENICAREA, SCENICAREAOBJ, field, fieldList, req, data, list, res;
|
||||||
return _regenerator.default.wrap(function _callee3$(_context3) {
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
||||||
@ -727,12 +749,12 @@ var _default = {
|
|||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
_context3.next = 8;
|
_context3.next = 8;
|
||||||
return _this5.$api.$get("/EShangApiMain/FrameWork/GetFieldEnumTree", {
|
return _this6.$api.$get("/EShangApiMain/FrameWork/GetFieldEnumTree", {
|
||||||
FieldExplainField: 'SCENICAREA_TYPE'
|
FieldExplainField: 'SCENICAREA_TYPE'
|
||||||
});
|
});
|
||||||
case 8:
|
case 8:
|
||||||
field = _context3.sent;
|
field = _context3.sent;
|
||||||
fieldList = _this5.$utils.wrapTreeNode(field.Result_Data.List);
|
fieldList = _this6.$utils.wrapTreeNode(field.Result_Data.List);
|
||||||
if (fieldList && fieldList.length > 0) {
|
if (fieldList && fieldList.length > 0) {
|
||||||
fieldList.forEach(function (item) {
|
fieldList.forEach(function (item) {
|
||||||
SCENICAREAOBJ[item.value] = item.label;
|
SCENICAREAOBJ[item.value] = item.label;
|
||||||
@ -740,16 +762,16 @@ var _default = {
|
|||||||
}
|
}
|
||||||
uni.setStorageSync("SCENICAREAOBJ", SCENICAREAOBJ);
|
uni.setStorageSync("SCENICAREAOBJ", SCENICAREAOBJ);
|
||||||
case 12:
|
case 12:
|
||||||
_this5.SCENICAREAOBJ = SCENICAREAOBJ;
|
_this6.SCENICAREAOBJ = SCENICAREAOBJ;
|
||||||
req = {
|
req = {
|
||||||
ProvinceCode: "530000",
|
ProvinceCode: "530000",
|
||||||
latitude: latitude || _this5.seat.latitude || "",
|
latitude: latitude || _this6.seat.latitude || "",
|
||||||
longitude: longitude || _this5.seat.longitude || "",
|
longitude: longitude || _this6.seat.longitude || "",
|
||||||
ServerpartID: _this5.serviceDetail.SERVERPART_ID || "",
|
ServerpartID: _this6.serviceDetail.SERVERPART_ID || "",
|
||||||
type: 'encryption'
|
type: 'encryption'
|
||||||
};
|
};
|
||||||
_context3.next = 16;
|
_context3.next = 16;
|
||||||
return _this5.$api.$zzyLocalPost("/WisdomServerpart/GetScenicAreaListByLocation", req);
|
return _this6.$api.$zzyLocalPost("/WisdomServerpart/GetScenicAreaListByLocation", req);
|
||||||
case 16:
|
case 16:
|
||||||
data = _context3.sent;
|
data = _context3.sent;
|
||||||
console.log('景区数据 ', data);
|
console.log('景区数据 ', data);
|
||||||
@ -762,7 +784,7 @@ var _default = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
_this5.ScenicData = res[0];
|
_this6.ScenicData = res[0];
|
||||||
case 22:
|
case 22:
|
||||||
case "end":
|
case "end":
|
||||||
return _context3.stop();
|
return _context3.stop();
|
||||||
@ -780,7 +802,7 @@ var _default = {
|
|||||||
// 跳转去附近的景区列表页面
|
// 跳转去附近的景区列表页面
|
||||||
handleGoScenicList: function handleGoScenicList() {
|
handleGoScenicList: function handleGoScenicList() {
|
||||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||||
var _this6 = this;
|
var _this7 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "请您授权登录后再操作。",
|
content: "请您授权登录后再操作。",
|
||||||
@ -800,7 +822,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 拿到广告数据
|
// 拿到广告数据
|
||||||
handleGetAdvertisementData: function handleGetAdvertisementData() {
|
handleGetAdvertisementData: function handleGetAdvertisementData() {
|
||||||
var _this7 = this;
|
var _this8 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
||||||
var minReq, req, data1, req2, data2, res1, res2, firstObj1, i, item, firstObj2, _i, _item;
|
var minReq, req, data1, req2, data2, res1, res2, firstObj1, i, item, firstObj2, _i, _item;
|
||||||
return _regenerator.default.wrap(function _callee4$(_context4) {
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
||||||
@ -854,7 +876,7 @@ var _default = {
|
|||||||
type: 'encryption'
|
type: 'encryption'
|
||||||
};
|
};
|
||||||
_context4.next = 4;
|
_context4.next = 4;
|
||||||
return _this7.$api.$zzyLocalPost("/MallBasic/GetUSERDEFINEDTYPEList", req);
|
return _this8.$api.$zzyLocalPost("/MallBasic/GetUSERDEFINEDTYPEList", req);
|
||||||
case 4:
|
case 4:
|
||||||
data1 = _context4.sent;
|
data1 = _context4.sent;
|
||||||
req2 = {
|
req2 = {
|
||||||
@ -867,7 +889,7 @@ var _default = {
|
|||||||
type: 'encryption'
|
type: 'encryption'
|
||||||
};
|
};
|
||||||
_context4.next = 8;
|
_context4.next = 8;
|
||||||
return _this7.$api.$zzyLocalPost("/MallBasic/GetUSERDEFINEDTYPEList", req2);
|
return _this8.$api.$zzyLocalPost("/MallBasic/GetUSERDEFINEDTYPEList", req2);
|
||||||
case 8:
|
case 8:
|
||||||
data2 = _context4.sent;
|
data2 = _context4.sent;
|
||||||
console.log('datadatadatadatadatadatadatadatadata', data1);
|
console.log('datadatadatadatadatadatadatadatadata', data1);
|
||||||
@ -923,9 +945,9 @@ var _default = {
|
|||||||
console.log('firstObj1', firstObj1);
|
console.log('firstObj1', firstObj1);
|
||||||
console.log('firstObj2', firstObj2);
|
console.log('firstObj2', firstObj2);
|
||||||
if (firstObj1.USERDEFINEDTYPE_ICO) {
|
if (firstObj1.USERDEFINEDTYPE_ICO) {
|
||||||
_this7.swiperList.unshift(firstObj1.USERDEFINEDTYPE_ICO);
|
_this8.swiperList.unshift(firstObj1.USERDEFINEDTYPE_ICO);
|
||||||
}
|
}
|
||||||
_this7.poster = firstObj2;
|
_this8.poster = firstObj2;
|
||||||
|
|
||||||
// this.swiperList.unshift(res1[0].USERDEFINEDTYPE_ICO)
|
// this.swiperList.unshift(res1[0].USERDEFINEDTYPE_ICO)
|
||||||
// this.poster = res2[0]
|
// this.poster = res2[0]
|
||||||
@ -939,7 +961,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 测试加密的方法
|
// 测试加密的方法
|
||||||
handleAes: function handleAes() {
|
handleAes: function handleAes() {
|
||||||
var _this8 = this;
|
var _this9 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
||||||
var req, str, data;
|
var req, str, data;
|
||||||
return _regenerator.default.wrap(function _callee5$(_context5) {
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
||||||
@ -954,7 +976,7 @@ var _default = {
|
|||||||
str = JSON.stringify(req); // let jiami = encryptAES(str)
|
str = JSON.stringify(req); // let jiami = encryptAES(str)
|
||||||
// let jiemi = decryptAES(jiami)
|
// let jiemi = decryptAES(jiami)
|
||||||
_context5.next = 4;
|
_context5.next = 4;
|
||||||
return _this8.$api.$zzyLocalPost("/WeChat/ExpressQuery", req);
|
return _this9.$api.$zzyLocalPost("/WeChat/ExpressQuery", req);
|
||||||
case 4:
|
case 4:
|
||||||
data = _context5.sent;
|
data = _context5.sent;
|
||||||
case 5:
|
case 5:
|
||||||
@ -1005,17 +1027,17 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 重置顶部方法顺序
|
// 重置顶部方法顺序
|
||||||
handleReloadFunIndex: function handleReloadFunIndex() {
|
handleReloadFunIndex: function handleReloadFunIndex() {
|
||||||
var _this9 = this;
|
var _this10 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
||||||
var _this, seatInfo, oldSeatInfo, distance, nearService, currentService, obj, newObj, idList, objInfo, _obj, _newObj, _idList;
|
var _this, seatInfo, oldSeatInfo, distance, nearService, currentService, obj, newObj, idList, objInfo, _obj, _newObj, _idList;
|
||||||
return _regenerator.default.wrap(function _callee7$(_context7) {
|
return _regenerator.default.wrap(function _callee7$(_context7) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context7.prev = _context7.next) {
|
switch (_context7.prev = _context7.next) {
|
||||||
case 0:
|
case 0:
|
||||||
_this9.triggered = true;
|
_this10.triggered = true;
|
||||||
_this = _this9; // 这里获取新的经纬度
|
_this = _this10; // 这里获取新的经纬度
|
||||||
_context7.next = 4;
|
_context7.next = 4;
|
||||||
return _this9.handleGetNewPosition();
|
return _this10.handleGetNewPosition();
|
||||||
case 4:
|
case 4:
|
||||||
seatInfo = _context7.sent;
|
seatInfo = _context7.sent;
|
||||||
console.log('seatInfoseatInfoseatInfo', seatInfo);
|
console.log('seatInfoseatInfoseatInfo', seatInfo);
|
||||||
@ -1035,7 +1057,7 @@ var _default = {
|
|||||||
nearService = uni.getStorageSync("nearService");
|
nearService = uni.getStorageSync("nearService");
|
||||||
currentService = uni.getStorageSync("currentService");
|
currentService = uni.getStorageSync("currentService");
|
||||||
if (nearService.SERVERPART_ID !== currentService.SERVERPART_ID) {
|
if (nearService.SERVERPART_ID !== currentService.SERVERPART_ID) {
|
||||||
obj = _this9.handleMergeDetail(nearService);
|
obj = _this10.handleMergeDetail(nearService);
|
||||||
newObj = _objectSpread(_objectSpread({}, nearService), {}, {
|
newObj = _objectSpread(_objectSpread({}, nearService), {}, {
|
||||||
sumDetail: obj,
|
sumDetail: obj,
|
||||||
haveREFUELINGGUN: obj.haveREFUELINGGUN,
|
haveREFUELINGGUN: obj.haveREFUELINGGUN,
|
||||||
@ -1045,13 +1067,13 @@ var _default = {
|
|||||||
HASMOTHER: obj.HASMOTHER,
|
HASMOTHER: obj.HASMOTHER,
|
||||||
HASPILOTLOUNGE: obj.HASPILOTLOUNGE
|
HASPILOTLOUNGE: obj.HASPILOTLOUNGE
|
||||||
});
|
});
|
||||||
_this9.serviceDetail = newObj;
|
_this10.serviceDetail = newObj;
|
||||||
uni.setStorageSync("currentService", nearService);
|
uni.setStorageSync("currentService", nearService);
|
||||||
idList = [1212, 1222, 1139, 1215];
|
idList = [1212, 1222, 1139, 1215];
|
||||||
if (idList.indexOf(nearService.SERVERPART_ID) !== -1) {
|
if (idList.indexOf(nearService.SERVERPART_ID) !== -1) {
|
||||||
_this9.handleGetChargingStation(nearService);
|
_this10.handleGetChargingStation(nearService);
|
||||||
} else {
|
} else {
|
||||||
_this9.chargingObj = {
|
_this10.chargingObj = {
|
||||||
have: 0,
|
have: 0,
|
||||||
use: 0
|
use: 0
|
||||||
};
|
};
|
||||||
@ -1063,11 +1085,11 @@ var _default = {
|
|||||||
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
|
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
|
||||||
uni.setStorageSync("actualLocation", JSON.stringify(seatInfo));
|
uni.setStorageSync("actualLocation", JSON.stringify(seatInfo));
|
||||||
_context7.next = 20;
|
_context7.next = 20;
|
||||||
return _this9.handleGetNearService(seatInfo.longitude, seatInfo.latitude);
|
return _this10.handleGetNearService(seatInfo.longitude, seatInfo.latitude);
|
||||||
case 20:
|
case 20:
|
||||||
objInfo = _context7.sent;
|
objInfo = _context7.sent;
|
||||||
console.log('objInfo', objInfo);
|
console.log('objInfo', objInfo);
|
||||||
_obj = _this9.handleMergeDetail(objInfo);
|
_obj = _this10.handleMergeDetail(objInfo);
|
||||||
_newObj = _objectSpread(_objectSpread({}, objInfo), {}, {
|
_newObj = _objectSpread(_objectSpread({}, objInfo), {}, {
|
||||||
sumDetail: _obj,
|
sumDetail: _obj,
|
||||||
haveREFUELINGGUN: _obj.haveREFUELINGGUN,
|
haveREFUELINGGUN: _obj.haveREFUELINGGUN,
|
||||||
@ -1077,10 +1099,10 @@ var _default = {
|
|||||||
HASMOTHER: _obj.HASMOTHER,
|
HASMOTHER: _obj.HASMOTHER,
|
||||||
HASPILOTLOUNGE: _obj.HASPILOTLOUNGE
|
HASPILOTLOUNGE: _obj.HASPILOTLOUNGE
|
||||||
});
|
});
|
||||||
_this9.serviceDetail = _newObj;
|
_this10.serviceDetail = _newObj;
|
||||||
_idList = [1212, 1222, 1139, 1215];
|
_idList = [1212, 1222, 1139, 1215];
|
||||||
if (_idList.indexOf(_newObj.SERVERPART_ID) !== -1) {
|
if (_idList.indexOf(_newObj.SERVERPART_ID) !== -1) {
|
||||||
_this9.handleGetChargingStation(_this9.serviceDetail);
|
_this10.handleGetChargingStation(_this10.serviceDetail);
|
||||||
}
|
}
|
||||||
case 27:
|
case 27:
|
||||||
return _context7.abrupt("return", new Promise(function (resolve) {
|
return _context7.abrupt("return", new Promise(function (resolve) {
|
||||||
@ -1218,14 +1240,14 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 查询现在的充电桩
|
// 查询现在的充电桩
|
||||||
handleGetChargingStation: function handleGetChargingStation(obj) {
|
handleGetChargingStation: function handleGetChargingStation(obj) {
|
||||||
var _this10 = this;
|
var _this11 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
||||||
var _this;
|
var _this;
|
||||||
return _regenerator.default.wrap(function _callee8$(_context8) {
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context8.prev = _context8.next) {
|
switch (_context8.prev = _context8.next) {
|
||||||
case 0:
|
case 0:
|
||||||
_this = _this10;
|
_this = _this11;
|
||||||
uni.request({
|
uni.request({
|
||||||
url: "https://xny.yciccloud.com/interconnect/api/interconnection/open/getConnectList",
|
url: "https://xny.yciccloud.com/interconnect/api/interconnection/open/getConnectList",
|
||||||
//仅为示例,并非真实接口地址。
|
//仅为示例,并非真实接口地址。
|
||||||
@ -1288,7 +1310,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 拿到服务区详情
|
// 拿到服务区详情
|
||||||
handleGetServiceDetail: function handleGetServiceDetail(id) {
|
handleGetServiceDetail: function handleGetServiceDetail(id) {
|
||||||
var _this11 = this;
|
var _this12 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
||||||
var req, data, obj;
|
var req, data, obj;
|
||||||
return _regenerator.default.wrap(function _callee9$(_context9) {
|
return _regenerator.default.wrap(function _callee9$(_context9) {
|
||||||
@ -1303,18 +1325,18 @@ var _default = {
|
|||||||
case 2:
|
case 2:
|
||||||
req = {
|
req = {
|
||||||
ServerpartId: id,
|
ServerpartId: id,
|
||||||
latitude: _this11.seat.latitude,
|
latitude: _this12.seat.latitude,
|
||||||
longitude: _this11.seat.longitude,
|
longitude: _this12.seat.longitude,
|
||||||
noLoading: true
|
noLoading: true
|
||||||
};
|
};
|
||||||
_context9.next = 5;
|
_context9.next = 5;
|
||||||
return _this11.$api.$get("/CommercialApi/BaseInfo/GetServerpartInfo", req);
|
return _this12.$api.$get("/CommercialApi/BaseInfo/GetServerpartInfo", req);
|
||||||
case 5:
|
case 5:
|
||||||
data = _context9.sent;
|
data = _context9.sent;
|
||||||
obj = data.Result_Data;
|
obj = data.Result_Data;
|
||||||
_this11.serviceDetail = obj;
|
_this12.serviceDetail = obj;
|
||||||
_this11.serviceDetail.sumDetail = _this11.handleMergeDetail(obj);
|
_this12.serviceDetail.sumDetail = _this12.handleMergeDetail(obj);
|
||||||
return _context9.abrupt("return", _this11.serviceDetail);
|
return _context9.abrupt("return", _this12.serviceDetail);
|
||||||
case 10:
|
case 10:
|
||||||
case "end":
|
case "end":
|
||||||
return _context9.stop();
|
return _context9.stop();
|
||||||
@ -1333,7 +1355,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
handleGoDetail: function handleGoDetail() {
|
handleGoDetail: function handleGoDetail() {
|
||||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||||
var _this12 = this;
|
var _this13 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "请您授权登录后再操作。",
|
content: "请您授权登录后再操作。",
|
||||||
@ -1372,7 +1394,7 @@ var _default = {
|
|||||||
handleFunClick: function handleFunClick(obj) {
|
handleFunClick: function handleFunClick(obj) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if ((this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) && obj.value !== 15) {
|
if ((this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) && obj.value !== 15) {
|
||||||
var _this13 = this;
|
var _this14 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "请您授权登录后再操作。",
|
content: "请您授权登录后再操作。",
|
||||||
@ -1551,7 +1573,7 @@ var _default = {
|
|||||||
// 全部功能
|
// 全部功能
|
||||||
handleGoAllFun: function handleGoAllFun() {
|
handleGoAllFun: function handleGoAllFun() {
|
||||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||||
var _this14 = this;
|
var _this15 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "请您授权登录后再操作。",
|
content: "请您授权登录后再操作。",
|
||||||
@ -1572,7 +1594,7 @@ var _default = {
|
|||||||
// 跳转到选择服务区
|
// 跳转到选择服务区
|
||||||
goSelectServer: function goSelectServer() {
|
goSelectServer: function goSelectServer() {
|
||||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||||
var _this15 = this;
|
var _this16 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "请您授权登录后再操作。",
|
content: "请您授权登录后再操作。",
|
||||||
@ -1754,7 +1776,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 拿到最近的服务区数据
|
// 拿到最近的服务区数据
|
||||||
handleGetNearService: function handleGetNearService(latitude, longitude) {
|
handleGetNearService: function handleGetNearService(latitude, longitude) {
|
||||||
var _this16 = this;
|
var _this17 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
||||||
var req, data, nearService, newObj, idList;
|
var req, data, nearService, newObj, idList;
|
||||||
return _regenerator.default.wrap(function _callee10$(_context10) {
|
return _regenerator.default.wrap(function _callee10$(_context10) {
|
||||||
@ -1776,16 +1798,16 @@ var _default = {
|
|||||||
// req
|
// req
|
||||||
// );
|
// );
|
||||||
_context10.next = 4;
|
_context10.next = 4;
|
||||||
return _this16.$api.$javaGet('/third-party/getServerPartList', req);
|
return _this17.$api.$javaGet('/third-party/getServerPartList', req);
|
||||||
case 4:
|
case 4:
|
||||||
data = _context10.sent;
|
data = _context10.sent;
|
||||||
_this16.serverPartList = data.Result_Data.List;
|
_this17.serverPartList = data.Result_Data.List;
|
||||||
console.log('this.serverPartListthis.serverPartListthis.serverPartList2312', _this16.serverPartList);
|
console.log('this.serverPartListthis.serverPartListthis.serverPartList2312', _this17.serverPartList);
|
||||||
uni.setStorageSync("serverPartList", JSON.stringify(_this16.serverPartList));
|
uni.setStorageSync("serverPartList", JSON.stringify(_this17.serverPartList));
|
||||||
nearService = _this16.serverPartList[0];
|
nearService = _this17.serverPartList[0];
|
||||||
uni.setStorageSync("nearService", nearService);
|
uni.setStorageSync("nearService", nearService);
|
||||||
console.log('nearServicenearServicenearService', nearService);
|
console.log('nearServicenearServicenearService', nearService);
|
||||||
nearService.sumDetail = _this16.handleMergeDetail(nearService);
|
nearService.sumDetail = _this17.handleMergeDetail(nearService);
|
||||||
newObj = _objectSpread(_objectSpread({}, nearService), {}, {
|
newObj = _objectSpread(_objectSpread({}, nearService), {}, {
|
||||||
sumDetail: nearService.sumDetail,
|
sumDetail: nearService.sumDetail,
|
||||||
haveREFUELINGGUN: nearService.sumDetail.haveREFUELINGGUN,
|
haveREFUELINGGUN: nearService.sumDetail.haveREFUELINGGUN,
|
||||||
@ -1795,11 +1817,11 @@ var _default = {
|
|||||||
HASMOTHER: nearService.sumDetail.HASMOTHER,
|
HASMOTHER: nearService.sumDetail.HASMOTHER,
|
||||||
HASPILOTLOUNGE: nearService.sumDetail.HASPILOTLOUNGE
|
HASPILOTLOUNGE: nearService.sumDetail.HASPILOTLOUNGE
|
||||||
});
|
});
|
||||||
_this16.serviceDetail = newObj;
|
_this17.serviceDetail = newObj;
|
||||||
uni.setStorageSync("currentService", nearService);
|
uni.setStorageSync("currentService", nearService);
|
||||||
idList = [1212, 1222, 1139, 1215];
|
idList = [1212, 1222, 1139, 1215];
|
||||||
if (idList.indexOf(nearService.SERVERPART_ID) !== -1) {
|
if (idList.indexOf(nearService.SERVERPART_ID) !== -1) {
|
||||||
_this16.handleGetChargingStation(nearService);
|
_this17.handleGetChargingStation(nearService);
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
return _context10.abrupt("return", nearService);
|
return _context10.abrupt("return", nearService);
|
||||||
@ -1813,15 +1835,15 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 高速头条播报
|
// 高速头条播报
|
||||||
handleGetHighwayHeadlines: function handleGetHighwayHeadlines() {
|
handleGetHighwayHeadlines: function handleGetHighwayHeadlines() {
|
||||||
var _this17 = this;
|
var _this18 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
||||||
var start, end, params, time, req, signText, sign, tweetsData, newReq, newData, list;
|
var start, end, params, time, req, signText, sign, tweetsData, newReq, newData, list;
|
||||||
return _regenerator.default.wrap(function _callee11$(_context11) {
|
return _regenerator.default.wrap(function _callee11$(_context11) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context11.prev = _context11.next) {
|
switch (_context11.prev = _context11.next) {
|
||||||
case 0:
|
case 0:
|
||||||
start = "".concat(_this17.$moment.now().set("month", -1).format("YYYY-MM-DD"), " 00:00:00");
|
start = "".concat(_this18.$moment.now().set("month", -1).format("YYYY-MM-DD"), " 00:00:00");
|
||||||
end = "".concat(_this17.$moment.now().format("YYYY-MM-DD"), " 23:59:59");
|
end = "".concat(_this18.$moment.now().format("YYYY-MM-DD"), " 23:59:59");
|
||||||
params = {
|
params = {
|
||||||
startQueryTime: start,
|
startQueryTime: start,
|
||||||
// 开始时间
|
// 开始时间
|
||||||
@ -1903,7 +1925,7 @@ var _default = {
|
|||||||
appId: "wxee018fb96955552a"
|
appId: "wxee018fb96955552a"
|
||||||
};
|
};
|
||||||
_context11.next = 16;
|
_context11.next = 16;
|
||||||
return _this17.$api.$post("/EShangApiMain/Notice/GetNOTICEINFOList", newReq);
|
return _this18.$api.$post("/EShangApiMain/Notice/GetNOTICEINFOList", newReq);
|
||||||
case 16:
|
case 16:
|
||||||
newData = _context11.sent;
|
newData = _context11.sent;
|
||||||
list = newData.Result_Data.List; // if (list && list.length > 0) {
|
list = newData.Result_Data.List; // if (list && list.length > 0) {
|
||||||
@ -1911,7 +1933,7 @@ var _default = {
|
|||||||
// this.roadStatusList = [];
|
// this.roadStatusList = [];
|
||||||
// }
|
// }
|
||||||
// this.roadStatusList = list.concat(tweetsData);
|
// this.roadStatusList = list.concat(tweetsData);
|
||||||
_this17.roadStatusList = list;
|
_this18.roadStatusList = list;
|
||||||
|
|
||||||
// this.roadStatusList.unshift({
|
// this.roadStatusList.unshift({
|
||||||
// NOTICEINFO_TITLE: "最新放假通知:调休2天,免费8天!",
|
// NOTICEINFO_TITLE: "最新放假通知:调休2天,免费8天!",
|
||||||
@ -1927,7 +1949,7 @@ var _default = {
|
|||||||
// 跳转高速头条
|
// 跳转高速头条
|
||||||
handleGoHighWay: function handleGoHighWay() {
|
handleGoHighWay: function handleGoHighWay() {
|
||||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||||
var _this18 = this;
|
var _this19 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "请您授权登录后再操作。",
|
content: "请您授权登录后再操作。",
|
||||||
@ -1947,7 +1969,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 拿到促销单品的数据 5030
|
// 拿到促销单品的数据 5030
|
||||||
handleGetSpecialOffers: function handleGetSpecialOffers() {
|
handleGetSpecialOffers: function handleGetSpecialOffers() {
|
||||||
var _this19 = this;
|
var _this20 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
||||||
var data, list, shopList;
|
var data, list, shopList;
|
||||||
return _regenerator.default.wrap(function _callee12$(_context12) {
|
return _regenerator.default.wrap(function _callee12$(_context12) {
|
||||||
@ -1955,7 +1977,7 @@ var _default = {
|
|||||||
switch (_context12.prev = _context12.next) {
|
switch (_context12.prev = _context12.next) {
|
||||||
case 0:
|
case 0:
|
||||||
_context12.next = 2;
|
_context12.next = 2;
|
||||||
return _this19.$api.getCoop({
|
return _this20.$api.getCoop({
|
||||||
action_type: "WeChat_GetMallGoodsInfo",
|
action_type: "WeChat_GetMallGoodsInfo",
|
||||||
ownerUnitId: 911,
|
ownerUnitId: 911,
|
||||||
COMMODITYNATURE: 5030,
|
COMMODITYNATURE: 5030,
|
||||||
@ -1976,9 +1998,9 @@ var _default = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (shopList && shopList.length > 0) {
|
if (shopList && shopList.length > 0) {
|
||||||
_this19.specialOffersList = shopList.slice(0, 2);
|
_this20.specialOffersList = shopList.slice(0, 2);
|
||||||
} else {
|
} else {
|
||||||
_this19.specialOffersList = [];
|
_this20.specialOffersList = [];
|
||||||
}
|
}
|
||||||
case 7:
|
case 7:
|
||||||
case "end":
|
case "end":
|
||||||
@ -1990,7 +2012,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 拿到甄选商品 5040
|
// 拿到甄选商品 5040
|
||||||
handleGetProductsList: function handleGetProductsList() {
|
handleGetProductsList: function handleGetProductsList() {
|
||||||
var _this20 = this;
|
var _this21 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
|
||||||
var data, list, shopList;
|
var data, list, shopList;
|
||||||
return _regenerator.default.wrap(function _callee13$(_context13) {
|
return _regenerator.default.wrap(function _callee13$(_context13) {
|
||||||
@ -1998,7 +2020,7 @@ var _default = {
|
|||||||
switch (_context13.prev = _context13.next) {
|
switch (_context13.prev = _context13.next) {
|
||||||
case 0:
|
case 0:
|
||||||
_context13.next = 2;
|
_context13.next = 2;
|
||||||
return _this20.$api.getCoop({
|
return _this21.$api.getCoop({
|
||||||
action_type: "WeChat_GetMallGoodsInfo",
|
action_type: "WeChat_GetMallGoodsInfo",
|
||||||
ownerUnitId: 911,
|
ownerUnitId: 911,
|
||||||
COMMODITYNATURE: 5040,
|
COMMODITYNATURE: 5040,
|
||||||
@ -2019,9 +2041,9 @@ var _default = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (shopList && shopList.length > 0) {
|
if (shopList && shopList.length > 0) {
|
||||||
_this20.productsList = shopList.slice(0, 2);
|
_this21.productsList = shopList.slice(0, 2);
|
||||||
} else {
|
} else {
|
||||||
_this20.productsList = [];
|
_this21.productsList = [];
|
||||||
}
|
}
|
||||||
case 7:
|
case 7:
|
||||||
case "end":
|
case "end":
|
||||||
@ -2033,7 +2055,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 拿到 商城精品 3000
|
// 拿到 商城精品 3000
|
||||||
handleGetShoppingMall: function handleGetShoppingMall() {
|
handleGetShoppingMall: function handleGetShoppingMall() {
|
||||||
var _this21 = this;
|
var _this22 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
|
||||||
var data, list, shopList;
|
var data, list, shopList;
|
||||||
return _regenerator.default.wrap(function _callee14$(_context14) {
|
return _regenerator.default.wrap(function _callee14$(_context14) {
|
||||||
@ -2041,7 +2063,7 @@ var _default = {
|
|||||||
switch (_context14.prev = _context14.next) {
|
switch (_context14.prev = _context14.next) {
|
||||||
case 0:
|
case 0:
|
||||||
_context14.next = 2;
|
_context14.next = 2;
|
||||||
return _this21.$api.getCoop({
|
return _this22.$api.getCoop({
|
||||||
action_type: "WeChat_GetMallGoodsInfo",
|
action_type: "WeChat_GetMallGoodsInfo",
|
||||||
ownerUnitId: 911,
|
ownerUnitId: 911,
|
||||||
COMMODITYNATURE: 3000,
|
COMMODITYNATURE: 3000,
|
||||||
@ -2073,7 +2095,7 @@ var _default = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
_this21.shoppingMall = shopList;
|
_this22.shoppingMall = shopList;
|
||||||
case 7:
|
case 7:
|
||||||
case "end":
|
case "end":
|
||||||
return _context14.stop();
|
return _context14.stop();
|
||||||
@ -2085,7 +2107,7 @@ var _default = {
|
|||||||
// 打开地图的跳转
|
// 打开地图的跳转
|
||||||
handleGoMap: function handleGoMap() {
|
handleGoMap: function handleGoMap() {
|
||||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||||
var _this22 = this;
|
var _this23 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
content: "请您授权登录后再操作。",
|
content: "请您授权登录后再操作。",
|
||||||
@ -2124,7 +2146,7 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 拿到里面商城页面分类的缓存数据
|
// 拿到里面商城页面分类的缓存数据
|
||||||
handleGetShopMallData: function handleGetShopMallData() {
|
handleGetShopMallData: function handleGetShopMallData() {
|
||||||
var _this23 = this;
|
var _this24 = this;
|
||||||
// 判断当前是否在进行 请求里面商城的数据
|
// 判断当前是否在进行 请求里面商城的数据
|
||||||
uni.setStorageSync("isPaddingShopData", true);
|
uni.setStorageSync("isPaddingShopData", true);
|
||||||
|
|
||||||
@ -2162,7 +2184,7 @@ var _default = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log('everyWeekShopDataeveryWeekShopDataeveryWeekShopData', res);
|
console.log('everyWeekShopDataeveryWeekShopDataeveryWeekShopData', res);
|
||||||
_this23.everyWeekShopData = res;
|
_this24.everyWeekShopData = res;
|
||||||
});
|
});
|
||||||
|
|
||||||
// 拿到特价优惠的内容
|
// 拿到特价优惠的内容
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user