开发公司Vue项目里Websocket的使用

开发公司由于项目需求有要使用长链接,开发公司我们普通的http开发公司请求如果用轮询的方式开发公司与服务端通讯就很消耗资源。开发公司我们一起来学习一下在开发公司里如何使用websocket,开发公司本文纯属个人观点,开发公司如果有不正确的地方请开发公司大家批评指正,开发公司技术无高低,开发公司谦虚学习的心态我认为很重要,天外有天人外有人。

判断浏览器是否支持的方法

比较直观的方式是直接判断全局对象中是否包含WebSocket对象即可:

if( typeof(WebSocket) != "function" ) {    alert("您的浏览器不支持Websocket通信协议,请更换浏览器为Chrome或者Firefox再次使用!")  }
  • 1
  • 2
  • 3

但是这种方式不严谨,在 Android 中,即使浏览器不支持 WebSocket ,但是它还是存在这个属性。所以可以使用下面的方法:

if (typeof WebSocket != 'undefined') {    console.log("您的浏览器支持Websocket通信协议")}else{    alert("您的浏览器不支持Websocket通信协议,请使用Chrome或者Firefox浏览器!")}
  • 1
  • 2
  • 3
  • 4
  • 5

或者是这种方法:

if (!!window.WebSocket && window.WebSocket.prototype.send) {     console.log("您的浏览器支持Websocket通信协议")}else{    alert("您的浏览器不支持Websocket通信协议,请使用Chrome或者Firefox浏览器!")}
  • 1
  • 2
  • 3
  • 4
  • 5

Vue项目里使用websocket的实例


上面这个页面是我所做项目里的某个页面,由于硬件资源监测和网络性能监测两个板块需要传递给服务端不同的参数来获取数据,传参分别如下:

 { message: "sys_info" }
  • 1
{ message: "net_info" }
  • 1

我们需要建立2个不同的长链接。我们项目都是统一在public文件夹下的config.js里统一配置,不管是http请求还是websocket,代码如下:

然后在一个js文件里将其封装成一个函数并暴露出去,代码如下:

然后在我们要使用到的组件里引入,并在data里定义两个websock实例,然后再在mounted里初始化两个websock实例,最后在destroyed销毁页面时一并销毁两个websock实例,代码如下:

然后我们在methods里看看初始化websocket的两个方法怎么写的,代码如下:


这里为了考虑各大浏览器是否兼容websocket,所以加了一个判断语句:

 if (typeof WebSocket === "undefined")        return console.log("您的浏览器不支持websocket");
  • 1
  • 2

最后附上完整代码,如有不正确之处望同行前辈批评指正:

