【vue】封装的天气展示卡片,在线获取天气信息

news2024/12/23 17:48:01

源码

<template>
  <div class="sen_weather_wrapper">
    <div class="sen_top_box">
      <div class="sen_left_box">
        <div class="sen_top">
          <div class="sen_city">山东</div>
          <qctc-time class="sen_time_box"></qctc-time>
        </div>
        <div class="sen_bot">
          <div class="sen_current">{{ weatherObj.tempData }}<span>℃</span></div>
          <div class="sen_currentDays">
            <el-image style="width: 1.8rem; height: 1.8rem;margin-right: 5px;"
                      :src="weatherObj.weatherImg" fit="cover"/>
            <div>{{ weatherObj.minTemperature }}℃<span
                style="margin: 0 5px;">~</span>{{ weatherObj.maxTemperature }}℃
            </div>
          </div>
        </div>
      </div>
      <div class="sen_right_box">
        <span>风速:{{ weatherObj.degData }}{{ weatherObj.windspeed }}级</span>
        <span>湿度:{{ weatherObj.humidity }}%</span>
        <span>降水量:{{ weatherObj.rainfall }}毫米</span>
      </div>
    </div>
    <div class="sen_bot_box">
      <div class="list_box" v-for="(item,index) in weatherList">
        <div class="text_box">{{ item.day }}</div>
        <div class="text_box">{{ item.date }}</div>
        <div class="text_box">{{ item.description }}</div>
        <div class="img_box">
          <div class="" v-if="item.description == '晴'">
            <svg version="1.1" id="sunGlobe" xmlns="http://www.w3.org/2000/svg"
                 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100"
                 enable-background="new 0 0 100 100" xml:space="preserve">
							<g id="sunrays">
								<radialGradient id="XMLID_4_" cx="51.1566" cy="21.1667" r="4.7267"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_3_" fill="url(#XMLID_4_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M56.1,25.3h-9.7c0,0-1.2-6.1,0-7.4c1.2-1.3,8.9-1,9.7,0C56.8,18.9,56.1,25.3,56.1,25.3z"/>
                <radialGradient id="XMLID_12_" cx="71.2457" cy="29.7708" r="6.0292"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_5_" fill="url(#XMLID_12_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M71.8,35.8l-6.6-7.1c0,0,3.7-5,5.4-5.1s6.8,5.8,6.6,7.1C77.1,32,71.8,35.8,71.8,35.8z"/>
                <radialGradient id="XMLID_13_" cx="79.016" cy="49.1667" r="4.757"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_6_" fill="url(#XMLID_13_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M75.1,54.2l-0.3-9.7c0,0,6.1-1.3,7.4-0.2c1.3,1.1,1.2,8.9,0.3,9.7C81.5,54.8,75.1,54.2,75.1,54.2z"/>
                <radialGradient id="XMLID_14_" cx="70.2457" cy="69.6002" r="6.0234"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_7_" fill="url(#XMLID_14_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M64.3,70.7l6.4-7.2c0,0,5.3,3.2,5.5,4.9c0.2,1.7-5.2,7.3-6.4,7.2C68.5,75.6,64.3,70.7,64.3,70.7z"/>

                <radialGradient id="XMLID_15_" cx="50.7987" cy="78.0712" r="4.7789"
                                gradientTransform="matrix(0.998 -6.322496e-002 6.322496e-002 0.998 -4.8396 3.3703)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_8_" fill="url(#XMLID_15_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M45.8,74.2l9.7-0.2c0,0,1.3,6.1,0.2,7.4c-1.1,1.3-8.9,1.2-9.7,0.2C45.2,80.6,45.8,74.2,45.8,74.2z"/>
                <radialGradient id="XMLID_16_" cx="30.5864" cy="70.2252" r="6.0153"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_9_" fill="url(#XMLID_16_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M29.3,64.3l7.3,6.3c0,0-3.1,5.4-4.8,5.6s-7.4-5-7.3-6.3C24.6,68.6,29.3,64.3,29.3,64.3z"/>
                <radialGradient id="XMLID_44_" cx="21.0871" cy="50" r="4.8093"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_10_" fill="url(#XMLID_44_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M24.8,44.8l0.6,9.6c0,0-6,1.5-7.4,0.5c-1.4-1.1-1.5-8.8-0.6-9.6C18.3,44.4,24.8,44.8,24.8,44.8z"/>
                <radialGradient id="XMLID_45_" cx="29.9614" cy="29.0073" r="6.019"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.3333" style="stop-color:#FBD25A"/>
                  <stop offset="0.7581" style="stop-color:#FAD45D"/>
                  <stop offset="1" style="stop-color:#F5E16E"/>
								</radialGradient>

                <path id="XMLID_11_" fill="url(#XMLID_45_)" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="7.000000e-002" d="
								M36,28.6L28.7,35c0,0-4.9-3.8-4.9-5.6c0-1.7,6.1-6.6,7.3-6.3C32.4,23.3,36,28.6,36,28.6z"/>
							</g>
              <radialGradient id="XMLID_46_" cx="50" cy="49.1667" r="26.8776"
                              gradientUnits="userSpaceOnUse">
								<stop offset="0.3333" style="stop-color:#E3BF4C"/>
                <stop offset="0.7473" style="stop-color:#F4CE52"/>
                <stop offset="1" style="stop-color:#F5E16E"/>
							</radialGradient>
              <ellipse id="XMLID_1_" fill="url(#XMLID_46_)" stroke="#58595B" stroke-width="0.5"
                       stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="50" cy="49.2" rx="27.3"
                       ry="26.5"/>
						</svg>
          </div>
          <div class="" v-if="item.description == '多云'">
            <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
                 x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100"
                 xml:space="preserve">
							<g id="Layer_4">
								<radialGradient id="chubbyMoon_1_" cx="73.25" cy="20.1667" r="71.3092"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.4082" style="stop-color:#D3D0B2"/>
                  <stop offset="0.42" style="stop-color:#C5C4A0"/>
								</radialGradient>
                <ellipse id="chubbyMoon" fill="url(#chubbyMoon_1_)" stroke="#58595B" stroke-width="0.5"
                         stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="61.8" cy="31.2" rx="27.3"
                         ry="26.5"/>
                <radialGradient id="mooncrater_2_" cx="248.5072" cy="171.0079" r="71.3092"
                                gradientTransform="matrix(0.2761 0 0 0.2761 -4.5736 -17.9305)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.385" style="stop-color:#C2B99D"/>
                  <stop offset="0.4082" style="stop-color:#B5AA86"/>
								</radialGradient>
                <ellipse id="mooncrater" fill="url(#mooncrater_2_)" stroke="#58595B" stroke-width="0.5"
                         stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="60.9" cy="32.3" rx="7.5"
                         ry="7.3"/>
                <radialGradient id="mooncrater_4_" cx="328.3989" cy="-40.7337" r="71.3092"
                                gradientTransform="matrix(7.215338e-002 0 0 7.215340e-002 25.6009 15.7241)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.385" style="stop-color:#C2B99D"/>
                  <stop offset="0.4082" style="stop-color:#B5AA86"/>
								</radialGradient>

                <ellipse id="mooncrater_1_" fill="url(#mooncrater_4_)" stroke="#58595B"
                         stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="48.5"
                         cy="13.6" rx="2" ry="1.9"/>
                <radialGradient id="mooncrater_6_" cx="455.6206" cy="33.6355" r="71.3092"
                                gradientTransform="matrix(0.1198 0 0 0.1198 13.506 8.4935)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.385" style="stop-color:#C2B99D"/>
                  <stop offset="0.4082" style="stop-color:#B5AA86"/>
								</radialGradient>
                <ellipse id="mooncrater_3_" fill="url(#mooncrater_6_)" stroke="#58595B"
                         stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="66.7"
                         cy="13.8" rx="3.3" ry="3.2"/>
                <radialGradient id="mooncrater_7_" cx="532.6715" cy="160.4353" r="71.3092"
                                gradientTransform="matrix(0.1405 0 0 0.1405 6.587 5.366)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.385" style="stop-color:#C2B99D"/>
                  <stop offset="0.4082" style="stop-color:#B5AA86"/>
								</radialGradient>
                <ellipse id="mooncrater_5_" fill="url(#mooncrater_7_)" stroke="#58595B"
                         stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="79.8"
                         cy="29.4" rx="3.8" ry="3.7"/>
                <radialGradient id="mooncrater_10_" cx="236.5847" cy="186.8517" r="71.3092"
                                gradientTransform="matrix(0.1712 0 0 0.1712 2.2486 -2.7871)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.385" style="stop-color:#C2B99D"/>
                  <stop offset="0.4082" style="stop-color:#B5AA86"/>
								</radialGradient>
                <ellipse id="mooncrater_8_" fill="url(#mooncrater_10_)" stroke="#58595B"
                         stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="40.8"
                         cy="31.1" rx="4.7" ry="4.5"/>
                <radialGradient id="mooncrater_12_" cx="315.6328" cy="235.365" r="71.3092"
                                gradientTransform="matrix(0.1135 0 0 0.1135 12.8171 17.5574)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.385" style="stop-color:#C2B99D"/>
                  <stop offset="0.4082" style="stop-color:#B5AA86"/>
								</radialGradient>
                <ellipse id="mooncrater_9_" fill="url(#mooncrater_12_)" stroke="#58595B"
                         stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="47.3"
                         cy="45.5" rx="3.1" ry="3"/>
                <radialGradient id="mooncrater_13_" cx="500.9887" cy="293.8005" r="71.3092"
                                gradientTransform="matrix(0.1135 0 0 0.1135 12.8171 17.5574)"
                                gradientUnits="userSpaceOnUse">
									<stop offset="0.385" style="stop-color:#C2B99D"/>
                  <stop offset="0.4082" style="stop-color:#B5AA86"/>
								</radialGradient>
                <ellipse id="mooncrater_11_" fill="url(#mooncrater_13_)" stroke="#58595B"
                         stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="7.000000e-002" cx="68.4"
                         cy="52.2" rx="3.1" ry="3"/>
							</g>
              <g id="smallcloud">
								<path id="XMLID_3_" fill="#5BCAEB" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="8.000000e-002" d="
								M19,39.9c0,0,5.7,1.7,7-1.2c5.4,3,9.1,0.6,11.5,0c0.5,2.3,6.1,1.2,6.1,1.2s10.7-2.6,9.9-11.7c0,0-1.9-12.4-14-10
								c0,0-9.7-9.5-18.6,2.5c0,0-9-0.5-10.3,10C10.6,30.7,10.9,37.8,19,39.9z"/>
							</g>
              <g id="bigCloud">
								<path id="XMLID_9_" fill="#F4F4F4" stroke="#515251" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="8.000000e-002"
                      d="	M22.3,65.5c0,0-8.9-2.9-9.3-12.8s10-11.3,11.4-10.1c0,0,2.5-8.4,10.1-8.6c0,0,3.5-13.4,17.8-13.1c0,0,15.6-0.8,17.9,16.4
						c0,0,12.9-1,13.4,15.1c0,0-1.4,10.9-11.9,13.1c0,0-12,2-13.8-2.3c-0.2,2.1-15,6-19.6,0C33.8,68.4,22.3,65.5,22.3,65.5z"/>
							</g>
						</svg>
          </div>
          <div class=""
               v-if="item.description == '小雨' || item.description == '中雨' || item.description == '大雨'">
            <svg class="svg" version="1.1" xmlns="http://www.w3.org/2000/svg"
                 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100"
                 enable-background="new 0 0 100 100" xml:space="preserve">
							<g id="rain">
								<path class="raindrop" id="drop1" fill="url(#XMLID_19_)" stroke="#000000"
                      stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="0.5" d="
								M33.8,67.2c0,0-10.4,14.3,0,14.3C44.4,81.5,33.8,67.2,33.8,67.2z"/>
                <path class="raindrop" id="drop2" fill="url(#XMLID_19_)" stroke="#000000"
                      stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="0.5" d="
								M48.2,67c0,0-10.4,14.3,0,14.3C58.8,81.3,48.2,67,48.2,67z"/>
                <linearGradient id="XMLID_19_" gradientUnits="userSpaceOnUse" x1="57.7887" y1="74.1052"
                                x2="67.118" y2="74.1052">
									<stop offset="0.4718" style="stop-color:#5CCAEB"/>
                  <stop offset="0.5339" style="stop-color:#51B1CD"/>
								</linearGradient>
                <path class="raindrop" id="drop3" fill="url(#XMLID_19_)" stroke="#000000"
                      stroke-width="0.5" stroke-miterlimit="10" stroke-opacity="0.5" d="
								M62.4,67c0,0-10.4,14.3,0,14.3C73,81.3,62.4,67,62.4,67z"/>
							</g>
              <g id="bigCloudRain">

								<path id="XMLID_1_" fill="#F4F4F4" stroke="#515251" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="8.000000e-002"
                      d="
								M22.3,65.5c0,0-8.9-2.9-9.3-12.8s10-11.3,11.4-10.1c0,0,2.5-8.4,10.1-8.6c0,0,3.5-13.4,17.8-13.1c0,0,15.6-0.8,17.9,16.4
								c0,0,12.9-1,13.4,15.1c0,0-1.4,10.9-11.9,13.1c0,0-12,2-13.8-2.3c-0.2,2.1-15,6-19.6,0C33.8,68.4,22.3,65.5,22.3,65.5z"/>
							</g>
						</svg>
          </div>
          <div class="" v-if="item.description == '阴'">
            <svg class="svg" version="1.1" xmlns="http://www.w3.org/2000/svg"
                 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100"
                 enable-background="new 0 0 100 100" xml:space="preserve">
							<g id="bigCloudRain">

								<path id="XMLID_1_" fill="#F4F4F4" stroke="#515251" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="8.000000e-002"
                      d="
								M22.3,65.5c0,0-8.9-2.9-9.3-12.8s10-11.3,11.4-10.1c0,0,2.5-8.4,10.1-8.6c0,0,3.5-13.4,17.8-13.1c0,0,15.6-0.8,17.9,16.4
								c0,0,12.9-1,13.4,15.1c0,0-1.4,10.9-11.9,13.1c0,0-12,2-13.8-2.3c-0.2,2.1-15,6-19.6,0C33.8,68.4,22.3,65.5,22.3,65.5z"/>
							</g>
						</svg>
          </div>
          <div class="" v-if="item.description == '雷阵雨'">
            <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
                 x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100"
                 xml:space="preserve">
							<g id="thunder">
								<polygon fill="#FAC73F"
                         points="45.6,61.5 39.4,77.6 47.6,77.4 43.1,91.9 44.3,91.9 59.3,73.5 51.4,73.4 58.7,61.5 	"/>
							</g>
              <g id="smallcloud">

								<path id="XMLID_3_" fill="#F4F4F4" stroke="#6D6E71" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="8.000000e-002" d="
								M19,39.9c0,0,5.7,1.7,7-1.2c5.4,3,9.1,0.6,11.5,0c0.5,2.3,6.1,1.2,6.1,1.2s10.7-2.6,9.9-11.7c0,0-1.9-12.4-14-10
								c0,0-9.7-9.5-18.6,2.5c0,0-9-0.5-10.3,10C10.6,30.7,10.9,37.8,19,39.9z"/>
							</g>
              <g id="bigClouds">

								<path id="XMLID_16_" fill="#F4F4F4" stroke="#515251" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="8.000000e-002"
                      d="
								M22.3,65.5c0,0-8.9-2.9-9.3-12.8s10-11.3,11.4-10.1c0,0,2.5-8.4,10.1-8.6c0,0,3.5-13.4,17.8-13.1c0,0,15.6-0.8,17.9,16.4
								c0,0,12.9-1,13.4,15.1c0,0-1.4,10.9-11.9,13.1c0,0-12,2-13.8-2.3c-0.2,2.1-15,6-19.6,0C33.8,68.4,22.3,65.5,22.3,65.5z"/>
							</g>
						</svg>
          </div>
          <div class=""
               v-if="item.description == '小雪' || item.description == '中雪' || item.description == '大雪'">
            <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
                 x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100"
                 xml:space="preserve">
							<g id="snowflakes">
								<g id="flake3">
									<path fill="#5BCAEB" d="M72,78.1c0.6,0.6,0.6,1.6,0,2.2l0,0c-0.6,0.6-1.6,0.6-2.2,0l-8.7-8.7C60.5,71,60.3,70,61,69.3
									s1.7-0.4,2.3,0.2L72,78.1z"/>
                  <path fill="#5BCAEB" d="M63.1,80.3c-0.6,0.6-1.6,0.6-2.2,0l0,0c-0.6-0.6-0.6-1.6,0-2.2l8.7-8.7c0.6-0.6,1.7-0.8,2.3-0.2
									c0.7,0.7,0.4,1.7-0.2,2.3L63.1,80.3z"/>
                  <path fill="#5BCAEB" d="M60.2,76.3c-0.9,0-1.5-0.7-1.5-1.5l0,0c0-0.9,0.7-1.5,1.5-1.5h12.3c0.9,0,1.8,0.6,1.8,1.5
									c0,0.9-0.9,1.5-1.8,1.5H60.2z"/>
                  <path id="XMLID_8_" fill="#5BCAEB" d="M68,81c0,0.9-0.7,1.5-1.5,1.5l0,0c-0.9,0-1.5-0.7-1.5-1.5V68.8c0-0.9,0.6-1.8,1.5-1.8
									c0.9,0,1.5,0.9,1.5,1.8V81z"/>
								</g>
                <g id="flake2">
									<path fill="#5BCAEB" d="M53.5,78.1c0.6,0.6,0.6,1.6,0,2.2l0,0c-0.6,0.6-1.6,0.6-2.2,0l-8.7-8.7C42,71,41.8,70,42.5,69.3
									c0.7-0.7,1.7-0.4,2.3,0.2L53.5,78.1z"/>
                  <path fill="#5BCAEB" d="M44.6,80.3c-0.6,0.6-1.6,0.6-2.2,0l0,0c-0.6-0.6-0.6-1.6,0-2.2l8.7-8.7c0.6-0.6,1.7-0.8,2.3-0.2
									c0.7,0.7,0.4,1.7-0.2,2.3L44.6,80.3z"/>
                  <path fill="#5BCAEB" d="M41.7,76.3c-0.9,0-1.5-0.7-1.5-1.5l0,0c0-0.9,0.7-1.5,1.5-1.5H54c0.9,0,1.8,0.6,1.8,1.5
									c0,0.9-0.9,1.5-1.8,1.5H41.7z"/>
                  <path id="XMLID_17_" fill="#5BCAEB" d="M49.5,81c0,0.9-0.7,1.5-1.5,1.5l0,0c-0.9,0-1.5-0.7-1.5-1.5V68.8c0-0.9,0.6-1.8,1.5-1.8
									c0.9,0,1.5,0.9,1.5,1.8V81z"/>
								</g>
                <g id="flake1">
									<path fill="#5BCAEB" d="M35.1,78.1c0.6,0.6,0.6,1.6,0,2.2l0,0c-0.6,0.6-1.6,0.6-2.2,0l-8.7-8.7c-0.6-0.6-0.8-1.7-0.2-2.3
									c0.7-0.7,1.7-0.4,2.3,0.2L35.1,78.1z"/>
                  <path fill="#5BCAEB" d="M26.3,80.3c-0.6,0.6-1.6,0.6-2.2,0l0,0c-0.6-0.6-0.6-1.6,0-2.2l8.7-8.7c0.6-0.6,1.7-0.8,2.3-0.2
									c0.7,0.7,0.4,1.7-0.2,2.3L26.3,80.3z"/>
                  <path fill="#5BCAEB" d="M23.4,76.3c-0.9,0-1.5-0.7-1.5-1.5l0,0c0-0.9,0.7-1.5,1.5-1.5h12.3c0.9,0,1.8,0.6,1.8,1.5
									c0,0.9-0.9,1.5-1.8,1.5H23.4z"/>
                  <path fill="#5BCAEB" d="M31.1,81c0,0.9-0.7,1.5-1.5,1.5l0,0c-0.9,0-1.5-0.7-1.5-1.5V68.8c0-0.9,0.6-1.8,1.5-1.8s1.5,0.9,1.5,1.8
									V81z"/>
								</g>
							</g>
              <g id="bigCloudSnow">

								<path id="XMLID_1_" fill="#F4F4F4" stroke="#515251" stroke-width="0.5"
                      stroke-miterlimit="10" stroke-opacity="8.000000e-002"
                      d="
								M22.3,65.5c0,0-8.9-2.9-9.3-12.8s10-11.3,11.4-10.1c0,0,2.5-8.4,10.1-8.6c0,0,3.5-13.4,17.8-13.1c0,0,15.6-0.8,17.9,16.4
								c0,0,12.9-1,13.4,15.1c0,0-1.4,10.9-11.9,13.1c0,0-12,2-13.8-2.3c-0.2,2.1-15,6-19.6,0C33.8,68.4,22.3,65.5,22.3,65.5z"/>
							</g>
						</svg>
          </div>
          <!-- <el-image style="width: 3rem; height: 3rem;":src="item.weatherImg" fit="cover" /> -->
        </div>
        <div class="text_box1">{{ item.minTemperature }}℃<span
            style="margin: 0 5px;">~</span>{{ item.maxTemperature }}℃
        </div>
      </div>
      <div class="chart_box">
        <q-charts :option="weatherOption"></q-charts>
      </div>
    </div>
  </div>
</template>

资料包:https://download.csdn.net/download/galaxyJING/89331774

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1688753.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【Text2SQL 经典模型】X-SQL

论文&#xff1a;X-SQL: reinforce schema representation with context ⭐⭐⭐⭐ Microsoft, arXiv:1908.08113 X-SQL 与 SQLova 类似&#xff0c;使用 BERT style 的 PLM 来获得 representation&#xff0c;只是融合 NL question 和 table schema 的信息的方式不太一样&#…

Keil MDK map文件学习笔记

Keil MDK map文件学习笔记 map文件组成1.Section Cross References段交叉引用2.Removing Unused input sections from the image移除无用的段3.Image Symbol Table镜像符号表局部符号表全局符号表 4.Memory Map of the image镜像存储器映射ROM区执行域RAM区执行域 5. Image com…

C#学习指南:重要内容与实用技巧

学习C#编程是一段充满挑战但又非常充实的旅程。以下是我在学习过程中积累的一些经验&#xff0c;希望能对大家有所帮助。 一、掌握基础概念 类及其成员 C#中的类是编程的基础模块。理解类的结构、属性、方法和构造函数是至关重要的。每个类都有其特定的功能&#xff0c;学会如…

Milvus 使用过程中的常见问题集锦

引言 在使用Milvus的过程中&#xff0c;可能会遇到一些常见问题。这些问题可能涉及到配置、查询、数据同步等方面。 常见问题 以下是一些可能遇到的常见问题及其解决方法&#xff1a; 查询结果不正确&#xff1a; 可能原因&#xff1a;Milvus内部缓存与数据不一致&#xff0…

【数据结构】哈夫曼树和哈夫曼编码

一、哈夫曼树 1.1 哈夫曼树的概念 给定一个序列&#xff0c;将序列中的所有元素作为叶子节点构建一棵二叉树&#xff0c;并使这棵树的带权路径长度最小&#xff0c;那么我们就得到了一棵哈夫曼树&#xff08;又称最优二叉树&#xff09; 接下来是名词解释&#xff1a; 权&a…

APISIX-简单使用

APISIX-简单使用 这个工具还是很不错的&#xff0c;可视化的配置很清晰 &#xff0c; 想用NGINX的配置模式也是可以的&#xff0c;就是要去修改配置文件了。 APISIX&#xff0c;一个很不错的可视化工具&#xff0c;用来代替Nginx相当不错&#xff0c;可作为Nginx的平替方案&…

Leecode热题100---45:跳跃游戏②

题目&#xff1a; 给定一个长度为 n 的 0 索引整数数组 nums。初始位置为 nums[0]。 每个元素 nums[i] 表示从索引 i 向前跳转的最大长度。 返回到达 nums[n - 1] 的最小跳跃次数。 思路&#xff1a; 如果某一个作为 起跳点 的格子可以跳跃的距离是 3&#xff0c;那么表示后面…

解耦:哪些方法可以用来解耦代码

目录 1.引用 2.为何解耦如此重要 3.如何判断代码是否需要解耦 4.如何给代码解耦 5.思考题 1.引用 前面我们曾经讲到&#xff0c;重构可以分为大型重构和小型重构。小型重构的主要目的是提高代码的可读性&#xff0c;大型重构的主要目的是解耦。本节讲解如何对代码进行解耦…

用python为目录下的文件生成索引

好久没写文章了。 有一个需求&#xff1a; 我的一个目录下有很多的.html文件&#xff0c; 每个html会包含一些image &#xff0c;但都在各自的目录中。 .html特别多&#xff0c;有好几百个&#xff0c;我需要一个index.hmtl把这些html全部索引起来&#xff0c;使得我一个点击&a…

计算机如何将输入文字显示出来的?渲染Image rendering

1.文字渲染的简单理解 渲染图像&#xff0c;可以理解为用cpu/gpu构造出原本不存在的图像。比如输入计算机的英文字符都是ASCII码&#xff0c;而我们在屏幕上看到显示的字符对应的应该是RGB/YUV的像素。计算机把ASCII字符转化成像素的过程就是文字渲染。又比如我们GPU用多个2D图…

全同态加密生态项目盘点:FHE技术的崛起以及应用

撰文&#xff1a;Chris&#xff0c;Techub News 在当今数字化的时代&#xff0c;隐私保护已成为一个全球性的焦点话题&#xff0c;特别是在加密货币和区块链技术快速发展的背景下。虽然当前的隐私技术在保护数据安全方面多有欠缺&#xff0c;引发了广泛的关注和批评&#xff0c…

如何彻底搞懂装饰器(Decorator)设计模式?

对于任何一个软件系统而言&#xff0c;往现有对象中添加新功能是一种不可避免的实现场景&#xff0c;但这一实现过程对现有系统的影响可大可小。从架构设计上讲&#xff0c;我们也知道存在一个开闭原则&#xff08;Open-Closed Principle&#xff0c;OCP&#xff09;&#xff0…

中文信息期刊投稿邮箱

《中文信息》杂志是国家新闻出版总署批准的国家级刊物&#xff08;月刊&#xff09;&#xff0c;国内外公开发行&#xff0c;大十六开印刷。本刊主要反映我国中文信息处理的学术水平&#xff0c;重点刊登科技、经济、教育等领域的基础理论、科研与应用技术的学术论文&#xff0…

使用Coding部署项目

coding概述&#xff1a;提供一站式开发协作工具&#xff0c;帮助研发团队快速落地敏捷开发与 DevOps 开发方式&#xff0c;实现研发效能升级 一、创建项目 省略 详细文档&#xff1a;https://g-mnbk6665.coding.net/quickstart 二、SSH连接 关于ssh相关命令 重启SSH服务 s…

2023蓝桥杯大赛软件类省赛Java大学B组G题 买二增一 队列的简单应用

用队列 Queue package Dduo; //Bhu Bigdata 1421 //Eslipse IDE 2020-08 //JDK 1.8 //2024/5/19 import java.util.Scanner; import java.math.BigInteger; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue;public class Main {public static v…

【openlayers系统学习】1.6下载要素,将要素数据序列化为 GeoJSON并下载

六、下载要素 下载要素 上传数据并编辑后&#xff0c;我们想让用户下载结果。为此&#xff0c;我们将要素数据序列化为 GeoJSON&#xff0c;并创建一个带有 download​ 属性的 <a>​ 元素&#xff0c;该属性会触发浏览器的文件保存对话框。同时&#xff0c;我们将在地图…

二叉树顺序结构及链式结构

一.二叉树的顺序结构 1.定义&#xff1a;使用数组存储数据&#xff0c;一般使用数组只适合表示完全二叉树&#xff0c;此时不会有空间的浪费 注&#xff1a;二叉树的顺序存储在逻辑上是一颗二叉树&#xff0c;但是在物理上是一个数组&#xff0c;此时需要程序员自己想清楚调整…

GPT-4o: 未来的智能助手

GPT-4o: 未来的智能助手 在这个信息爆炸的时代&#xff0c;人工智能&#xff08;AI&#xff09;已经成为我们生活中不可或缺的一部分。作为OpenAI最新推出的语言模型&#xff0c;GPT-4o不仅继承了前几代模型的优点&#xff0c;还在多个方面进行了显著的提升。本文将带你深入了解…

C++:vector基础讲解

hello&#xff0c;各位小伙伴&#xff0c;本篇文章跟大家一起学习《C&#xff1a;vector基础讲解》&#xff0c;感谢大家对我上一篇的支持&#xff0c;如有什么问题&#xff0c;还请多多指教 &#xff01; 如果本篇文章对你有帮助&#xff0c;还请各位点点赞&#xff01;&#…

网络编程day7

思维导图 数据库编程实现学生管理系统 #include <header.h> #define ID 1 #define NAME 2 #define AGE 3 #define SCORE 4 int do_add(sqlite3 *ppdb) {int add_numb;char add_name[20];int add_age;double add_score;printf("enter student id:");scanf(&quo…