Compare commits
16 Commits
cf6d94d54f
...
dev-2025
| Author | SHA1 | Date | |
|---|---|---|---|
| 58f1f5033d | |||
| c8400442a5 | |||
| 6dbb1377be | |||
| 847fdc48c6 | |||
| 234853b603 | |||
| 91b3c069ad | |||
| 0732fdcb8e | |||
| 64b2099c8b | |||
| ac08b52038 | |||
| ebfb553829 | |||
| 77335a1850 | |||
| 159ce0fbde | |||
| 1cc79ba5f5 | |||
| c3bdcc8251 | |||
| 78bfd97e0c | |||
| ca5bb1520b |
@@ -31,14 +31,14 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.AutoComplete,AMap.PlaceSearch,AMap.Geolocation,AMap.Geocoder,AMap.Marker,AMap.Driving"></script>
|
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.AutoComplete,AMap.PlaceSearch,AMap.Geolocation,AMap.Geocoder,AMap.Marker,AMap.Driving"></script>
|
||||||
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
|
||||||
<script>
|
<script>
|
||||||
window.selfLink = window.location.href;
|
window.selfLink = window.location.href;
|
||||||
window.selfSearch = window.location.search;
|
window.selfSearch = window.location.search;
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
// VConsole 默认会挂载到 `window.VConsole` 上
|
// VConsole 默认会挂载到 `window.VConsole` 上
|
||||||
let vConsole = new window.VConsole();
|
// let vConsole = new window.VConsole();
|
||||||
(function (doc, win) {
|
(function (doc, win) {
|
||||||
// console.log("==window.location.pathname===",window.location.pathname)
|
// console.log("==window.location.pathname===",window.location.pathname)
|
||||||
let docEl = doc.documentElement
|
let docEl = doc.documentElement
|
||||||
|
|||||||
@@ -159,3 +159,12 @@ export function getConfigByCode(data){
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取最新版本
|
||||||
|
export function getNewVersion(key){
|
||||||
|
return request({
|
||||||
|
url: '/driverApp/app/updateVersion',
|
||||||
|
method:'GET',
|
||||||
|
params: key
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ service.interceptors.request.use(
|
|||||||
|
|
||||||
service.interceptors.response.use(
|
service.interceptors.response.use(
|
||||||
response => {
|
response => {
|
||||||
|
console.log('response', response.data)
|
||||||
const res = response.data
|
const res = response.data
|
||||||
if ( res.code === 401 || res.code === 400 || res.code == 500) {
|
if ( res.code === 401 || res.code === 400 || res.code == 500) {
|
||||||
Toast(res.msg || 'Error')
|
Toast(res.msg || 'Error')
|
||||||
|
|||||||
@@ -1,28 +1,43 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="goToBtn">立即打开</div>
|
<div class="goToBtn" @click="goAppHandler">立即打开</div>
|
||||||
<div class="content_tip">
|
<div class="content_tip">
|
||||||
<div class="font_cls">如未安装请点击下载</div>
|
<div class="font_cls">如未安装请点击下载</div>
|
||||||
<div class="font_cls">如已安装未自动跳转,请 <span>立即下载</span></div>
|
<div class="font_cls">如已安装未自动跳转,请 <span @click="downLoadHandler">立即下载</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { getNewVersion } from "@/api/order"
|
||||||
export default {
|
export default {
|
||||||
name: "goToApp"
|
name: "goToApp",
|
||||||
|
methods: {
|
||||||
|
goAppHandler() {
|
||||||
|
window.location.href = "rvdriver://page/pagesLogin/phoneLogin?source=h5Link";
|
||||||
|
},
|
||||||
|
async downLoadHandler() {
|
||||||
|
getNewVersion({
|
||||||
|
appType: 5
|
||||||
|
}).then((res) => {
|
||||||
|
window.location.href = res?.result?.path
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message.error('请求版本失败,请重试');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.wrap {
|
.wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
background-image: url('@/assets/toAppBg.png');
|
background-image: url('@/assets/toAppBg.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
<div v-show="type==1" class="revise common" @click="reviseHandle">立即修改</div>
|
<div v-show="type==1" class="revise common" @click="reviseHandle">立即修改</div>
|
||||||
<div v-show="type==1" class="confirm common" @click="confirmHandle">确认信息无误</div>
|
<div v-show="type==1" class="confirm common" @click="confirmHandle">确认信息无误</div>
|
||||||
</div>
|
</div>
|
||||||
<van-dialog v-model="dialogShow" title="请先添加企微,成功添加后将更新微信号。" show-cancel-button
|
<van-dialog v-model="dialogShow" title="请将此二维码发送至相应人员进行添加,成功添加后将更新微信号。" show-cancel-button
|
||||||
confirmButtonText="确认已添加" confirmButtonColor="#354E93" className="customDialog"
|
confirmButtonText="确认已添加" confirmButtonColor="#354E93" className="customDialog"
|
||||||
@confirm="wechatConfirm" @cancel="cancelHandle">
|
@confirm="wechatConfirm" @cancel="cancelHandle">
|
||||||
<img v-if="wechatInfo?.qrCode" :src="wechatInfo.qrCode" style="width: 83%"/>
|
<img v-if="wechatInfo?.qrCode" :src="wechatInfo.qrCode" style="width: 83%"/>
|
||||||
@@ -97,6 +97,7 @@ export default {
|
|||||||
supplierId:'',
|
supplierId:'',
|
||||||
wechatInfo:'',
|
wechatInfo:'',
|
||||||
personInfoId:'',
|
personInfoId:'',
|
||||||
|
personInfo:'',
|
||||||
isMaster:false,
|
isMaster:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -150,7 +151,7 @@ export default {
|
|||||||
this.type=1
|
this.type=1
|
||||||
}
|
}
|
||||||
this.isMaster=result.data.isMaster
|
this.isMaster=result.data.isMaster
|
||||||
// this.type=1
|
// this.type=2
|
||||||
let res=await getConfirmPerson({supplierId:this.supplierId})
|
let res=await getConfirmPerson({supplierId:this.supplierId})
|
||||||
if(res.data && res.data.length>0){
|
if(res.data && res.data.length>0){
|
||||||
this.personList=res.data
|
this.personList=res.data
|
||||||
@@ -159,10 +160,33 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async wechatConfirm(){//确认已添加微信按钮
|
async wechatConfirm(){//确认已添加微信按钮
|
||||||
|
Dialog.confirm({
|
||||||
|
message:'请确认相关人员是否已添加该二维码。',
|
||||||
|
confirmButtonText:'确认',
|
||||||
|
cancelButtonText:'取消',
|
||||||
|
confirmButtonColor:'#354E93',
|
||||||
|
}).then(async() => {
|
||||||
let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId})
|
let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId})
|
||||||
|
console.log('res',this.personInfo,res.data?.name,this.personInfo.wechatName)
|
||||||
|
if((res.data?.name == this.personInfo.wechatName) || (!res.data && this.personInfo.wechatName)){
|
||||||
|
console.log('11111111')
|
||||||
|
this.$set(this.personList[this.reviseIndex],'isChange',false)
|
||||||
|
}else {
|
||||||
|
console.log('2222222')
|
||||||
|
this.$set(this.personList[this.reviseIndex],'isChange',true)
|
||||||
|
}
|
||||||
|
console.log('this.personList',this.personList)
|
||||||
|
let flagRevise=this.personList.some(item => 'isChange' in item && !item.isChange)
|
||||||
|
console.log('存在未修改',flagRevise)
|
||||||
|
if(res.data){
|
||||||
this.personList[this.reviseIndex].wechatId=res.data?.externalUserId
|
this.personList[this.reviseIndex].wechatId=res.data?.externalUserId
|
||||||
this.personList[this.reviseIndex].wechatName=res.data?.name
|
this.personList[this.reviseIndex].wechatName=res.data?.name
|
||||||
|
}
|
||||||
await this.cancelHandle()
|
await this.cancelHandle()
|
||||||
|
}).catch(async () => {
|
||||||
|
await this.cancelHandle()
|
||||||
|
|
||||||
|
});
|
||||||
},
|
},
|
||||||
cancelHandle(){
|
cancelHandle(){
|
||||||
this.dialogShow=false
|
this.dialogShow=false
|
||||||
@@ -171,10 +195,11 @@ export default {
|
|||||||
this.personInfoId=''
|
this.personInfoId=''
|
||||||
},
|
},
|
||||||
async wechatRevise(item,index){
|
async wechatRevise(item,index){
|
||||||
// console.log('index',index)
|
console.log('item,index',item,index)
|
||||||
// console.log('item',item)
|
// console.log('item',item)
|
||||||
this.personInfoId=item.id
|
this.personInfoId=item.id
|
||||||
this.reviseIndex=index
|
this.reviseIndex=index
|
||||||
|
this.personInfo=item
|
||||||
await this.getCode()
|
await this.getCode()
|
||||||
this.dialogShow=true
|
this.dialogShow=true
|
||||||
},
|
},
|
||||||
@@ -189,6 +214,13 @@ export default {
|
|||||||
this.$toast('必填项不可为空')
|
this.$toast('必填项不可为空')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.log('----',this.personList)
|
||||||
|
let flagRevise=this.personList.some(item => 'isChange' in item && !item.isChange)
|
||||||
|
console.log('存在未修改',flagRevise)
|
||||||
|
if(flagRevise){
|
||||||
|
this.$toast('您仍未修改微信号,请先修改再提交审批。')
|
||||||
|
return
|
||||||
|
}
|
||||||
let phone1Flag= this.personList.every(item => this.validatePhone(item.phone1))
|
let phone1Flag= this.personList.every(item => this.validatePhone(item.phone1))
|
||||||
let phone2Flag= this.personList.every(item => (item.phone2 && this.validatePhone(item.phone2) || !item.phone2))
|
let phone2Flag= this.personList.every(item => (item.phone2 && this.validatePhone(item.phone2) || !item.phone2))
|
||||||
console.log('phone1Flag',phone1Flag)
|
console.log('phone1Flag',phone1Flag)
|
||||||
@@ -212,6 +244,11 @@ export default {
|
|||||||
this.type=2
|
this.type=2
|
||||||
},
|
},
|
||||||
async confirmHandle(){//确认信息无误
|
async confirmHandle(){//确认信息无误
|
||||||
|
let flag=this.personList.every(item => item.name && item.phone1 && item.wechatId && item.wechatName)
|
||||||
|
if(!flag){
|
||||||
|
this.$toast('必填项不可为空,请点击“立即修改”将信息补充完整')
|
||||||
|
return
|
||||||
|
}
|
||||||
Dialog.confirm({
|
Dialog.confirm({
|
||||||
message:'请务必仔细确认信息是否无误。',
|
message:'请务必仔细确认信息是否无误。',
|
||||||
confirmButtonText:'确认无误',
|
confirmButtonText:'确认无误',
|
||||||
@@ -241,6 +278,10 @@ export default {
|
|||||||
.van-dialog__content{
|
.van-dialog__content{
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
.van-dialog__header {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user