<template>  <div class="homePage">    <div class="topArea">      <el-card class="el-card">        <div slot="header" class="clearfix">          <div class="headerBox">            <span class="arrow"              ><img src="../../assets/homePage/arrow.png"            /></span>            <span class="title">硬件资源监测</span>            <span class="topRight"              ><img src="../../assets/homePage/topRight.png"            /></span>          </div>        </div>        <div class="myCont">          <div class="itemBox">            <div class="titleBox">              <span>                <img src="../../assets/homePage/cpuTitle.png" alt="" />              </span>              <span class="title">CPU资源监测</span>            </div>            <div class="board">              <div class="left" id="cpuCharts"></div>              <div class="right">                <div class="tipBox">                  <span>CPU利用率</span>                  <span>{{ cpu_info.cpu_use }}%</span>                </div>                <div class="detailBox">                  <div>                    <span></span>                    <span>CPU颗数</span>                    <span>{{ cpu_info.cpu_physical_count }}</span>                  </div>                  <div>                    <span></span>                    <span>CPU核数</span>                    <span>{{ cpu_info.cpu_kernel_count }}</span>                  </div>                  <div>                    <span></span>                    <span>CPU负载</span>                    <span>{{ cpu_info.cpu_average }}</span>                  </div>                </div>              </div>            </div>          </div>          <div class="itemBox">            <div class="titleBox">              <span>                <img src="../../assets/homePage/Memory.png" alt="" />              </span>              <span class="title">内存资源监测</span>            </div>            <div class="board">              <div class="left" id="memoryCharts"></div>              <div class="right">                <div class="tipBox">                  <span>内存利用率</span>                  <span>{{ mem_info.memory_percent }}%</span>                </div>                <div class="detailBox">                  <div>                    <span style="background: none"></span>                    <span></span>                    <span></span>                  </div>                  <div>                    <span style="background: none"></span>                    <span></span>                    <span></span>                  </div>                  <div>                    <span></span>                    <span>内存总量</span>                    <span>{{                      mem_info.memory_total | FilterBps(mem_info.memory_total)                    }}</span>                  </div>                </div>              </div>            </div>          </div>          <div class="itemBox">            <div class="titleBox">              <span>                <img src="../../assets/homePage/Hard.png" alt="" />              </span>              <span class="title">硬盘资源监测</span>            </div>            <div class="board">              <div class="left" id="hardCharts"></div>              <div class="right">                <div class="otherBox">                  <div class="tipBox2">                    <span>硬盘读速率</span>                    <span>{{                      disk_info.read_speed | FilterSpeed(disk_info.read_speed)                    }}</span>                    <span>MB/s</span>                  </div>                  <div class="tipBox2">                    <span>硬盘写速率</span>                    <span>{{                      disk_info.write_speed | FilterSpeed(disk_info.write_speed)                    }}</span>                    <span>MB/s</span>                  </div>                </div>                <div class="detailBox">                  <div>                    <span style="background: none"></span>                    <span></span>                    <span></span>                  </div>                  <div>                    <span style="background: none"></span>                    <span></span>                    <span></span>                  </div>                  <div>                    <span></span>                    <span>硬盘大小</span>                    <span                      >{{                        disk_info.disk_total                          | FilterDiskTotal(disk_info.disk_total)                      }}T</span                    >                  </div>                </div>              </div>            </div>          </div>        </div>      </el-card>    </div>    <div class="topArea bottomArea">      <el-card class="el-card">        <div slot="header" class="clearfix">          <div class="headerBox">            <span class="arrow"              ><img src="../../assets/homePage/arrow.png"            /></span>            <span class="title">网络性能监测</span>            <span class="topRight"              ><img src="../../assets/homePage/topRight.png"            /></span>          </div>        </div>        <div class="myCont">          <div class="Throughput">            <div class="titleBox">              <span                ><img src="../../assets/homePage/Throughput.png" alt=""              /></span>              <span class="title">通道吞吐量</span>            </div>            <div class="lineBox" id="lineCharts"></div>            <div class="lineTips">              <span                ><img src="../../assets/homePage/lineTips.png" alt=""              /></span>              <span>吞吐量</span>              <span>{{ inOutWay }}</span>              <span>{{ inoutUnit }}</span>            </div>          </div>          <div class="rightArea">            <div class="Item" v-for="(item, i) in card_info" :key="i">              <div class="topBox">                <div class="imgBox">                  <img src="../../assets/homePage/Frame.png" alt="" />                </div>                <div class="portTip">{{ Object.keys(item)[0] }}</div>                <div class="transferBox transferBoxT">                  <span>                    <img src="../../assets/homePage/transferTop.png" alt="" />                  </span>                  <span class="Num">{{ WayMethods(item, "incoming") }}</span>                </div>                <div class="transferBox transferBoxB">                  <span>                    <img                      src="../../assets/homePage/transferBottom.png"                      alt=""                    />                  </span>                  <span class="Num">{{ WayMethods(item, "outgoing") }}</span>                </div>              </div>              <div class="bottomBox">                <div>                  <span>工作速率:</span>                  <span>{{ WayMethods(item, "工作速率") }} </span>                </div>                <div>                  <span>双工模式:</span>                  <span>{{ WayMethods(item, "双工模式") }}</span>                </div>                <div>                  <span>自协商:</span>                  <span>{{ WayMethods(item, "自协商") }}</span>                </div>                <div>                  <span>接口类型:</span>                  <span>{{ WayMethods(item, "接口类型") }}</span>                </div>                <div>                  <span>链路状态:</span>                  <span>{{ WayMethods(item, "链路状态") }}</span>                </div>              </div>            </div>          </div>        </div>      </el-card>    </div>  </div></template><script>import { homeWsUrl } from "@/api/websocket.js";export default {  data() {    return {      wsUrl: homeWsUrl(),      websock: null, //ws实例      websockNet: null, //ws实例      cpu_info: {        cpu_use: 0,      },      mem_info: {        memory_percent: 0,      },      disk_info: {        disk_percent: 0,      },      inoutArr: [], //吞吐量集合      card_info: [],      in_out_total: 0, //吞吐量      inoutUnit: "",    };  },  filters: {    FilterBps(bps) {      if (bps) {        let Grate = 1024 * 1024 * 1024;        return (Number(bps) / Grate).toFixed(2) + "G";      }    },    FilterSpeed(bps) {      if (bps) {        let Grate = 1024 * 1024;        return (Number(bps) / Grate).toFixed(2);      } else {        return 0;      }    },    FilterDiskTotal(bps) {      if (bps) {        let Grate = 1024 * 1024 * 1024 * 1024;        return (Number(bps) / Grate).toFixed(2);      }    },  },  mounted() {    this.cpuCharts();    this.memoryCharts();    this.hardCharts();    this.lineCharts();    //初始化websocket,此页面建立了2个长链接    this.initWebSocket();    this.initWebSocketNet();  },  destroyed() {    //离开路由之后断开websocket连接    this.websock.close();    this.websockNet.close();  },  computed: {    inOutWay() {      // console.log("inOutWay", this.in_out_total);      if (this.in_out_total <= 1000) {        return (          (this.inoutUnit = "bit/s"),          (this.in_out_total = Number(this.in_out_total))        );      } else if (this.in_out_total > 1000 && this.in_out_total <= 1000 * 1000) {        return (          (this.inoutUnit = "Kb/s"),          (this.in_out_total = (Number(this.in_out_total) / 1000).toFixed(2))        );      } else if (        this.in_out_total > 1000 * 1000 &&        this.in_out_total <= 1000 * 1000 * 1000      ) {        return (          (this.inoutUnit = "Mb/s"),          (this.in_out_total = (            Number(this.in_out_total) /            (1000 * 1000)          ).toFixed(2))        );      } else if (this.in_out_total > 1000 * 1000 * 1000) {        return (          (this.inoutUnit = "Gb/s"),          (this.in_out_total = (            Number(this.in_out_total) /            (1000 * 1000 * 1000)          ).toFixed(2))        );      }    },  },  methods: {    cpuCharts() {      let chartDom = document.getElementById("cpuCharts");      let myChart = this.$echarts.init(chartDom);      let option = {        // tooltip: {        //   formatter: "{a} <br/>{b} : {c}%",        // },        series: [          {            name: "Pressure",            title: {              show: false,            },            type: "gauge",            progress: {              show: true,            },            radius: "100%",            detail: {              valueAnimation: true,              formatter: "{value}%",              fontSize: 14,            },            data: [              {                value: this.cpu_info.cpu_use,                name: "SCORE",              },            ],          },        ],      };      option && myChart.setOption(option);    },    memoryCharts() {      let chartDom = document.getElementById("memoryCharts");      let myChart = this.$echarts.init(chartDom);      let option = {        // tooltip: {        //   formatter: "{a} <br/>{b} : {c}%",        // },        series: [          {            name: "Pressure",            title: {              show: false,            },            type: "gauge",            progress: {              show: true,            },            radius: "100%",            detail: {              valueAnimation: true,              formatter: "{value}%",              fontSize: 14,            },            data: [              {                value: this.mem_info.memory_percent,                name: "SCORE",              },            ],          },        ],      };      option && myChart.setOption(option);    },    hardCharts() {      let chartDom = document.getElementById("hardCharts");      let myChart = this.$echarts.init(chartDom);      let option = {        // tooltip: {        //   formatter: "{a} <br/>{b} : {c}%",        // },        series: [          {            name: "Pressure",            title: {              show: false,            },            type: "gauge",            progress: {              show: true,            },            radius: "100%",            detail: {              valueAnimation: true,              formatter: "{value}%",              fontSize: 14,            },            data: [              {                value: this.disk_info.disk_percent,                name: "SCORE",              },            ],          },        ],      };      option && myChart.setOption(option);    },    lineCharts() {      let chartDom = document.getElementById("lineCharts");      let myChart = this.$echarts.init(chartDom);      let option;      // prettier-ignore      // const data = [["2000-06-05", 1160], ["2000-06-06", 1209], ["2000-06-07", 1035], ["2000-06-08", 86], ["2000-06-09", 703],      //   ["2000-06-10", 805], ["2000-06-11", 73], ["2000-06-12", 68], ["2000-06-13", 92], ["2000-06-14", 130], ["2000-06-15", 245],      // ];      // const dateList = data.map(function (item) {      //   return item[0];      // });      // const valueList = data.map(function (item) {      //   return item[1];      // });      // console.log("this.inoutArr",this.inoutArr)      const data = this.inoutArr;      const dateList = this.inoutArr;      const valueList = this.inoutArr;      option = {        // Make gradient line here        visualMap: [          {            show: false,            type: "continuous",            seriesIndex: 0,            min: 0,          },          {            show: false,            type: "continuous",            seriesIndex: 1,            dimension: 0,            min: 0,          },        ],        title: [          {            left: "left",            text: `吞吐量Gb/s`,            textStyle: {              fontSize: 12,              color: "#7C818D",            },          },        ],        // tooltip: {        //   trigger: "axis",        // },        xAxis:          // {          //   data: dateList,          // },          {            show: false,            data: dateList,            gridIndex: 1,          },        yAxis: {          gridIndex: 1,          min: 0, //取0为最小刻度          // max: 1000000, //取100000为最大刻度        },        grid: [          {            bottom: "0%",          },          {            top: "20%",          },        ],        series: [          {            type: "line",            showSymbol: false,            data: valueList,          },        ],      };      option && myChart.setOption(option);    },    //初始化Websocket--sys_info    initWebSocket() {      if (typeof WebSocket === "undefined")        return console.log("您的浏览器不支持websocket");      this.websock = new WebSocket(this.wsUrl);      this.websock.onmessage = this.websocketonmessage;      this.websock.onopen = this.websocketonopen;      this.websock.onerror = this.websocketonerror;      this.websock.onclose = this.websocketclose;    },    websocketonopen() {      // console.log("链接建立之后执行send方法发送数据");      let action = { message: "sys_info" };      this.websocketsend(JSON.stringify(action));    },    websocketonerror() {      //链接建立失败重连      this.initWebSocket();    },    websocketonmessage(e) {      //数据接收      const redata = JSON.parse(e.data);      // console.log("接收的数据", redata);      this.cpu_info = redata.cpu_info;      this.cpuCharts();      this.mem_info = redata.mem_info;      this.memoryCharts();      this.disk_info = redata.disk_info;      this.hardCharts();    },    websocketsend(Data) {      //数据发送      // console.log("数据发送", Data);      this.websock.send(Data);    },    websocketclose(e) {      //关闭      // console.log("断开链接", e);    },    //初始化Websocket--net_info    initWebSocketNet() {      if (typeof WebSocket === "undefined")        return console.log("您的浏览器不支持websocket");      this.websockNet = new WebSocket(this.wsUrl);      this.websockNet.onmessage = this.websocketonmessageNet;      this.websockNet.onopen = this.websocketonopenNet;      this.websockNet.onerror = this.websocketonerrorNet;      this.websockNet.onclose = this.websocketcloseNet;    },    websocketonopenNet() {      // console.log("链接建立之后执行send方法发送数据");      let action = { message: "net_info" };      this.websocketsendNet(JSON.stringify(action));    },    websocketonerrorNet() {      //链接建立失败重连      this.initWebSocketNet();    },    websocketonmessageNet(e) {      //数据接收      const redata = JSON.parse(e.data);      // console.log("net_info接收的数据", redata);      this.in_out_total = redata.in_out_total;      let allRate = 1000 * 1000 * 1000;      this.inoutArr = this.inoutArr.concat(        (redata.in_out_total / allRate).toFixed(2)      );      this.card_info = redata.card_info;      this.lineCharts();    },    websocketsendNet(Data) {      //数据发送      // console.log("数据发送", Data);      this.websockNet.send(Data);    },    websocketcloseNet(e) {      //关闭      // console.log("断开链接", e);    },    WayMethods(item, type) {      let arr = Object.keys(item);      // console.log("arr", item, arr);      if (type == "incoming") {        if (item[arr[0]].incoming <= 1000) {          return item[arr[0]].incoming + "bit/s";        } else if (          item[arr[0]].incoming > 1000 &&          item[arr[0]].incoming <= 1000 * 1000        ) {          return (item[arr[0]].incoming / 1000).toFixed(2) + "Kb/s";        } else if (          item[arr[0]].incoming > 1000 * 1000 &&          item[arr[0]].incoming <= 1000 * 1000 * 1000        ) {          return (item[arr[0]].incoming / (1000 * 1000)).toFixed(2) + "Mb/s";        } else if (item[arr[0]].incoming > 1000 * 1000 * 1000) {          return (            (item[arr[0]].incoming / (1000 * 1000 * 1000)).toFixed(2) + "Gb/s"          );        }      } else if (type == "outgoing") {        if (item[arr[0]].outgoing <= 1000) {          return item[arr[0]].outgoing + "bit/s";        } else if (          item[arr[0]].outgoing > 1000 &&          item[arr[0]].outgoing <= 1000 * 1000        ) {          return (item[arr[0]].outgoing / 1000).toFixed(2) + "Kb/s";        } else if (          item[arr[0]].outgoing > 1000 * 1000 &&          item[arr[0]].outgoing <= 1000 * 1000 * 1000        ) {          return (item[arr[0]].outgoing / (1000 * 1000)).toFixed(2) + "Mb/s";        } else if (item[arr[0]].outgoing > 1000 * 1000 * 1000) {          return (            (item[arr[0]].outgoing / (1000 * 1000 * 1000)).toFixed(2) + "Gb/s"          );        }      } else {        return item[arr[0]][type];      }    },  },};</script><style lang="scss" scoped>.homePage {  display: flex;  flex-direction: column;  .topArea {    display: flex;    justify-content: space-between;    .el-card {      width: 100%;      background: #fbfdff;      ::v-deep .el-card__header {        padding: 0 !important;        z-index: 9;        position: relative;      }      ::v-deep .el-card__body {        padding: 0 !important;      }      .headerBox {        position: relative;        width: 100%;        height: 39px;        z-index: 9;        background: #fff !important;        .arrow {          position: absolute;          top: 0.6875rem;          left: 0.5rem;          img {            width: 1rem;            height: 1rem;          }        }        .title {          position: absolute;          top: 0.687rem;          left: 1.625rem;          font-weight: bolder;          color: #2d3d59;          font-size: 1rem;          font-family: SourceHanSansCN;        }        .topRight {          position: absolute;          bottom: -0.3rem;          right: 0;          img {            width: 2.1875rem;            height: 0.3125rem;          }        }      }      .myCont {        // border: 1px solid blue;        width: 100%;        display: flex;        background: #fbfdff;        margin-top: 1rem;        margin-bottom: 1rem;        .itemBox {          width: 32.5625rem;          height: 21.75rem;          //   border: 1px solid red;          display: flex;          flex-direction: column;          .titleBox {            height: 2rem;            display: flex;            span img {              margin-top: 0.125rem;              width: 1rem;              height: 1rem;            }            .title {              margin-left: 0.625rem;              font-size: 1rem;              font-family: SourceHanSansCN;              font-weight: bolder;              color: #2d3d59;            }          }          .board {            width: 29.5625rem;            height: 18.75rem;            background: #f3f7ff;            box-shadow: inset 0px 0.25rem 0.25rem 0px rgba(92, 127, 252, 0.12);            border-radius: 0.25rem;            opacity: 1;            display: flex;            .left {              width: 15rem;              height: 12.5rem;              margin-top: 3.125rem;              margin-left: 0.875rem;            }            .right {              width: 15.1875rem;              //   border: 1px solid blue;              margin-top: 3.125rem;              position: relative;              .tipBox {                width: 11.9375rem;                height: 4.875rem;                display: flex;                justify-content: space-between;                // border: 1px solid red;                position: absolute;                top: 1.125rem;                left: 1.375rem;                span {                  &:nth-child(1) {                    font-size: 0.875rem;                    font-family: SourceHanSansCN;                    font-weight: bold;                    color: #413f3f;                  }                  &:nth-child(2) {                    font-size: 1.5rem;                    font-family: D-DIN-DIN-Bold, D-DIN-DIN;                    font-weight: bold;                    color: #0082fa;                    margin-top: -0.5rem;                  }                }              }              .detailBox {                position: absolute;                top: 5rem;                left: 1.375rem;                display: flex;                flex-direction: column;                // border: 1px solid salmon;                width: 11.9375rem;                div {                  height: 1.75rem;                  display: flex;                  position: relative;                  span {                    // border: 1px solid red;                    &:nth-child(1) {                      width: 0.375rem;                      height: 0.375rem;                      border-radius: 0.1875rem;                      background: #00b42a;                      opacity: 1;                      position: absolute;                      top: 0.5rem;                      left: 0;                    }                    &:nth-child(2) {                      font-size: 0.8125rem;                      font-family: SourceHanSansCN;                      font-weight: 400;                      color: #413f3f;                      position: absolute;                      top: 0.25rem;                      left: 0.625rem;                    }                    &:nth-child(3) {                      font-size: 0.8125rem;                      font-family: SourceHanSansCN;                      font-weight: 400;                      color: #413f3f;                      position: absolute;                      top: 0.25rem;                      right: 0rem;                    }                  }                }              }              .otherBox {                display: flex;                flex-direction: column;                position: absolute;                top: 0;                left: 1.375rem;                height: 4.875rem;                width: 100%;                // border: 1px solid blue;                .tipBox2 {                  width: 11.9375rem;                  height: 2.4375rem;                  display: flex;                  justify-content: space-between;                  // border: 1px solid red;                  span {                    &:nth-child(1) {                      font-size: 0.875rem;                      font-family: SourceHanSansCN;                      font-weight: bold;                      color: #413f3f;                      display: block;                    }                    &:nth-child(2) {                      font-size: 1.5rem;                      font-family: D-DIN-DIN-Bold, D-DIN-DIN;                      font-weight: bold;                      color: #0082fa;                      margin-top: -0.35rem;                    }                    &:nth-child(3) {                      font-size: 1rem;                      font-family: D-DIN-DIN-Bold, D-DIN-DIN;                      font-weight: bold;                      color: #0082fa;                      margin-top: -0.05rem;                    }                  }                }              }            }          }          &:nth-child(1) {            margin-left: 1.6875rem;          }          &:nth-child(2) {            margin-left: 2.625rem;          }          &:nth-child(3) {            margin-left: 2.625rem;          }        }      }    }  }  .bottomArea {    margin-top: 1rem;    .el-card {      .myCont {        height: 19rem;        display: flex;        .Throughput {          width: 36.875rem;          display: flex;          flex-direction: column;          .titleBox {            margin-top: 2.5rem;            margin-left: 1.5rem;            position: relative;            height: 2rem;            span {              position: absolute;              top: 0;              left: 0;              img {                width: 1rem;                height: 1rem;              }            }            .title {              position: absolute;              top: 0;              left: 1.5rem;              font-size: 0.875rem;              font-family: SourceHanSansCN;              font-weight: 400;              color: #2d3d59;            }          }          .lineBox {            width: 31.25rem;            height: 12.5rem;            margin-left: 1.6875rem;            // border: 1px solid red;            background: #fefbff;          }          .lineTips {            margin-left: 1.6875rem;            background: #fefbff;            width: 31.25rem;            span {              img {                width: 1rem;                height: 1rem;              }              &:nth-child(1) {                margin-top: 0.25rem;              }              &:nth-child(2) {                font-size: 0.875rem;                font-family: SourceHanSansCN;                font-weight: 400;                color: #413f3f;                margin: 0rem 0.5rem;              }              &:nth-child(3) {                font-size: 1rem;                font-family: D-DIN-DIN-Bold, D-DIN-DIN;                font-weight: bold;                color: #413f3f;              }              &:nth-child(4) {                font-size: 1rem;                font-family: D-DIN-DIN-Bold, D-DIN-DIN;                font-weight: bold;                color: #413f3f;              }            }          }        }        .rightArea {          //   border: 1px solid blue;          width: 64.8125rem;          display: flex;          .Item {            width: 14rem;            height: 16.125rem;            margin-top: 2.5rem;            margin-right: 3rem;            // border: 1px solid red;            opacity: 1;            display: flex;            flex-direction: column;            &:nth-child(4) {              margin-right: 0rem;            }            .topBox {              position: relative;              background: #f2f3fb !important;              height: 5.875rem;              z-index: 9;              border-radius: 0.25rem;              .imgBox {                position: absolute;                top: 0.875rem;                left: 1rem;                img {                  width: 4.125rem;                  height: 4.125rem;                }              }              .portTip {                position: absolute;                top: 0.75rem;                left: 5.875rem;                font-size: 1rem;                font-family: SourceHanSansCN;                font-weight: 500;                color: #413f3f;              }              .transferBox {                span {                  img {                    width: 1rem;                    height: 1rem;                  }                }                .Num {                  font-size: 0.875rem;                  font-family: SourceHanSansCN;                  font-weight: 500;                  color: #7c818d;                }              }              .transferBoxT {                position: absolute;                top: 2.5rem;                left: 5.875rem;              }              .transferBoxB {                position: absolute;                top: 3.8125rem;                left: 5.875rem;              }            }            .bottomBox {              background: #fefbff;              //   border: 1px solid orange;              margin-top: 1.5rem;              display: flex;              flex-direction: column;              div {                display: flex;                font-size: 0.875rem;                font-family: SourceHanSansCN;                font-weight: 400;                color: #413f3f;                line-height: 1.75rem;                span {                  &:nth-child(1) {                    margin-right: 0.5rem;                  }                }              }            }          }        }      }    }  }}</style>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537
  • 538
  • 539
  • 540
  • 541
  • 542
  • 543
  • 544
  • 545
  • 546
  • 547
  • 548
  • 549
  • 550
  • 551
  • 552
  • 553
  • 554
  • 555
  • 556
  • 557
  • 558
  • 559
  • 560
  • 561
  • 562
  • 563
  • 564
  • 565
  • 566
  • 567
  • 568
  • 569
  • 570
  • 571
  • 572
  • 573
  • 574
  • 575
  • 576
  • 577
  • 578
  • 579
  • 580
  • 581
  • 582
  • 583
  • 584
  • 585
  • 586
  • 587
  • 588
  • 589
  • 590
  • 591
  • 592
  • 593
  • 594
  • 595
  • 596
  • 597
  • 598
  • 599
  • 600
  • 601
  • 602
  • 603
  • 604
  • 605
  • 606
  • 607
  • 608
  • 609
  • 610
  • 611
  • 612
  • 613
  • 614
  • 615
  • 616
  • 617
  • 618
  • 619
  • 620
  • 621
  • 622
  • 623
  • 624
  • 625
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • 633
  • 634
  • 635
  • 636
  • 637
  • 638
  • 639
  • 640
  • 641
  • 642
  • 643
  • 644
  • 645
  • 646
  • 647
  • 648
  • 649
  • 650
  • 651
  • 652
  • 653
  • 654
  • 655
  • 656
  • 657
  • 658
  • 659
  • 660
  • 661
  • 662
  • 663
  • 664
  • 665
  • 666
  • 667
  • 668
  • 669
  • 670
  • 671
  • 672
  • 673
  • 674
  • 675
  • 676
  • 677
  • 678
  • 679
  • 680
  • 681
  • 682
  • 683
  • 684
  • 685
  • 686
  • 687
  • 688
  • 689
  • 690
  • 691
  • 692
  • 693
  • 694
  • 695
  • 696
  • 697
  • 698
  • 699
  • 700
  • 701
  • 702
  • 703
  • 704
  • 705
  • 706
  • 707
  • 708
  • 709
  • 710
  • 711
  • 712
  • 713
  • 714
  • 715
  • 716
  • 717
  • 718
  • 719
  • 720
  • 721
  • 722
  • 723
  • 724
  • 725
  • 726
  • 727
  • 728
  • 729
  • 730
  • 731
  • 732
  • 733
  • 734
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • 744
  • 745
  • 746
  • 747
  • 748
  • 749
  • 750
  • 751
  • 752
  • 753
  • 754
  • 755
  • 756
  • 757
  • 758
  • 759
  • 760
  • 761
  • 762
  • 763
  • 764
  • 765
  • 766
  • 767
  • 768
  • 769
  • 770
  • 771
  • 772
  • 773
  • 774
  • 775
  • 776
  • 777
  • 778
  • 779
  • 780
  • 781
  • 782
  • 783
  • 784
  • 785
  • 786
  • 787
  • 788
  • 789
  • 790
  • 791
  • 792
  • 793
  • 794
  • 795
  • 796
  • 797
  • 798
  • 799
  • 800
  • 801
  • 802
  • 803
  • 804
  • 805
  • 806
  • 807
  • 808
  • 809
  • 810
  • 811
  • 812
  • 813
  • 814
  • 815
  • 816
  • 817
  • 818
  • 819
  • 820
  • 821
  • 822
  • 823
  • 824
  • 825
  • 826
  • 827
  • 828
  • 829
  • 830
  • 831
  • 832
  • 833
  • 834
  • 835
  • 836
  • 837
  • 838
  • 839
  • 840
  • 841
  • 842
  • 843
  • 844
  • 845
  • 846
  • 847
  • 848
  • 849
  • 850
  • 851
  • 852
  • 853
  • 854
  • 855
  • 856
  • 857
  • 858
  • 859
  • 860
  • 861
  • 862
  • 863
  • 864
  • 865
  • 866
  • 867
  • 868
  • 869
  • 870
  • 871
  • 872
  • 873
  • 874
  • 875
  • 876
  • 877
  • 878
  • 879
  • 880
  • 881
  • 882
  • 883
  • 884
  • 885
  • 886
  • 887
  • 888
  • 889
  • 890
  • 891
  • 892
  • 893
  • 894
  • 895
  • 896
  • 897
  • 898
  • 899
  • 900
  • 901
  • 902
  • 903
  • 904
  • 905
  • 906
  • 907
  • 908
  • 909
  • 910
  • 911
  • 912
  • 913
  • 914
  • 915
  • 916
  • 917
  • 918
  • 919
  • 920
  • 921
  • 922
  • 923
  • 924
  • 925
  • 926
  • 927
  • 928
  • 929
  • 930
  • 931
  • 932
  • 933
  • 934
  • 935
  • 936
  • 937
  • 938
  • 939
  • 940
  • 941
  • 942
  • 943
  • 944
  • 945
  • 946
  • 947
  • 948
  • 949
  • 950
  • 951
  • 952
  • 953
  • 954
  • 955
  • 956
  • 957
  • 958
  • 959
  • 960
  • 961
  • 962
  • 963
  • 964
  • 965
  • 966
  • 967
  • 968
  • 969
  • 970
  • 971
  • 972
  • 973
  • 974
  • 975
  • 976
  • 977
  • 978
  • 979
  • 980
  • 981
  • 982
  • 983
  • 984
  • 985
  • 986
  • 987
  • 988
  • 989
  • 990
  • 991
  • 992
  • 993
  • 994
  • 995
  • 996
  • 997
  • 998
  • 999
  • 1000
  • 1001
  • 1002
  • 1003
  • 1004
  • 1005
  • 1006
  • 1007
  • 1008
  • 1009
  • 1010
  • 1011
  • 1012
  • 1013
  • 1014
  • 1015
  • 1016
  • 1017
  • 1018
  • 1019
  • 1020
  • 1021
  • 1022
  • 1023
  • 1024
  • 1025
  • 1026
  • 1027
  • 1028
  • 1029
  • 1030
  • 1031
  • 1032
  • 1033
  • 1034
  • 1035
  • 1036
  • 1037
  • 1038
  • 1039
  • 1040
  • 1041
  • 1042
  • 1043
  • 1044
  • 1045
  • 1046
  • 1047
  • 1048
  • 1049
  • 1050
  • 1051
  • 1052
  • 1053
  • 1054
  • 1055
  • 1056
  • 1057
  • 1058
  • 1059
  • 1060
  • 1061
  • 1062
  • 1063
  • 1064
  • 1065
  • 1066
  • 1067
  • 1068
  • 1069
  • 1070
  • 1071
  • 1072
  • 1073
  • 1074
  • 1075
  • 1076
  • 1077
  • 1078
  • 1079
  • 1080
  • 1081
  • 1082
  • 1083
  • 1084
  • 1085
  • 1086
  • 1087
  • 1088
  • 1089
  • 1090
  • 1091
  • 1092
  • 1093
  • 1094
  • 1095
  • 1096
  • 1097
  • 1098
  • 1099
  • 1100
  • 1101
  • 1102
  • 1103
  • 1104
  • 1105
  • 1106
  • 1107
  • 1108
  • 1109
  • 1110
  • 1111
  • 1112
  • 1113
  • 1114
  • 1115
  • 1116
  • 1117
  • 1118
  • 1119
  • 1120
  • 1121
  • 1122
  • 1123
  • 1124
  • 1125
网站建设定制开发 软件系统开发定制 定制软件开发 软件开发定制 定制app开发 app开发定制 app开发定制公司 电商商城定制开发 定制小程序开发 定制开发小程序 客户管理系统开发定制 定制网站 定制开发 crm开发定制 开发公司 小程序开发定制 定制软件 收款定制开发 企业网站定制开发 定制化开发 android系统定制开发 定制小程序开发费用 定制设计 专注app软件定制开发 软件开发定制定制 知名网站建设定制 软件定制开发供应商 应用系统定制开发 软件系统定制开发 企业管理系统定制开发 系统定制开发