uniapp悬浮可拖拽按钮

张裕  金牌会员 | 2025-1-25 04:17:14 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 703|帖子 703|积分 2109

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x

  1. <template>
  2.         <view class="content" :style="{height:QHeight + 'px', backgroundImage: `url(${bgUrl})` }">
  3.                 <view class="" @click="msgClick()" style="">
  4.                         <view class="badge-box" :style="{top:jnTop + 'px'}">
  5.                                 <image :src="xiaoxiUrl" class="xiaoxi-img" mode=""></image>
  6.                                 <u-badge numberType="overflow" :offset="[10,jnLeft]" type="error" :absolute="true" max="99"
  7.                                         :value="msgValue"></u-badge>
  8.                         </view>
  9.                 </view>
  10.                 <view class="box">
  11.                         <!-- <image :src="bannerUrl"  mode=""></image> -->
  12.                         <view class="pjpm-box1">
  13.                                 <view class="left">
  14.                                         <view class="pm-icon-box">
  15.                                                 <image :src="iconUrl1" class="pm-icon-new" mode=""></image>
  16.                                         </view>
  17.                                         <view class="pm-name">
  18.                                                 评价排名
  19.                                         </view>
  20.                                 </view>
  21.                                 <view class="right" @click="goRanking()">
  22.                                         <view class="" style="margin-right: 10px;">
  23.                                                 查看
  24.                                         </view>
  25.                                         <image :src="jtNewUrl" class="jt-img" mode=""></image>
  26.                                 </view>
  27.                         </view>
  28.                         <!-- 我的评价 -->
  29.                         <view class="pjpm-box-content">
  30.                                 <view class="pjpm-box">
  31.                                         <view class="left">
  32.                                                 <view class="pm-icon-box">
  33.                                                         <image :src="iconUrl2" class="pm-icon" mode=""></image>
  34.                                                 </view>
  35.                                                 <view class="pm-name">
  36.                                                         我的评价
  37.                                                 </view>
  38.                                         </view>
  39.                                         <view class="right" @click="goEvaluateRecord()">
  40.                                                 <view class="">
  41.                                                         更多
  42.                                                 </view>
  43.                                                 <image :src="jtUrl" class="jt-img" mode=""></image>
  44.                                         </view>
  45.                                 </view>
  46.                                 <view class="mescorll-box">
  47.                                         <view class="pj-content">
  48.                                                 <swiper class="swiper" v-if="recordList&&recordList.length > 0"
  49.                                                         :style="{ height: swiperHeightMine + 'px' }" circular :vertical="false"
  50.                                                         :indicator-dots="false" :autoplay="true" :interval="interval" :duration="duration">
  51.                                                         <swiper-item v-for="item in recordList" :key="item.id">
  52.                                                                 <view class="card-mine" @click="detailPage(item)">
  53.                                                                         <view class="status-box">
  54.                                                                                 <image :src="ytjUrl" v-if="item.evaluationStatus === 0" class="status-icon"
  55.                                                                                         mode=""></image>
  56.                                                                                 <image :src="slzUrl" v-if="item.evaluationStatus === 1" class="status-icon"
  57.                                                                                         mode=""></image>
  58.                                                                                 <image :src="ybhUrl" v-if="item.evaluationStatus === 2" class="status-icon"
  59.                                                                                         mode=""></image>
  60.                                                                                 <image :src="slzUrl" v-if="item.evaluationStatus === 3" class="status-icon"
  61.                                                                                         mode=""></image>
  62.                                                                                 <image :src="ywcUrl" v-if="item.evaluationStatus === 4" class="status-icon"
  63.                                                                                         mode=""></image>
  64.                                                                                 <image :src="ygbUrl" v-if="item.evaluationStatus === 5" class="status-icon"
  65.                                                                                         mode=""></image>
  66.                                                                         </view>
  67.                                                                         <view class="line ">
  68.                                                                                 <view class="name-text">
  69.                                                                                         被评价单位类型:
  70.                                                                                 </view>
  71.                                                                                 <view class="text-value">
  72.                                                                                         {
  73.   
  74.   {item.evaluatedType}}
  75.                                                                                 </view>
  76.                                                                         </view>
  77.                                                                         <view class="line ">
  78.                                                                                 <view class="name-text">
  79.                                                                                         评价时间:
  80.                                                                                 </view>
  81.                                                                                 <view class="text-value">
  82.                                                                                         {
  83.   
  84.   {item.createTime}}
  85.                                                                                 </view>
  86.                                                                         </view>
  87.                                                                         <view class="line ">
  88.                                                                                 <view class="name-text">
  89.                                                                                         处理结果:
  90.                                                                                 </view>
  91.                                                                                 <view class="text-value">
  92.                                                                                         <view class="line-two" v-if="item.evaluationStatus === 0"></view>
  93.                                                                                         <view class="line-two"
  94.                                                                                                 v-if="item.evaluationStatus === 1&&item.circulationReason != null">
  95.                                                                                                 {
  96.   
  97.   {item.circulationReason}}
  98.                                                                                         </view>
  99.                                                                                         <view class="line-two"
  100.                                                                                                 v-if="item.evaluationStatus === 2&&item.rejectReason != null">
  101.                                                                                                 {
  102.   
  103.   {item.rejectReason}}
  104.                                                                                         </view>
  105.                                                                                         <view class="line-two"
  106.                                                                                                 v-if="item.evaluationStatus === 3&&item.handleReason != null">
  107.                                                                                                 {
  108.   
  109.   {item.handleReason}}
  110.                                                                                         </view>
  111.                                                                                         <view class="line-two"
  112.                                                                                                 v-if="item.evaluationStatus === 4&&item.checkReason != null">
  113.                                                                                                 {
  114.   
  115.   {item.checkReason}}
  116.                                                                                         </view>
  117.                                                                                         <view class="line-two"
  118.                                                                                                 v-if="item.evaluationStatus === 5&&item.checkReason != null">
  119.                                                                                                 {
  120.   
  121.   {item.checkReason}}
  122.                                                                                         </view>
  123.                                                                                 </view>
  124.                                                                         </view>
  125.                                                                 </view>
  126.                                                         </swiper-item>
  127.                                                 </swiper>
  128.                                                 <view v-else class="card-class-null">
  129.                                                         <image :src="nullUrl" class="null-class" mode=""></image>
  130.                                                         <view class="null-name">
  131.                                                                 暂无评价内容
  132.                                                         </view>
  133.                                                 </view>
  134.                                         </view>
  135.                                 </view>
  136.                         </view>
  137.                         <!-- 评价标准 -->
  138.                         <view class="pjpm-box-content">
  139.                                 <view class="pjpm-box">
  140.                                         <view class="left">
  141.                                                 <view class="pm-icon-box">
  142.                                                         <image :src="iconUrl3" class="pm-icon" mode=""></image>
  143.                                                 </view>
  144.                                                 <view class="pm-name">
  145.                                                         评价标准
  146.                                                 </view>
  147.                                         </view>
  148.                                         <view class="right" @click="goEvaluate()">
  149.                                                 <view class="">
  150.                                                         更多
  151.                                                 </view>
  152.                                                 <image :src="jtUrl" class="jt-img" mode=""></image>
  153.                                         </view>
  154.                                 </view>
  155.                                 <view class="mescorll-box">
  156.                                         <view class="pj-content">
  157.                                                 <swiper class="swiper" :style="{ height: swiperHeight + 'px' }" circular :vertical="false"
  158.                                                         :indicator-dots="false" :autoplay="true" :interval="interval" :duration="duration">
  159.                                                         <swiper-item v-for="item in entryEntitylist" :key="item.id">
  160.                                                                 <view class="card-class" id="swiperHeight">
  161.                                                                         <view class="line ">
  162.                                                                                 <view class="ms-name">
  163.                                                                                         评价单位类型:
  164.                                                                                 </view>
  165.                                                                                 <view class="text-value">
  166.                                                                                         {
  167.   
  168.   {item.evaluationType}}
  169.                                                                                 </view>
  170.                                                                         </view>
  171.                                                                         <view class="line ">
  172.                                                                                 <view class="ms-name">
  173.                                                                                         被评价单位类型:
  174.                                                                                 </view>
  175.                                                                                 <view class="text-value">
  176.                                                                                         {
  177.   
  178.   {item.evaluatedType}}
  179.                                                                                 </view>
  180.                                                                         </view>
  181.                                                                         <view class="line ">
  182.                                                                                 <view class="ms-name">
  183.                                                                                         业务阶段:
  184.                                                                                 </view>
  185.                                                                                 <view class="text-value">
  186.                                                                                         {
  187.   
  188.   {item.stage}}
  189.                                                                                 </view>
  190.                                                                         </view>
  191.                                                                         <view class="line ">
  192.                                                                                 <view class="ms-name">
  193.                                                                                         评价指标:
  194.                                                                                 </view>
  195.                                                                                 <view class="text-value">
  196.                                                                                         {
  197.   
  198.   {item.target}}
  199.                                                                                 </view>
  200.                                                                         </view>
  201.                                                                         <view class="line ">
  202.                                                                                 <view class="ms-name">
  203.                                                                                         指标描述:
  204.                                                                                 </view>
  205.                                                                                 <view class="text-value line-two">
  206.                                                                                         {
  207.   
  208.   {item.content}}
  209.                                                                                 </view>
  210.                                                                         </view>
  211.                                                                 </view>
  212.                                                         </swiper-item>
  213.                                                 </swiper>
  214.                                         </view>
  215.                                 </view>
  216.                         </view>
  217.                 </view>
  218.                 <view class="home-content">
  219.                 </view>
  220.                 <!-- <view id="floatingImg" class="float-btn" :style="{ position: 'absolute', left: imgX + 'px', top: imgY + 'px' }"
  221.                         @mouseover="stopFloat" @mouseout="startFloat" @click="goAddEvaluation()">
  222.                         <view class="">
  223.                                 我要
  224.                         </view>
  225.                         <view class="">
  226.                                 评价
  227.                         </view>
  228.                 </view> -->
  229.                 <!-- 悬浮按钮 -->
  230.                 <!--movable-area 必须设置width和height属性,不设置默认为10px**-->
  231.                 <!--下面的out-of-bounds允许绿块超过可移动区域,overflow: hidden是为了隐藏超出的部分-->
  232.                 <movable-area class="movable-area">
  233.                         <movable-view direction="all" inertia x="1200rpx" y="1200rpx" out-of-bounds class="xf-btn">
  234.                                 <view style="margin: 0 auto;text-align: center;pointer-events:auto;" @click="goAddEvaluation()">
  235.                                         <image :src="addPjUrl" style="width: 60px;height: 60px;" mode=""></image>
  236.                                 </view>
  237.                         </movable-view>
  238.                 </movable-area>
  239.         </view>
  240. </template>
  241. <script>
  242.         import configService from "@/utils/config.js";
  243.         import moment from 'moment';
  244.         import request from "@/utils/request.js";
  245.         import businessApi from '../../api/business.js'
  246.         import {
  247.                 data
  248.         } from "../../uni_modules/uview-ui/libs/mixin/mixin.js";
  249.         export default {
  250.                 components: {
  251.                 },
  252.                 data() {
  253.                         return {
  254.                                 imgX: 50,
  255.                                 imgY: 60,
  256.                                 step: 1,
  257.                                 delay: 10,
  258.                                 xin: true,
  259.                                 yin: true,
  260.                                 intervalPf: null,
  261.                                
  262.                                
  263.                                 pmHeight:0,
  264.                                 pmWidth:0,
  265.                                 ytjUrl: configService.imgUrl + '/ytj.png',
  266.                                 ywcUrl: configService.imgUrl + '/ywc.png',
  267.                                 ybhUrl: configService.imgUrl + '/ybh.png',
  268.                                 slzUrl: configService.imgUrl + '/slz.png',
  269.                                 ygbUrl: configService.imgUrl + '/ygb.png',
  270.                                 jnLeft: 328,
  271.                                 jnTop: 50,
  272.                                 recordList: [],
  273.                                 swiperHeightMine: 150,
  274.                                 swiperHeight: 230,
  275.                                 indicatorDots: true,
  276.                                 autoplay: true,
  277.                                 interval: 2000,
  278.                                 duration: 500,
  279.                                 queryParams: {
  280.                                         pageNo: 1,
  281.                                         pageSize: 10,
  282.                                         readFlag: 'N',
  283.                                 },
  284.                                 msgValue: 0,
  285.                                 xiaoxiUrl: configService.imgUrl + '/xiaoxi.png',
  286.                                 nullUrl: configService.imgUrl + '/null.png',
  287.                                 addPjUrl: configService.imgUrl + '/addpj.png',
  288.                                 bgUrl: configService.imgUrl + '/bg.png',
  289.                                 iconUrl1: configService.imgUrl + '/pm.png',
  290.                                 iconUrl2: configService.imgUrl + '/2.png',
  291.                                 iconUrl3: configService.imgUrl + '/jl.png',
  292.                                 jtNewUrl: configService.imgUrl + '/jtnew.png',
  293.                                 jtUrl: configService.imgUrl + '/jt.png',
  294.                                 pmUrl: configService.imgUrl + '/pm.png',
  295.                                 bannerUrl: configService.imgUrl + '/banner.png',
  296.                                 firstDay: '',
  297.                                 lastDayOfNextMonth: '',
  298.                                 currentDate: new Date(),
  299.                                 dataForm: {
  300.                                         pageNo: 1,
  301.                                         pageSize: 10,
  302.                                         startTime: '',
  303.                                         endTime: '',
  304.                                 },
  305.                                 entryEntitylist: [],
  306.                                 phone: '',
  307.                                 time: 5,
  308.                                 timeS: 5,
  309.                                 QHeight: 0,
  310.                                 loginForm: {
  311.                                         tenantId: '000000',
  312.                                         account: '',
  313.                                         password: '',
  314.                                 },
  315.                                 agreementChecked: false,
  316.                                 code: '',
  317.                                 password: '',
  318.                                 //验证码
  319.                                 codeText: '获取验证码',
  320.                                 //验证码已发
  321.                                 readonly: false,
  322.                                 btnShow: false,
  323.                                 clearTime: null,
  324.                         }
  325.                 },
  326.                 computed: {
  327.                 },
  328.                 created() {},
  329.                 onReady() {
  330.                         //获取当前header高度
  331.                         //具体需要放到onReady中
  332.                         setTimeout(() => {
  333.                                 this.$nextTick(() => {
  334.                                         uni.createSelectorQuery().select('#swiperHeight').boundingClientRect(data => {
  335.                                                 console.log('11111111data---', data.height);
  336.                                                 if (data) {
  337.                                                         this.swiperHeight = data.height + 40
  338.                                                 }
  339.                                         }).exec()
  340.                                 })
  341.                         }, 2000)
  342.                 },
  343.                 onShow() {
  344.                         this.getMsg()
  345.                         this.init()
  346.                         //进入页面不触发获取数据  改变的时候触发
  347.                         const windowResizeCallback = (res) => {
  348.                           console.log('变化后的窗口宽度=' + res.size.windowWidth)
  349.                           console.log('变化后的窗口高度=' + res.size.windowHeight)
  350.                           this.pmWidth=res.size.windowWidth
  351.                           this.pmHeight=res.size.windowHeight
  352.                         }
  353.                         uni.onWindowResize(windowResizeCallback)
  354.                 },
  355.                 onLoad(e) {
  356.                         this.startFloat();
  357.                         let rect = wx.getMenuButtonBoundingClientRect();
  358.                         console.log(rect)
  359.                         this.jnTop = rect.top - 5
  360.                         this.jnLeft = rect.right - 30
  361.                         uni.getSystemInfo({
  362.                                 success: (res) => {
  363.                                         console.log('res---', res.windowWidth,res.windowHeight);
  364.                                        
  365.                                         let height = res.windowHeight - uni.upx2px(0);
  366.                                         this.QHeight = height;
  367.                                 }
  368.                         })
  369.                 },
  370.                 onUnload() {
  371.                 },
  372.                 methods: {
  373.                         float() {
  374.                                 const L = 0;
  375.                                 const T = 0;
  376.                                 const R = uni.getSystemInfoSync().windowWidth - 80; // 50为图片宽度
  377.                                 const B = uni.getSystemInfoSync().windowHeight - 80; // 50为图片高度
  378.                        
  379.                                 this.imgX += this.step * (this.xin ? 1 : -1);
  380.                                 this.imgY += this.step * (this.yin ? 1 : -1);
  381.                        
  382.                                 if (this.imgX < L) {
  383.                                         this.xin = true;
  384.                                         this.imgX = L;
  385.                                 }
  386.                                 if (this.imgX > R) {
  387.                                         this.xin = false;
  388.                                         this.imgX = R;
  389.                                 }
  390.                                 if (this.imgY < T) {
  391.                                         this.yin = true;
  392.                                         this.imgY = T;
  393.                                 }
  394.                                 if (this.imgY > B) {
  395.                                         this.yin = false;
  396.                                         this.imgY = B;
  397.                                 }
  398.                         },
  399.                         startFloat() {
  400.                                 this.intervalPf = setInterval(this.float, this.delay);
  401.                         },
  402.                         stopFloat() {
  403.                                 clearInterval(this.intervalPf);
  404.                         },
  405.                         detailPage(item) {
  406.                                 uni.navigateTo({
  407.                                         url: '/pages/evaluateRecord/details?id=' + item.id
  408.                                 });
  409.                         },
  410.                         upper: function(e) {
  411.                                 console.log(e)
  412.                         },
  413.                         lower: function(e) {
  414.                                 console.log(e)
  415.                         },
  416.                         scroll: function(e) {
  417.                                 console.log(e)
  418.                                 this.old.scrollTop = e.detail.scrollTop
  419.                         },
  420.                         goTop: function(e) {
  421.                                 // 解决view层不同步的问题
  422.                                 this.scrollTop = this.old.scrollTop
  423.                                 this.$nextTick(function() {
  424.                                         this.scrollTop = 0
  425.                                 });
  426.                                 uni.showToast({
  427.                                         icon: "none",
  428.                                         title: "纵向滚动 scrollTop 值已被修改为 0"
  429.                                 })
  430.                         },
  431.                         goAddEvaluation() {
  432.                                 uni.navigateTo({
  433.                                         url: '/pages/evaluateRecord/addEvaluation'
  434.                                 });
  435.                         },
  436.                         // 未读消息数量
  437.                         getMsg() {
  438.                                 businessApi.getTzMsg(this.queryParams).then((res) => {
  439.                                         this.msgValue = res.data.totalRows
  440.                                 }).catch(res => {
  441.                                 })
  442.                         },
  443.                         firstDayOfLastMonth() {
  444.                                 const currentYear = this.currentDate.getFullYear();
  445.                                 const currentMonth = this.currentDate.getMonth() - 1;
  446.                                 this.firstDay = new Date(currentYear, currentMonth, 1);
  447.                                 return this.firstDay;
  448.                         },
  449.                         lastDayOfLastMonth() {
  450.                                 const currentYear = this.currentDate.getFullYear();
  451.                                 const currentMonth = this.currentDate.getMonth() - 1;
  452.                                 const nextMonth = currentMonth + 1;
  453.                                 this.lastDayOfNextMonth = new Date(currentYear, nextMonth, 0);
  454.                                 return this.lastDayOfNextMonth;
  455.                         },
  456.                         init() {
  457.                                 this.firstDayOfLastMonth()
  458.                                 this.lastDayOfLastMonth()
  459.                                 this.dataForm.startTime = moment(this.firstDay).format('YYYY-MM-DD')
  460.                                 this.dataForm.endTime = moment(this.lastDayOfNextMonth).format('YYYY-MM-DD')
  461.                                 businessApi.getStandardHome(this.dataForm).then((res) => {
  462.                                         this.entryEntitylist = res.data.rows
  463.                                 })
  464.                                 this.recordForm = {
  465.                                         pageNo: 1,
  466.                                         pageSize: 999,
  467.                                         evaluationTitle: '',
  468.                                         // startTime: moment(this.currentDate).format('YYYY-MM-DD HH:mm:ss'),
  469.                                 }
  470.                                 businessApi.getEvaluationList(this.recordForm).then((res) => {
  471.                                         this.recordList = res.data.rows
  472.                                 }).catch(res => {
  473.                                 })
  474.                         },
  475.                         msgClick() {
  476.                                 uni.navigateTo({
  477.                                         url: '/pages/message/message'
  478.                                 });
  479.                         },
  480.                         onNavigationBarButtonTap(e) {
  481.                                 uni.navigateTo({
  482.                                         url: '/pages/message/message'
  483.                                 });
  484.                         },
  485.                         goRanking() {
  486.                                 uni.navigateTo({
  487.                                         url: '/pages/ranking/ranking'
  488.                                 });
  489.                         },
  490.                         goEvaluateRecord() {
  491.                                 uni.switchTab({
  492.                                         url: '/pages/evaluateRecord/evaluateRecord'
  493.                                 });
  494.                         },
  495.                         goEvaluate() {
  496.                                 uni.navigateTo({
  497.                                         url: '/pages/evaluate/evaluate'
  498.                                 });
  499.                         },
  500.                 }
  501.         }
  502. </script>
  503. <style>
  504.         page {
  505.                 background-color: #EFEFEF;
  506.         }
  507. </style>
  508. <style lang="scss" scoped>
  509.         /* 可以根据需要添加样式 */
  510.         .float-btn {
  511.                 // width: 100rpx;
  512.                 height: 100rpx;
  513.                 text-align: center;
  514.                 letter-spacing: 6px;
  515.                 font-weight: 900;
  516.                 padding: 10px 5px 5px 11px;
  517.                 font-size: 18px;
  518.                 color: rgb(220, 2, 2);
  519.                 background: #fff;
  520.                 box-shadow: 3rpx 4rpx 8rpx 4rpx rgba(231, 68, 52, 0.54);
  521.                 border-radius: 4px;
  522.                 position: fixed;
  523.         }
  524.         .movable-area {
  525.           //  可移动的范围
  526.           height: 100vh;
  527.           width: 750rpx;
  528.           top: 0;
  529.           position: fixed;
  530.           pointer-events: none; //鼠标事件可以渗透
  531.         }
  532.         .xf-btn {
  533.                 width: 120rpx;
  534.                 height: 110rpx;
  535.                 color: #fff;
  536.                 font-size: 14px;
  537.                 border-radius: 10px
  538.         }
  539.         .centermain {
  540.                 flex: 1;
  541.                 color: #fff;
  542.                 display: flex;
  543.                 align-items: center;
  544.         }
  545.         .pm-icon-new {
  546.                 margin-right: 10px;
  547.                 width: 48px;
  548.                 height: 48px;
  549.                 padding: 5px 0;
  550.         }
  551.         .uni-swiper {
  552.                 height: 500px;
  553.                 /* 你想要的高度 */
  554.         }
  555.         .badge-box {
  556.                 // display: flex;
  557.                 // justify-content: end;
  558.                 padding: 15px 0 10px 0;
  559.                 position: relative;
  560.                 left: 10px;
  561.                 // text-align: right;
  562.                 // margin-right: 15px;
  563.                 // position: relative;
  564.                 .xiaoxi-img {
  565.                         position: absolute;
  566.                         left: 0px;
  567.                         top: 15px;
  568.                         margin-right: 10px;
  569.                         width: 25px;
  570.                         height: 25px;
  571.                 }
  572.         }
  573.         .img-msg {
  574.                 width: 20px;
  575.                 height: 20px;
  576.         }
  577.         .item {
  578.                 flex: 1;
  579.                 background: #1E70EF;
  580.         }
  581.         .item1 {
  582.                 flex: 1;
  583.                 background: #1E70EF;
  584.         }
  585.         .item2 {
  586.                 flex: 1;
  587.                 background: #1E70EF;
  588.         }
  589.         .item3 {
  590.                 flex: 1;
  591.                 background: #1E70EF;
  592.         }
  593.         // 表单
  594.         .login-form {
  595.                 width: 96%;
  596.                 padding-top: 50px;
  597.                 margin: 0 auto;
  598.                 .foget-text {
  599.                         height: 30rpx;
  600.                         font-size: 26rpx;
  601.                         margin: 40rpx;
  602.                         text-align: right;
  603.                         color: #3F86F5;
  604.                 }
  605.                 .input_box {
  606.                         // display: flex;
  607.                         align-items: center;
  608.                         height: 104rpx !important;
  609.                         // background-color: #f8f9fb;
  610.                         // border-radius: 8rpx;
  611.                         border-bottom: solid 2rpx #efeef4;
  612.                         padding: 20rpx 0rpx;
  613.                         margin: 20rpx 20px 0px 20px;
  614.                         .btn-color {
  615.                                 font-family: PingFang SC, PingFang SC;
  616.                                 font-weight: 400;
  617.                                 font-size: 14px;
  618.                                 color: #004FFF;
  619.                                 line-height: 20px;
  620.                                 text-align: right;
  621.                                 font-style: normal;
  622.                                 text-transform: none;
  623.                         }
  624.                         .phone-name {
  625.                                 margin-right: 20px;
  626.                                 font-family: "Source Han Sans CN Medium";
  627.                                 font-weight: 500;
  628.                                 font-size: 16px;
  629.                                 color: #000;
  630.                                 line-height: 30px;
  631.                                 text-align: left;
  632.                                 font-style: normal;
  633.                                 text-transform: none;
  634.                         }
  635.                         image {
  636.                                 width: 36rpx;
  637.                                 height: 24rpx;
  638.                         }
  639.                         input {
  640.                                 flex: 1;
  641.                                 font-size: 28rpx;
  642.                                 color: #333;
  643.                                 height: 60rpx;
  644.                         }
  645.                         .input_item {
  646.                                 font-size: 28rpx;
  647.                                 border: 0px;
  648.                                 flex: 1;
  649.                                 background-color: #f8f9fb;
  650.                                 height: 88rpx;
  651.                                 width: 100%;
  652.                                 outline: none;
  653.                                 //margin-left: 32rpx;
  654.                         }
  655.                         button {
  656.                                 height: 60rpx;
  657.                                 background-color: #f8f9fb;
  658.                                 font-size: 28rpx;
  659.                                 padding: 0 14rpx;
  660.                                 // color: $themeColor;
  661.                                 line-height: 60rpx;
  662.                                 margin-left: 20rpx;
  663.                                 //margin-right: 40rpx;
  664.                         }
  665.                         .grey {
  666.                                 color: #999999;
  667.                         }
  668.                 }
  669.                 .btn_box {
  670.                         margin-top: 60rpx;
  671.                         button {
  672.                                 width: 319px;
  673.                                 height: 46px;
  674.                                 color: #fff;
  675.                                 border-radius: 23px;
  676.                                 background: linear-gradient(126.22deg, #279bff 0%, #2c84f6 100%);
  677.                         }
  678.                 }
  679.                 .btn_zc {
  680.                         margin-top: 40rpx;
  681.                         uni-button:after {
  682.                                 border: none !important;
  683.                         }
  684.                         button {
  685.                                 width: 319px;
  686.                                 height: 46px;
  687.                                 font-family: "Source Han Sans CN";
  688.                                 font-weight: 400;
  689.                                 font-size: 16px;
  690.                                 letter-spacing: 0;
  691.                                 text-align: center;
  692.                                 color: #909090;
  693.                                 border-radius: 23px;
  694.                                 background: #f1f1f1;
  695.                         }
  696.                 }
  697.         }
  698.         .content {
  699.                 width: 100%;
  700.                 // background: url("http://18.0.13.195:443/miniProgramImage/homebg.png") center center no-repeat;
  701.                 background-size: cover;
  702.                 position: relative;
  703.                 .box {
  704.                         width: 100%;
  705.                         height: auto;
  706.                         position: absolute;
  707.                         top: 30%;
  708.                         // padding-bottom: 50px;
  709.                         .banner {
  710.                                 width: 100%;
  711.                                 height: 220px;
  712.                                 // margin-top: 10px;
  713.                         }
  714.                         .pm-img-box {
  715.                                 margin: 10px auto;
  716.                                 width: 100%;
  717.                                 .pm-img {
  718.                                         width: 100%;
  719.                                         height: 80px;
  720.                                 }
  721.                         }
  722.                         .pjpm-box-content {
  723.                                 width: 96%;
  724.                                 margin: 10px auto;
  725.                                 .mescorll-box {
  726.                                         width: 100%;
  727.                                         overflow-y: scroll;
  728.                                         box-sizing: border-box;
  729.                                         // overflow: scroll;
  730.                                         background: #fff;
  731.                                         padding-bottom: 10px;
  732.                                         height: auto;
  733.                                         // padding-bottom: 60px;
  734.                                         // height: calc(100vh - 360px);
  735.                                         .pj-content {
  736.                                                 width: 100%;
  737.                                                 height: auto;
  738.                                                 margin: 0 auto;
  739.                                                 text-align: center;
  740.                                                 // padding: 10px;
  741.                                                 box-sizing: border-box;
  742.                                                 .card-class-null {
  743.                                                         margin: 10px;
  744.                                                         padding: 3px 8px;
  745.                                                         box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3px 1px;
  746.                                                         height: auto;
  747.                                                         .null-class {
  748.                                                                 width: 60px;
  749.                                                                 height: 60px;
  750.                                                                 margin-top: 30px;
  751.                                                         }
  752.                                                         .null-name {
  753.                                                                 margin-bottom: 30px;
  754.                                                                 font-size: 12px;
  755.                                                                 color: #828282;
  756.                                                         }
  757.                                                 }
  758.                                                 .card-class {
  759.                                                         margin: 10px;
  760.                                                         padding: 3px 8px;
  761.                                                         box-shadow: rgba(0, 128, 255, 0.11) 0px 0px 3px 1px;
  762.                                                         height: auto;
  763.                                                 }
  764.                                                 .name-text {
  765.                                                         min-width: 80px;
  766.                                                 }
  767.                                                 .card-mine {
  768.                                                         margin: 10px;
  769.                                                         padding: 3px 8px;
  770.                                                         box-shadow: rgba(0, 128, 255, 0.11) 0px 0px 3px 1px;
  771.                                                         height: auto;
  772.                                                         position: relative;
  773.                                                 }
  774.                                                 .status-box {
  775.                                                         position: absolute;
  776.                                                         top: 0;
  777.                                                         right: 0;
  778.                                                         .status-icon {
  779.                                                                 width: 47px;
  780.                                                                 height: 47px;
  781.                                                         }
  782.                                                 }
  783.                                                 .line {
  784.                                                         font-family: "Source Han Sans CN";
  785.                                                         font-weight: 400;
  786.                                                         font-size: 14px;
  787.                                                         line-height: 20px;
  788.                                                         letter-spacing: 0.02px;
  789.                                                         text-align: left;
  790.                                                         color: #909090;
  791.                                                         margin: 10px 0;
  792.                                                         display: flex;
  793.                                                         .ms-name {
  794.                                                                 min-width: 85px;
  795.                                                         }
  796.                                                         .line-two {
  797.                                                                 overflow: hidden;
  798.                                                                 text-overflow: ellipsis;
  799.                                                                 /*将对象作为弹性伸缩盒子模型显示*/
  800.                                                                 display: -webkit-box;
  801.                                                                 /*限制文本行数*/
  802.                                                                 -webkit-line-clamp: 2;
  803.                                                                 /*子元素的排列方式*/
  804.                                                                 -webkit-box-orient: vertical;
  805.                                                                 /*将对象作为弹性伸缩盒子模型显示*/
  806.                                                         }
  807.                                                         .text-value {
  808.                                                                 color: #000;
  809.                                                         }
  810.                                                 }
  811.                                         }
  812.                                 }
  813.                         }
  814.                         .pjpm-box {
  815.                                 height: 50px;
  816.                                 width: 100%;
  817.                                 box-sizing: border-box;
  818.                                 padding: 0 10px;
  819.                                 margin: 0px auto;
  820.                                 display: flex;
  821.                                 align-items: center;
  822.                                 justify-content: space-between;
  823.                                 background-color: #fff;
  824.                                 .left {
  825.                                         display: flex;
  826.                                         align-items: center;
  827.                                         .pm-name {
  828.                                                 font-family: "Source Han Sans CN Medium";
  829.                                                 font-weight: 900;
  830.                                                 font-size: 14px;
  831.                                                 letter-spacing: 0.02px;
  832.                                                 text-align: left;
  833.                                                 color: #000;
  834.                                         }
  835.                                         .pm-icon {
  836.                                                 margin-right: 10px;
  837.                                                 width: 28px;
  838.                                                 height: 28px;
  839.                                         }
  840.                                 }
  841.                                 .right {
  842.                                         display: flex;
  843.                                         font-family: "Source Han Sans CN";
  844.                                         font-weight: 400;
  845.                                         font-size: 14px;
  846.                                         letter-spacing: 0.02px;
  847.                                         text-align: right;
  848.                                         color: #909090;
  849.                                         align-items: center;
  850.                                         .jt-img {
  851.                                                 height: 16px;
  852.                                                 width: 16px;
  853.                                         }
  854.                                 }
  855.                         }
  856.                         .pjpm-box1 {
  857.                                 height: auto;
  858.                                 border-radius: 4px;
  859.                                 width: 96%;
  860.                                 box-sizing: border-box;
  861.                                 padding: 0 10px;
  862.                                 margin: 0px auto;
  863.                                 display: flex;
  864.                                 align-items: center;
  865.                                 justify-content: space-between;
  866.                                 background-color: #fff;
  867.                                 .left {
  868.                                         display: flex;
  869.                                         align-items: center;
  870.                                         .pm-name {
  871.                                                 font-family: "Source Han Sans CN Medium";
  872.                                                 font-weight: 900;
  873.                                                 font-size: 16px;
  874.                                                 letter-spacing: 0.02px;
  875.                                                 text-align: left;
  876.                                                 color: #000;
  877.                                         }
  878.                                         .pm-icon {
  879.                                                 margin-right: 10px;
  880.                                                 width: 28px;
  881.                                                 height: 28px;
  882.                                         }
  883.                                 }
  884.                                 .right {
  885.                                         display: flex;
  886.                                         font-family: "Source Han Sans CN";
  887.                                         font-weight: 400;
  888.                                         font-size: 14px;
  889.                                         letter-spacing: 0.02px;
  890.                                         text-align: right;
  891.                                         color: #909090;
  892.                                         align-items: center;
  893.                                         .jt-img {
  894.                                                 height: 16px;
  895.                                                 width: 16px;
  896.                                         }
  897.                                 }
  898.                         }
  899.                         .info-box {
  900.                                 display: flex;
  901.                                 margin: 0 auto;
  902.                                 .info-img {
  903.                                         position: absolute;
  904.                                         width: 42px;
  905.                                         height: 42px;
  906.                                         right: 10px;
  907.                                         bottom: 0px;
  908.                                 }
  909.                                 .title-one {
  910.                                         font-weight: 900;
  911.                                         font-size: 16px;
  912.                                 }
  913.                                 .title-two {
  914.                                         color: #ADADAD;
  915.                                         font-size: 12px;
  916.                                         margin: 5px 0;
  917.                                 }
  918.                                 .info-left {
  919.                                         width: 50%;
  920.                                         position: relative;
  921.                                         box-sizing: border-box;
  922.                                         padding: 10px;
  923.                                         margin: 0 5px 0 10px;
  924.                                         height: 86px;
  925.                                         background: linear-gradient(135.31deg, #f9fdff 0%, #e8f5fc 58.92%, #d8f1ff 100%);
  926.                                         filter: drop-shadow(0 0 6px #0000000f);
  927.                                 }
  928.                                 .info-right {
  929.                                         width: 50%;
  930.                                         box-sizing: border-box;
  931.                                         padding: 10px;
  932.                                         margin: 0 5px 0 10px;
  933.                                         height: 86px;
  934.                                         background: linear-gradient(135.31deg, #fffef9 0%, #fbf2de 57.58%, #faeed4 100%);
  935.                                         filter: drop-shadow(0 0 6px #0000000f);
  936.                                 }
  937.                         }
  938.                 }
  939.                 .home-content {
  940.                         padding-bottom: 60px;
  941.                         .title-box {
  942.                                 display: flex;
  943.                                 width: 100%;
  944.                                 align-items: center;
  945.                                 padding: 0 10px;
  946.                                 margin: 10px 0;
  947.                                 .text-name {
  948.                                         font-family: "Source Han Sans CN Medium";
  949.                                         font-weight: 900;
  950.                                         font-size: 16px;
  951.                                         text-align: left;
  952.                                         color: #000;
  953.                                 }
  954.                                 .sign {
  955.                                         margin-right: 8px;
  956.                                         width: 3px;
  957.                                         height: 16px;
  958.                                         border-radius: 1.5px;
  959.                                         background: #0b8eff;
  960.                                 }
  961.                         }
  962.                 }
  963.                 .login-title {
  964.                         padding: 10% 18px;
  965.                         line-height: 40px;
  966.                         font-family: "FZZhengHeiS-B-GB";
  967.                         font-weight: 400;
  968.                         font-size: 20px;
  969.                         text-align: left;
  970.                         color: #fff;
  971.                 }
  972.         }
  973. </style>
复制代码


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

张裕

金牌会员
这个人很懒什么都没写!
快速回复 返回顶部 返回列表