鸿宇研学生前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

432 lines
18 KiB

2 months ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
4 days ago
2 months ago
2 days ago
4 days ago
2 days ago
4 days ago
2 days ago
4 days ago
2 days ago
4 days ago
2 months ago
4 days ago
2 days ago
2 months ago
2 months ago
4 days ago
2 days ago
4 days ago
2 days ago
4 days ago
2 days ago
4 days ago
2 days ago
4 days ago
4 days ago
3 days ago
4 days ago
3 days ago
4 days ago
3 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 days ago
4 days ago
2 months ago
4 days ago
3 days ago
2 days ago
4 days ago
2 days ago
4 days ago
2 months ago
4 days ago
2 days ago
4 days ago
2 months ago
4 days ago
3 days ago
2 months ago
4 days ago
2 months ago
3 days ago
2 months ago
4 days ago
2 days ago
2 months ago
4 days ago
2 months ago
2 months ago
3 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
3 days ago
2 days ago
4 days ago
2 months ago
4 days ago
4 days ago
4 days ago
4 days ago
3 days ago
4 days ago
3 days ago
4 days ago
3 days ago
4 days ago
3 days ago
4 days ago
  1. <template>
  2. <div id="app" class="page__view">
  3. <div class="card">
  4. <div class="report" :style="style">
  5. <!-- 01 -->
  6. <div class="export">
  7. <img class="img fg" :src="configList.report_page_01" crossorigin=anonymous />
  8. </div>
  9. <!-- 02 -->
  10. <div class="export">
  11. <img class="img fg" :src="configList.report_page_02" crossorigin=anonymous />
  12. </div>
  13. <!-- 03 -->
  14. <div class="export">
  15. <img class="img" :src="configList.report_page_03" crossorigin=anonymous />
  16. <img class="img fg" style="top: 76rpx; left: 90rpx; width: 82rpx; height: 104rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  17. <div class="text" style="top: 76rpx; left: 206rpx;">姓名</div>
  18. <div class="text" style="top: 76rpx; left: 298rpx;">性别</div>
  19. <div class="text" style="top: 116rpx; left: 206rpx;">年龄</div>
  20. <div class="text" style="top: 116rpx; left: 298rpx;">学段</div>
  21. <div class="text" style="top: 156rpx; left: 206rpx;">学校</div>
  22. <div class="text" style="top: 180rpx; left: 118rpx;">城市</div>
  23. <div class="text" style="top: 208rpx; left: 138rpx;">出勤情况</div>
  24. </div>
  25. <!-- 04 -->
  26. <div class="export">
  27. <img class="img fg" style="top: 70rpx; left: 120rpx; width: 258rpx; height: 154rpx; border-radius: 8rpx; overflow: hidden;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  28. <img class="img fg" :src="configList.report_page_04" crossorigin=anonymous />
  29. </div>
  30. <!-- 05 -->
  31. <div class="export">
  32. <img class="img fg" style="top: 216rpx; left: 62rpx; width: 60rpx; height: 60rpx; transform: rotate(14deg);" src="@/static/image/temp-20.png" crossorigin=anonymous />
  33. <img class="img fg" style="top: 170rpx; left: 12rpx; width: 60rpx; height: 60rpx; transform: rotate(-7deg);" src="@/static/image/temp-14.png" crossorigin=anonymous />
  34. <img class="img fg" style="top: 30rpx; left: 56rpx; width: 74rpx; height: 74rpx; transform: rotate(15deg);" src="@/static/image/temp-20.png" crossorigin=anonymous />
  35. <img class="img fg" style="top: 80rpx; left: 84rpx; width: 74rpx; height: 74rpx; transform: rotate(-6deg);" src="@/static/image/temp-14.png" crossorigin=anonymous />
  36. <img class="img fg" style="top: 120rpx; left: 196rpx; width: 84rpx; height: 84rpx; transform: rotate(-14deg);" src="@/static/image/temp-20.png" crossorigin=anonymous />
  37. <img class="img fg" style="top: 174rpx; left: 262rpx; width: 84rpx; height: 84rpx; transform: rotate(14deg);" src="@/static/image/temp-14.png" crossorigin=anonymous />
  38. <img class="img fg" style="top: 26rpx; left: unset; right: -24rpx; width: 134rpx; height: 134rpx; transform: rotate(14deg);" src="@/static/image/temp-20.png" crossorigin=anonymous />
  39. <img class="img fg" :src="configList.report_page_05" crossorigin=anonymous />
  40. <div class="text text-5" style="top: 228rpx; left: 6rpx; transform: rotate(-7deg);">标签1</div>
  41. <div class="text text-5" style="top: 160rpx; left: 136rpx; transform: rotate(7deg);">标签2</div>
  42. <div class="text text-5" style="top: 266rpx; left: 318rpx; transform: rotate(7deg);">标签3</div>
  43. <div class="text text-5" style="top: 42rpx; left: unset; right: 100rpx; transform: rotate(-7deg);">标签4</div>
  44. </div>
  45. <!-- 06 -->
  46. <div class="export">
  47. <img class="img fg" style="top: 118rpx; left: 92rpx; width: 78rpx; height: 50rpx; transform: skew(50deg, -34deg);" src="@/static/image/temp-20.png" crossorigin=anonymous />
  48. <img class="img fg" style="top: 110rpx; left: 244rpx; width: 68rpx; height: 60rpx; transform: skew(50deg, 317deg);" src="@/static/image/temp-20.png" crossorigin=anonymous />
  49. <img class="img fg" style="top: 76rpx; left: 173rpx; width: 68rpx; height: 46rpx; transform: skew(50deg, -34deg);" src="@/static/image/temp-14.png" crossorigin=anonymous />
  50. <img class="img fg" style="top: 176rpx; left: 162rpx; width: 92rpx; height: 60rpx; transform: skew(54deg, 324deg);" src="@/static/image/temp-14.png" crossorigin=anonymous />
  51. <img class="img fg" :src="configList.report_page_06" crossorigin=anonymous />
  52. </div>
  53. <!-- 07 -->
  54. <div class="export">
  55. <img class="img fg" style="top: 54rpx; left: 106rpx; width: 96rpx; height: 74rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  56. <img class="img fg" style="top: 54rpx; left: 204rpx; width: 96rpx; height: 74rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  57. <img class="img fg" style="top: 54rpx; left: 300rpx; width: 96rpx; height: 74rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  58. <img class="img fg" style="top: 152rpx; left: 84rpx; width: 142rpx; height: 96rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  59. <img class="img fg" style="top: 152rpx; left: 250rpx; width: 142rpx; height: 96rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  60. <img class="img fg" :src="configList.report_page_07" crossorigin=anonymous />
  61. </div>
  62. <!-- 08 -->
  63. <div class="export">
  64. <img class="img fg" style="top: 46rpx; left: 68rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  65. <img class="img fg" style="top: 118rpx; left: 68rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  66. <img class="img fg" style="top: 46rpx; left: 148rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  67. <img class="img fg" style="top: 118rpx; left: 148rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  68. <img class="img fg" style="top: 192rpx; left: 148rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  69. <img class="img fg" style="top: 86rpx; left: 228rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  70. <img class="img fg" style="top: 158rpx; left: 228rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  71. <img class="img fg" style="top: 118rpx; left: 310rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  72. <img class="img fg" style="top: 192rpx; left: 310rpx; width: 70rpx; height: 70rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  73. <img class="img fg" :src="configList.report_page_08" crossorigin=anonymous />
  74. </div>
  75. <!-- 09 -->
  76. <div class="export">
  77. <img class="img fg" style="top: 0; left: unset; right: 0; width: auto; height: 100%;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  78. <img class="img fg" style="width: 162rpx; height: 112rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  79. <img class="img img-08 fg" :src="configList.report_page_09" crossorigin=anonymous />
  80. </div>
  81. <!-- 10 -->
  82. <div class="export">
  83. <img class="img fg" style="top: 78rpx; left: 64rpx; width: 98rpx; height: 66rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  84. <img class="img fg" style="top: 80rpx; left: 276rpx; width: 94rpx; height: 64rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  85. <img class="img fg" style="top: 80rpx; left: 372rpx; width: 56rpx; height: 62rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  86. <img class="img fg" style="top: 148rpx; left: 32rpx; width: 132rpx; height: 88rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  87. <img class="img fg" style="top: 148rpx; left: 276rpx; width: 76rpx; height: 50rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  88. <img class="img fg" style="top: 148rpx; left: 356rpx; width: 75rpx; height: 125rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  89. <img class="img fg" style="top: 202rpx; left: 166rpx; width: 98rpx; height: 66rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  90. <img class="img fg" style="top: 42rpx; left: 166rpx; width: 108rpx; height: 160rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  91. <img class="img fg" :src="configList.report_page_10" crossorigin=anonymous />
  92. </div>
  93. <!-- 11 -->
  94. <div class="export">
  95. <img class="img fg" style="top: unset; bottom: 164rpx; left: 34rpx; width: 74rpx; height: 50rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  96. <img class="img fg" style="top: unset; bottom: 164rpx; left: 112rpx; width: 48rpx; height: 70rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  97. <img class="img fg" style="top: unset; bottom: 164rpx; left: 164rpx; width: 135rpx; height: 100rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  98. <img class="img fg" style="top: 148rpx; left: 34rpx; width: 106rpx; height: 88rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  99. <img class="img fg" style="top: 148rpx; left: 232rpx; width: 74rpx; height: 50rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  100. <img class="img fg" :src="configList.report_page_11" crossorigin=anonymous />
  101. </div>
  102. <!-- 12 -->
  103. <div class="export">
  104. <img class="img fg" style="top: 82rpx; left: 76rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  105. <img class="img fg" style="top: 82rpx; left: 140rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  106. <img class="img fg" style="top: 82rpx; left: 206rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  107. <img class="img fg" style="top: 82rpx; left: 270rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  108. <img class="img fg" style="top: 82rpx; left: 336rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  109. <img class="img fg" style="top: 166rpx; left: 76rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  110. <img class="img fg" style="top: 166rpx; left: 140rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  111. <img class="img fg" style="top: 166rpx; left: 206rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  112. <img class="img fg" style="top: 166rpx; left: 270rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  113. <img class="img fg" style="top: 166rpx; left: 336rpx; width: 50rpx; height: 62rpx;" src="@/static/image/temp-14.png" crossorigin=anonymous />
  114. <img class="img fg" :src="configList.report_page_12" crossorigin=anonymous />
  115. </div>
  116. <!-- 13 -->
  117. <div class="export">
  118. <img class="img" :src="configList.report_page_13" crossorigin=anonymous />
  119. <div class="text text-12" style="top: 84rpx; left: 100rpx;">技能01</div>
  120. <progressSegment class="progress" style="top: 80rpx; left: 162rpx;" :value="20"></progressSegment>
  121. <div class="text text-12" style="top: 114rpx; left: 100rpx;">技能02</div>
  122. <progressSegment class="progress" style="top: 112rpx; left: 162rpx;" :value="40"></progressSegment>
  123. <div class="text text-12" style="top: 146rpx; left: 100rpx;">技能03</div>
  124. <progressSegment class="progress" style="top: 144rpx; left: 162rpx;" :value="60"></progressSegment>
  125. <div class="text text-12" style="top: 176rpx; left: 100rpx;">技能04</div>
  126. <progressSegment class="progress" style="top: 174rpx; left: 162rpx;" :value="80"></progressSegment>
  127. <div class="text text-12" style="top: 206rpx; left: 100rpx;">技能05</div>
  128. <progressSegment class="progress" style="top: 204rpx; left: 162rpx;" :value="100"></progressSegment>
  129. </div>
  130. <!-- 14 -->
  131. <div class="export">
  132. <img class="img fg" :src="configList.report_page_14" crossorigin=anonymous />
  133. <div class="text text-13" style="top: 94rpx; left: 74rpx;">同学寄语同学寄语同学寄语同学寄语同学寄语同学寄语同学寄语同学寄语</div>
  134. <div class="text text-13" style="top: 162rpx; left: 248rpx;">导师寄语导师寄语导师寄语导师寄语导师寄语导师寄语导师寄语导师寄语导师寄语</div>
  135. </div>
  136. <!-- 15 -->
  137. <div class="export">
  138. <img class="img fg" style="top: 28rpx; left: unset; right: 18rpx; width: 316rpx; height: 244rpx;" src="@/static/image/temp-20.png" crossorigin=anonymous />
  139. <img class="img fg" :src="configList.report_page_15" crossorigin=anonymous />
  140. </div>
  141. <!-- 00 -->
  142. <div class="export">
  143. <img class="img fg" :src="configList.report_page_00" crossorigin=anonymous />
  144. </div>
  145. </div>
  146. </div>
  147. <!-- <img v-if="current > 0" class="img turn left" src="@/static/image/icon-left.png" @click="prev" />
  148. <img v-if="current < 15" class="img turn right" src="@/static/image/icon-right.png" @click="next" /> -->
  149. </div>
  150. </template>
  151. <script>
  152. // import html2canvas from 'html2canvas'
  153. import html2canvas from '@wtto00/html2canvas'
  154. import { jsPDF } from "jspdf";
  155. import progressSegment from '@/components/progressSegment.vue';
  156. export default {
  157. components: {
  158. progressSegment,
  159. },
  160. data() {
  161. return {
  162. mode: null,
  163. id: null,
  164. details: {},
  165. current: 0,
  166. }
  167. },
  168. computed: {
  169. style() {
  170. // return `transform: translateX(calc(-${this.current}*(100vh * 841.89 / 595.28)))`
  171. },
  172. },
  173. onLoad(arg) {
  174. document.addEventListener('UniAppJSBridgeReady', function() {
  175. console.log('UniAppJSBridgeReady', uni)
  176. uni.getEnv(function(res) {
  177. console.log('当前环境:' + JSON.stringify(res));
  178. });
  179. })
  180. const { id, mode, token } = arg
  181. token && uni.setStorageSync('token', token)
  182. this.id = id
  183. this.mode = mode
  184. },
  185. async mounted() {
  186. await this.getData(this.id)
  187. console.log('mode', this.mode)
  188. if (this.mode === 'export') {
  189. // todo: await load image
  190. setTimeout(() => {
  191. this.createPdf()
  192. }, 3000)
  193. }
  194. },
  195. methods: {
  196. async getData(id) {
  197. // todo
  198. },
  199. prev() {
  200. this.current -= 1
  201. },
  202. next() {
  203. this.current += 1
  204. },
  205. async upload(pdfBlob) {
  206. const pdfUrl = URL.createObjectURL(pdfBlob);
  207. const url = await this.$Oss.ossUpload(pdfUrl)
  208. console.log('ossUpload', url)
  209. return url
  210. },
  211. createPdf() {
  212. uni.showLoading({
  213. title: '生成中...'
  214. })
  215. console.log('createPdf')
  216. const fillPage = () => {
  217. // 设置背景色
  218. PDF.setFillColor(251, 254, 255); // 例如,红色背景
  219. // 绘制一个填充的矩形覆盖整个页面
  220. PDF.rect(0, 0, PDF.internal.pageSize.getWidth(), PDF.internal.pageSize.getHeight(), 'F'); // 'F'表示填充
  221. }
  222. let PDF = new jsPDF('l', 'pt', 'a4')
  223. console.log('PDF', PDF)
  224. console.log('size', PDF.internal.pageSize.getWidth(), PDF.internal.pageSize.getHeight())
  225. const WIDTH = PDF.internal.pageSize.getWidth() // 841.89
  226. const HEIGHT = PDF.internal.pageSize.getHeight() // 595.28
  227. let request = []
  228. let nodeList = document.querySelectorAll('.export')
  229. for(let i = 0; i < nodeList.length; i++) {
  230. request.push(html2canvas(nodeList[i], { allowTaint: true, useCORS: true, }))
  231. }
  232. return Promise.allSettled(request).then(res => {
  233. console.log('res', res)
  234. fillPage()
  235. res.forEach((item, index) => {
  236. if (index > 0) {
  237. PDF.addPage()
  238. fillPage()
  239. }
  240. const canvas = item.value
  241. let pageData = canvas.toDataURL('image/jpeg', 1.0)
  242. PDF.addImage(pageData, 'JPEG', 0, 0, WIDTH, HEIGHT)
  243. })
  244. // 将 PDF 文件转换为 Blob 对象
  245. const pdfBlob = PDF.output('blob');
  246. return this.upload(pdfBlob)
  247. }).then(pdfUrl => {
  248. this.$jWeixin.miniProgram.postMessage({
  249. data: pdfUrl
  250. });
  251. // this.$jWeixin.miniProgram.navigateBack()
  252. this.$jWeixin.miniProgram.redirectTo({
  253. url: `/pages_order/growing/activity/applyEmail?id=${this.id}&pdfUrl=${pdfUrl}`
  254. })
  255. }).catch(err => {
  256. console.log('err', err)
  257. }).finally(() => {
  258. uni.hideLoading()
  259. })
  260. },
  261. }
  262. }
  263. </script>
  264. <style lang="scss" scoped>
  265. $pages: 16;
  266. // $w: calc(100vw - 24rpx * 2);
  267. // $h: calc(#{$w} / 841.89 * 595.28);
  268. $h: 100vh;
  269. $w: calc(#{$h} * 841.89 / 595.28);
  270. .page__view {
  271. width: 100vw;
  272. min-height: 100vh;
  273. background: #F7F8FA;
  274. position: relative;
  275. box-sizing: border-box;
  276. font-family: PingFang SC;
  277. font-weight: 400;
  278. line-height: 1.4;
  279. }
  280. .card {
  281. // padding: 0 calc((100vw - #{$w}) / 2);
  282. overflow-x: auto;
  283. // position: absolute;
  284. // top: 50vh;
  285. // transform: translateY(-50%);
  286. // width: $w;
  287. // margin: 0 24rpx;
  288. // padding: 250rpx 0;
  289. // overflow: hidden;
  290. // background: #FFFFFF;
  291. }
  292. .report {
  293. width: calc(#{$pages}*#{$w});
  294. height: 100vh;
  295. // overflow-x: visible;
  296. padding: 0 calc((100vw - #{$w}) / 2);
  297. // overflow-x: auto;
  298. overflow-y: hidden;
  299. }
  300. .export {
  301. position: relative;
  302. display: inline-block;
  303. width: $w;
  304. min-height: $h;
  305. overflow: hidden;
  306. }
  307. .fg {
  308. position: absolute;
  309. top: 0;
  310. left: 0;
  311. }
  312. .img {
  313. display: block;
  314. width: $w;
  315. height: auto;
  316. object-fit: cover;
  317. &-08 {
  318. width: auto;
  319. height: $h;
  320. }
  321. }
  322. .text {
  323. position: absolute;
  324. font-size: 16rpx;
  325. font-weight: 600;
  326. color: #FFFFFF;
  327. &-5 {
  328. font-size: 8rpx;
  329. color: #000000;
  330. }
  331. &-12 {
  332. font-size: 8rpx;
  333. color: #000000;
  334. }
  335. &-13 {
  336. width: 118rpx;
  337. white-space: pre-wrap;
  338. font-size: 8rpx;
  339. color: #000000;
  340. }
  341. }
  342. .progress {
  343. position: absolute;
  344. width: 200rpx;
  345. }
  346. // .export__view {
  347. // position: fixed;
  348. // top: 100vh;
  349. // }
  350. .turn {
  351. width: 80rpx;
  352. height: 80rpx;
  353. position: fixed;
  354. top: 50vh;
  355. transform: translateY(-50%);
  356. &.left {
  357. left: 0;
  358. }
  359. &.right {
  360. right: 0;
  361. }
  362. }
  363. .bottom {
  364. position: fixed;
  365. left: 0;
  366. bottom: 0;
  367. width: 100vw;
  368. background: #FFFFFF;
  369. box-sizing: border-box;
  370. padding: 32rpx 40rpx;
  371. padding-bottom: calc(env(safe-area-inset-bottom) + 32rpx);
  372. box-sizing: border-box;
  373. .btn {
  374. width: 100%;
  375. padding: 14rpx 0;
  376. font-family: PingFang SC;
  377. font-weight: 500;
  378. font-size: 36rpx;
  379. line-height: 1.4;
  380. color: #FFFFFF;
  381. background: linear-gradient(to right, #21FEEC, #019AF9);
  382. border: 2rpx solid #00A9FF;
  383. border-radius: 41rpx;
  384. }
  385. }
  386. </style>