sign.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. <template>
  2. <view class="content">
  3. <view class="team" v-if="!is_over">
  4. <image class="top-image" :src="list.img"></image>
  5. <!-- <view class="box">
  6. <jyf-parser :html="description" ref="article"></jyf-parser>
  7. </view> -->
  8. <view class="top-title canten">报名</view>
  9. <view class="sign-tip">完成信息填写,即可参加红十字会救护员培训</view>
  10. <view class="form-box" v-if="type == 0">
  11. <view class="label">
  12. 姓名
  13. <text>*</text>
  14. </view>
  15. <input type="text" v-model="name" placeholder="请填写姓名" />
  16. <view class="label">
  17. 性别
  18. <text>*</text>
  19. </view>
  20. <picker @change="bindPickerSex" :value="sex" :range="array" class="box-right">
  21. <view class="placeholder" v-if="sex === ''">请输入您的性别</view>
  22. <text>{{ sex }}</text>
  23. </picker>
  24. <view class="label">
  25. 身份证
  26. <text>*</text>
  27. </view>
  28. <input type="text" v-model="card_id" placeholder="请填写身份证号" />
  29. <view class="label">
  30. 联系方式
  31. <text>*</text>
  32. </view>
  33. <input type="number" v-model="phone" placeholder="请输入联系方式" />
  34. <view class="label">工作单位(选填)</view>
  35. <input type="text" v-model="work" placeholder="请输入工作单位" />
  36. <view class="label">
  37. 地址
  38. <text>*</text>
  39. </view>
  40. <input type="text" v-model="addr" placeholder="请输入联系地址" />
  41. <view class="upload-box">
  42. <view class="label">
  43. 照片
  44. <text>*</text>
  45. </view>
  46. <view class="upload-right">
  47. <image :src="image" mode="" class="upload-img" @click.stop="imgsub" v-if="image"></image>
  48. <image src="../../static/images/upload.png" class="upload-img" mode="" v-if="!image" @click.stop="imgsub"></image>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="form-box" v-if="type == 1">
  53. <view class="label">
  54. 企业名称
  55. <text>*</text>
  56. </view>
  57. <input type="text" v-model="company" placeholder="请填写企业名称" />
  58. <view class="label">
  59. 企业地址
  60. <text>*</text>
  61. </view>
  62. <input type="text" v-model="address" placeholder="请填写企业地址" />
  63. <view class="label">
  64. 负责人姓名
  65. <text>*</text>
  66. </view>
  67. <input type="text" v-model="companyName" placeholder="请填写负责人姓名" />
  68. <view class="label">
  69. 性别
  70. <text>*</text>
  71. </view>
  72. <picker @change="bindPickerSex" :value="sex" :range="array" class="box-right">
  73. <view class="placeholder" v-if="sex === ''">请输入负责人的性别</view>
  74. <text>{{ sex }}</text>
  75. </picker>
  76. <view class="label">
  77. 身份证
  78. <text>*</text>
  79. </view>
  80. <input type="text" v-model="card_id" placeholder="请填写负责人的身份证号" />
  81. <view class="label">
  82. 联系方式
  83. <text>*</text>
  84. </view>
  85. <input type="number" v-model="companyphone" placeholder="请输入联系方式" />
  86. <view class="label">
  87. 参加培训人数
  88. <text>*</text>
  89. </view>
  90. <input type="number" v-model="num" placeholder="请输入参加培训人数" />
  91. <view class="upload-box">
  92. <view class="label">
  93. 照片
  94. <text>*</text>
  95. </view>
  96. <view class="upload-right">
  97. <image :src="image" mode="" class="upload-img" @click.stop="imgsub" v-if="image"></image>
  98. <image src="../../static/images/upload.png" class="upload-img" mode="" v-if="!image" @click.stop="imgsub"></image>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="top-title">报名</view>
  103. <view class="text-box">
  104. <view class="text">请参训学员在培训当天携带身份证复印件1张,一寸证件照2张。</view>
  105. <view class="text">报名咨询电话:027-60229380</view>
  106. </view>
  107. <view class="submit" @click="submit">立即报名</view>
  108. </view>
  109. <view class="certificates" v-if="is_over">
  110. <canvas v-if="showcanvas" id="qrShareBox" canvas-id="qrShareBox" class="tki-qrcode-canvas" />
  111. <image class="imgbox" v-else :src="img" mode=" aspectFill"></image>
  112. </view>
  113. </view>
  114. </template>
  115. <script>
  116. import { get_training, sign_training, detail_training } from '@/api/train.js';
  117. import jyfParser from '@/components/jyf-parser/jyf-parser';
  118. import { weixindata, weixinlocation } from '@/utils/wxAuthorized.js';
  119. import { userinfo } from '@/api/user.js';
  120. import { mapState, mapMutations } from 'vuex';
  121. import { upload } from '@/api/ask.js';
  122. export default {
  123. components: {
  124. jyfParser
  125. },
  126. data() {
  127. return {
  128. array: ['男', '女'],
  129. is_over: 1,
  130. type: '', //0是个人报名,1是团体报名
  131. id: '',
  132. description: '',
  133. list: '',
  134. //个人
  135. name: '',
  136. phone: '',
  137. addr: '',
  138. work: '',
  139. //团队
  140. company: '',
  141. address: '',
  142. companyName: '',
  143. companyphone: '',
  144. num: '',
  145. people: '鄂州市红十字会',
  146. signDate: '',
  147. loading: true, //是否载入图片中
  148. size: 180,
  149. ratio: 1, //页面比例用于计算
  150. canHeight: '',
  151. canWeidth: '',
  152. url: '',
  153. img: '',
  154. showcanvas: true,
  155. uid: '',
  156. sex: '',
  157. card_id: '',
  158. image: '',
  159. cardId: '',
  160. no:'',
  161. };
  162. },
  163. onLoad(option) {
  164. this.type = option.type;
  165. this.id = option.id;
  166. if (option.uid) {
  167. this.uid = option.uid;
  168. } else {
  169. this.uid = this.userInfo.uid;
  170. }
  171. this.IndexShare();
  172. this.loadData();
  173. detail_training({
  174. id:this.id,
  175. }).then(({data}) => {
  176. console.log(999,data)
  177. this.name = data.name
  178. this.signDate = data.add_time
  179. this.is_over = data.is_over
  180. this.cardId = data.card_id
  181. this.no = data.no
  182. if (data.sex == 0){
  183. this.sex = '男'
  184. }else if (data.sex == 1){
  185. this.sex == '女'
  186. }
  187. this.image = data.img
  188. console.log(3,data.add_time)
  189. let obj = this;
  190. let name = obj.name
  191. let signDate = getRecTime(obj.signDate,'yyyy-MM-dd')
  192. function getRecTime(timestamp, fmt) {
  193. let d = new Date(timestamp * 1000)
  194. // f = fmt || 'yyyy/MM/dd',
  195. let f = fmt || 'yyyy.MM.dd'
  196. let o = {
  197. 'M+': d.getMonth() + 1, //月份
  198. 'd+': d.getDate(), //日
  199. 'h+': d.getHours(), //小时
  200. 'm+': d.getMinutes(), //分
  201. 's+': d.getSeconds(), //秒
  202. 'q+': Math.floor((d.getMonth() + 3) / 3), //季度
  203. 'S': d.getMilliseconds() //毫秒
  204. };
  205. if (/(y+)/.test(f)) {
  206. f = f.replace(RegExp.$1, (d.getFullYear() + '').substr(4 - RegExp.$1.length));
  207. }
  208. for (let k in o) {
  209. if (new RegExp('(' + k + ')').test(f)) {
  210. f = f.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)));
  211. }
  212. }
  213. return f;
  214. console.log(f)
  215. }
  216. let m = getRecTime(signDate)
  217. let query = uni.createSelectorQuery();
  218. // this.loadData();
  219. // 获取页面比例
  220. query
  221. .select('.certificates')
  222. .fields({
  223. size: true
  224. },
  225. e => {
  226. console.log('获取页面比例',e)
  227. // 保存比例
  228. this.ratio = e.width / 750;
  229. }
  230. )
  231. .exec();
  232. // 获取画布宽高信息
  233. query
  234. .select('#qrShareBox')
  235. .fields({
  236. size: true
  237. },
  238. e => {
  239. console.log('获取画布宽高信息',e)
  240. obj.canHeight = e.height;
  241. obj.canWeidth = e.width;
  242. }
  243. )
  244. .exec();
  245. let ctxBg1 = '/index/static/img/graduation.jpg'
  246. let ctxBg = '/index/static/img/graduationB.jpg'; //画布背景
  247. let context = uni.createCanvasContext('qrShareBox');
  248. // 插入背景图片
  249. context.drawImage(ctxBg1, 0, 0, obj.canWeidth , 500*obj.ratio);
  250. context.drawImage(obj.image, 60 * obj.ratio, 205 * obj.ratio,150*obj.ratio , 200*obj.ratio);
  251. context.drawImage(ctxBg, 0, 640*obj.ratio, obj.canWeidth , 500*obj.ratio);
  252. // // 插入文字
  253. context.setFontSize(22 * obj.ratio);
  254. context.fillText(obj.name,340 * obj.ratio,205 * obj.ratio)
  255. context.fillText(obj.sex,540 * obj.ratio,205 * obj.ratio)
  256. context.fillText(obj.cardId,370 * obj.ratio,280 * obj.ratio)
  257. context.fillText(obj.no,370 * obj.ratio,345 * obj.ratio)
  258. context.fillText(signDate,370 * obj.ratio,410 * obj.ratio)
  259. context.fillText("三 年",560 * obj.ratio,410 * obj.ratio)
  260. context.draw(false,(e) => {
  261. uni.canvasToTempFilePath({
  262. x: 0,
  263. y: 0,
  264. width: obj.canWeidth,
  265. height: obj.canHeight,
  266. destWidth: obj.canWeidth,
  267. destHeight: obj.canHeight,
  268. canvasId: 'qrShareBox',
  269. success: function(res) {
  270. console.log(res)
  271. // uni.showModal({
  272. // title:'zhi1'
  273. // })
  274. // 在H5平台下,tempFilePath 为 base64
  275. // console.log(res.tempFilePath)
  276. obj.showcanvas = false;
  277. obj.img = res.tempFilePath
  278. }
  279. })
  280. })
  281. })
  282. },
  283. onReady() {},
  284. computed: {
  285. ...mapState('user', ['hasLogin', 'userInfo'])
  286. },
  287. methods: {
  288. ...mapMutations('user', ['setUserInfo']),
  289. // 分享
  290. IndexShare() {
  291. let obj = this;
  292. let item = {
  293. link: 'http://ez.igxys.com/index/#/pages/train/sign?type=' + obj.type + '&id=' + obj.id + '&uid=' + obj.userInfo.uid, // 分享链接
  294. imgUrl: 'http://ez.igxys.com/index/static/img/002.png',
  295. desc: '结业证书',
  296. title: '鄂州市红十字会'
  297. };
  298. console.log('分享加', item);
  299. weixindata(item);
  300. },
  301. async loadData() {
  302. let obj = this;
  303. console.log('当前is_over', obj.is_over);
  304. if (obj.is_over == 1) {
  305. let uid = obj.userInfo.uid;
  306. console.log(9090, uid);
  307. }
  308. get_training({
  309. id: obj.id
  310. // uid:uid
  311. }).then(({ data }) => {
  312. obj.list = data;
  313. console.log(9988, data);
  314. if (obj.list.content != null) {
  315. obj.description = obj.list.content.replace(/<img/g, "<img style='max-width:100%;height:auto;'");
  316. }
  317. });
  318. },
  319. imgsub() {
  320. console.log('imgsub');
  321. upload({
  322. filename: ''
  323. }).then(data => {
  324. this.image = data[0].url;
  325. });
  326. },
  327. // 选择性别
  328. bindPickerSex: function(e) {
  329. console.log(this.array[e.target.value]);
  330. this.sex = this.array[e.target.value];
  331. this.index = e.target.value + 1;
  332. },
  333. submit() {
  334. let obj = this;
  335. let data = {};
  336. if (obj.type == 0) {
  337. if (!obj.name) {
  338. obj.$api.msg('请填写姓名!');
  339. return;
  340. }
  341. if (!obj.sex){
  342. obj.$api.msg('请选择性别!');
  343. return;
  344. }
  345. if (!obj.card_id){
  346. obj.$api.msg('请输入身份证号!');
  347. return;
  348. }
  349. let reg1 = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;
  350. if (!reg1.test(obj.card_id)) {
  351. obj.$api.msg('请填写正确的身份证信息');
  352. return;
  353. }
  354. if (!obj.phone) {
  355. obj.$api.msg('请输入联系方式!');
  356. return;
  357. }
  358. if (!obj.addr) {
  359. obj.$api.msg('请输入联系地址!');
  360. return;
  361. }
  362. if (!obj.image){
  363. obj.$api.msg('请上传照片!');
  364. return;
  365. }
  366. if( obj.sex == '男'){
  367. obj.sex = 0
  368. }else {
  369. obj.sex = 1
  370. }
  371. data = {
  372. name: obj.name,
  373. work: obj.addr,
  374. phone: obj.phone,
  375. card_id: obj.card_id,
  376. img: obj.image,
  377. sex: obj.sex,
  378. tid: obj.id,
  379. type: 0
  380. };
  381. }
  382. if (obj.type == 1) {
  383. if (!obj.company) {
  384. obj.$api.msg('请填写企业名称!');
  385. return;
  386. }
  387. if (!obj.address) {
  388. obj.$api.msg('请填写企业地址!');
  389. return;
  390. }
  391. if (!obj.companyName) {
  392. obj.$api.msg('请填写负责人姓名!');
  393. return;
  394. }
  395. if (!obj.sex){
  396. obj.$api.msg('请选择负责人性别!');
  397. return;
  398. }
  399. if (!obj.card_id){
  400. obj.$api.msg('请输入负责人身份证号!');
  401. return;
  402. }
  403. let reg1 = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;
  404. if (!reg1.test(obj.card_id)) {
  405. obj.$api.msg('请填写正确的身份证信息');
  406. return;
  407. }
  408. if (!obj.companyphone) {
  409. obj.$api.msg('请输入联系方式!');
  410. return;
  411. }
  412. if (!obj.num) {
  413. obj.$api.msg('请输入参加培训人数!');
  414. return;
  415. }
  416. if (!obj.image){
  417. obj.$api.msg('请上传照片!');
  418. return;
  419. }
  420. data = {
  421. company: obj.company,
  422. address: obj.address,
  423. name: obj.companyName,
  424. phone: obj.companyphone,
  425. num: obj.num,
  426. card_id: obj.card_id,
  427. img: obj.image,
  428. sex: obj.sex,
  429. tid: obj.id,
  430. type: 1
  431. };
  432. }
  433. sign_training(data)
  434. .then(function(e) {
  435. console.log(data.type);
  436. let type = data.type;
  437. uni.setStorageSync('type', type);
  438. obj.$api.msg(e.msg);
  439. setTimeout(function() {
  440. uni.navigateTo({
  441. url: '/pages/train/index'
  442. });
  443. }, 1000);
  444. })
  445. .catch(e => {
  446. obj.$api.msg(e.message);
  447. setTimeout(function() {
  448. uni.navigateTo({
  449. url: '/pages/train/index'
  450. });
  451. }, 1000);
  452. });
  453. },
  454. getRecTime(timestamp, fmt) {
  455. let d = new Date(timestamp * 1000),
  456. // f = fmt || 'yyyy/MM/dd',
  457. f = fmt || 'yyyy.MM.dd hh:mm:ss',
  458. o = {
  459. 'M+': d.getMonth() + 1, //月份
  460. 'd+': d.getDate(), //日
  461. 'h+': d.getHours(), //小时
  462. 'm+': d.getMinutes(), //分
  463. 's+': d.getSeconds(), //秒
  464. 'q+': Math.floor((d.getMonth() + 3) / 3), //季度
  465. S: d.getMilliseconds() //毫秒
  466. };
  467. if (/(y+)/.test(f)) {
  468. f = f.replace(RegExp.$1, (d.getFullYear() + '').substr(4 - RegExp.$1.length));
  469. }
  470. for (let k in o) {
  471. if (new RegExp('(' + k + ')').test(f)) {
  472. f = f.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  473. }
  474. }
  475. return f;
  476. console.log(f);
  477. }
  478. }
  479. };
  480. </script>
  481. <style lang="scss">
  482. page {
  483. background: #ffffff;
  484. width: 100%;
  485. height: 100%;
  486. .content {
  487. height: 100%;
  488. }
  489. }
  490. .box {
  491. padding: 0rpx 25rpx;
  492. width: 100%;
  493. }
  494. .top-image {
  495. width: 100%;
  496. height: 300rpx;
  497. }
  498. .top-title {
  499. width: 100%;
  500. text-align: center;
  501. padding: 25rpx 0rpx;
  502. font-size: 34rpx;
  503. border-bottom: 1rpx dashed #b5b5b5;
  504. }
  505. .canten {
  506. text-align: center !important;
  507. }
  508. .addr {
  509. color: #222222;
  510. font-size: 28rpx;
  511. padding: 25rpx 35rpx;
  512. }
  513. .text-box {
  514. padding: 25rpx 25rpx;
  515. padding-bottom: 0rpx !important;
  516. }
  517. .text {
  518. color: #222222;
  519. font-size: 28rpx;
  520. padding-bottom: 15rpx;
  521. }
  522. .weixin-icon {
  523. width: 100%;
  524. text-align: center;
  525. padding-top: 45rpx;
  526. image {
  527. width: 248rpx;
  528. height: 248rpx;
  529. }
  530. }
  531. .tip {
  532. color: #222222;
  533. font-size: 28rpx;
  534. width: 100%;
  535. text-align: center;
  536. padding-bottom: 50rpx;
  537. }
  538. .sign-tip {
  539. padding: 25rpx 0rpx;
  540. text-align: center;
  541. color: #222222;
  542. font-size: 28rpx;
  543. }
  544. .form-box {
  545. padding: 0rpx 35rpx;
  546. .label {
  547. font-size: 34rpx;
  548. padding: 25rpx 0rpx;
  549. text {
  550. color: #e62129;
  551. padding-left: 5rpx;
  552. }
  553. }
  554. input {
  555. font-size: 28rpx;
  556. color: #222222;
  557. border: 2rpx solid #979797;
  558. padding: 0rpx 15rpx;
  559. border-radius: 15rpx;
  560. height: 80rpx;
  561. }
  562. }
  563. .submit {
  564. width: 70%;
  565. margin: 0rpx auto;
  566. margin-top: 80rpx;
  567. margin-bottom: 80rpx;
  568. padding: 25rpx 0;
  569. text-align: center;
  570. background-color: #e62129;
  571. color: #ffffff;
  572. font-size: 32rpx;
  573. border-radius: 10rpx;
  574. }
  575. .grey {
  576. background-color: #9b9b9b !important;
  577. }
  578. .certificates {
  579. // padding: 24rpx;
  580. width: 100%;
  581. height: 100vh;
  582. }
  583. .tki-qrcode-canvas {
  584. // width: 700rpx;
  585. // height: 1245rpx;
  586. width: 750rpx;
  587. // padding: 32rpx;
  588. height: 1350rpx;
  589. margin: 0 auto;
  590. }
  591. .bgimg {
  592. width: 100%;
  593. height: 100%;
  594. image {
  595. width: 100%;
  596. height: 100%;
  597. }
  598. }
  599. .box-mian {
  600. width: 100%;
  601. height: 100%;
  602. position: absolute;
  603. padding: 380rpx 94rpx 200rpx 94rpx;
  604. color: #333;
  605. left: 0;
  606. top: 0;
  607. display: flex;
  608. flex-direction: column;
  609. justify-content: center;
  610. // align-items: center;
  611. .name {
  612. display: flex;
  613. font-size: 32rpx;
  614. .name-left {
  615. text-align: center;
  616. // padding: 0 24rpx;
  617. width: 150rpx;
  618. border-bottom: 2rpx solid #333;
  619. }
  620. }
  621. .info {
  622. margin-top: 68rpx;
  623. text-indent: 64rpx;
  624. line-height: 58rpx;
  625. }
  626. .signName {
  627. margin-top: 32rpx;
  628. display: flex;
  629. .signName-left {
  630. line-height: 34rpx;
  631. .signName-1 {
  632. }
  633. .signName-2 {
  634. font-size: 28rpx;
  635. }
  636. }
  637. .signName-right {
  638. text-align: left;
  639. // width: 100%;
  640. padding: 0 12rpx;
  641. margin-left: 12rpx;
  642. // width: 288rpx;
  643. border-bottom: 2rpx solid #333;
  644. // margin-bottom: 12rpx;
  645. .list-input {
  646. width: 100%;
  647. padding: 0 12rpx;
  648. height: 70rpx;
  649. font-size: 32rpx;
  650. text-align: left;
  651. }
  652. .signDate {
  653. display: flex;
  654. align-items: center;
  655. }
  656. }
  657. }
  658. .signDate {
  659. margin-top: 22rpx;
  660. display: flex;
  661. .signName-left {
  662. line-height: 34rpx;
  663. .signName-1 {
  664. }
  665. .signName-2 {
  666. font-size: 28rpx;
  667. }
  668. }
  669. .signName-right {
  670. text-align: left;
  671. padding-left: 12rpx;
  672. margin-left: 12rpx;
  673. width: 288rpx;
  674. border-bottom: 2rpx solid #333;
  675. .list-input {
  676. height: 70rpx;
  677. font-size: 32rpx;
  678. text-align: left;
  679. }
  680. // margin-bottom: 12rpx;
  681. }
  682. }
  683. // background-color: pink;
  684. }
  685. .imgbox {
  686. height: 1350rpx;
  687. width: 750rpx;
  688. }
  689. .upload-right {
  690. flex: 1;
  691. display: flex;
  692. align-items: center;
  693. justify-content: center;
  694. .upload-img {
  695. width: 160rpx;
  696. height: 160rpx;
  697. margin-top: 24rpx;
  698. }
  699. }
  700. .box-right{
  701. font-size: 28rpx;
  702. color: #222222;
  703. border: 2rpx solid #979797;
  704. padding: 0rpx 15rpx;
  705. border-radius: 15rpx;
  706. height: 80rpx;
  707. line-height: 80rpx;
  708. }
  709. </style>