diff --git a/public/res/privacy.html b/public/res/privacy.html new file mode 100644 index 00000000..42a8a8f4 --- /dev/null +++ b/public/res/privacy.html @@ -0,0 +1,78 @@ + + + + + + 免责声明 + + + +
+

声明

+

本平台为二手车买卖双方提供免费信息发布服务。在您使用本平台之前,请仔细阅读并理解本免责声明。一旦使用本平台,即视为您已阅读、理解并同意接受本免责声明的所有条款。

+ +

一、平台性质

+

1. 本平台仅为信息发布平台,不参与任何二手车交易环节,包括但不限于交易洽谈、合同签订、款项支付、车辆交付等,实际交易价格由买卖双方自行协商确定。

+

2. 本平台不对发布信息的真实性、准确性、完整性、合法性进行任何形式的担保或保证,用户应自行判断信息的真实性并承担由此产生的风险。

+ +

二、用户责任

+

1. 用户应保证发布的信息真实、准确、完整、合法,并对其发布的信息承担全部责任。

+

2. 用户不得发布任何虚假、违法、侵权、违反公序良俗的信息,包括但不限于:

+ + +

三、免责条款

+

1. 因用户发布的信息引起的任何纠纷或损失,本平台不承担任何责任。

+

2. 因不可抗力、计算机病毒、黑客攻击、系统不稳定、用户所在位置、用户关机以及其他任何网络、技术、通信线路等原因造成的服务中断或不能满足用户要求的风险,本平台不承担任何责任。

+

3. 本平台不对用户之间的交易行为承担任何责任,用户应自行承担交易风险。

+ +

四、其他

+

1. 本平台有权根据法律法规的变化或平台运营的需要,随时修改本免责声明,并在平台上公布,修改后的内容自公布之日起生效。

+

2. 本免责声明的解释权归中道救援股份有限公司所有。

+ +

请您在使用本平台前务必仔细阅读并理解本免责声明。

+

如果您对本免责声明有任何疑问,请联系我们。

