首页广告优化
parent
e5522ec5de
commit
657fb67294
|
@ -0,0 +1,8 @@
|
||||||
|
// 百度统计代码
|
||||||
|
var _hmt = _hmt || [];
|
||||||
|
(function() {
|
||||||
|
var hm = document.createElement("script");
|
||||||
|
hm.src = "https://hm.baidu.com/hm.js?579b3df8d003f1325facea62cddd6c89";
|
||||||
|
var s = document.getElementsByTagName("script")[0];
|
||||||
|
s.parentNode.insertBefore(hm, s);
|
||||||
|
})();
|
|
@ -1138,6 +1138,9 @@ textarea {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
margin-top: .2rem;
|
margin-top: .2rem;
|
||||||
}
|
}
|
||||||
|
.expert-body p{
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
.detail-section h3{
|
.detail-section h3{
|
||||||
font-size: .32rem;
|
font-size: .32rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
|
|
@ -49,4 +49,4 @@ Vue.use(VueAxios, axios)
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
}).$mount('#app')
|
}).$mount('#app')
|
|
@ -46,7 +46,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import tabbar from '../../../components/tabbar.vue'
|
import tabbar from '../../../components/tabbar.vue';
|
||||||
|
import "../../../../public/js/count.js";
|
||||||
export default {
|
export default {
|
||||||
name: "evaluation",
|
name: "evaluation",
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<div class="expert-body">
|
<div class="expert-body">
|
||||||
<h2>个人简介</h2>
|
<h2>个人简介</h2>
|
||||||
<span>
|
<span>
|
||||||
<p>{{expertDetail.summary}}</p>
|
<p v-html="expertDetail.summary"></p>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="expert-region">
|
<div class="expert-region">
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
avatar: list.avatar,
|
avatar: list.avatar,
|
||||||
tags_text: list.tags_text,
|
tags_text: list.tags_text,
|
||||||
slogan: list.slogan,
|
slogan: list.slogan,
|
||||||
summary: list.summary,
|
summary: list.summary.replace(/\n/g,"<br>").replace(/\s/g," "),
|
||||||
service_area_text: list.service_area_text,
|
service_area_text: list.service_area_text,
|
||||||
im_group_link: list.im_group_link,
|
im_group_link: list.im_group_link,
|
||||||
im_group_qr: list.im_group_qr,
|
im_group_qr: list.im_group_qr,
|
||||||
|
|
|
@ -95,7 +95,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import tabbar from '../../../components/tabbar.vue'
|
import tabbar from '../../../components/tabbar.vue';
|
||||||
|
import "../../../../public/js/count.js";
|
||||||
export default {
|
export default {
|
||||||
name: "expert",
|
name: "expert",
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="index-ypzy" @click="toNewPage()">
|
<div class="index-ypzy" v-if="adSrc" @click="toNewPage()">
|
||||||
<img src="../../assets/images/home/index/ypzy-h5.png" alt="有谱志愿">
|
<img :src="host + adSrc">
|
||||||
</div>
|
</div>
|
||||||
<!-- 计划 -->
|
<!-- 计划 -->
|
||||||
<div class="index-plan">
|
<div class="index-plan">
|
||||||
|
@ -130,6 +130,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import tabbar from "../../components/tabbar.vue";
|
import tabbar from "../../components/tabbar.vue";
|
||||||
|
import "../../../public/js/count.js";
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: "index",
|
||||||
components: {
|
components: {
|
||||||
|
@ -138,7 +139,8 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
consult_amount: 0, //是否完善资料
|
consult_amount: 0, //是否完善资料
|
||||||
bannerSrc: "",
|
bannerSrc: "", //首页banner图
|
||||||
|
adSrc: "", //首页广告图
|
||||||
expertData: [], //专家列表
|
expertData: [], //专家列表
|
||||||
video: null,
|
video: null,
|
||||||
isPaused: true,
|
isPaused: true,
|
||||||
|
@ -172,6 +174,7 @@
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getBanner();
|
this.getBanner();
|
||||||
|
this.getHot();
|
||||||
this.getExpertData();
|
this.getExpertData();
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
@ -211,10 +214,23 @@
|
||||||
position: "h5_home_banner",
|
position: "h5_home_banner",
|
||||||
})
|
})
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
|
console.log(res,'首页banner')
|
||||||
that.bannerSrc = res.data.data[0].src;
|
that.bannerSrc = res.data.data[0].src;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 获取首页广告
|
||||||
|
getHot() {
|
||||||
|
let that = this;
|
||||||
|
this.axios
|
||||||
|
.post(this.HOME + "/api/dictionary/get-slide-list", {
|
||||||
|
position: "h5_home_ad",
|
||||||
|
})
|
||||||
|
.then(function(res) {
|
||||||
|
console.log(res,'首页广告')
|
||||||
|
that.adSrc = res.data.data[0].src;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
// 获取专家列表
|
// 获取专家列表
|
||||||
getExpertData() {
|
getExpertData() {
|
||||||
|
@ -252,12 +268,12 @@
|
||||||
this.$router.push(path);
|
this.$router.push(path);
|
||||||
},
|
},
|
||||||
toNewPage(){
|
toNewPage(){
|
||||||
let url = 'http://zym.emingren.com';
|
let url = 'https://zym.emingren.com';
|
||||||
if(this.ddEntrance == 'yes'){
|
if(this.ddEntrance == 'yes'){
|
||||||
// 网页向小程序 postMessage 消息
|
// 网页向小程序 postMessage 消息
|
||||||
dd.postMessage({name:'newsPage',url:url});
|
dd.postMessage({name:'newsPage',url:url});
|
||||||
}else{
|
}else{
|
||||||
window.open('http://zym.emingren.com');
|
window.open('https://zym.emingren.com');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -87,6 +87,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import "../../public/js/count.js";
|
||||||
export default {
|
export default {
|
||||||
name: "login",
|
name: "login",
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
</div>
|
</div>
|
||||||
<span v-show="!show">{{count}}秒后可重新获取验证码</span>
|
<span v-show="!show">{{count}}秒后可重新获取验证码</span>
|
||||||
<div v-show="show" @click="getCode()" class="getCode">获取验证码</div>
|
<div v-show="show" @click="getCode()" class="getCode">获取验证码</div>
|
||||||
|
<div v-show="!show" @click="checkCode()" class="getCode">完成</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 提示框 -->
|
<!-- 提示框 -->
|
||||||
|
@ -63,7 +64,7 @@
|
||||||
userType: 0,
|
userType: 0,
|
||||||
isToast:false,
|
isToast:false,
|
||||||
toastText:'',
|
toastText:'',
|
||||||
source:''
|
source:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
beforeCreate() {},
|
beforeCreate() {},
|
||||||
|
@ -151,6 +152,18 @@
|
||||||
}
|
}
|
||||||
this.handleSubmit();
|
this.handleSubmit();
|
||||||
},
|
},
|
||||||
|
checkCode(){
|
||||||
|
console.log(this.value,'输入的验证码')
|
||||||
|
if (this.value.length == this.number) {
|
||||||
|
this.hideKeyboard();
|
||||||
|
}else{
|
||||||
|
this.toastText = '验证码位数不正确!';
|
||||||
|
this.isToast = true;
|
||||||
|
setTimeout(()=> {
|
||||||
|
this.isToast = false
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
},
|
||||||
// 倒计时60s
|
// 倒计时60s
|
||||||
getCode() {
|
getCode() {
|
||||||
const TIME_COUNT = 60;
|
const TIME_COUNT = 60;
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import tabbar from "../../../components/tabbar.vue";
|
import tabbar from "../../../components/tabbar.vue";
|
||||||
|
import "../../../../public/js/count.js";
|
||||||
export default {
|
export default {
|
||||||
name: "ucenter",
|
name: "ucenter",
|
||||||
components: {
|
components: {
|
||||||
|
|
Loading…
Reference in New Issue