@@ -152,10 +152,7 @@ | |||
// #ifdef MP-WEIXIN | |||
requestNew(getOpenId, options).then((res) => { | |||
const result =res; | |||
console.log("getOpenId===",result) | |||
const openidData = stringToJson(result.data); | |||
console.log("openidData====",openidData) | |||
setItem("QYorder", openidData); | |||
setItem("wxOpenid", result.openid); | |||
}); | |||
// #endif | |||
}, |
@@ -61,11 +61,11 @@ | |||
emit('close', false) | |||
uploadFile(state.images, state.choiceIndex).then((data) => { | |||
console.log("身份证上传", data) | |||
var allData={ | |||
...data, | |||
tempFilePath:state.images | |||
} | |||
emit('ocrResult', allData) | |||
// var allData={ | |||
// ...data, | |||
// tempFilePath:state.images | |||
// } | |||
emit('ocrResult', data) | |||
}) | |||
}) | |||
} |
@@ -140,6 +140,7 @@ | |||
msg("请勾选我已阅读并同意《平台用户服务隐私协议》"); | |||
return; | |||
} | |||
console.log("mpOpenId",getItem('mpOpenId')) | |||
if(!getItem('mpOpenId')){ | |||
navTo(`/subpackage/after-sale/wxWebView`) | |||
return; |
@@ -166,29 +166,7 @@ | |||
mobile: '', | |||
userName:'' | |||
}, | |||
monthFlowingVo: { | |||
duration: 0, | |||
mileage: 0, | |||
flowingNum: 0, | |||
num: 0, | |||
parkingLotMoney: 0, | |||
parkingLotNum: 0, | |||
money: 0, | |||
}, | |||
list: '', //车辆信息 | |||
carNumber: '',//车辆数量 | |||
userVehicleInfoSumQueryVo: { | |||
vehicleSum: 0, | |||
orderStatus0: 0 | |||
},//车数量 ,代办数量 | |||
isTrajectory: false, //是否有轨迹 | |||
equityNumber: 0, | |||
orderInfoSumQueryVo: { | |||
orderStep8: "0",//待发货 | |||
orderStep9: "0",//待收货 | |||
orderStep10: "0",//待激活 | |||
orderStep12: "0",//换货/退货 | |||
}, | |||
customerObj:{} | |||
}); | |||
onMounted(() => { | |||
@@ -211,15 +189,6 @@ | |||
const myEtcAccount=()=>{ | |||
navTo(`/subpackage/personal-center/my-etc-account`) | |||
} | |||
const goTrajectory = () => { | |||
if (state.isTrajectory) { | |||
uni.navigateTo({ | |||
url: "/subpackage/personal-center/trajectory/trajectory" | |||
}) | |||
} else { | |||
msg("暂无轨迹") | |||
} | |||
} | |||
//监听页面滚动 | |||
onPageScroll((e) => { | |||
scrollTop.value = e.scrollTop; | |||
@@ -229,64 +198,13 @@ | |||
console.log("state.data.opId", state.data.opId) | |||
if (state.data.opId) { | |||
getUserInfo(); | |||
} else { | |||
state.userVehicleInfoSumQueryVo = { | |||
vehicleSum: 0, | |||
orderStatus0: 0 | |||
} | |||
state.monthFlowingVo = { | |||
duration: 0, | |||
mileage: 0, | |||
flowingNum: 0, | |||
num: 0, | |||
parkingLotMoney: 0, | |||
parkingLotNum: 0, | |||
money: 0, | |||
} | |||
state.orderInfoSumQueryVo = { | |||
orderStep8: "0",//待发货 | |||
orderStep9: "0",//待收货 | |||
orderStep10: "0",//待激活 | |||
orderStep12: "0",//换货/退货 | |||
} | |||
state.list = [] | |||
state.carNumber = 0 | |||
} | |||
state.customerObj=getItem('customerObj') | |||
}); | |||
// 查询车辆信息 | |||
const queryCarMsg = () => { | |||
const options = { | |||
type: 2, | |||
data: {}, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
//调用方式 | |||
requestNew(queryVehicleBind, options).then((res) => { | |||
const data = res.result; | |||
for (var i = 0; i < data.length; i++) { | |||
for (var j = 0; j < vehiclePlateColorPai.length; j++) { | |||
if (data[i].vehiclePlateColor == vehiclePlateColorPai[j]['id']) { | |||
data[i].color = vehiclePlateColorPai[j]['color'] | |||
data[i].showColor = vehiclePlateColorPai[j]['showColor'] | |||
} | |||
} | |||
} | |||
state.carNumber = data.length | |||
state.list = data.slice(0, 5); | |||
console.log("state.list", state.list) | |||
}) | |||
.catch((err) => { | |||
console.log('输出内容', err) | |||
}); | |||
} | |||
const getUserInfo = () => { | |||
const options = { | |||
type: 2, | |||
data: { | |||
openId: state.data.opId | |||
}, | |||
data: {}, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
@@ -296,50 +214,14 @@ | |||
console.log('用户信息', res) | |||
let data =res | |||
state.accountInfoVo =data.accountInfoVo; | |||
console.log('用户信息1', state.accountInfoVo,state.accountInfoVo.mobile) | |||
if (data.monthFlowingVo && data.monthFlowingVo != "{}") { | |||
state.monthFlowingVo = data.monthFlowingVo; | |||
state.isTrajectory = true; | |||
} | |||
console.log("获取用户信息", data); | |||
queryCarMsg(); | |||
// 个人订单信息数据查询(待发货,待收货,待激活,退换货) | |||
orderinfosumqueryQ() | |||
}) | |||
.catch((err) => { | |||
console.log(err); | |||
}); | |||
} | |||
const del = (id) => { | |||
uni.showModal({ | |||
title: '提示', | |||
content: '是否删除该条车辆信息', | |||
success: function (res) { | |||
if (res.confirm) { | |||
console.log('用户点击确定'); | |||
const options = { | |||
type: 2, | |||
data: { | |||
id | |||
}, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
requestNew(vehicleUnBind, options).then((res) => { | |||
const data = res; | |||
console.log(data) | |||
uni.showToast({ | |||
title: "删除成功", | |||
icon: "none" | |||
}) | |||
queryCarMsg(); | |||
}); | |||
} else if (res.cancel) { | |||
console.log('用户点击取消'); | |||
} | |||
} | |||
}); | |||
} | |||
const goOrder = (index) => { | |||
navTo(`../order/order?index=${index}`) | |||
} | |||
@@ -353,22 +235,7 @@ | |||
const goEquity = () => { | |||
navTo('/subpackage/service/equityList/equityList') | |||
} | |||
const orderinfosumqueryQ = () => { | |||
const options = { | |||
type: 2, | |||
data: {}, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
//调用方式 | |||
requestNew(orderinfosumquery, options).then((res) => { | |||
console.log("orderinfosumquery", res) | |||
state.orderInfoSumQueryVo=res | |||
}) | |||
.catch((err) => { | |||
console.log('输出内容', err) | |||
}); | |||
} | |||
</script> | |||
<style> | |||
page { |
@@ -8,7 +8,7 @@ import { | |||
defineStore | |||
} from "pinia"; | |||
import { | |||
request,requestNew | |||
requestNew | |||
} from "@/utils/network/request"; | |||
import { | |||
appId, |
@@ -133,10 +133,7 @@ | |||
// #ifdef MP-WEIXIN | |||
requestNew(getOpenId, options).then((res) => { | |||
const result = res; | |||
console.log("获取微信小程序openid", result); | |||
const openidData = result.data; | |||
state.openid = openidData.openid; | |||
setItem("QYorder", state); | |||
setItem("wxOpenid", result.openid); | |||
}); | |||
// #endif | |||
} |
@@ -134,9 +134,7 @@ import { deviceType } from "@/utils/network/difference"; | |||
requestNew(getOpenId, options).then((res) => { | |||
const result = res; | |||
console.log("获取微信小程序openid", result); | |||
const openidData = result.data; | |||
state.openid = openidData.openid; | |||
setItem("QYorder", state); | |||
setItem("wxOpenid", result.openid); | |||
}); | |||
// #endif | |||
} |
@@ -156,10 +156,9 @@ | |||
// #ifdef MP-WEIXIN | |||
requestNew(getOpenId, options).then((res) => { | |||
const result = res; | |||
const openidData = stringToJson(result.data); | |||
state.openid = openidData.openid; | |||
state.openid = result.openid; | |||
console.log("获取微信小程序openid", state.openid); | |||
setItem("QYorder", openidData); | |||
setItem("wxOpenid", result.openid); | |||
}); | |||
// #endif | |||
} |
@@ -19,7 +19,7 @@ | |||
<image v-if="!state.form.userIdImgUrl" class="icon" :src="`${$imgUrl}issuance/sfz.png`" | |||
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"> | |||
</image> | |||
<image v-else class="icon" :src="strReplace(state.form.userIdImgUrl)" | |||
<image v-else class="icon" :src="state.form.userIdImgUrl" | |||
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png`}"></image> | |||
</view> | |||
</view> | |||
@@ -35,7 +35,7 @@ | |||
<image v-if="!state.form.userIdBackImgUrl" class="icon" :src="`${$imgUrl}issuance/sff.png`" | |||
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png`}"> | |||
</image> | |||
<image v-else class="icon" :src="strReplace(state.form.userIdBackImgUrl)" | |||
<image v-else class="icon" :src="state.form.userIdBackImgUrl" | |||
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png`}"></image> | |||
</view> | |||
</view> | |||
@@ -93,12 +93,8 @@ | |||
import { | |||
msg, | |||
checkStr, | |||
strReplace, | |||
uploadFile, | |||
compressImage, | |||
chooseImageCompress, | |||
compareDates, | |||
getFileBase64 | |||
confirm | |||
} from "@/utils/utils"; | |||
import { | |||
onLoad, | |||
@@ -145,11 +141,9 @@ | |||
gender: "", | |||
idType: "", //用户证件类型 101//身份证 | |||
idTypeStr: "", | |||
userIdBackImgBase64:"", | |||
userIdImgBase64:"" | |||
userIdBackImgBase64:"1", | |||
userIdImgBase64:"2" | |||
}, | |||
userIdImgBase64Old:"", | |||
userIdBackImgBase64Old:"" | |||
}); | |||
const close = (e) => { | |||
@@ -184,16 +178,6 @@ | |||
msg('请选择证件类型'); | |||
return; | |||
} | |||
state.form.userIdImgBase64=await getFileBase64(state.userIdImgBase64Old) | |||
state.form.userIdBackImgBase64=await getFileBase64(state.userIdBackImgBase64Old) | |||
// getFileBase64(state.userIdImgBase64Old, (data) => { | |||
// console.log("getFileBase641", data) | |||
// state.form.userIdImgBase64=data | |||
// }) | |||
// getFileBase64(state.userIdBackImgBase64Old, (data) => { | |||
// console.log("getFileBase642", data) | |||
// state.form.userIdBackImgBase64=data | |||
// }) | |||
const options = { | |||
type: 2, | |||
data: { | |||
@@ -204,7 +188,9 @@ | |||
}; | |||
requestNew(realNameAuthentication, options).then((res) => { | |||
console.log("提交", res); | |||
confirm('实名认证成功!', () => { | |||
uni.navigateBack(); | |||
}, '成功', false); | |||
}); | |||
}; | |||
@@ -251,10 +237,8 @@ | |||
state.form.idNum = data.idno; | |||
state.form.userIdImgUrl = data.imageUrl; | |||
state.form.address = data.address; | |||
state.userIdImgBase64Old=data.tempFilePath; | |||
} else { | |||
state.form.userIdBackImgUrl = data.imageUrl; | |||
state.userIdBackImgBase64Old=data.tempFilePath | |||
compareDates(data.enddate) | |||
} | |||
} |
@@ -414,7 +414,7 @@ export const resetPwd = "/iaw/portal/changePasswordByCode"; //通过验证码修 | |||
export const mobileIsRepeatApi = "/iaw/portal/registerCheck" //个人账号重复注册校验 | |||
export const regist = "/iaw/portal/register"; // 统一会员平台个人账号注册 | |||
// 我的页面 | |||
export const userInfoIndex = "/iaw/portal/getAccountInfoSimple"; //USER-获取用户个人简单信息 | |||
export const userInfoIndex = "/iaw/portal/findAccountInfoByToken"; //USER-获取用户个人简单信息 | |||
export const appPage = "/iaw/issue/order/wchatorderapppage" //app分页 | |||
export const orderinfosumquery = "/iaw/issue/order/orderinfosumquery" //个人订单信息数据查询(待发货,待收货,待激活,退换货) | |||
//菜单配置 |