给客服添加心跳动画、修复分类加载更多问题、修复分类列表点击进入详情后返回没有数据问题、修复授权个人信息时按钮颜色没显示问题、兼容进入分类没带index索引问题
parent
8e37f1abd5
commit
60d9b48016
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<view>
|
||||
<view @tap="lianK" :style="{background:publicColor,right:nright+'rpx',bottom:nbottom+'rpx'}" :class="isSmall?'smallImg':''" class="fw posir" style="position: fixed;z-index: 2; width: 120rpx;height: 120rpx;border-radius: 100%;display: flex;justify-content: center;align-items: center;box-shadow: 0rpx 0rpx 20rpx rgba(0,0,0,.22);">
|
||||
<image class="posia" src="/static/public/btnKF.png" style="width: 50rpx;height: 50rpx;top: 20rpx;" mode=""></image>
|
||||
<view @tap="lianK" :style="{background:publicColor,right:nright+'rpx',bottom:nbottom+'rpx'}" :class="isSmall?'smallImg':''" class="fw posir customer-box" style="position: fixed;z-index: 2; width: 120rpx;height: 120rpx;border-radius: 100%;display: flex;justify-content: center;align-items: center;box-shadow: 0rpx 0rpx 20rpx rgba(0,0,0,.22);">
|
||||
<image class="posia" src="/static/public/btnKF.png" style="width: 50rpx;height: 50rpx;top: 20rpx;" mode="" lazy-load></image>
|
||||
<view class="colf fon20 posia" style="bottom: 20rpx;">在线客服</view>
|
||||
<button class="fon24 posia" style="opacity: 0;top: 0;left: 0;right: 0;bottom: 0;" open-type="contact">客服</button>
|
||||
</view>
|
||||
|
@ -48,4 +48,11 @@
|
|||
|
||||
<style>
|
||||
.smallImg{transform: scale(.8);margin-right: -10rpx;}
|
||||
.customer-box {
|
||||
animation: scale_name 1s linear alternate infinite;
|
||||
}
|
||||
@keyframes scale_name{
|
||||
from{transform: scale(1);}
|
||||
to{transform: scale(1.2);}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -180,7 +180,6 @@
|
|||
timeList:[],
|
||||
isHot:false,
|
||||
isAutoPlay:false,
|
||||
optionObj:{}
|
||||
}
|
||||
},
|
||||
onPageScroll(e) {
|
||||
|
@ -192,7 +191,7 @@
|
|||
if(this.ccurrent==0){
|
||||
this.checkCate(this.category_id)//调用自主预约列表事件
|
||||
} else {
|
||||
this.otherEv(this.cateList[this.ccurrent].children[0].id)
|
||||
this.otherEv(this.cateList[this.ccurrent].children[this.newCurrent].id)
|
||||
}
|
||||
} else {
|
||||
if(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000)
|
||||
|
@ -206,21 +205,23 @@
|
|||
this.isAutoPlay = false;
|
||||
},
|
||||
onLoad(options) {
|
||||
this.optionObj = options;
|
||||
this.ccurrent = options.index*1;
|
||||
if(options.index==undefined) {
|
||||
this.ccurrent = 0;
|
||||
} else {
|
||||
this.ccurrent = options.index*1;
|
||||
}
|
||||
// 调用tools.js中的种植埋点事件
|
||||
this.$toolAll.tools.plantPoint(7);
|
||||
this.checkSwi()
|
||||
|
||||
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
|
||||
this.checkBZ()//调用病种列表事件
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.$toolAll.tools.isLogin();
|
||||
this.isAutoPlay = true;
|
||||
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
|
||||
if(this.category_id!='') this.checkCate(this.category_id)//调用左侧列表点击事件
|
||||
this.checkBZ()//调用病种列表事件
|
||||
if(this.ccurrent==0) {
|
||||
if(this.category_id!='') this.checkCate(this.category_id)//调用左侧列表点击事件
|
||||
}
|
||||
this.$requst.post('index/mini-program-setting').then(res=>{
|
||||
// log('数据:',res);
|
||||
if(res.code==0){
|
||||
|
@ -451,7 +452,8 @@
|
|||
},
|
||||
chooseCate(index){//分类选中事件
|
||||
this.page = 1;
|
||||
this.ccurrent = index
|
||||
this.ccurrent = index;
|
||||
this.newCurrent = 0;
|
||||
if(this.ccurrent!=0){
|
||||
// this.checkData(this.cateList[index].id);
|
||||
if(this.cateList[index].children.length){
|
||||
|
@ -477,7 +479,7 @@
|
|||
// console.log('分类选中:',index);
|
||||
},
|
||||
otherEv(id){
|
||||
this.$requst.post('archives/disease-second-question',{disease_second_id:id}).then(res=>{
|
||||
this.$requst.post('archives/disease-second-question',{disease_second_id:id,page:this.page,size:this.size}).then(res=>{
|
||||
// 获取列表
|
||||
if(this.page==1) {
|
||||
this.dataList = [];
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
<!-- 竖线 -->
|
||||
<view class="linev"></view>
|
||||
<!-- 搜索 -->
|
||||
<!-- <view @tap="searchEv" class="searchT flexs fon34" :style="{color:publicColor}">搜索</view> -->
|
||||
<view @tap="enterprise" class="searchT flexs fon34" :style="{color:publicColor}">搜索</view>
|
||||
<view @tap="searchEv" class="searchT flexs fon34" :style="{color:publicColor}">搜索</view>
|
||||
<!-- <view @tap="enterprise" class="searchT flexs fon34" :style="{color:publicColor}">搜索</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="pad-x180">
|
||||
|
@ -172,9 +172,6 @@
|
|||
getApp().globalData.outside = false;
|
||||
},
|
||||
onLoad(options) {
|
||||
this.$requst.get(`index/mini-program-setting`).then(res=>{
|
||||
uni.setStorageSync('publicColor', res.data.mainColor) //#3875F6 #2E8B57
|
||||
})
|
||||
if(options.q!=undefined){
|
||||
// 解码一:unescape("http%3A//www.baidu.com%3Fname%3Dzhang@xiao@jie%26order%3D1");
|
||||
// 解码二:decodeURIComponent("http%3A%2F%2Fwww.baidu.com%3Fname%3Dzhang%40xiao%40jie%26order%3D1")
|
||||
|
@ -528,19 +525,19 @@
|
|||
},
|
||||
searchEv(){//搜索事件
|
||||
// log(this.searchVal);
|
||||
// if(this.$toolAll.tools.judgeAuth()){
|
||||
// this.$requst.post('archives/keyword-check',{keyword:this.searchVal}).then(res=>{
|
||||
// if(res.data.has) {
|
||||
// uni.navigateTo({
|
||||
// url:`/${res.data.target}`
|
||||
// })
|
||||
// } else {
|
||||
// uni.navigateTo({
|
||||
// url:'/pagesB/searchPage/searchPage?keyWorld='+this.searchVal
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
if(this.$toolAll.tools.judgeAuth()){
|
||||
this.$requst.post('archives/keyword-check',{keyword:this.searchVal}).then(res=>{
|
||||
if(res.data.has) {
|
||||
uni.navigateTo({
|
||||
url:`/${res.data.target}`
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url:'/pagesB/searchPage/searchPage?keyWorld='+this.searchVal
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
// 打开企业客服
|
||||
enterprise(){
|
||||
|
|
|
@ -75,6 +75,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 底部客服 -->
|
||||
<public-customer></public-customer>
|
||||
<!-- 用户信息授权,手机号授权 -->
|
||||
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
|
||||
</view>
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
<view class="posixzy pad-sx25">
|
||||
<view @tap="goAddDiary" class="fon30 radius20 tc colf bold" style="margin: 0 83rpx;height: 90rpx;line-height: 90rpx;" :style="{background:publicColor}">添加日记</view>
|
||||
</view>
|
||||
<!-- 底部客服 -->
|
||||
<public-customer></public-customer>
|
||||
<!-- 用户信息授权,手机号授权 -->
|
||||
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
|
||||
</view>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue