face.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. <template>
  2. <view class="facebox">
  3. <view class="flex1">
  4. <view class="errortext"><text v-if="errortext != ''">{{ errortext }}</text></view>
  5. <view class="faces" id="show-content">
  6. <image :src="lines" class="lines"></image>
  7. <video class="facevideo"
  8. src=""
  9.         id="video"
  10.         :style="{ width: vwidth + 'px',height: vheight + 'px', display:showVideo}"
  11.         playsinline
  12.         webkit-playsinline
  13. autoplay = true
  14. muted = true
  15. loop = true
  16. controls = false
  17. show-center-play-btn = false
  18. object-fit = fill
  19.       ></video>
  20. <!-- <view class="tit">请保持不动</view> -->
  21. </view>
  22. <!-- <video></video> -->
  23. </view>
  24. <view class='photitp flexccc'>
  25. <view >请把脸移入框内并保持不动</view>
  26. <image :src="phoimg"></image>
  27. </view>
  28. <!-- 640 488 -->
  29. <!-- <view class="button-view" :style="{ display:(openCamera == true?'flex':'none')}">
  30. <view class="click-button" v-if="startVideoStatus == false">
  31. <view class="button-btn button-btn2" style="background-color: #0b4da2;" @tap.bind="startVideo">同意协议,开始拍摄</view>
  32. </view>
  33. </view> -->
  34. </view>
  35. </template>
  36. <script>
  37. import { uploadPhoto } from '@/api/system/user.js';
  38. import $ from "@/static/collect_face/jquery2.3.js";
  39. import faceFilter from "@/static/neuralNets/jeelizFaceFilter.module.js";
  40. import JeelizCanvas2DHelper from "@/static/neuralNets/JeelizCanvas2DHelper.js";
  41. // 引入uni.webview.1.5.2.js
  42. import '@/static/js/uni.webview.1.5.4.js'
  43. let VIDEOELEMENT = null;
  44. var CVD = null; // return of Canvas2DDisplay
  45. export default{
  46. data(){
  47. return{
  48. phoimg:require('@/static/images/order/come/phoimg.png'),
  49. lines:require('@/static/images/order/come/faceline.png'),
  50. vwidth:215,//215 215
  51. vheight:215,
  52. isTest:false,
  53. againCount:0,
  54. showUserName:'',
  55. openCamera:false,
  56. screenSize:{
  57. width: window.screen.width,
  58. height: window.screen.height,
  59. },
  60. scanTip:'',
  61. // errortext:'点击同意按钮开始拍摄',
  62. errortext:'请保持不动',
  63. uploadHeadImg:'',
  64. imgUrl:'',
  65. pauseStatus:false,
  66. startCut:false,
  67. faceCoo:null,
  68. detectState:null,
  69. showVideo:'block',
  70. appendCss:false,
  71. bgImgClass:'home_wai',
  72. bgImgClass2:'home_nei',
  73. mediaStreamTrack:null,
  74. startVideoStatus:false,
  75. useCamera:'qian', //qian代表前置摄像头 hou代表后置摄像头
  76. }
  77. },
  78. onLoad(params) {
  79. if(params.username)
  80. {
  81. this.showUserName = params.username;
  82. }
  83. if(faceFilter && typeof faceFilter.toggle_pause == 'function')
  84. {
  85. faceFilter.destroy();
  86. }
  87. var that = this;//a
  88. that.startVideo()
  89. setTimeout(function(){
  90. //初始化的时候给追加上canvas用作载体
  91. if($('#jeeFaceFilterCanvas').html() == undefined)
  92. {
  93. $('#show-content').append('<canvas class="appendcanvas" width="'+that.vwidth+'" height="'+that.vheight+'" id="jeeFaceFilterCanvas"></canvas>');
  94. }
  95. if($('#jeeFaceFilterCanvas2').html() == undefined)
  96. {
  97. $('#show-content').append('<canvas class="appendcanvas appendcanvas2" width="'+that.vwidth+'" height="'+that.vheight+'" id="jeeFaceFilterCanvas2"></canvas>');
  98. }
  99. if(that.appendCss == false)
  100. {
  101. $('uni-page-body').append(`<style>
  102. #jeeFaceFilterCanvas{
  103. display:none;
  104. }
  105. #jeeFaceFilterCanvas2{
  106. display:none;
  107. border-radius:50%
  108. }
  109. .uni-video-bar{
  110. display:none !important; //去除底部菜单栏
  111. }
  112. .uni-video-cover{
  113. display:none !important; //去除中间播放按钮
  114. }
  115. video{
  116. transform: rotateY(180deg);
  117. -webkit-transform: rotateY(180deg); /* Safari 和 Chrome */
  118. -moz-transform: rotateY(180deg);
  119. border-radius:50% !important;
  120. }
  121. .uni-video-container{border-radius:50% !important;}
  122. .uni-video-video{border-radius:50% !important;}
  123. .uni-video-cover-play-button{display:none !important; }
  124. .uni-video-cover-duration{display:none !important; }
  125. </style>`);
  126. that.appendCss = true;
  127. }
  128. //uniapp编译过后无法获取video的dom,此处追加id
  129. $('#video').find('video').prop('id','myVideo');
  130. //$('#refCanvas').find('canvas').prop('id','jeeFaceFilterCanvas');
  131. if(that.isTest == true)
  132. {
  133. //是否是测试环境 测试环境直接调用视频
  134. that.openCamera = true;
  135. that.main();
  136. }else{
  137. that.openCamera = true;
  138. that.bgImgClass = 'home_wai remove_animation';
  139. that.bgImgClass2 = 'home_nei remove_animation';
  140. that.errortext = '请保持不动';
  141. }
  142. },100)
  143. },
  144. onUnload(){
  145. this.closeVideo();
  146. },
  147. methods: {
  148. closeVideo(){
  149. try{
  150. //页面卸载的时候关闭视频播放
  151. if(this.mediaStreamTrack)
  152. {
  153. this.mediaStreamTrack.getTracks()[0].stop();
  154. }
  155. }catch{
  156. console.log('close mediaStreamTrack error')
  157. }
  158. try{
  159. const video = document.getElementsByClassName('uni-video-video')[0];
  160. video.srcObject = null;
  161. }catch{
  162. console.log('close video.srcObject error')
  163. }
  164. try{
  165. faceFilter.toggle_pause(true);
  166. faceFilter.destroy(); //销毁注册对象
  167. }catch{
  168. console.log('close faceFilter toggle_pause error')
  169. }
  170. },
  171. changeUserCamera(type){
  172. this.useCamera = type;
  173. if(type == 'hou')
  174. {
  175. $('uni-page-body').append(`<style>
  176. video{
  177. transform: rotateY(0deg);
  178. -webkit-transform: rotateY(0deg); /* Safari 和 Chrome */
  179. -moz-transform: rotateY(0deg);
  180. border-radius:50% !important;
  181. }
  182. </style>`);
  183. }else{
  184. $('uni-page-body').append(`<style>
  185. video{
  186. transform: rotateY(180deg);
  187. -webkit-transform: rotateY(180deg); /* Safari 和 Chrome */
  188. -moz-transform: rotateY(180deg);
  189. border-radius:50% !important;
  190. }
  191. </style>`);
  192. }
  193. this.playVideo();
  194. },
  195. startVideo(){
  196. // var imgsur='/profile/upload/2025/03/20/1742462163358_20250320171603A001.jpeg'
  197. // uni.$emit('refreshFace',imgsur)
  198. // uni.navigateBack({
  199. // delta:1
  200. // })
  201. // // http://10.90.90.53:8065/profile/upload/2025/03/20/1742462163358_20250320171603A001.jpeg
  202. // return
  203. if(this.startVideoStatus == false)
  204. {
  205. this.playVideo();
  206. //faceFilter.toggle_pause(false); //取消暂停
  207. }else{
  208. if(this.pauseStatus == false)
  209. {
  210. this.$api.msg('当前正在拍照');
  211. return;
  212. }
  213. this.savePause(false)
  214. }
  215. },
  216. savePause(status){
  217. this.uploadHeadImg = '';
  218. this.imgUrl = '';
  219. this.pauseStatus = status;
  220. if(status == false)
  221. {
  222. this.startCut = false;
  223. this.bgImgClass = 'home_wai';
  224. this.bgImgClass2 = 'home_nei';
  225. this.showVideo = 'none';
  226. //$('#jeeFaceFilterCanvas').hide();
  227. $('#jeeFaceFilterCanvas2').hide();
  228. }else{
  229. this.showVideo = 'block';
  230. //$('#jeeFaceFilterCanvas').show();
  231. $('#jeeFaceFilterCanvas2').hide();
  232. }
  233. //console.log(status)
  234. //true 暂停 false 继续执行
  235. faceFilter.toggle_pause(status);
  236. },
  237. playVideo() {
  238. var that = this;
  239. that.uploadHeadImg = '';
  240. that.imgUrl = '';
  241. that.startVideoStatus = true;
  242. that.startCut = false;
  243. var thatUseCamera = that.useCamera;
  244. if( thatUseCamera == 'qian')
  245. {
  246. var facingMode = 'user';
  247. }else if(thatUseCamera == 'hou'){
  248. var facingMode = { exact: "environment" };
  249. }
  250. if(faceFilter && typeof faceFilter.toggle_pause == 'function')
  251. {
  252. faceFilter.destroy();
  253. }
  254. setTimeout(function(){
  255. that.getUserMedia(
  256. {
  257. //摄像头拍摄的区域
  258. video: {
  259. width: 500,
  260. height: 500,
  261. facingMode: facingMode,
  262. }, /* 前置优先 */
  263. },
  264. that.success,
  265. that.error
  266. );
  267. },100)
  268. },
  269. // 访问用户媒体设备
  270. getUserMedia(constrains, success, error) {
  271. //this.success('11111')
  272. if(navigator.mediaDevices.getUserMedia){
  273. navigator.mediaDevices.getUserMedia(constrains).then(success).catch(error);//最新标准API
  274. }else if(navigator.webkitGetUserMedia){
  275. navigator.webkitGetUserMedia(constrains).then(success).catch(error);//webkit内核浏览器
  276. }else if(navigator.mozGetUserMedia){
  277. navagator.mozGetUserMedia(constrains).then(success).catch(error);//Firefox浏览器
  278. }else if(navigator.getUserMedia){
  279. navigator.getUserMedia(constrains).then(success).catch(error);//旧版API
  280. }else{
  281. this.errortext = "你的浏览器不支持访问用户媒体设备";
  282. }
  283. },
  284. success(stream){
  285. var that = this;
  286. that.bgImgClass = 'home_wai';
  287. that.bgImgClass2 = 'home_nei';
  288. that.openCamera = true;
  289. that.errortext = '请把人脸放在圆圈内拍摄脸部';
  290. that.mediaStreamTrack = stream;
  291. const video = document.getElementsByClassName('uni-video-video')[0];
  292. try{
  293. video.srcObject = stream;
  294. }catch{
  295. this.URL = window.URL || window.webkitURL;
  296. video.src = this.URL.createObjectURL(stream);
  297. }
  298. // webkit内核浏览器
  299. //苹果手机的系统弹框会阻止js的线程的继续执行 手动0.1秒之后自动执行代码
  300. setTimeout(() => {
  301.     try{
  302. video.play();
  303. }catch{
  304. that.errortext = '视频流播放失败';
  305. }
  306.         that.main();
  307.     }, 100);
  308. },
  309. error(e){
  310. var that = this;
  311. that.startVideoStatus = false;
  312. that.bgImgClass = 'home_wai remove_animation';
  313. that.bgImgClass2 = 'home_nei remove_animation';
  314. if(this.useCamera == 'hou')
  315. {
  316. that.errortext = "调用后置摄像头失败:"+(e.name?e.name:'')+(e.message?e.message:'');
  317. }else{
  318. that.errortext = "调用前置摄像头失败:"+(e.name?e.name:'')+(e.message?e.message:'');
  319. }
  320. },
  321. main(){ // entry point
  322. var that = this;
  323. VIDEOELEMENT = document.getElementById('myVideo');
  324. //that.errortext = '请将完整脸部对准屏幕中央';
  325. if (VIDEOELEMENT['currentTime'] && VIDEOELEMENT['videoWidth'] && VIDEOELEMENT['videoHeight']){
  326. //console.log(VIDEOELEMENT)
  327. that.start();
  328. } else {
  329. setTimeout(function(){
  330. that.main();
  331. }, 100);
  332. //VIDEOELEMENT['play']();
  333. }
  334. },
  335. start(){ // launched when the video is loaded
  336. var that = this;
  337. faceFilter.init({
  338. canvasId: 'jeeFaceFilterCanvas',
  339. videoSettings: {
  340. videoElement: VIDEOELEMENT
  341. },
  342. rotate:-90,
  343. NNCPath: '../../../static/neuralNets/', // root of NN_DEFAULT.json file
  344. callbackReady: function(errCode, spec){
  345. if (errCode){
  346. //
  347. that.errortext = '人脸初始化出错'+ errCode;
  348. that.startVideoStatus = false;
  349. console.log('AN ERROR HAPPENS. SORRY BRO :( . ERR =', errCode);
  350. return;
  351. }
  352. CVD = JeelizCanvas2DHelper(spec);
  353. CVD.ctx.strokeStyle = 'yellow';
  354. //that.errortext = '初始化成功';
  355. },
  356. // called at each render iteration (drawing loop):
  357. callbackTrack: function(detectState){
  358. //console.log(detectState.detected)
  359. that.detectState = '';
  360. that.faceCoo = '';
  361. //console.log(detectState)
  362. if (detectState.detected>0.9){
  363. that.detectState = detectState;
  364. that.showVideo = 'block';
  365. $('#jeeFaceFilterCanvas2').hide();
  366. var faceCoo = CVD.getCoordinates(detectState);
  367. that.faceCoo = faceCoo;
  368. CVD.ctx.clearRect(0,0,CVD.canvas.width, CVD.canvas.height);
  369. CVD.update_canvasTexture();
  370. CVD.draw();
  371. var check = that.checkTrue();
  372. if(check)
  373. {
  374. that.errortext = '请保持不动,即将拍照';
  375. if( that.startCut == false)
  376. {
  377. //console.log('start setTimeout')
  378. that.startCut = true;
  379. setTimeout(function(){
  380. //console.log('setTimeout')
  381. that.savePause(true);
  382. that.cutPhoto();
  383. },1000)
  384. }
  385. }
  386. //that.savePause(true)
  387. }else{
  388. that.showVideo = 'block';
  389. $('#jeeFaceFilterCanvas2').hide();
  390. //that.$api.loadingMsg('请将人脸放置框中')
  391. that.errortext = '请将完整脸部对准屏幕中央';
  392. }
  393. }
  394. }); //end JEELIZFACEFILTER.init call
  395. },
  396. checkTrue(dump){
  397. //return true;
  398. var that = this;
  399. var faceCoo = that.faceCoo;
  400. var faceCooStr = JSON.stringify(faceCoo);
  401. var detectState = that.detectState;
  402. if(!faceCoo || !detectState || detectState == '' || faceCoo == '')
  403. {
  404. return false;
  405. }
  406. var x = parseFloat(faceCoo.x).toFixed(2);
  407. var y = parseFloat(faceCoo.y).toFixed(2);
  408. var w = parseFloat(faceCoo.w).toFixed(2);
  409. var h = parseFloat(faceCoo.h).toFixed(2);
  410. var cw = parseFloat(CVD.canvas.width).toFixed(2);
  411. var ch = parseFloat(CVD.canvas.height).toFixed(2);
  412. var xcw = x/cw;
  413. var ycw = y/ch;
  414. if(xcw < 0.25 || xcw > 0.5 || ycw > 0.45 || ycw < 0.1)
  415. {
  416. that.errortext = '请将完整脸部对准屏幕中央';
  417. }else{
  418. that.errortext = '';
  419. }
  420. if(that.errortext && that.errortext != '')
  421. {
  422. return false;
  423. }
  424. var faceMj = w * h ;
  425. var allMj = cw * ch;
  426. var zhanbi = faceMj / allMj;
  427. var mianjiObj = {
  428. faceMj:faceMj,
  429. zhanbi:zhanbi
  430. }
  431. var mianjiobj2 = {
  432. cw:cw,
  433. ch:ch,
  434. allMj:allMj,
  435. }
  436. var mianjiStr = JSON.stringify(mianjiObj);
  437. var mianjiStr2 = JSON.stringify(mianjiobj2);
  438. if(zhanbi < 0.18)
  439. {
  440. that.errortext = '请离脸部近一点'
  441. }else if(zhanbi > 0.28 )
  442. {
  443. that.errortext = '请离脸部远一点'
  444. }else{
  445. return true;
  446. }
  447. return false;
  448. },
  449. cutPhoto(rectparams){
  450. var that = this;
  451. var check = that.checkTrue(true);
  452. if(check == false)
  453. {
  454. that.savePause(false);
  455. return ;
  456. }
  457. that.errortext = '拍照成功';
  458. that.bgImgClass = 'home_wai remove_animation';
  459. that.bgImgClass2 = 'home_nei remove_animation';
  460. that.showVideo = 'none';
  461. //$('#jeeFaceFilterCanvas').hide();
  462. $('#jeeFaceFilterCanvas2').show();
  463. CVD.ctx.clearRect(0,0,CVD.canvas.width, CVD.canvas.height);
  464. CVD.draw();
  465. /* console.log('oldrect',JSON.stringify(rectparams))
  466. var rectnew = this.opeRect(rectparams,'canvas',0.5);
  467. console.log('cutPhoto',JSON.stringify(rectnew)) */
  468. var clip = $('#jeeFaceFilterCanvas2')[0];
  469. var context_clip = clip.getContext('2d');
  470. /* var maxwidth = clip.width;
  471. var ratio = parseFloat(maxwidth/this.vwidth).toFixed(3);
  472. console.log(maxwidth,this.vwidth,ratio)
  473. var rect = this.opeRect(rect,'clipImage',ratio);
  474. console.log(rect); */
  475. context_clip.drawImage(
  476. $('#jeeFaceFilterCanvas')[0], //规定要使用的图像、画布或视频。
  477. 0,0, //开始剪切的 x 坐标位置。
  478. CVD.canvas.width, CVD.canvas.height, //被剪切图像的高度。
  479. 0, 0,//在画布上放置图像的 x 、y坐标位置。
  480. this.vwidth,this.vwidth //要使用的图像的宽度、高度
  481. );
  482. //context_clip.clearRect(0, 0, CVD.canvas.width, CVD.canvas.height);//清除画布
  483. //位移来做镜像翻转
  484. if(that.useCamera == 'qian')
  485. {
  486. //使用前置摄像头需要反转镜头
  487. context_clip.translate(this.vwidth, 0);
  488. context_clip.scale(-1, 1); //左右镜像翻转
  489. //ctx.translate(0, 160 + posy * 2);
  490. //ctx.scale(1, -1); //上下镜像翻转
  491. context_clip.drawImage($('#jeeFaceFilterCanvas2')[0], 0, 0, this.vwidth, this.vwidth);
  492. }
  493. this.imgUrl = clip.toDataURL("image/jpeg");
  494. //this.uploadHeadImg
  495. this.useImg();
  496. },
  497. useImg(){
  498. this.imgSize();
  499. },
  500. imgSize(){
  501. var that = this;
  502. if (this.imgUrl) {
  503.         // 获取base64图片byte大小
  504.         const equalIndex = this.imgUrl.indexOf("="); // 获取=号下标
  505.         let size;
  506.         if (equalIndex > 0) {
  507.           const str = this.imgUrl.substring(0, equalIndex); // 去除=号
  508.           const strLength = str.length;
  509.           const fileLength = strLength - (strLength / 8) * 2; // 真实的图片byte大小
  510.           size = Math.floor(fileLength / 1024); // 向下取整
  511.         } else {
  512.           const strLength = this.imgUrl.length;
  513.           const fileLength = strLength - (strLength / 8) * 2;
  514.           size = Math.floor(fileLength / 1024); // 向下取整
  515.         }
  516.         if (size >= 200) {
  517.           // 图片超过200k 重新再次压缩
  518. this.imgUrl = $('#jeeFaceFilterCanvas2')[0].toDataURL("image/jpeg", 0.8);
  519. this.imgSize();
  520.         }else{
  521. that.faceOpeImg();
  522. }
  523.       }
  524. },
  525. async faceOpeImg(){
  526. var that = this;
  527. //图片上传
  528. // console.log(this.imgUrl)
  529. // return
  530. let data = { name: 'file', filePath: this.imgUrl };
  531. uploadPhoto(data).then(response => {
  532. var imgsur=response.fileName;
  533. uni.$emit('refreshFace',imgsur)
  534. uni.navigateBack({
  535. delta:1
  536. })
  537. });
  538. },
  539. async uplodImg(){
  540. var that = this;
  541. var imgRes = await Upload.uploadFileToQiniu([
  542. {
  543. path:that.imgUrl
  544. }
  545. ],200);
  546. uni.hideLoading();
  547. if(imgRes.list && imgRes.list.length > 0)
  548. {
  549. var headimg = imgRes.list[0];
  550. }else{
  551. var headimg = '';
  552. }
  553. //that.uploadHeadImg = headimg; //保存用户上传到七牛的头像
  554. if(headimg)
  555. {
  556. that.errortext = '上传图片成功';
  557. uni.showModal({
  558. title:'上传地址'+headimg
  559. })
  560. //that.$api.jeelizSetImg(headimg);
  561. }else{
  562. that.errortext = '上传图片失败';
  563. that.startVideoStatus = false;
  564. }
  565. //console.log(that.uploadHeadImg)
  566. },
  567. }
  568. }
  569. </script>
  570. <style lang="scss" scoped>
  571. .facebox{min-height: 100vh;background: #ffffff;padding: 100rpx 0 130rpx; box-sizing: border-box;display: flex;flex-direction: column;}
  572. .photitp{flex: 0 0 auto;margin-top: 60rpx;
  573. image{width: 82rpx;height: 132rpx;}
  574. view{font-weight: 500;font-size: 26rpx;color: #0391FD;margin-bottom: 40rpx;}
  575. }
  576. .faces{
  577. width: 244px;height: 244px;margin: 0 auto;position: relative;padding:15px;
  578. .lines{width: 244px;height: 244px;position: absolute;left:0rpx;top: 0rpx;}
  579. .facevideo{border-radius: 50% !important;margin: 0 auto;}
  580. }
  581. .errortext{
  582. width: 100%;
  583. height: 40rpx;
  584. line-height: 40rpx;
  585. //color: #e03030;
  586. color: #333333;
  587. text-align: center;
  588. font-size: 30rpx;
  589. }
  590. .button-view{
  591. width: 100%;
  592. margin-top:100rpx;
  593. height: 80rpx;
  594. display: -webkit-box; /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
  595. display: -moz-box; /* 老版本语法: Firefox (buggy) */
  596. display: -ms-flexbox; /* 混合版本语法: IE 10 */
  597. display: -webkit-flex; /* 新版本语法: Chrome 21+ */
  598. display: flex;
  599. justify-content: center;
  600. align-items: center;
  601. .click-button{
  602. width: 90%;
  603. height: 100%;
  604. .button-btn{
  605. border-radius:20rpx ;
  606. width: 80%;
  607. margin-left: 10%;
  608. text-align: center;
  609. height: 100%;
  610. line-height: 80rpx;
  611. font-size: 28rpx;
  612. color: rgb(229, 81, 29);
  613. border-color: rgb(240, 202, 182);
  614. background: rgb(255, 228, 208);
  615. }
  616. .button-btn2{
  617. color: rgb(255, 255, 255);
  618. border-color: rgb(255, 68, 0);
  619. background: rgb(255, 68, 0);
  620. }
  621. }
  622. }
  623. </style>