123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970 |
- <script>
- import { getDictByKey,getAppVersion,getRealLinkDomainName } from '@/api/common'
- //参考文档 插件市场 https://ext.dcloud.net.cn/plugin?id=741
- import {appCheckUdate,openDownload } from '@/utils/APPUpdate.js'
- import {getUserInfo,getPushLogRead} from '@/api/user'
- import { healthButlerPop } from '@/utils/healthButlerPop.js'
-
- // #ifdef APP-PLUS
- import TIM from "tim-wx-sdk";
- import TIMUploadPlugin from "tim-upload-plugin";
- import Aegis from "aegis-weex-sdk";
- export { TIM, TIMUploadPlugin, Aegis };
- // import {coursePopup} from '@/utils/coursePopup.js'
- // var jpushModule = uni.requireNativePlugin("JG-JPush");
- // #endif
- // #ifdef H5
- import TIM from "tim-js-sdk";
- import TIMUploadPlugin from "tim-upload-plugin";
- import Aegis from "aegis-web-sdk";
- export { TIM, TIMUploadPlugin, Aegis };
- // #endif
- // #ifdef MP-WEIXIN
- import TIM from "tim-js-sdk";
- import TIMUploadPlugin from "tim-upload-plugin";
- import Aegis from "aegis-mp-sdk";
- export { TIM, TIMUploadPlugin, Aegis };
- // #endif
- import { TUIConversationServer, TUIProfileServer } from "@/pages/TUIKit/TUICore/server";
- import store from "@/store";
- // 创建 sdk 实例
- var appId=1400825410;
- uni.$TUIKit = TIM.create({
- SDKAppID: appId,
- });
- uni.$TIM = TIM;
- // 注册文件上传插件
- uni.$TUIKit.registerPlugin({
- "tim-upload-plugin": TIMUploadPlugin,
- });
- uni.$TUIKit.TUIConversationServer = new TUIConversationServer();
- uni.$TUIKit.TUIProfileServer = new TUIProfileServer();
- var isIos=false;
- // #ifdef APP-PLUS
- const uPushPlugin = uni.requireNativePlugin("DCloud-PushSound");
- const TUICallKit = uni.requireNativePlugin('TencentCloud-TUICallKit');
- uni.$TUICallKit = TUICallKit; //全局引入
- uni.$TUICallKit2 = TUICallKit; //全局引入
- isIos = (plus.os.name == "iOS")
- import permision1 from "@/utils/permission.js"
- // #endif
- import { getTlsSig } from '@/api/common.js'
- import { qconfig } from './utils/config';
- import { premissionCheck } from "@/js_sdk/wa-permission/permission.js"
- // import { utils } from 'xlsx';
- import { updateMsgDot } from "@/utils/common.js"
- let healthTimer=null;
- let tSeconds=0;
- const healthSeconds=180;
- export default {
- globalData: {
- wsUrl: 'ws://doctor.ai.cdwjyyh.com',
- danmuWSUrl:'ws://api.cdwjyyh.com',
- aiWSUrl:'ws://doctor.ai.cdwjyyh.com',
- kfurl: 'https://work.weixin.qq.com/kfid/kfc3731c5008ebd8906', //企业微信客服链接
- corpId: 'ww70ac72e824957fc9', //企业id
- },
- onLaunch: function () {
- uni.removeStorageSync("openUrl")
- if(this.$isLogin()) {
- uni.setStorageSync("onLaunch",1)
- this.$setSource()
- }
- //设置字体大小
- let fontsize = uni.getStorageSync("fontSize")
- if (fontsize) {
- store.commit("timStore/setScaleFontSize", fontsize);
- uni.setStorageSync("fontSize",fontsize);
- }
- else{
- let scale = this.getSystemFontScale();
- let oriFontSize=18;
- fontsize=oriFontSize*scale;
- if(fontsize<oriFontSize){
- fontsize=oriFontSize;
- }
- if(fontsize<16){
- fontsize=16;
- }
- if(fontsize>=21){
- fontsize=21;
- }
- uni.setStorageSync("fontSize",fontsize);
- store.commit("timStore/setScaleFontSize", fontsize);
- }
- this.bindTIMEvent();
- var that=this;
- uni.$on('refreshIM', () => {
- that.imLogin()
- });
- uni.$on('refreshMsgCount', () => {
- that.$updateMsgDot();
- });
-
- // #ifdef APP-PLUS
- uni.$on('showHealthButler', () => {
- if(plus.runtime.channel=="baidu" || plus.runtime.channel=="yybadv" || plus.runtime.channel=="yybadv1"){
- that.runTimer();
- }
- });
-
- // const baiduAdv = uni.requireNativePlugin('baidu-adv-plugin');
- // //console.log("-----qxj baiduAdv:"+baiduAdv);
- // baiduAdv.initSDK(21427,"e8b431ba309234a9c842fddf967b7d0e", (msg) => {
- // console.log('------qxj SDK1初始化:', msg);
- // });
-
- this.checkPush1();
- uni.onPushMessage((res) => {
- console.log("监听推送消息 ")
- if(res.type=="receive") {
- uni.createPushMessage({
- title: res.data.title,
- content: res.data.content,
- payload: res.data.payload,
- // sound: 'system', // 默认值为system
- category: res.data.category,
- success: ()=>{
- console.log("创建在线推送消息成功: ")
- store.commit("newMsg/SET_UPDATATIME",new Date().getTime());
- },
- fail: (err) =>{
- console.log("创建在线推送消息失败: ",err)
- },
- })
- }
- this.$updateMsgDot()
- this.handlePushMessage(res)
- })
- //#endif
- },
- onLoad() {
- // #ifdef APP-PLUS
- if(plus.runtime.isAgreePrivacy()) {
- uni.getSystemInfo({success: function (res) {
- if (res.platform === 'android') {
-
- }
- }
- });
- }
- //#endif
- },
- onShow() {
-
- this.geth5Path()
- var that=this;
- if(that.$isLogin()){
- that.imLogin();
- that.$getRegistrationID('update');
- // this.getClipboardData()
- }
- // #ifdef APP-PLUS
-
- if(plus.runtime.isAgreePrivacy()) {
- this.$getRegistrationID();
- if(plus.runtime.channel=="baidu" || plus.runtime.channel=="yybadv" || plus.runtime.channel=="yybadv1"){
- this.runTimer();
- }
- }
- //that.bdAdvFeedback();
-
- that.checkUpdateApp();
- var args= plus.runtime.arguments;
- if(args){
- console.log('args=====',args)
- // 处理args参数,如直达到某新页面等
- if(args=="rtlive://course"){
- uni.switchTab({url: '/pages/course/index'});
- }else if(args=="rtlive://livingApp"){
- uni.switchTab({url: '/pages/course/video/living-app'});
- }else {
- let url = ''
- if(args.indexOf("rtlive://pagesApp") != -1) {
- // 打开对应pages
- url=args.replace("rtlive://pagesApp?pagesUrl=","");
- url=decodeURIComponent(url);
- } else if (args.indexOf("rtlive://courseAnswer") != -1) {
- // 看课
- url=args.replace("rtlive://courseAnswer","");
- url="/pages/courseAnswer/index"+url;
- } else {
- url=args.replace("rtlive://course","");
- url="/pages/course/info"+url;
- }
- if(args.indexOf("rtlive://") != -1&&url) {
- uni.setStorageSync("openUrl",url)
- if(this.$isLogin()){
- uni.navigateTo({
- url: url,
- success: function(res) {
- uni.removeStorageSync("openUrl")
- plus.runtime.arguments = ''
- }
- })
- }
- }
- }
- }
- //#endif
-
- },
- onHide() {
- uni.removeStorageSync("onLaunch")
- },
- methods: {
- getSystemFontScale:function () {
- let scale = 1;
- if (uni.getSystemInfoSync) {
- let systemInfo = uni.getSystemInfoSync();
- if (systemInfo.fontSizeSetting) {
- scale = systemInfo.fontSizeSetting / 16; // 16 是默认字体大小
- }
- }
- return scale;
- },
- adjustFontSize:function() {
- let scale = getSystemFontScale();
- let rootElement = document.documentElement;
- rootElement.style.fontSize = 16 * scale + 'px';
- },
- /* 检查更新 在线更新 */
- checkUpdateApp:function(){
- if(isIos){
- return;
- }
- let that=this;
- plus.runtime.getProperty(plus.runtime.appid, function(widgetinfo) {
- // 可以根据manifest.json里的应用名称来进行针对性的APP升级
- if (widgetinfo.name == qconfig.appName) { //APP名称
- // 获取manifest.json里的版本号
- let platform = uni.getSystemInfoSync().platform;
- let isAndroid=platform=="android";
- let type=isAndroid?1:2;
- getAppVersion(type).then(srcData => {
- //console.log("qxj getAppVersion srcData:"+JSON.stringify(srcData)+" isAppStore:"+that.$qconfig.isAppStore);
- if(srcData.code==200){
- let data = srcData.data;
- let version = widgetinfo.versionCode,//用户当前app版本
- appVersion = data.versionCode,//升级包版本
- appName = widgetinfo.name, //app名称
- isForce = data.isForce,//是否强制热更新
- updateConfig=JSON.parse(data.updateConfig),
- appurl = data.url,//升级包地址
- intro = data.note;//升级包提示
- //如果用户版本号小于升级包版本号,先升级
- let afterVer=false;
- if(plus.runtime.channel=="baidu"){
- afterVer=that.$qconfig.isAppStore?updateConfig.baidu:false;
- }
- else if(plus.runtime.channel=="huawei"){
- afterVer=that.$qconfig.isAppStore?updateConfig.huawei:false;
- }
- else if(plus.runtime.channel=="xiaomi"){
- afterVer=that.$qconfig.isAppStore?updateConfig.xiaomi:false;
- }
- else if(plus.runtime.channel=="yyb"){
- afterVer=that.$qconfig.isAppStore?updateConfig.yyb:false;
- }
- else{
- afterVer=that.$qconfig.isAppStore?isForce:true;
- }
- if(data && (version < appVersion) && afterVer){
- uni.showModal({
- title:"更新提示",
- confirmText:"立即升级",
- content:intro,
- cancelText:'确定',
- confirmText:'取消',
- success: (res) => {
- if (res.cancel) {
- openDownload(srcData.data);
- } else if (res.confirm) {
- if(isForce==1){
- uni.showToast({title:"请先升级APP版本",icon:"none",duration:2000});
- //退出app
- setTimeout(function(){
- plus.runtime.quit();
- },2000)
- }
- }
- },
- fail: () => {
- uni.hideLoading();
- }
- })
- }
- }
- },
- rej => {}
- ).catch(()=>{
- //联网失败, 结束加载
- this.mescroll.endErr();
- });
- }
- });
- },
-
- imLogin(){
- var user=JSON.parse(uni.getStorageSync('userInfo'));
- var uid="U-"+user.userId;
- var data={userId:uid};
- getTlsSig(data).then(res => {
- console.log(data)
- if(res.code==200){
- var sign=res.data;
- //console.log("-----qxj sign:"+sign);
- uni.setStorageSync('sign',sign);
- uni.setStorageSync('userID',uid);
- uni.$TUIKit.login({ userID: uid,userSig:sign }).then((res) => {
- // sdk 初始化,当 sdk 处于ready 状态,才可以使用API,文档
- console.log("im登录成功");
- var avatar=user.avatar;
- var nickName=user.nickName;
- if(avatar==null){
- avatar=""
- }
- uni.$TUIKit.updateMyProfile({
- nick: nickName,
- avatar:avatar,
- gender: TIM.TYPES.GENDER_MALE,
- selfSignature: '我的个性签名',
- allowType: TIM.TYPES.ALLOW_TYPE_ALLOW_ANY
- }).then((res) => {
- // sdk 初始化,当 sdk 处于ready 状态,才可以使用API,文档
- console.log("个人信息修改成功")
- });
- var sign=uni.getStorageSync('sign');
- uni.$emit('refreshMsgCount');
- // #ifdef APP-PLUS
- uni.$TUICallKit.login({
- SDKAppID: appId, // 开通实时音视频服务创建应用后分配的 SDKAppID
- userID: uid, // 用户 ID,可以由您的帐号系统指定
- userSig: sign, // 身份签名,相当于登录密码的作用
- }, (res) => {
- if (res.code === 0) {
- uni.$TUICallKit.enableFloatWindow(true); // 开启小浮窗
- } else {
- console.error(`login failed, error message = ${res.msg}`);
- }
- });
- // #endif
- });
- }
- else{
- uni.showToast({
- icon:'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- bindTIMEvent() {
- uni.$TUIKit.on(uni.$TIM.EVENT.SDK_READY, this.handleSDKReady);
- uni.$TUIKit.on(uni.$TIM.EVENT.SDK_NOT_READY, this.handleSDKNotReady);
- uni.$TUIKit.on(uni.$TIM.EVENT.KICKED_OUT, this.handleKickedOut);
- },
- // sdk ready 以后可调用 API
- handleSDKReady(event) {
- uni.$chat_isSDKReady = true;
- uni.hideLoading();
- },
- handleSDKNotReady(event) {
-
- },
- handleKickedOut(event) {
- //uni.clearStorageSync();
- uni.showToast({
- title: `${this.kickedOutReason(event.data.type)}被踢出。`,
- icon: "none",
- });
- },
- kickedOutReason(type) {
- switch (type) {
- case uni.$TIM.TYPES.KICKED_OUT_MULT_ACCOUNT:
- return "多实例登录";
- case uni.$TIM.TYPES.KICKED_OUT_MULT_DEVICE:
- return "多设备登录";
- case uni.$TIM.TYPES.KICKED_OUT_USERSIG_EXPIRED:
- return "userSig 过期";
- case uni.$TIM.TIM.TYPES.KICKED_OUT_REST_API:
- return "REST API kick 接口踢出";
- default:
- return "";
- }
- },
- runTimer(){
- let that=this;
- // healthButlerPop(function(data){
- // if(data==1){
-
- // }else{
- // that.$showLoginPage();
- // }
- // });
- let dateNowDay=this.$dateFormatStr("YYYY-mm-dd",new Date());
- let healthButler=uni.getStorageSync("healthButler");
- let userInfo=uni.getStorageSync('userInfo');
- console.log("------qxj dateStr:"+dateNowDay+" healthButler:"+healthButler);
- let dayNum=0;
- if(userInfo!=null && userInfo.isAddQw){ //已加过企微不在弹窗
- return;
- }
- if(!!healthButler){
- healthButler=JSON.parse(healthButler);
- dayNum=healthButler.dayNum;
- if(healthButler.day==dateNowDay){ //今天已经弹窗过 防止再弹窗
- return;
- }
- }
- if(dayNum==0){ //第一天下载App
- if(this.$qconfig.healthTimer==null){
- this.$qconfig.healthTimer=setInterval(() => {
- if(this.$qconfig.healthSeconds==healthSeconds){
- this.$qconfig.healthSeconds=0;
- healthButlerPop(function(data){
- if(data==1){
- that.bdAdvFeedback();
- clearInterval(that.$qconfig.healthTimer);
- }else{
- that.resetTimer();
- that.$showLoginPage();
- }
- });
- }
- this.$qconfig.healthSeconds++;
- //console.log("healthTimer tSeconds:"+this.$qconfig.healthSeconds);
- }, 1000);
- }
- }
- else{ //第二天,第三天,,
- healthButlerPop(function(data){
- if(data==1){
- clearInterval(that.$qconfig.healthTimer);
- }else{
- that.$showLoginPage();
- }
- });
- }
- },
- resetTimer(){
- clearInterval(this.$qconfig.healthTimer);
- this.$qconfig.healthTimer=null; //重置定时器
- this.$qconfig.healthSeconds=healthSeconds;
- },
- getUserInfo(healthButler){
- getUserInfo().then(res => {
- if(res.code==200){
- if(res.user!=null){
- uni.setStorageSync('userInfo',JSON.stringify(res.user));
- let userInfo=res.user;
- healthButler.isAddQw=userInfo.isAddQw;
- uni.setStorageSync("healthButler",JSON.stringify(healthButler));
- }
- }
- },
- rej => {}
- );
- },
- jumpToNotificationSettings() {
- uni.request({
- url: 'content://settings/action/notification_settings',
- success: function (res) {
- console.log('跳转成功:', res);
- },
- fail: function (err) {
- console.log('跳转失败:', err);
- }
- });
- },
- bdAdvFeedback(){
- // #ifdef APP-PLUS
- if(plus.runtime.isAgreePrivacy()) {
- if(plus.runtime.channel=="baidu"){
- let bdCmdType=uni.getStorageSync("bdCmdType");
- if(this.$isEmpty(bdCmdType)){
- this.$registerIdCode("goToQw",4,0);
- }
- }
- }
- // #endif
- },
- async checkPush1(){
- let result = await premissionCheck("PUSH");
- if(result == 1) {
-
- }
-
- // uPushPlugin.setCustomPushChannel({
- // soundName: "",
- // channelId: "133898",
- // channelDesc:"看课提醒",
- // enableLights:true,
- // enableVibration:true,
- // importance:4,
- // lockscreenVisibility:1
- // });
-
- // uPushPlugin.getAllChannels((p) => {
- // console.log("qxj push channels :" + JSON.stringify(p));//返回数组
- // });
-
- // const manager = uni.getChannelManager()
- // manager.setPushChannel({
- // "channelId":"Push",
- // "channelDesc":"消息推送",
- // "enableLights":true,
- // "importance":4,
- // "lockscreenVisibility":1
- // //soundName: "pushsound" // 已经把声音文件存储到/res/raw/pushsound.mp3
- // });
- },
- async checkPush(){
- //检测是否开启推送通知
- const notificationAuthorized = uni.getAppAuthorizeSetting().notificationAuthorized
- if(notificationAuthorized=='denied'){
- uni.showModal({
- title: '提示',
- content: '是否前往打开通知权限',
- success: res => {
- if (res.confirm) {
- let status = this.checkPermission();
- if (status !== 1) {
- console.log('未开启权限');
- }
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- })
- }
- },
- async checkPermission() {
- let status = permision1.isIOS ? await permision1.requestIOS('push') :
- await permision1.requestAndroid('android.permission.REQUEST_NOTIFICATION_POLICY');
- if (status === null || status === 1) {
- status = 1;
- } else if (status === 2) {
- uni.showModal({
- content: "系统通知已关闭",
- confirmText: "确定",
- showCancel: false,
- success: function(res) {
-
- }
- })
- } else if (status.code) {
- uni.showModal({
- content: status.message
- })
- } else {
- uni.showModal({
- content: "需要通知权限",
- confirmText: "设置",
- success: function(res) {
- if (res.confirm) {
- permision1.gotoAppSetting();
- }
- }
- })
- }
- return status;
- },
- geth5Path() {
- getRealLinkDomainName().then(res=>{
- if(res.code == 200) {
- uni.setStorageSync('h5Path',res.data);
- }
- })
- },
- handlePushMessage(res) {
- const that = this
- if(res.type == 'click') {
- // 如果需要跳转app内指定页面,则自己实现下方的跳转代码。
- if(this.$isLogin()){
- const pages = getCurrentPages();
- const url = pages[ pages.length - 1];
- const isOnLaunch = uni.getStorageSync("onLaunch")
- // 判断前一个页面路径是一样
- const flag = pages&&url.route&&res.data.payload.url.indexOf(url.route)
- // console.log("点击===========",url.route,flag)
- if(isOnLaunch&&isOnLaunch==1) {
- uni.hideLoading({
- title: '处理中..'
- })
- setTimeout(()=>{
- uni.hideLoading()
- if(flag==-1) {
- uni.navigateTo({
- url: res.data.payload.url,
- success: function() {
- uni.removeStorageSync("openUrl")
- that.setReadAll(res.data.payload.url)
- }
- })
- }else {
- uni.redirectTo({
- url: res.data.payload.url,
- success: function() {
- uni.removeStorageSync("openUrl")
- that.setReadAll(res.data.payload.url)
- }
- })
- }
- },1000)
- } else {
- uni.hideLoading()
- if(flag==-1) {
- uni.navigateTo({
- url: res.data.payload.url,
- success: function() {
- uni.removeStorageSync("openUrl")
- that.setReadAll(res.data.payload.url)
- }
- })
- }else {
- uni.redirectTo({
- url: res.data.payload.url,
- success: function() {
- uni.removeStorageSync("openUrl")
- that.setReadAll(res.data.payload.url)
- }
- })
- }
- }
- }
- } else if(res.type == 'receive') {
- // 监听在线推送消息,若云函数设置了 "force_notification":true,则不会触发此 receive。
- }
- },
- // 系统通知全部已读
- setReadAll(url) {
- if(url&&url.indexOf("/pages/courseAnswer/index") == -1) {
- getPushLogRead([]).then(res=>{
- if(res.code == 200) {
- this.$updateMsgDot()
- }
- })
- }
- },
- // 获取剪贴板内容跳转到看课
- getClipboardData() {
- // #ifdef APP-PLUS
- console.log("获取剪贴板内容跳转到看课==========")
- const course = {
-
- }
- coursePopup(course,()=>{
- // uni.getClipboardData({
- // success: function (res) {
- // console.log("res.data===",res);
- // let Context = plus.android.importClass("android.content.Context");
- // let main = plus.android.runtimeMainActivity();
- // let clip = main.getSystemService(Context.CLIPBOARD_SERVICE);
- // plus.android.invoke(clip,"setText","");
- // }
- // });
- });
- // #endif
- }
- }
- };
- </script>
- <style lang="scss">
- /*每个页面公共css */
- @import "@/uni_modules/uview-plus/index.scss";
- /*#ifndef APP-NVUE*/
-
- view{
- box-sizing: border-box;
- }
- .ellipsis{
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .ellipsis2{
- overflow:hidden;
- text-overflow:ellipsis;
- display:-webkit-box;
- -webkit-box-orient:vertical;
- -webkit-line-clamp:2;
- }
-
- uni-modal {
- z-index: 1100;
- }
-
-
-
- // 猜你喜欢样式
- .like-box{
- display: flex;
- align-items: center;
- justify-content: center;
- image{
- height: 40upx;
- width: 40upx;
- }
- .text{
- font-size: 28upx;
- color: #000;
- font-weight: bold;
- margin: 0 10upx;
- }
- }
- .no-data-box{
- height:100%;
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- image{
- width: 264upx;
- height: 212upx;
- }
- .empty-title{
- margin-top: 20rpx;
- font-size: 28rpx;
- color: gray;
- }
- }
-
- .doctor-box{
- margin-top: 15rpx;
- padding: 20rpx 0rpx 0rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- .doctor{
- width: 100%;
- margin-bottom: 15rpx;
- background: #f9f8fe;
- padding: 15rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- &:last-child{
- margin-bottom: 0rpx;
- }
- .item{
- width: 100%;
- display: flex;
- align-items: flex-start;
- justify-content: flex-start;
- .left{
- .head-box{
- width:92rpx;
- height:92rpx;
- position: relative;
- .isline{
- width:92rpx;
- height:92rpx;
- border-radius: 50%;
- border: 2rpx solid #E69A22;
- display: flex;
- align-items: center;
- justify-content: center;
- position: absolute;
- bottom: 0rpx;
- .img{
- position: absolute;
- bottom: 1rpx;
- width:75rpx;
- height:35rpx;
- image{
- width:75rpx;
- height:35rpx;
- }
- .name{
- width:75rpx;
- height:35rpx;
- bottom: -3rpx;
- text-align: center;
- position: absolute;
- font-size: 16upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #ffffff;
- }
- }
-
-
- }
- .doc-img{
- border-radius: 50%;
- width:100%;
- height:100%;
-
- }
-
- }
- }
- .right{
- width: calc(100% - 100rpx);
- margin-left: 20rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: flex-start;
- .doc-box{
- display: flex;
- align-items: center;
- justify-content: space-between;
- .doc-name{
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
-
- }
- .doc-position{
- margin-left: 16rpx;
- font-size: 26upx;
- font-weight: bold;
- font-family: PingFang SC;
- color: #2A2B2E;
- }
- .doc-dept{
- margin-left: 16rpx;
- font-size: 26upx;
- font-weight: bold;
- font-family: PingFang SC;
- color: #2A2B2E;
- }
- }
- .hospital-box{
- display: flex;
- align-items: center;
- justify-content: flex-start;
- margin-top: 10rpx;
- .tag{
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: #4FC06B;
- border-radius: 10rpx;
- padding: 5rpx 10rpx;
- font-size: 20upx;
- font-weight: bold;
- font-family: PingFang SC;
- color: #ffffff;
- }
- .name{
- margin-left: 6rpx;
- font-size: 26upx;
- font-weight: bold;
- font-family: PingFang SC;
- color: #2A2B2E;
- }
-
- }
- .doc-spec{
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- margin-top: 15rpx;
- .spec{
- font-size: 26upx;
- font-family: PingFang SC;
- color: #626468;
- }
- }
- .doc-count{
- margin-top: 15rpx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- .name{
- font-size: 24upx;
- font-family: PingFang SC;
- color: #9B9B9B;
- }
- .count{
- margin: 0rpx 5rpx;
- font-size: 24upx;
- font-family: PingFang SC;
- color: #2A2B2E;
- }
- }
- .doc-price{
- width: 100%;
- margin-top: 15rpx;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- .btn{
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: #FEEFD7;
- padding: 15rpx 30rpx;
- border-radius: 30rpx;
- font-size: 26upx;
- font-family: PingFang SC;
- color: #E69A22;
- }
- }
-
- }
- }
-
- }
- }
-
- /*#endif*/
-
- </style>
- <style lang="less">
- /*每个页面公共css */
- // @import './assets/iconfont/iconfont.css';
- @import './assets/css/common.less';
- /* 全局flex样式 */
- @import './common/css/flexCommon.css';
-
- /*引入全局补充样式*/
- @import './assets/css/czy/es.1.base.css';
- @import './assets/css/czy/es.2.color.css';
- @import './assets/css/czy/es.3.icon.css';
- @import './assets/css/czy/es.4.view.css';
- .textOne {
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .textTwo {
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- </style>
-
|