Sfoglia il codice sorgente

调整代码

master
zhoujie 8 mesi fa
parent
commit
f3689e7ac0

+ 20
- 6
pages.json Vedi File

@@ -460,6 +460,20 @@
"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",
"style": {
@@ -1892,20 +1906,20 @@
"height": "100px",
"list": [{
"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": "首页"
},
{
"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": "服务"
},
{
"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": "我的"
}
]

+ 1
- 98
pages/index/index.vue Vedi File

@@ -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: {

BIN
static/image/homex-on.png Vedi File


BIN
static/image/homex.png Vedi File


BIN
static/image/menu-on.png Vedi File


BIN
static/image/menu.png Vedi File


BIN
static/image/myx-on.png Vedi File


BIN
static/image/myx.png Vedi File


BIN
static/image/矢量智能对象1011@2x.png Vedi File


BIN
static/image/矢量智能对象21@2x.png Vedi File


BIN
static/image/矢量智能对象8@2x.png Vedi File


BIN
static/image/矢量智能对象@2x(1).png Vedi File


BIN
static/image/矢量智能对象@2x(2).png Vedi File


BIN
static/image/矢量智能对象@2x.png Vedi File


Loading…
Annulla
Salva