+
+ + \ No newline at end of file diff --git a/src/assets/secondHandCar/fabuing.png b/src/assets/secondHandCar/fabuing.png index 1c32b106..bba51291 100644 Binary files a/src/assets/secondHandCar/fabuing.png and b/src/assets/secondHandCar/fabuing.png differ diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index 2ad82b34..0df557ab 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -3,12 +3,13 @@
-
+
审核不通过: {{auditRemark}}
@@ -116,11 +117,11 @@ 我已阅读并同意 - 《xxxxx条款》 + 《二手车交易条款》
发布
-
+
审核不通过
审核通过
@@ -184,6 +185,8 @@ export default { vehicleLicensePhotoList:[], vehicleAnglePhotoList:[], otherImgSrcList:[], + status:'', + isWeb:false, } }, async mounted() { @@ -201,14 +204,49 @@ export default { this.form.boardType=res.data.boardType?.code this.form.emissionStandard=res.data.emissionStandard?.code this.auditRemark=res.data?.auditRemark + this.status=res.data?.status?.code this.areaName=res.data?.areaName this.otherImgSrc=res.data?.otherPhoto?.split(',') this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item})) this.vehicleLicensePhotoList=[{url:res.data?.vehicleLicensePhoto}] this.vehicleAnglePhotoList=[{url:res.data?.vehicleAnglePhoto}] } + var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); + if (!isMobile) {// 是移动端不变 + this.isWeb=true + }else { + this.isWeb=false + } }, methods:{ + viewPrivacy(){ + // let host = window.location.host + let url=''; + if (window.location.href.includes('www.sinoassist.com')) { + url = 'https://www.sinoassist.com' + } else if (window.location.href.includes('ccreview.sino-assist.com')) { + url = 'https://ccreview.sino-assist.com' + } else if (window.location.href.includes('uat.sino-assist.com')) { + url = 'https://api-uat.sino-assist.com' + } else { + // url = 'https://crm1.sino-assist.com' + url = 'http://localhost:8080' + } + window.location.href=url + '/h5/supplier/dispatch/res/privacy.html' + }, + closeParentDialog() { + if (window.parent) { + // 检查是否有父组件监听 'closeDialog' 事件 + const hasListener = window.parent.dispatchEvent(new Event('checkCloseDialog')); + if (hasListener) { + // 如果有监听器,向父组件发送消息以请求关闭 dialog + window.parent.postMessage('closeDialog', '*'); + } else { + // 如果没有监听器,则执行 history.back() + window.history.back(); + } + } + }, confirmHandle(val){ let data=val.length // console.log("val",val) @@ -297,11 +335,17 @@ export default { otherPhoto:this.otherImgSrc?.join(',') }) if(res.code == 200 && !res.msg){ - this.h5GoBack() + if(this.isWeb){ + setTimeout(()=>{ + this.closeParentDialog() + },2000) + }else{ + this.h5GoBack() + } }else{ this.$toast(res.msg) } - console.log("publishCarInfo",res) + console.log("车源发布publishCarInfo",res) } finally { console.log(111) } diff --git a/src/views/secondHandCar/components/upload-common.vue b/src/views/secondHandCar/components/upload-common.vue index 9e4c6607..6ab8f30d 100644 --- a/src/views/secondHandCar/components/upload-common.vue +++ b/src/views/secondHandCar/components/upload-common.vue @@ -87,7 +87,11 @@ export default { const formData = new FormData(); formData.append("file", file.file); let res = await uploadImage(formData); - console.log("res", res) + /* try { + console.log("res", res) + } catch (e) { + console.log("e", e) + }*/ // 为文件添加唯一标识符 file.uid = Date.now(); // 使用时间戳作为唯一标识符 if (this.text == '行驶证照片') { diff --git a/src/views/secondHandCar/indexList.vue b/src/views/secondHandCar/indexList.vue index 21a5119a..39961f66 100644 --- a/src/views/secondHandCar/indexList.vue +++ b/src/views/secondHandCar/indexList.vue @@ -218,7 +218,7 @@ export default { maxPrice:this.maxPrice, boardType:this.boardType, emissionStandard:this.emissionStandard, - brandModel:this.brandModel, + // brandModel:this.brandModel, }) this.pageList=res.data if(this.pageList?.length === 0){ diff --git a/src/views/secondHandCar/mineRelease.vue b/src/views/secondHandCar/mineRelease.vue index 5f29f752..2dfb91c2 100644 --- a/src/views/secondHandCar/mineRelease.vue +++ b/src/views/secondHandCar/mineRelease.vue @@ -77,7 +77,7 @@ export default { data(){ return{ activeTab:1, - tabList:[{value:1,name:'审核中'},{value:2,name:'发布中'},{value:3,name:'已下架'},], + tabList:[{value:1,name:'审核中'},{value:2,name:'已发布'},{value:3,name:'已下架'},], noClick:true, poupShow:false, radio:'', @@ -102,8 +102,8 @@ export default { }, itemHandle(item){//审核 this.$router.push({ - name: item.type==1 ? "carSource" : 'wantBuy', - query: { type:2 ,id:item.id,queryType:3}, + name: item.type==1 ? "forSale" : 'wantBuySale', + query: { id:item.id,queryType:3}, }) }, async getList(){ @@ -168,7 +168,7 @@ export default { }, getStatus(i){ switch (i){ - case 5://发布中 + case 5://已发布 return require('@/assets/secondHandCar/fabuing.png') case 6://已下架 return require('@/assets/secondHandCar/alreayXiajia.png') diff --git a/src/views/secondHandCar/wantBuy.vue b/src/views/secondHandCar/wantBuy.vue index 014b3f33..0e135d0c 100644 --- a/src/views/secondHandCar/wantBuy.vue +++ b/src/views/secondHandCar/wantBuy.vue @@ -3,11 +3,12 @@
-
+
审核不通过: {{auditRemark}}
@@ -87,11 +88,11 @@ 我已阅读并同意 - 《xxxxx条款》 + 《二手车交易条款》
发布
-
+
审核不通过
审核通过
@@ -129,6 +130,8 @@ export default { noClick:true, auditReason:'', auditRemark:'', + status:'', + isWeb:false, } }, async mounted() { @@ -145,9 +148,44 @@ export default { this.form.boardType=res.data.boardType?.code this.form.emissionStandard=res.data.emissionStandard?.code this.auditRemark=res.data?.auditRemark + this.status=res.data?.status?.code + } + var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); + if (!isMobile) {// 是移动端不变 + this.isWeb=true + }else { + this.isWeb=false } }, methods:{ + viewPrivacy(){ + // let host = window.location.host + let url=''; + if (window.location.href.includes('www.sinoassist.com')) { + url = 'https://www.sinoassist.com' + } else if (window.location.href.includes('ccreview.sino-assist.com')) { + url = 'https://ccreview.sino-assist.com' + } else if (window.location.href.includes('uat.sino-assist.com')) { + url = 'https://api-uat.sino-assist.com' + } else { + // url = 'https://crm1.sino-assist.com' + url = 'http://localhost:8080' + } + window.location.href=url + '/h5/supplier/dispatch/res/privacy.html' + }, + closeParentDialog() { + if (window.parent) { + // 检查是否有父组件监听 'closeDialog' 事件 + const hasListener = window.parent.dispatchEvent(new Event('checkCloseDialog')); + if (hasListener) { + // 如果有监听器,向父组件发送消息以请求关闭 dialog + window.parent.postMessage('closeDialog', '*'); + } else { + // 如果没有监听器,则执行 history.back() + window.history.back(); + } + } + }, // 审核操作 async auditHandle(type){ if (!type && !this.auditReason){ @@ -186,7 +224,13 @@ export default { ...this.form, }) if(res.code == 200 && !res.msg){ - this.h5GoBack() + if(this.isWeb){ + setTimeout(()=>{ + this.closeParentDialog() + },2000) + }else{ + this.h5GoBack() + } }else{ this.$toast(res.msg) } diff --git a/src/views/secondHandCar/wantBuySale.vue b/src/views/secondHandCar/wantBuySale.vue index efea5951..3b5c0f71 100644 --- a/src/views/secondHandCar/wantBuySale.vue +++ b/src/views/secondHandCar/wantBuySale.vue @@ -2,7 +2,7 @@
- 在售 + 求购