update
This commit is contained in:
parent
178c3a8179
commit
13e7f7773a
@ -71,7 +71,8 @@
|
|||||||
{
|
{
|
||||||
"path": "index",
|
"path": "index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "投诉建议"
|
"navigationBarTitleText": "投诉建议",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -143,8 +143,11 @@ export default {
|
|||||||
});
|
});
|
||||||
} else if (obj.value === 9) {
|
} else if (obj.value === 9) {
|
||||||
// 投诉建议
|
// 投诉建议
|
||||||
uni.navigateToMiniProgram({
|
// uni.navigateToMiniProgram({
|
||||||
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
|
// shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
|
||||||
|
// });
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/complaints/index`,
|
||||||
});
|
});
|
||||||
} else if (obj.value === 10) {
|
} else if (obj.value === 10) {
|
||||||
// 金融
|
// 金融
|
||||||
|
|||||||
@ -7,8 +7,10 @@
|
|||||||
<view class="header-overlay"></view>
|
<view class="header-overlay"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="header-content">
|
<view class="header-content">
|
||||||
<view class="header-title">意见反馈</view>
|
<view class="header-title">高速公路服务区</view>
|
||||||
<view class="header-subtitle">您的宝贵意见是我们进步的动力</view>
|
<view class="header-subtitle">优质文明服务监督</view>
|
||||||
|
<view class="header-subtitle" style="color:#2c3e50;font-size: 20rpx;margin-top: 16rpx;">
|
||||||
|
此投诉为本小程序自有投诉渠道,非微信官方投诉渠道</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -89,7 +91,7 @@
|
|||||||
<!-- 快速标签卡片 -->
|
<!-- 快速标签卡片 -->
|
||||||
<view class="form-card" v-if="tagList.length > 0">
|
<view class="form-card" v-if="tagList.length > 0">
|
||||||
<view class="card-header" style="margin-bottom: 24rpx;">
|
<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 class="card-icon">🏷️</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -173,7 +175,8 @@ export default {
|
|||||||
serverPartName: '',
|
serverPartName: '',
|
||||||
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: '表扬' }],
|
||||||
typeIndex: 0,
|
typeIndex: 0,
|
||||||
serverIndex: 0,
|
serverIndex: 0,
|
||||||
tagList: [], // 可选择的建议标签
|
tagList: [], // 可选择的建议标签
|
||||||
@ -192,6 +195,25 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
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);
|
console.log('optionoptionoption', option);
|
||||||
if (option.SUGGESTIONID) {
|
if (option.SUGGESTIONID) {
|
||||||
this.detailSuggestion.SUGGESTION_ID = option.SUGGESTIONID
|
this.detailSuggestion.SUGGESTION_ID = option.SUGGESTIONID
|
||||||
@ -217,6 +239,10 @@ export default {
|
|||||||
this.serverIndex = serverIndex
|
this.serverIndex = serverIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if (!(this.tagList && this.tagList.length > 0)) {
|
||||||
|
// this.getTag()
|
||||||
|
// }
|
||||||
|
this.saveMsg.PhoneNumber = this.user.MEMBERSHIP_MOBILEPHONE
|
||||||
|
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
@ -294,6 +320,8 @@ export default {
|
|||||||
},
|
},
|
||||||
bindTypePickerChange(event) {
|
bindTypePickerChange(event) {
|
||||||
let index = event.detail.value
|
let index = event.detail.value
|
||||||
|
console.log('indexindex', index);
|
||||||
|
|
||||||
this.typeIndex = index
|
this.typeIndex = index
|
||||||
this.saveMsg.Type = this.msgType[index].type
|
this.saveMsg.Type = this.msgType[index].type
|
||||||
this.pageMsg.typeName = this.msgType[index].name
|
this.pageMsg.typeName = this.msgType[index].name
|
||||||
@ -436,6 +464,17 @@ export default {
|
|||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(this.selectTags && this.selectTags.length > 0)) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择具体类型',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (flag === 0) {
|
if (flag === 0) {
|
||||||
this.postIt()
|
this.postIt()
|
||||||
}
|
}
|
||||||
@ -481,12 +520,28 @@ export default {
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '反馈成功!'
|
title: '反馈成功!'
|
||||||
})
|
})
|
||||||
|
const pages = getCurrentPages();
|
||||||
|
console.log(pages);
|
||||||
|
if (pages && pages.length > 1) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// _this.noPost = true
|
// _this.noPost = true
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
}, 1000)
|
}, 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;
|
color: white;
|
||||||
|
|
||||||
.header-title {
|
.header-title {
|
||||||
font-size: 48rpx;
|
font-size: 38rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 12rpx;
|
margin-bottom: 12rpx;
|
||||||
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);
|
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);
|
||||||
|
|||||||
@ -1414,7 +1414,7 @@ export default {
|
|||||||
// 功能列表
|
// 功能列表
|
||||||
handleFunClick(obj) {
|
handleFunClick(obj) {
|
||||||
let _this = this
|
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;
|
let _this = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
@ -1513,7 +1513,6 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/complaints/index`,
|
url: `/pages/complaints/index`,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -148,8 +148,44 @@ export default {
|
|||||||
// 地图初始化
|
// 地图初始化
|
||||||
this.mapCtx = uni.createMapContext("myMap");
|
this.mapCtx = uni.createMapContext("myMap");
|
||||||
let seatInfo = uni.getStorageSync("seatInfo");
|
let seatInfo = uni.getStorageSync("seatInfo");
|
||||||
|
console.log('seatInfoseatInfoseatInfo', seatInfo);
|
||||||
|
|
||||||
if (seatInfo) {
|
if (seatInfo) {
|
||||||
this.seatInfo = JSON.parse(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");
|
let type = uni.getStorageSync("loginType");
|
||||||
this.loginType = type;
|
this.loginType = type;
|
||||||
@ -168,8 +204,6 @@ export default {
|
|||||||
await this.handleGetServiceList();
|
await this.handleGetServiceList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// this.$utils.addUserBehaviorNew();
|
// this.$utils.addUserBehaviorNew();
|
||||||
this.$utils.addUserBehaviorNew({
|
this.$utils.addUserBehaviorNew({
|
||||||
behaviorRecordDesc: `进入选择服务区列表`
|
behaviorRecordDesc: `进入选择服务区列表`
|
||||||
|
|||||||
@ -109,7 +109,6 @@ export default {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
console.log('this.userthis.userthis.user', this.user);
|
|
||||||
|
|
||||||
if (this.user.MEMBERSHIP_ID) {
|
if (this.user.MEMBERSHIP_ID) {
|
||||||
uni.switchTab({
|
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) {
|
if (query.backTo) {
|
||||||
this.backTo = query.backTo
|
this.backTo = query.backTo
|
||||||
|
|||||||
@ -1073,8 +1073,11 @@ export default {
|
|||||||
this.handleGoBindCar();
|
this.handleGoBindCar();
|
||||||
} else if (obj.value === 3) {
|
} else if (obj.value === 3) {
|
||||||
// 建议反馈
|
// 建议反馈
|
||||||
uni.navigateToMiniProgram({
|
// uni.navigateToMiniProgram({
|
||||||
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
|
// shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
|
||||||
|
// });
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/complaints/index`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1153,8 +1153,11 @@ export default {
|
|||||||
this.handleGoBindCar();
|
this.handleGoBindCar();
|
||||||
} else if (obj.value === 3) {
|
} else if (obj.value === 3) {
|
||||||
// 建议反馈
|
// 建议反馈
|
||||||
uni.navigateToMiniProgram({
|
// uni.navigateToMiniProgram({
|
||||||
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
|
// 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
@ -279,8 +279,11 @@ var _default = {
|
|||||||
});
|
});
|
||||||
} else if (obj.value === 9) {
|
} else if (obj.value === 9) {
|
||||||
// 投诉建议
|
// 投诉建议
|
||||||
uni.navigateToMiniProgram({
|
// uni.navigateToMiniProgram({
|
||||||
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq"
|
// shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
|
||||||
|
// });
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/complaints/index"
|
||||||
});
|
});
|
||||||
} else if (obj.value === 10) {
|
} else if (obj.value === 10) {
|
||||||
// 金融
|
// 金融
|
||||||
|
|||||||
@ -1371,7 +1371,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) {
|
if ((this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) && obj.value !== 15) {
|
||||||
var _this13 = this;
|
var _this13 = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "温馨提示",
|
title: "温馨提示",
|
||||||
@ -1471,7 +1471,6 @@ var _default = {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/complaints/index"
|
url: "/pages/complaints/index"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -207,58 +207,112 @@ var _default = {
|
|||||||
nowStore: "nowStore"
|
nowStore: "nowStore"
|
||||||
})),
|
})),
|
||||||
onLoad: function onLoad(option) {
|
onLoad: function onLoad(option) {
|
||||||
var _this = this;
|
var _this2 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
||||||
var systemInfo, seatInfo, type, res;
|
var systemInfo, seatInfo, _this, type, res;
|
||||||
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
||||||
|
while (1) {
|
||||||
|
switch (_context2.prev = _context2.next) {
|
||||||
|
case 0:
|
||||||
|
console.log("option", option);
|
||||||
|
if (option.comeForm) {
|
||||||
|
_this2.comeForm = option.comeForm;
|
||||||
|
}
|
||||||
|
// 获取手机参数
|
||||||
|
systemInfo = uni.getSystemInfoSync();
|
||||||
|
_this2.statusBarHeight = Number(systemInfo.statusBarHeight);
|
||||||
|
_this2.menu = uni.getMenuButtonBoundingClientRect();
|
||||||
|
// 地图初始化
|
||||||
|
_this2.mapCtx = uni.createMapContext("myMap");
|
||||||
|
seatInfo = uni.getStorageSync("seatInfo");
|
||||||
|
console.log('seatInfoseatInfoseatInfo', seatInfo);
|
||||||
|
if (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) {
|
return _regenerator.default.wrap(function _callee$(_context) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context.prev = _context.next) {
|
switch (_context.prev = _context.next) {
|
||||||
case 0:
|
case 0:
|
||||||
console.log("option", option);
|
seatInfo = {
|
||||||
if (option.comeForm) {
|
latitude: res.latitude,
|
||||||
_this.comeForm = option.comeForm;
|
longitude: res.longitude
|
||||||
}
|
};
|
||||||
// 获取手机参数
|
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
|
||||||
systemInfo = uni.getSystemInfoSync();
|
_this.seatInfo = seatInfo;
|
||||||
_this.statusBarHeight = Number(systemInfo.statusBarHeight);
|
|
||||||
_this.menu = uni.getMenuButtonBoundingClientRect();
|
|
||||||
// 地图初始化
|
|
||||||
_this.mapCtx = uni.createMapContext("myMap");
|
|
||||||
seatInfo = uni.getStorageSync("seatInfo");
|
|
||||||
if (seatInfo) {
|
|
||||||
_this.seatInfo = JSON.parse(seatInfo);
|
|
||||||
}
|
|
||||||
type = uni.getStorageSync("loginType");
|
type = uni.getStorageSync("loginType");
|
||||||
_this.loginType = type;
|
_this.loginType = type;
|
||||||
if (!(_this.seatInfo.longitude && _this.seatInfo.latitude)) {
|
if (!(_this.seatInfo.longitude && _this.seatInfo.latitude)) {
|
||||||
_context.next = 18;
|
_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");
|
||||||
|
_this2.loginType = type;
|
||||||
|
if (!(_this2.seatInfo.longitude && _this2.seatInfo.latitude)) {
|
||||||
|
_context2.next = 19;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
res = uni.getStorageSync("currentService");
|
res = uni.getStorageSync("currentService");
|
||||||
console.log("res", res);
|
console.log("res", res);
|
||||||
// 已经拿到选中的服务区了
|
// 已经拿到选中的服务区了
|
||||||
if (res) {
|
if (res) {
|
||||||
_this.currentServiceMessage = res;
|
_this2.currentServiceMessage = res;
|
||||||
}
|
}
|
||||||
// 获取片区列表
|
// 获取片区列表
|
||||||
// await this.getServiceList();
|
// await this.getServiceList();
|
||||||
// 服务区的枚举类型
|
// 服务区的枚举类型
|
||||||
_context.next = 16;
|
_context2.next = 17;
|
||||||
return _this.handleServiceType();
|
return _this2.handleServiceType();
|
||||||
case 16:
|
case 17:
|
||||||
_context.next = 18;
|
_context2.next = 19;
|
||||||
return _this.handleGetServiceList();
|
return _this2.handleGetServiceList();
|
||||||
case 18:
|
case 19:
|
||||||
// this.$utils.addUserBehaviorNew();
|
// this.$utils.addUserBehaviorNew();
|
||||||
_this.$utils.addUserBehaviorNew({
|
_this2.$utils.addUserBehaviorNew({
|
||||||
behaviorRecordDesc: "\u8FDB\u5165\u9009\u62E9\u670D\u52A1\u533A\u5217\u8868"
|
behaviorRecordDesc: "\u8FDB\u5165\u9009\u62E9\u670D\u52A1\u533A\u5217\u8868"
|
||||||
});
|
});
|
||||||
case 19:
|
case 20:
|
||||||
case "end":
|
case "end":
|
||||||
return _context.stop();
|
return _context2.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, _callee);
|
}, _callee2);
|
||||||
}))();
|
}))();
|
||||||
},
|
},
|
||||||
onHide: function onHide() {
|
onHide: function onHide() {
|
||||||
@ -294,68 +348,68 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 获取片区列表
|
// 获取片区列表
|
||||||
getServiceList: function getServiceList() {
|
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;
|
var _this3 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
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) {
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context3.prev = _context3.next) {
|
switch (_context3.prev = _context3.next) {
|
||||||
case 0:
|
case 0:
|
||||||
if (_this3.seatInfo.longitude && _this3.seatInfo.latitude) {
|
req = {
|
||||||
_context3.next = 2;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
return _context3.abrupt("return");
|
return _context4.abrupt("return");
|
||||||
case 2:
|
case 2:
|
||||||
if (!_this3.searchText) {
|
if (!_this4.searchText) {
|
||||||
_context3.next = 4;
|
_context4.next = 4;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return _context3.abrupt("return");
|
return _context4.abrupt("return");
|
||||||
case 4:
|
case 4:
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "加载中..."
|
title: "加载中..."
|
||||||
@ -365,52 +419,52 @@ var _default = {
|
|||||||
serverPartList = uni.getStorageSync('serverPartList');
|
serverPartList = uni.getStorageSync('serverPartList');
|
||||||
list = [];
|
list = [];
|
||||||
if (!serverPartList) {
|
if (!serverPartList) {
|
||||||
_context3.next = 11;
|
_context4.next = 11;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
list = JSON.parse(serverPartList);
|
list = JSON.parse(serverPartList);
|
||||||
_context3.next = 16;
|
_context4.next = 16;
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
req = {
|
req = {
|
||||||
Province_Code: _this3.user.PROVINCE_CODE || "530000",
|
Province_Code: _this4.user.PROVINCE_CODE || "530000",
|
||||||
// SPRegionType_ID: this.selectValue,
|
// 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,
|
showservice: true,
|
||||||
latitude: _this3.seatInfo.latitude,
|
latitude: _this4.seatInfo.latitude,
|
||||||
PageIndex: _this3.pageMsg.pageIndex,
|
PageIndex: _this4.pageMsg.pageIndex,
|
||||||
PageSize: _this3.pageMsg.pageSize
|
PageSize: _this4.pageMsg.pageSize
|
||||||
// longitude: this.currentServiceMessage.ServerPart_X || "",
|
// longitude: this.currentServiceMessage.ServerPart_X || "",
|
||||||
// latitude: this.currentServiceMessage.ServerPart_Y || "",
|
// latitude: this.currentServiceMessage.ServerPart_Y || "",
|
||||||
};
|
};
|
||||||
_context3.next = 14;
|
_context4.next = 14;
|
||||||
return _this3.$api.$javaGet('/third-party/getServerPartList', req);
|
return _this4.$api.$javaGet('/third-party/getServerPartList', req);
|
||||||
case 14:
|
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 : [];
|
list = data && data.Result_Data && data.Result_Data.List && data.Result_Data.List.length > 0 ? data.Result_Data.List : [];
|
||||||
case 16:
|
case 16:
|
||||||
if (list && list.length < _this3.pageMsg.pageSize) {
|
if (list && list.length < _this4.pageMsg.pageSize) {
|
||||||
_this3.pageMsg.isOver = true;
|
_this4.pageMsg.isOver = true;
|
||||||
}
|
}
|
||||||
oldList = [];
|
oldList = [];
|
||||||
if (_this3.serviceList && _this3.serviceList.length > 0) {
|
if (_this4.serviceList && _this4.serviceList.length > 0) {
|
||||||
oldList = JSON.parse(JSON.stringify(_this3.serviceList));
|
oldList = JSON.parse(JSON.stringify(_this4.serviceList));
|
||||||
}
|
}
|
||||||
_this3.serviceList = oldList.concat(list);
|
_this4.serviceList = oldList.concat(list);
|
||||||
console.log("this.serviceList", _this3.serviceList);
|
console.log("this.serviceList", _this4.serviceList);
|
||||||
_context3.next = 23;
|
_context4.next = 23;
|
||||||
return _this3.getServiceDetail(_this3.serviceList[0].SERVERPART_ID);
|
return _this4.getServiceDetail(_this4.serviceList[0].SERVERPART_ID);
|
||||||
case 23:
|
case 23:
|
||||||
_this3.isMoreLoading = false;
|
_this4.isMoreLoading = false;
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
case 25:
|
case 25:
|
||||||
case "end":
|
case "end":
|
||||||
return _context3.stop();
|
return _context4.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, _callee3);
|
}, _callee4);
|
||||||
}))();
|
}))();
|
||||||
},
|
},
|
||||||
// 选择的服务区详情
|
// 选择的服务区详情
|
||||||
@ -449,56 +503,26 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 获取服务区详情信息
|
// 获取服务区详情信息
|
||||||
getServiceDetail: function getServiceDetail(id) {
|
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;
|
var _this5 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
||||||
var data, obj;
|
var req, data;
|
||||||
return _regenerator.default.wrap(function _callee5$(_context5) {
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context5.prev = _context5.next) {
|
switch (_context5.prev = _context5.next) {
|
||||||
case 0:
|
case 0:
|
||||||
_context5.next = 2;
|
req = {
|
||||||
return _this5.$api.$get("/EShangApiMain/FrameWork/GetFieldEnumByField", {
|
ServerpartId: id,
|
||||||
FieldExplainField: "SERVERPART_TYPE"
|
longitude: _this5.seatInfo.longitude,
|
||||||
});
|
latitude: _this5.seatInfo.latitude
|
||||||
case 2:
|
};
|
||||||
|
_context5.next = 3;
|
||||||
|
return _this5.$api.$get("/CommercialApi/BaseInfo/GetServerpartInfo", req);
|
||||||
|
case 3:
|
||||||
data = _context5.sent;
|
data = _context5.sent;
|
||||||
console.log("data", data);
|
console.log("data", data);
|
||||||
obj = {};
|
_this5.longitude = data.Result_Data.ServerpartInfo.SERVERPART_X;
|
||||||
data.Result_Data.List.forEach(function (item) {
|
_this5.latitude = data.Result_Data.ServerpartInfo.SERVERPART_Y;
|
||||||
obj[Number(item.value)] = item.label;
|
_this5.isShowMap = true;
|
||||||
});
|
|
||||||
console.log("obj", obj);
|
|
||||||
_this5.serviceTypeObj = obj;
|
|
||||||
case 8:
|
case 8:
|
||||||
case "end":
|
case "end":
|
||||||
return _context5.stop();
|
return _context5.stop();
|
||||||
@ -507,69 +531,99 @@ var _default = {
|
|||||||
}, _callee5);
|
}, _callee5);
|
||||||
}))();
|
}))();
|
||||||
},
|
},
|
||||||
// 搜索框触发的方法
|
// 枚举服务区类型 SERVERPART_TYPE
|
||||||
handleSearch: function handleSearch() {
|
handleServiceType: function handleServiceType() {
|
||||||
var _this6 = this;
|
var _this6 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
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) {
|
return _regenerator.default.wrap(function _callee6$(_context6) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context6.prev = _context6.next) {
|
switch (_context6.prev = _context6.next) {
|
||||||
case 0:
|
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变回默认 服务区列表也变为空 重新请求
|
// 如果没有搜索文字 那么就把gapgeMsg变回默认 服务区列表也变为空 重新请求
|
||||||
if (_this6.searchText) {
|
if (_this7.searchText) {
|
||||||
_context6.next = 6;
|
_context7.next = 6;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_this6.pageMsg = {
|
_this7.pageMsg = {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
isOver: false
|
isOver: false
|
||||||
};
|
};
|
||||||
_this6.serviceList = [];
|
_this7.serviceList = [];
|
||||||
_this6.handleGetServiceList();
|
_this7.handleGetServiceList();
|
||||||
return _context6.abrupt("return");
|
return _context7.abrupt("return");
|
||||||
case 6:
|
case 6:
|
||||||
_this6.serviceList = [];
|
_this7.serviceList = [];
|
||||||
|
|
||||||
// uni.showLoading({
|
// uni.showLoading({
|
||||||
// title: "加载中...",
|
// title: "加载中...",
|
||||||
// });
|
// });
|
||||||
req = {
|
req = {
|
||||||
// longitude: this.longitude,
|
// longitude: this.longitude,
|
||||||
Province_Code: _this6.user.PROVINCE_CODE || "530000",
|
Province_Code: _this7.user.PROVINCE_CODE || "530000",
|
||||||
longitude: _this6.seatInfo.longitude,
|
longitude: _this7.seatInfo.longitude,
|
||||||
latitude: _this6.seatInfo.latitude,
|
latitude: _this7.seatInfo.latitude,
|
||||||
Serverpart_Name: _this6.searchText,
|
Serverpart_Name: _this7.searchText,
|
||||||
showservice: true
|
showservice: true
|
||||||
}; // const data = await this.$api.$get(
|
}; // const data = await this.$api.$get(
|
||||||
// "/CommercialApi/BaseInfo/GetServerpartList",
|
// "/CommercialApi/BaseInfo/GetServerpartList",
|
||||||
// req
|
// req
|
||||||
// );
|
// );
|
||||||
_context6.next = 10;
|
_context7.next = 10;
|
||||||
return _this6.$api.$javaGet('/third-party/getServerPartList', req);
|
return _this7.$api.$javaGet('/third-party/getServerPartList', req);
|
||||||
case 10:
|
case 10:
|
||||||
data = _context6.sent;
|
data = _context7.sent;
|
||||||
list = data.Result_Data.List;
|
list = data.Result_Data.List;
|
||||||
console.log('listlistlistlistlist', list);
|
console.log('listlistlistlistlist', list);
|
||||||
if (list && list.length < _this6.pageMsg.pageSize) {
|
if (list && list.length < _this7.pageMsg.pageSize) {
|
||||||
_this6.pageMsg.isOver = true;
|
_this7.pageMsg.isOver = true;
|
||||||
}
|
}
|
||||||
oldList = [];
|
oldList = [];
|
||||||
if (_this6.serviceList && _this6.serviceList.length > 0) {
|
if (_this7.serviceList && _this7.serviceList.length > 0) {
|
||||||
oldList = JSON.parse(JSON.stringify(_this6.serviceList));
|
oldList = JSON.parse(JSON.stringify(_this7.serviceList));
|
||||||
}
|
}
|
||||||
_this6.serviceList = oldList.concat(list);
|
_this7.serviceList = oldList.concat(list);
|
||||||
_this6.pageMsg.isOver = true;
|
_this7.pageMsg.isOver = true;
|
||||||
// uni.hideLoading();
|
// uni.hideLoading();
|
||||||
case 18:
|
case 18:
|
||||||
case "end":
|
case "end":
|
||||||
return _context6.stop();
|
return _context7.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, _callee6);
|
}, _callee7);
|
||||||
}))();
|
}))();
|
||||||
},
|
},
|
||||||
handleGomap: function handleGomap(obj) {
|
handleGomap: function handleGomap(obj) {
|
||||||
|
|||||||
@ -176,12 +176,26 @@ var _default = {
|
|||||||
InviteCode: "InviteCode"
|
InviteCode: "InviteCode"
|
||||||
})),
|
})),
|
||||||
onLoad: function onLoad(query) {
|
onLoad: function onLoad(query) {
|
||||||
console.log('this.userthis.userthis.user', this.user);
|
|
||||||
if (this.user.MEMBERSHIP_ID) {
|
if (this.user.MEMBERSHIP_ID) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
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) {
|
if (query.backTo) {
|
||||||
this.backTo = query.backTo;
|
this.backTo = query.backTo;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1180,8 +1180,11 @@ var _default = {
|
|||||||
this.handleGoBindCar();
|
this.handleGoBindCar();
|
||||||
} else if (obj.value === 3) {
|
} else if (obj.value === 3) {
|
||||||
// 建议反馈
|
// 建议反馈
|
||||||
uni.navigateToMiniProgram({
|
// uni.navigateToMiniProgram({
|
||||||
shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq"
|
// shortLink: "#小程序://云交经司服/jFbQlCIEsEjf5Nq",
|
||||||
|
// });
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/complaints/index"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"name": "pages/couponDetail/index",
|
"name": "pages/couponDetail/index",
|
||||||
"pathName": "pages/couponDetail/index",
|
"pathName": "pages/complaints/addComplaints",
|
||||||
"query": "id=390",
|
"query": "",
|
||||||
"launchMode": "default",
|
"scene": null,
|
||||||
"scene": null
|
"launchMode": "default"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user