This commit is contained in:
ylj20011123 2025-09-19 13:58:37 +08:00
parent 178c3a8179
commit 13e7f7773a
69 changed files with 449 additions and 261 deletions

View File

@ -71,7 +71,8 @@
{
"path": "index",
"style": {
"navigationBarTitleText": "投诉建议"
"navigationBarTitleText": "投诉建议",
"enablePullDownRefresh": true
}
},
{

View File

@ -143,8 +143,11 @@ export default {
});
} else if (obj.value === 9) {
//
uni.navigateToMiniProgram({
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
// uni.navigateToMiniProgram({
// shortLink: "#:///jFbQlCIEsEjf5Nq",
// });
uni.navigateTo({
url: `/pages/complaints/index`,
});
} else if (obj.value === 10) {
//

View File

@ -7,8 +7,10 @@
<view class="header-overlay"></view>
</view>
<view class="header-content">
<view class="header-title">意见反馈</view>
<view class="header-subtitle">您的宝贵意见是我们进步的动力</view>
<view class="header-title">高速公路服务区</view>
<view class="header-subtitle">优质文明服务监督</view>
<view class="header-subtitle" style="color:#2c3e50;font-size: 20rpx;margin-top: 16rpx;">
此投诉为本小程序自有投诉渠道非微信官方投诉渠道</view>
</view>
</view>
@ -89,7 +91,7 @@
<!-- 快速标签卡片 -->
<view class="form-card" v-if="tagList.length > 0">
<view class="card-header" style="margin-bottom: 24rpx;">
<view class="card-title">投诉类型</view>
<view class="card-title">{{ typeIndex === '1' ? '表扬' : '投诉' }}类型</view>
<view class="card-icon">🏷</view>
</view>
@ -173,7 +175,8 @@ export default {
serverPartName: '',
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: '表扬' }],
typeIndex: 0,
serverIndex: 0,
tagList: [], //
@ -192,6 +195,25 @@ export default {
}
},
onLoad(option) {
if ((this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID))) {
let _this = this;
uni.showModal({
title: "温馨提示",
content: "请您授权登录后再操作。",
success(res) {
if (res.confirm) {
uni.navigateTo({ url: "/pages/register/index" });
} else if (res.cancel) {
uni.switchTab({
url: '/pages/index/index'
});
}
},
});
}
console.log('optionoptionoption', option);
if (option.SUGGESTIONID) {
this.detailSuggestion.SUGGESTION_ID = option.SUGGESTIONID
@ -217,6 +239,10 @@ export default {
this.serverIndex = serverIndex
}
// if (!(this.tagList && this.tagList.length > 0)) {
// this.getTag()
// }
this.saveMsg.PhoneNumber = this.user.MEMBERSHIP_MOBILEPHONE
},
onUnload() {
@ -294,6 +320,8 @@ export default {
},
bindTypePickerChange(event) {
let index = event.detail.value
console.log('indexindex', index);
this.typeIndex = index
this.saveMsg.Type = this.msgType[index].type
this.pageMsg.typeName = this.msgType[index].name
@ -436,6 +464,17 @@ export default {
})
return false
}
if (!(this.selectTags && this.selectTags.length > 0)) {
uni.showToast({
title: '请选择具体类型',
icon: 'none'
})
return false
}
if (flag === 0) {
this.postIt()
}
@ -481,12 +520,28 @@ export default {
uni.showToast({
title: '反馈成功!'
})
setTimeout(() => {
// _this.noPost = true
uni.navigateBack({
delta: 1
})
}, 1000)
const pages = getCurrentPages();
console.log(pages);
if (pages && pages.length > 1) {
setTimeout(() => {
// _this.noPost = true
uni.navigateBack({
delta: 1
})
}, 1000)
} else {
setTimeout(() => {
uni.redirectTo({
url: '/pages/complaints/index'
});
}, 1000)
}
} else {
uni.showToast({
title: rs.ResultDesc,
icon: 'none'
})
}
})
},
@ -581,7 +636,7 @@ export default {
color: white;
.header-title {
font-size: 48rpx;
font-size: 38rpx;
font-weight: bold;
margin-bottom: 12rpx;
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);

View File

@ -6,7 +6,7 @@
: `url(https://eshangtech.com/minTestImg/pageBg.png)`,
}">
<view class="topBox" :style="{
height: menu.bottom + 14 + 'px',
height: menu.bottom + 14 + 'px',
backgroundImage:
pageType === 'spring'
? `url(https://eshangtech.com/minTestImg/springPageBg.png)`
@ -1414,7 +1414,7 @@ export default {
//
handleFunClick(obj) {
let _this = this
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)) && obj.value !== 15) {
let _this = this;
uni.showModal({
title: "温馨提示",
@ -1512,8 +1512,7 @@ export default {
// behaviorRecordDesc: ""
// });
// }
// });
// });
uni.navigateTo({
url: `/pages/complaints/index`,
});

View File

@ -27,7 +27,7 @@
<p class="title">{{ item.SERVERPART_NAME }}</p>
<view class="typeBox">{{
item.SERVERPART_TYPE ? serviceTypeObj[item.SERVERPART_TYPE] : ""
}}</view>
}}</view>
</view>
<div class="box">
<div class="imgBox" @click.stop="handleGoPhone(item)">
@ -81,7 +81,7 @@
<view class="inBottom" v-if="serviceList && serviceList.length > 0">
<text class="bottomText">{{
pageMsg.isOver ? "我是有底线的" : "下拉加载更多"
}}</text>
}}</text>
</view>
</scroll-view>
</div>
@ -148,8 +148,44 @@ export default {
//
this.mapCtx = uni.createMapContext("myMap");
let seatInfo = uni.getStorageSync("seatInfo");
console.log('seatInfoseatInfoseatInfo', seatInfo);
if (seatInfo) {
this.seatInfo = JSON.parse(seatInfo);
} else {
let _this = this
console.log('22222');
uni.getLocation({
type: "gcj02",
altitude: true,
success: async (res) => {
let seatInfo = {
latitude: res.latitude,
longitude: res.longitude,
};
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
_this.seatInfo = seatInfo
let type = uni.getStorageSync("loginType");
_this.loginType = type;
if (_this.seatInfo.longitude && _this.seatInfo.latitude) {
let res = uni.getStorageSync("currentService");
console.log("res", res);
//
if (res) {
_this.currentServiceMessage = res;
}
//
// await _this.getServiceList();
//
await _this.handleServiceType();
//
await _this.handleGetServiceList();
}
},
fail: (err) => {
},
});
}
let type = uni.getStorageSync("loginType");
this.loginType = type;
@ -168,8 +204,6 @@ export default {
await this.handleGetServiceList();
}
// this.$utils.addUserBehaviorNew();
this.$utils.addUserBehaviorNew({
behaviorRecordDesc: `进入选择服务区列表`

View File

@ -109,7 +109,6 @@ export default {
}),
},
onLoad(query) {
console.log('this.userthis.userthis.user', this.user);
if (this.user.MEMBERSHIP_ID) {
uni.switchTab({
@ -117,6 +116,24 @@ export default {
});
}
let seatInfo = uni.getStorageSync("seatInfo");
if (seatInfo) {
} else {
uni.getLocation({
type: "gcj02",
altitude: true,
success: (res) => {
let seatInfo = {
latitude: res.latitude,
longitude: res.longitude,
};
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
},
fail: (err) => {
},
});
}
if (query.backTo) {
this.backTo = query.backTo

View File

@ -141,7 +141,7 @@
:style="{ width: userInfo && userInfo.INDUSTRY_MEMBERSHIP_ID ? 'calc((100% - 2px) / 3)' : 'calc((100% - 2px) / 2)' }">
<view class="CouponItemValue">{{
$utils.handleFormatNumber(userInfo.MEMBERSHIP_POINT || 0)
}}</view>
}}</view>
<view class="CouponItemLabel">积分</view>
</view>
<view class="line" v-if="userInfo && userInfo.INDUSTRY_MEMBERSHIP_ID"></view>
@ -150,7 +150,7 @@
:style="{ width: userInfo && userInfo.INDUSTRY_MEMBERSHIP_ID ? 'calc((100% - 2px) / 3)' : 'calc((100% - 2px) / 2)' }">
<view class="CouponItemValue">{{
$utils.handleFormatNumber(userInfo.ACCOUNT_BALANCE || 0)
}}</view>
}}</view>
<view class="CouponItemLabel">工会福利</view>
</view>
</view>
@ -1073,8 +1073,11 @@ export default {
this.handleGoBindCar();
} else if (obj.value === 3) {
//
uni.navigateToMiniProgram({
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
// uni.navigateToMiniProgram({
// shortLink: "#:///jFbQlCIEsEjf5Nq",
// });
uni.navigateTo({
url: `/pages/complaints/index`,
});
}
},

View File

@ -1153,8 +1153,11 @@ export default {
this.handleGoBindCar();
} else if (obj.value === 3) {
//
uni.navigateToMiniProgram({
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
// uni.navigateToMiniProgram({
// shortLink: "#:///jFbQlCIEsEjf5Nq",
// });
uni.navigateTo({
url: `/pages/complaints/index`,
});
}
},

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

View File

@ -279,8 +279,11 @@ var _default = {
});
} else if (obj.value === 9) {
// 投诉建议
uni.navigateToMiniProgram({
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq"
// uni.navigateToMiniProgram({
// shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
// });
uni.navigateTo({
url: "/pages/complaints/index"
});
} else if (obj.value === 10) {
// 金融

View File

@ -1371,7 +1371,7 @@ var _default = {
// 功能列表
handleFunClick: function handleFunClick(obj) {
var _this = this;
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) && obj.value !== 15) {
var _this13 = this;
uni.showModal({
title: "温馨提示",
@ -1470,8 +1470,7 @@ var _default = {
// behaviorRecordDesc: "跳转投诉建议"
// });
// }
// });
// });
uni.navigateTo({
url: "/pages/complaints/index"
});

View File

@ -207,58 +207,112 @@ var _default = {
nowStore: "nowStore"
})),
onLoad: function onLoad(option) {
var _this = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
var systemInfo, seatInfo, type, res;
return _regenerator.default.wrap(function _callee$(_context) {
var _this2 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
var systemInfo, seatInfo, _this, type, res;
return _regenerator.default.wrap(function _callee2$(_context2) {
while (1) {
switch (_context.prev = _context.next) {
switch (_context2.prev = _context2.next) {
case 0:
console.log("option", option);
if (option.comeForm) {
_this.comeForm = option.comeForm;
_this2.comeForm = option.comeForm;
}
// 获取手机参数
systemInfo = uni.getSystemInfoSync();
_this.statusBarHeight = Number(systemInfo.statusBarHeight);
_this.menu = uni.getMenuButtonBoundingClientRect();
_this2.statusBarHeight = Number(systemInfo.statusBarHeight);
_this2.menu = uni.getMenuButtonBoundingClientRect();
// 地图初始化
_this.mapCtx = uni.createMapContext("myMap");
_this2.mapCtx = uni.createMapContext("myMap");
seatInfo = uni.getStorageSync("seatInfo");
console.log('seatInfoseatInfoseatInfo', seatInfo);
if (seatInfo) {
_this.seatInfo = JSON.parse(seatInfo);
_this2.seatInfo = JSON.parse(seatInfo);
} else {
_this = _this2;
console.log('22222');
uni.getLocation({
type: "gcj02",
altitude: true,
success: function () {
var _success = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(res) {
var seatInfo, type, _res;
return _regenerator.default.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
seatInfo = {
latitude: res.latitude,
longitude: res.longitude
};
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
_this.seatInfo = seatInfo;
type = uni.getStorageSync("loginType");
_this.loginType = type;
if (!(_this.seatInfo.longitude && _this.seatInfo.latitude)) {
_context.next = 13;
break;
}
_res = uni.getStorageSync("currentService");
console.log("res", _res);
// 已经拿到选中的服务区了
if (_res) {
_this.currentServiceMessage = _res;
}
// 获取片区列表
// await _this.getServiceList();
// 服务区的枚举类型
_context.next = 11;
return _this.handleServiceType();
case 11:
_context.next = 13;
return _this.handleGetServiceList();
case 13:
case "end":
return _context.stop();
}
}
}, _callee);
}));
function success(_x) {
return _success.apply(this, arguments);
}
return success;
}(),
fail: function fail(err) {}
});
}
type = uni.getStorageSync("loginType");
_this.loginType = type;
if (!(_this.seatInfo.longitude && _this.seatInfo.latitude)) {
_context.next = 18;
_this2.loginType = type;
if (!(_this2.seatInfo.longitude && _this2.seatInfo.latitude)) {
_context2.next = 19;
break;
}
res = uni.getStorageSync("currentService");
console.log("res", res);
// 已经拿到选中的服务区了
if (res) {
_this.currentServiceMessage = res;
_this2.currentServiceMessage = res;
}
// 获取片区列表
// await this.getServiceList();
// 服务区的枚举类型
_context.next = 16;
return _this.handleServiceType();
case 16:
_context.next = 18;
return _this.handleGetServiceList();
case 18:
_context2.next = 17;
return _this2.handleServiceType();
case 17:
_context2.next = 19;
return _this2.handleGetServiceList();
case 19:
// this.$utils.addUserBehaviorNew();
_this.$utils.addUserBehaviorNew({
_this2.$utils.addUserBehaviorNew({
behaviorRecordDesc: "\u8FDB\u5165\u9009\u62E9\u670D\u52A1\u533A\u5217\u8868"
});
case 19:
case 20:
case "end":
return _context.stop();
return _context2.stop();
}
}
}, _callee);
}, _callee2);
}))();
},
onHide: function onHide() {
@ -294,68 +348,68 @@ var _default = {
},
// 获取片区列表
getServiceList: function getServiceList() {
var _this2 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
var req, data, selectIndex;
return _regenerator.default.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
req = {
Province_Code: _this2.user.PROVINCE_CODE || "530000"
};
_context2.next = 3;
return _this2.$api.$get("/CommercialApi/BaseInfo/GetSPRegionList", req);
case 3:
data = _context2.sent;
console.log("data", data);
_this2.array = data.Result_Data.List;
// 已经有选择的服务区的话 根据数据 自动把片区选择起来
if (_this2.currentServiceMessage.SPREGIONTYPE_ID) {
console.log("1");
selectIndex = 0;
_this2.array.forEach(function (item, index) {
if (item.value === _this2.currentServiceMessage.SPREGIONTYPE_ID) {
selectIndex = index;
}
});
_this2.selectIndex = selectIndex;
_this2.selectValue = _this2.currentServiceMessage.SPREGIONTYPE_ID;
_this2.selectName = _this2.currentServiceMessage.SPREGIONTYPE_NAME;
} else {
console.log("2");
_this2.selectIndex = 0;
_this2.selectValue = _this2.array[_this2.selectIndex].value;
_this2.selectName = _this2.array[_this2.selectIndex].name;
}
case 7:
case "end":
return _context2.stop();
}
}
}, _callee2);
}))();
},
// 拿到服务区列表
handleGetServiceList: function handleGetServiceList() {
var _this3 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
var serverPartList, list, req, data, oldList;
var req, data, selectIndex;
return _regenerator.default.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
if (_this3.seatInfo.longitude && _this3.seatInfo.latitude) {
_context3.next = 2;
req = {
Province_Code: _this3.user.PROVINCE_CODE || "530000"
};
_context3.next = 3;
return _this3.$api.$get("/CommercialApi/BaseInfo/GetSPRegionList", req);
case 3:
data = _context3.sent;
console.log("data", data);
_this3.array = data.Result_Data.List;
// 已经有选择的服务区的话 根据数据 自动把片区选择起来
if (_this3.currentServiceMessage.SPREGIONTYPE_ID) {
console.log("1");
selectIndex = 0;
_this3.array.forEach(function (item, index) {
if (item.value === _this3.currentServiceMessage.SPREGIONTYPE_ID) {
selectIndex = index;
}
});
_this3.selectIndex = selectIndex;
_this3.selectValue = _this3.currentServiceMessage.SPREGIONTYPE_ID;
_this3.selectName = _this3.currentServiceMessage.SPREGIONTYPE_NAME;
} else {
console.log("2");
_this3.selectIndex = 0;
_this3.selectValue = _this3.array[_this3.selectIndex].value;
_this3.selectName = _this3.array[_this3.selectIndex].name;
}
case 7:
case "end":
return _context3.stop();
}
}
}, _callee3);
}))();
},
// 拿到服务区列表
handleGetServiceList: function handleGetServiceList() {
var _this4 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
var serverPartList, list, req, data, oldList;
return _regenerator.default.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
if (_this4.seatInfo.longitude && _this4.seatInfo.latitude) {
_context4.next = 2;
break;
}
return _context3.abrupt("return");
return _context4.abrupt("return");
case 2:
if (!_this3.searchText) {
_context3.next = 4;
if (!_this4.searchText) {
_context4.next = 4;
break;
}
return _context3.abrupt("return");
return _context4.abrupt("return");
case 4:
uni.showLoading({
title: "加载中..."
@ -365,52 +419,52 @@ var _default = {
serverPartList = uni.getStorageSync('serverPartList');
list = [];
if (!serverPartList) {
_context3.next = 11;
_context4.next = 11;
break;
}
list = JSON.parse(serverPartList);
_context3.next = 16;
_context4.next = 16;
break;
case 11:
req = {
Province_Code: _this3.user.PROVINCE_CODE || "530000",
Province_Code: _this4.user.PROVINCE_CODE || "530000",
// SPRegionType_ID: this.selectValue,
Serverpart_ID: _this3.currentServiceMessage.Serverpart_ID || "",
Serverpart_ID: _this4.currentServiceMessage.Serverpart_ID || "",
// 用自己当前位置去查找
longitude: _this3.seatInfo.longitude,
longitude: _this4.seatInfo.longitude,
showservice: true,
latitude: _this3.seatInfo.latitude,
PageIndex: _this3.pageMsg.pageIndex,
PageSize: _this3.pageMsg.pageSize
latitude: _this4.seatInfo.latitude,
PageIndex: _this4.pageMsg.pageIndex,
PageSize: _this4.pageMsg.pageSize
// longitude: this.currentServiceMessage.ServerPart_X || "",
// latitude: this.currentServiceMessage.ServerPart_Y || "",
};
_context3.next = 14;
return _this3.$api.$javaGet('/third-party/getServerPartList', req);
_context4.next = 14;
return _this4.$api.$javaGet('/third-party/getServerPartList', req);
case 14:
data = _context3.sent;
data = _context4.sent;
list = data && data.Result_Data && data.Result_Data.List && data.Result_Data.List.length > 0 ? data.Result_Data.List : [];
case 16:
if (list && list.length < _this3.pageMsg.pageSize) {
_this3.pageMsg.isOver = true;
if (list && list.length < _this4.pageMsg.pageSize) {
_this4.pageMsg.isOver = true;
}
oldList = [];
if (_this3.serviceList && _this3.serviceList.length > 0) {
oldList = JSON.parse(JSON.stringify(_this3.serviceList));
if (_this4.serviceList && _this4.serviceList.length > 0) {
oldList = JSON.parse(JSON.stringify(_this4.serviceList));
}
_this3.serviceList = oldList.concat(list);
console.log("this.serviceList", _this3.serviceList);
_context3.next = 23;
return _this3.getServiceDetail(_this3.serviceList[0].SERVERPART_ID);
_this4.serviceList = oldList.concat(list);
console.log("this.serviceList", _this4.serviceList);
_context4.next = 23;
return _this4.getServiceDetail(_this4.serviceList[0].SERVERPART_ID);
case 23:
_this3.isMoreLoading = false;
_this4.isMoreLoading = false;
uni.hideLoading();
case 25:
case "end":
return _context3.stop();
return _context4.stop();
}
}
}, _callee3);
}, _callee4);
}))();
},
// 选择的服务区详情
@ -449,56 +503,26 @@ var _default = {
},
// 获取服务区详情信息
getServiceDetail: function getServiceDetail(id) {
var _this4 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
var req, data;
return _regenerator.default.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
req = {
ServerpartId: id,
longitude: _this4.seatInfo.longitude,
latitude: _this4.seatInfo.latitude
};
_context4.next = 3;
return _this4.$api.$get("/CommercialApi/BaseInfo/GetServerpartInfo", req);
case 3:
data = _context4.sent;
console.log("data", data);
_this4.longitude = data.Result_Data.ServerpartInfo.SERVERPART_X;
_this4.latitude = data.Result_Data.ServerpartInfo.SERVERPART_Y;
_this4.isShowMap = true;
case 8:
case "end":
return _context4.stop();
}
}
}, _callee4);
}))();
},
// 枚举服务区类型 SERVERPART_TYPE
handleServiceType: function handleServiceType() {
var _this5 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
var data, obj;
var req, data;
return _regenerator.default.wrap(function _callee5$(_context5) {
while (1) {
switch (_context5.prev = _context5.next) {
case 0:
_context5.next = 2;
return _this5.$api.$get("/EShangApiMain/FrameWork/GetFieldEnumByField", {
FieldExplainField: "SERVERPART_TYPE"
});
case 2:
req = {
ServerpartId: id,
longitude: _this5.seatInfo.longitude,
latitude: _this5.seatInfo.latitude
};
_context5.next = 3;
return _this5.$api.$get("/CommercialApi/BaseInfo/GetServerpartInfo", req);
case 3:
data = _context5.sent;
console.log("data", data);
obj = {};
data.Result_Data.List.forEach(function (item) {
obj[Number(item.value)] = item.label;
});
console.log("obj", obj);
_this5.serviceTypeObj = obj;
_this5.longitude = data.Result_Data.ServerpartInfo.SERVERPART_X;
_this5.latitude = data.Result_Data.ServerpartInfo.SERVERPART_Y;
_this5.isShowMap = true;
case 8:
case "end":
return _context5.stop();
@ -507,69 +531,99 @@ var _default = {
}, _callee5);
}))();
},
// 搜索框触发的方法
handleSearch: function handleSearch() {
// 枚举服务区类型 SERVERPART_TYPE
handleServiceType: function handleServiceType() {
var _this6 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
var req, data, list, oldList;
var data, obj;
return _regenerator.default.wrap(function _callee6$(_context6) {
while (1) {
switch (_context6.prev = _context6.next) {
case 0:
_this6.pageMsg.isOver = false;
_context6.next = 2;
return _this6.$api.$get("/EShangApiMain/FrameWork/GetFieldEnumByField", {
FieldExplainField: "SERVERPART_TYPE"
});
case 2:
data = _context6.sent;
console.log("data", data);
obj = {};
data.Result_Data.List.forEach(function (item) {
obj[Number(item.value)] = item.label;
});
console.log("obj", obj);
_this6.serviceTypeObj = obj;
case 8:
case "end":
return _context6.stop();
}
}
}, _callee6);
}))();
},
// 搜索框触发的方法
handleSearch: function handleSearch() {
var _this7 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
var req, data, list, oldList;
return _regenerator.default.wrap(function _callee7$(_context7) {
while (1) {
switch (_context7.prev = _context7.next) {
case 0:
_this7.pageMsg.isOver = false;
// 如果没有搜索文字 那么就把gapgeMsg变回默认 服务区列表也变为空 重新请求
if (_this6.searchText) {
_context6.next = 6;
if (_this7.searchText) {
_context7.next = 6;
break;
}
_this6.pageMsg = {
_this7.pageMsg = {
pageIndex: 1,
pageSize: 20,
isOver: false
};
_this6.serviceList = [];
_this6.handleGetServiceList();
return _context6.abrupt("return");
_this7.serviceList = [];
_this7.handleGetServiceList();
return _context7.abrupt("return");
case 6:
_this6.serviceList = [];
_this7.serviceList = [];
// uni.showLoading({
// title: "加载中...",
// });
req = {
// longitude: this.longitude,
Province_Code: _this6.user.PROVINCE_CODE || "530000",
longitude: _this6.seatInfo.longitude,
latitude: _this6.seatInfo.latitude,
Serverpart_Name: _this6.searchText,
Province_Code: _this7.user.PROVINCE_CODE || "530000",
longitude: _this7.seatInfo.longitude,
latitude: _this7.seatInfo.latitude,
Serverpart_Name: _this7.searchText,
showservice: true
}; // const data = await this.$api.$get(
// "/CommercialApi/BaseInfo/GetServerpartList",
// req
// );
_context6.next = 10;
return _this6.$api.$javaGet('/third-party/getServerPartList', req);
_context7.next = 10;
return _this7.$api.$javaGet('/third-party/getServerPartList', req);
case 10:
data = _context6.sent;
data = _context7.sent;
list = data.Result_Data.List;
console.log('listlistlistlistlist', list);
if (list && list.length < _this6.pageMsg.pageSize) {
_this6.pageMsg.isOver = true;
if (list && list.length < _this7.pageMsg.pageSize) {
_this7.pageMsg.isOver = true;
}
oldList = [];
if (_this6.serviceList && _this6.serviceList.length > 0) {
oldList = JSON.parse(JSON.stringify(_this6.serviceList));
if (_this7.serviceList && _this7.serviceList.length > 0) {
oldList = JSON.parse(JSON.stringify(_this7.serviceList));
}
_this6.serviceList = oldList.concat(list);
_this6.pageMsg.isOver = true;
_this7.serviceList = oldList.concat(list);
_this7.pageMsg.isOver = true;
// uni.hideLoading();
case 18:
case "end":
return _context6.stop();
return _context7.stop();
}
}
}, _callee6);
}, _callee7);
}))();
},
handleGomap: function handleGomap(obj) {

View File

@ -176,12 +176,26 @@ var _default = {
InviteCode: "InviteCode"
})),
onLoad: function onLoad(query) {
console.log('this.userthis.userthis.user', this.user);
if (this.user.MEMBERSHIP_ID) {
uni.switchTab({
url: '/pages/index/index'
});
}
var seatInfo = uni.getStorageSync("seatInfo");
if (seatInfo) {} else {
uni.getLocation({
type: "gcj02",
altitude: true,
success: function success(res) {
var seatInfo = {
latitude: res.latitude,
longitude: res.longitude
};
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
},
fail: function fail(err) {}
});
}
if (query.backTo) {
this.backTo = query.backTo;
}

View File

@ -1180,8 +1180,11 @@ var _default = {
this.handleGoBindCar();
} else if (obj.value === 3) {
// 建议反馈
uni.navigateToMiniProgram({
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq"
// uni.navigateToMiniProgram({
// shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
// });
uni.navigateTo({
url: "/pages/complaints/index"
});
}
},

View File

@ -9,10 +9,10 @@
"list": [
{
"name": "pages/couponDetail/index",
"pathName": "pages/couponDetail/index",
"query": "id=390",
"launchMode": "default",
"scene": null
"pathName": "pages/complaints/addComplaints",
"query": "",
"scene": null,
"launchMode": "default"
}
]
}