瀏覽代碼

调整代码

master
zhoujie 8 月之前
父節點
當前提交
f3689e7ac0

+ 20
- 6
pages.json 查看文件

"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
"path": "card-supplement/reissueForm",
"style": {
"navigationBarTitleText": "补办ETC卡-填写",
"enablePullDownRefresh": false
}
},
{
"path": "card-supplement/reissuePay",
"style": {
"navigationBarTitleText": "补办ETC卡-支付",
"enablePullDownRefresh": false
}
},
{ {
"path": "card-deactivation-activation/deactivation-activation-confirm", "path": "card-deactivation-activation/deactivation-activation-confirm",
"style": { "style": {
"height": "100px", "height": "100px",
"list": [{ "list": [{
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"iconPath": "static/image/home.png",
"selectedIconPath": "static/image/home-on.png",
"iconPath": "static/image/homex.png",
"selectedIconPath": "static/image/homex-on.png",
"text": "首页" "text": "首页"
}, },
{ {
"pagePath": "pages/order/order", "pagePath": "pages/order/order",
"iconPath": "static/image/fuwu.png",
"selectedIconPath": "static/image/fuwu.png",
"iconPath": "static/image/menu.png",
"selectedIconPath": "static/image/menu-on.png",
"text": "服务" "text": "服务"
}, },
{ {
"pagePath": "pages/user/user", "pagePath": "pages/user/user",
"iconPath": "static/image/wode.png",
"selectedIconPath": "static/image/wode.png",
"iconPath": "static/image/myx.png",
"selectedIconPath": "static/image/myx-on.png",
"text": "我的" "text": "我的"
} }
] ]

+ 1
- 98
pages/index/index.vue 查看文件

commonQuestionArr: [], //常见问题数组 commonQuestionArr: [], //常见问题数组
isEnableSetGray: false 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(()=>{ onReady(()=>{
setTimeout(()=>{ setTimeout(()=>{
// const params = encodeURIComponent(JSON.stringify("https://webzeus.hltgz.com/throughBilManager/index")) // const params = encodeURIComponent(JSON.stringify("https://webzeus.hltgz.com/throughBilManager/index"))
// tools.toUrl(`/subpackage/personal-center/webview?url=` + params); // 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选择 //办理流程tab选择
const flowPathTabHandle = (tab) => { const flowPathTabHandle = (tab) => {
state.tabActive = tab; state.tabActive = tab;
commonQuestion(); 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) => { const showMask = (val : any) => {
state.type = val; //1 客车 2货车 state.type = val; //1 客车 2货车
}) })
}).catch((err) => { console.log(err) }); }).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 = () => { const processeCondition = () => {
let options = { let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
closeMask(); closeMask();
}; };


const showMask = (val : any) => {
state.type = val; //1 客车 2货车
isShowMask.value = true;
};


const closeMask = () => {
isShowMask.value = false;
};
//全量枚举值查询 //全量枚举值查询
const quanKeyAction = () => { const quanKeyAction = () => {
var data = {}; var data = {};
}) })
//获取轮播 //获取轮播
const getSwiper = () => { const getSwiper = () => {

let options = { let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: { data: {

二進制
static/image/homex-on.png 查看文件


二進制
static/image/homex.png 查看文件


二進制
static/image/menu-on.png 查看文件


二進制
static/image/menu.png 查看文件


二進制
static/image/myx-on.png 查看文件


二進制
static/image/myx.png 查看文件


二進制
static/image/矢量智能对象1011@2x.png 查看文件


二進制
static/image/矢量智能对象21@2x.png 查看文件


二進制
static/image/矢量智能对象8@2x.png 查看文件


二進制
static/image/矢量智能对象@2x(1).png 查看文件


二進制
static/image/矢量智能对象@2x(2).png 查看文件


二進制
static/image/矢量智能对象@2x.png 查看文件


Loading…
取消
儲存