|
|
|
@ -680,6 +680,10 @@
|
|
|
|
|
{ name: 'Yes', value: 1, url: './img/thumbsup.svg', svg: thumbsUp },
|
|
|
|
|
{ name: 'No', value: 0, url: './img/thumbsdown.svg', svg: thumbsDown },
|
|
|
|
|
];
|
|
|
|
|
const webList = {
|
|
|
|
|
"www.asiahighlights.com": 'ah',
|
|
|
|
|
"www.globalhighlights.com": 'gh',
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<script defer>
|
|
|
|
|
// 定义名为 options-item 的新组件
|
|
|
|
@ -787,6 +791,9 @@
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
initData() {
|
|
|
|
|
var hostname = window.location.hostname.toLowerCase();
|
|
|
|
|
this.webcode = webList[hostname];
|
|
|
|
|
|
|
|
|
|
var urlParams = new URLSearchParams(window.location.search);
|
|
|
|
|
for (const param of urlParams) {
|
|
|
|
|
this.param[param[0]] = param[1];
|
|
|
|
@ -860,6 +867,7 @@
|
|
|
|
|
if (res.errcode !== 0) {
|
|
|
|
|
that.error = true;
|
|
|
|
|
that.errorMsg = 'Data error.';
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
const itemGroup = groupBy(res.feedbackItemList, ele => ele.type);
|
|
|
|
|
that.feedbackItem.guide = itemGroup.W ? itemGroup.W : [];
|
|
|
|
@ -888,11 +896,10 @@
|
|
|
|
|
that.tourGuideList = res.tourGuideList;
|
|
|
|
|
that.feedbackEvaluation = res.feedbackEvaluation[0];
|
|
|
|
|
that.group = res.group[0];
|
|
|
|
|
that.webcode = that.group.webcode ? that.group.webcode.toLowerCase() : that.webcode; // todo:
|
|
|
|
|
|
|
|
|
|
// that.signaturePad.fromDataURL(that.feedbackEvaluation.signatureDataUrl); // debug: -1
|
|
|
|
|
|
|
|
|
|
// that.isFilled = isEmpty(res.feedbackEvaluation[0].feedbackId); // debug: !isEmpty
|
|
|
|
|
// that.isFilled = !isEmpty(res.feedbackEvaluation[0].feedbackId); // 已经填写过了
|
|
|
|
|
that.isFilled = false;
|
|
|
|
|
that.showPhotos = res.group[0].inTheEnd;
|
|
|
|
|
// alert("Thank you for completing the Feedback Evaluation. Once submitted the tour guide would not be able to view your comments. ");
|
|
|
|
|