|
|
|
@ -1,18 +1,15 @@ |
|
|
|
<template> |
|
|
|
<view class="app" :style="{paddingBottom:pageType == '13'?'0rpx':'130rpx', paddingTop: '90px'}"> |
|
|
|
<!-- 上面代码移除掉的样式backgroundColor: datas.page.background, --> |
|
|
|
<view class="status_bar"> |
|
|
|
<!-- 这里是状态栏 --> |
|
|
|
</view> |
|
|
|
<navigationBar custom="true"> |
|
|
|
<view class="app" :style="{paddingBottom:pageType == '13'?'0rpx':'130rpx'}"> |
|
|
|
<!-- 上面代码移除掉的样式backgroundColor: datas.page.background,paddingTop: '90px' --> |
|
|
|
<!-- <view class="status_bar"></view> --> |
|
|
|
<!-- <navigationBar custom="true"> |
|
|
|
<view :style="{width: '100vw',height: '50px'}" style="background-color: #FFFFFF;position: fixed;z-index: 999;top:40px;"> |
|
|
|
<view :style="{padding: '10px', paddingLeft: '20px'}" style="display: flex;"> |
|
|
|
<!-- <image :style="{verticalAlign: 'middle', width: 94 + 'px',height: 30 + 'px'}" src="../../../static/logo.png" mode=""></image> --> |
|
|
|
<image :style="{verticalAlign: 'middle', width: 30 + 'px',height: 30 + 'px'}" :src="imageRootNew+'logo.png'" mode=""></image> |
|
|
|
<view style="font-size: 18px;font-weight: bold;line-height: 30px;margin-left: 4px;">粤职才</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</navigationBar> |
|
|
|
</navigationBar> --> |
|
|
|
|
|
|
|
<!-- :style="{'background-color:'!!pageInfo?pageInfo.background:'#FFD93F'}" --> |
|
|
|
<view class="container" > |
|
|
|
@ -169,6 +166,24 @@ export default { |
|
|
|
this.homePageInfo(this.ids); |
|
|
|
this.newCC_id = e.cc_id;// 这个是新的商品分类 |
|
|
|
this.sort = e.sort;// |
|
|
|
|
|
|
|
let title; |
|
|
|
switch(e.cc_id){ |
|
|
|
case '1': |
|
|
|
title = '技能培训'; |
|
|
|
break; |
|
|
|
case '3': |
|
|
|
title = '学历提升'; |
|
|
|
break; |
|
|
|
case '4': |
|
|
|
title = '岗前培训'; |
|
|
|
break; |
|
|
|
} |
|
|
|
setTimeout(()=>{ |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title:title |
|
|
|
}) |
|
|
|
}, 500) |
|
|
|
}, |
|
|
|
onHide() { |
|
|
|
let _this = this, |
|
|
|
@ -190,9 +205,9 @@ export default { |
|
|
|
|
|
|
|
if (!!this.pageInfo && this.pageInfo.title) { |
|
|
|
// #ifndef H5 |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: this.pageInfo.title |
|
|
|
}); |
|
|
|
// uni.setNavigationBarTitle({ |
|
|
|
// title: this.pageInfo.title |
|
|
|
// }); |
|
|
|
// #endif |
|
|
|
// #ifdef H5 |
|
|
|
document.title = this.pageInfo.title || ''; |
|
|
|
@ -327,9 +342,9 @@ export default { |
|
|
|
//修改页面标题 |
|
|
|
if (!!res.data.page.title) { |
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: res.data.page.title |
|
|
|
}); |
|
|
|
// uni.setNavigationBarTitle({ |
|
|
|
// title: res.data.page.title |
|
|
|
// }); |
|
|
|
// #endif |
|
|
|
// #ifdef H5 |
|
|
|
let pagetitle = uni.getStorageSync('TextSubstitution').sysname; |
|
|
|
@ -356,18 +371,24 @@ export default { |
|
|
|
diypagesDataArray.push(diypagesData[i]); |
|
|
|
} |
|
|
|
//抢购首页特殊处理 |
|
|
|
if(type==3 && diypagesDataArray[1].id == 'options2'){ |
|
|
|
// const res = await _this.getCultivateClassList(); |
|
|
|
App._post_form('&p=store&do=getCultivateClassList', {}, res => { |
|
|
|
console.log(res, '78123791840294-23o5') |
|
|
|
diypagesDataArray[1].data = res.data; |
|
|
|
diypagesDataArray[1].newCC_id = _this.newCC_id; |
|
|
|
laterProcedure(); |
|
|
|
|
|
|
|
}, false, () => { |
|
|
|
|
|
|
|
} |
|
|
|
) |
|
|
|
if(type==3 && diypagesDataArray[0].id == 'search2'){ |
|
|
|
// this.$delete(this.diypagesData, 'D1234567890'); |
|
|
|
this.$delete(diypagesDataArray, '0'); |
|
|
|
// console.log(this.diypagesData, '-----检查是否删除搜索框------', diypagesDataArray) |
|
|
|
|
|
|
|
if(type==3 && diypagesDataArray[0].id == 'options2'){ |
|
|
|
// const res = await _this.getCultivateClassList(); |
|
|
|
App._post_form('&p=store&do=getCultivateClassList', {}, res => { |
|
|
|
// console.log(res, '78123791840294-23o5') |
|
|
|
diypagesDataArray[0].data = res.data; |
|
|
|
diypagesDataArray[0].newCC_id = _this.newCC_id; |
|
|
|
laterProcedure(); |
|
|
|
|
|
|
|
}, false, () => { |
|
|
|
|
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
laterProcedure(); |
|
|
|
} |
|
|
|
|