|
|
@@ -391,23 +391,8 @@ |
|
|
|
commonQuestionArr: [], //常见问题数组 |
|
|
|
isEnableSetGray: false |
|
|
|
}); |
|
|
|
const isShowMask = ref(false); |
|
|
|
const isShowBar = ref(false) |
|
|
|
const userStore = useUserStore(); |
|
|
|
const type = 0; |
|
|
|
const title = ref("我是测试"); |
|
|
|
const scrollTop = ref(""); |
|
|
|
|
|
|
|
|
|
|
|
//监听页面滚动 |
|
|
|
onPageScroll((e) => { |
|
|
|
if (e.scrollTop > statusBarHeight.value) { |
|
|
|
isShowBar.value = true; |
|
|
|
} else { |
|
|
|
isShowBar.value = false; |
|
|
|
} |
|
|
|
scrollTop.value = e.scrollTop; |
|
|
|
}); |
|
|
|
// 页面初次渲染完成时触发 |
|
|
|
onReady(()=>{ |
|
|
|
setTimeout(()=>{ |
|
|
@@ -436,29 +421,7 @@ |
|
|
|
// const params = encodeURIComponent(JSON.stringify("https://webzeus.hltgz.com/throughBilManager/index")) |
|
|
|
// tools.toUrl(`/subpackage/personal-center/webview?url=` + params); |
|
|
|
// } |
|
|
|
//获取轮播 |
|
|
|
const getSwiper = () => { |
|
|
|
|
|
|
|
let options = { |
|
|
|
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) |
|
|
|
data: { |
|
|
|
}, //请求参数 |
|
|
|
method: "POST", //提交方式(默认POST) |
|
|
|
showLoading: true, //是否显示加载中(默认显示) |
|
|
|
}; |
|
|
|
|
|
|
|
//调用方式 |
|
|
|
request(querySwiper, options).then((res) => { |
|
|
|
console.log(stringToJson(res.bizContent)); |
|
|
|
const data = stringToJson(res.bizContent) |
|
|
|
console.log("轮播图", data) |
|
|
|
state.swiperList = data.swipers ? data.swipers : [] |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
}); |
|
|
|
|
|
|
|
}; |
|
|
|
//办理流程tab选择 |
|
|
|
const flowPathTabHandle = (tab) => { |
|
|
|
state.tabActive = tab; |
|
|
@@ -468,33 +431,6 @@ |
|
|
|
commonQuestion(); |
|
|
|
} |
|
|
|
}; |
|
|
|
// //全量枚举值查询 |
|
|
|
const quanKeyAction = () => { |
|
|
|
var data = {}; |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: data, |
|
|
|
method: "POST", |
|
|
|
showLoading: true, |
|
|
|
}; |
|
|
|
request(queryKey, options).then((res) => { |
|
|
|
console.log(stringToJson(res.bizContent)); |
|
|
|
const data = stringToJson(res.bizContent) |
|
|
|
console.log("轮播图", data) |
|
|
|
setItem('key', data.dictTypeAndItem) |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const toCreatOrder = (val : number) => { |
|
|
|
console.log(typeof (val)); |
|
|
|
state.userType = val; |
|
|
|
navTo(`/subpackage/orders/choice-product?type=${state.type}&&userType=${state.userType}`) |
|
|
|
closeMask(); |
|
|
|
}; |
|
|
|
|
|
|
|
const showMask = (val : any) => { |
|
|
|
state.type = val; //1 客车 2货车 |
|
|
@@ -559,32 +495,7 @@ |
|
|
|
}) |
|
|
|
}).catch((err) => { console.log(err) }); |
|
|
|
} |
|
|
|
const link = (item : any) => { |
|
|
|
if (item.type == 1) { |
|
|
|
const params = encodeURIComponent(JSON.stringify(item.hyperLink)) |
|
|
|
tools.toUrl(`/subpackage/personal-center/webview?url=` + params); |
|
|
|
} else if (item.type == 2) { |
|
|
|
navTo(item.hyperLink) |
|
|
|
} else if (item.type == 3) { |
|
|
|
const param = encodeURIComponent(JSON.stringify(item)) |
|
|
|
tools.toUrl(`/subpackage/orders/moreHighMsg/textDetails?item=` + param); |
|
|
|
} else if (item.type == 4) { |
|
|
|
uni.navigateToMiniProgram({ |
|
|
|
appId: item.hyperLink, |
|
|
|
path: item.speedUrl, |
|
|
|
success(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
complete(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
fail(res) { |
|
|
|
console.log(res); |
|
|
|
// 未成功跳转到车主小程序 |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const processeCondition = () => { |
|
|
|
let options = { |
|
|
|
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) |
|
|
@@ -642,14 +553,7 @@ |
|
|
|
closeMask(); |
|
|
|
}; |
|
|
|
|
|
|
|
const showMask = (val : any) => { |
|
|
|
state.type = val; //1 客车 2货车 |
|
|
|
isShowMask.value = true; |
|
|
|
}; |
|
|
|
|
|
|
|
const closeMask = () => { |
|
|
|
isShowMask.value = false; |
|
|
|
}; |
|
|
|
//全量枚举值查询 |
|
|
|
const quanKeyAction = () => { |
|
|
|
var data = {}; |
|
|
@@ -676,7 +580,6 @@ |
|
|
|
}) |
|
|
|
//获取轮播 |
|
|
|
const getSwiper = () => { |
|
|
|
|
|
|
|
let options = { |
|
|
|
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) |
|
|
|
data: { |