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. setTimeout(function(){
  89. //初始化的时候给追加上canvas用作载体
  90. if($('#jeeFaceFilterCanvas').html() == undefined)
  91. {
  92. $('#show-content').append('<canvas class="appendcanvas" width="'+that.vwidth+'" height="'+that.vheight+'" id="jeeFaceFilterCanvas"></canvas>');
  93. }
  94. if($('#jeeFaceFilterCanvas2').html() == undefined)
  95. {
  96. $('#show-content').append('<canvas class="appendcanvas appendcanvas2" width="'+that.vwidth+'" height="'+that.vheight+'" id="jeeFaceFilterCanvas2"></canvas>');
  97. }
  98. if(that.appendCss == false)
  99. {
  100. $('uni-page-body').append(`<style>
  101. #jeeFaceFilterCanvas{
  102. display:none;
  103. }
  104. #jeeFaceFilterCanvas2{
  105. display:none;
  106. border-radius:50%
  107. }
  108. .uni-video-bar{
  109. display:none !important; //去除底部菜单栏
  110. }
  111. .uni-video-cover{
  112. display:none !important; //去除中间播放按钮
  113. }
  114. video{
  115. transform: rotateY(180deg);
  116. -webkit-transform: rotateY(180deg); /* Safari 和 Chrome */
  117. -moz-transform: rotateY(180deg);
  118. border-radius:50% !important;
  119. }
  120. .uni-video-container{border-radius:50% !important;}
  121. .uni-video-video{border-radius:50% !important;}
  122. </style>`);
  123. that.appendCss = true;
  124. }
  125. //uniapp编译过后无法获取video的dom,此处追加id
  126. $('#video').find('video').prop('id','myVideo');
  127. //$('#refCanvas').find('canvas').prop('id','jeeFaceFilterCanvas');
  128. if(that.isTest == true)
  129. {
  130. //是否是测试环境 测试环境直接调用视频
  131. that.openCamera = true;
  132. that.main();
  133. }else{
  134. that.openCamera = true;
  135. that.bgImgClass = 'home_wai remove_animation';
  136. that.bgImgClass2 = 'home_nei remove_animation';
  137. that.errortext = '点击同意按钮开始拍摄';
  138. }
  139. },100)
  140. // this.startVideo()
  141. },
  142. onUnload(){
  143. this.closeVideo();
  144. },
  145. methods: {
  146. closeVideo(){
  147. try{
  148. //页面卸载的时候关闭视频播放
  149. if(this.mediaStreamTrack)
  150. {
  151. this.mediaStreamTrack.getTracks()[0].stop();
  152. }
  153. }catch{
  154. console.log('close mediaStreamTrack error')
  155. }
  156. try{
  157. const video = document.getElementsByClassName('uni-video-video')[0];
  158. video.srcObject = null;
  159. }catch{
  160. console.log('close video.srcObject error')
  161. }
  162. try{
  163. faceFilter.toggle_pause(true);
  164. faceFilter.destroy(); //销毁注册对象
  165. }catch{
  166. console.log('close faceFilter toggle_pause error')
  167. }
  168. },
  169. changeUserCamera(type){
  170. this.useCamera = type;
  171. if(type == 'hou')
  172. {
  173. $('uni-page-body').append(`<style>
  174. video{
  175. transform: rotateY(0deg);
  176. -webkit-transform: rotateY(0deg); /* Safari 和 Chrome */
  177. -moz-transform: rotateY(0deg);
  178. border-radius:50% !important;
  179. }
  180. </style>`);
  181. }else{
  182. $('uni-page-body').append(`<style>
  183. video{
  184. transform: rotateY(180deg);
  185. -webkit-transform: rotateY(180deg); /* Safari 和 Chrome */
  186. -moz-transform: rotateY(180deg);
  187. border-radius:50% !important;
  188. }
  189. </style>`);
  190. }
  191. this.playVideo();
  192. },
  193. startVideo(){
  194. // var imgsur='/profile/upload/2025/03/20/1742462163358_20250320171603A001.jpeg'
  195. // uni.$emit('refreshFace',imgsur)
  196. // uni.navigateBack({
  197. // delta:1
  198. // })
  199. // // http://10.90.90.53:8065/profile/upload/2025/03/20/1742462163358_20250320171603A001.jpeg
  200. // return
  201. if(this.startVideoStatus == false)
  202. {
  203. this.playVideo();
  204. //faceFilter.toggle_pause(false); //取消暂停
  205. }else{
  206. if(this.pauseStatus == false)
  207. {
  208. this.$api.msg('当前正在拍照');
  209. return;
  210. }
  211. this.savePause(false)
  212. }
  213. },
  214. savePause(status){
  215. this.uploadHeadImg = '';
  216. this.imgUrl = '';
  217. this.pauseStatus = status;
  218. if(status == false)
  219. {
  220. this.startCut = false;
  221. this.bgImgClass = 'home_wai';
  222. this.bgImgClass2 = 'home_nei';
  223. this.showVideo = 'none';
  224. //$('#jeeFaceFilterCanvas').hide();
  225. $('#jeeFaceFilterCanvas2').hide();
  226. }else{
  227. this.showVideo = 'block';
  228. //$('#jeeFaceFilterCanvas').show();
  229. $('#jeeFaceFilterCanvas2').hide();
  230. }
  231. //console.log(status)
  232. //true 暂停 false 继续执行
  233. faceFilter.toggle_pause(status);
  234. },
  235. playVideo() {
  236. var that = this;
  237. that.uploadHeadImg = '';
  238. that.imgUrl = '';
  239. that.startVideoStatus = true;
  240. that.startCut = false;
  241. var thatUseCamera = that.useCamera;
  242. if( thatUseCamera == 'qian')
  243. {
  244. var facingMode = 'user';
  245. }else if(thatUseCamera == 'hou'){
  246. var facingMode = { exact: "environment" };
  247. }
  248. if(faceFilter && typeof faceFilter.toggle_pause == 'function')
  249. {
  250. faceFilter.destroy();
  251. }
  252. setTimeout(function(){
  253. that.getUserMedia(
  254. {
  255. //摄像头拍摄的区域
  256. video: {
  257. width: 500,
  258. height: 500,
  259. facingMode: facingMode,
  260. }, /* 前置优先 */
  261. },
  262. that.success,
  263. that.error
  264. );
  265. },100)
  266. },
  267. // 访问用户媒体设备
  268. getUserMedia(constrains, success, error) {
  269. //this.success('11111')
  270. if(navigator.mediaDevices.getUserMedia){
  271. navigator.mediaDevices.getUserMedia(constrains).then(success).catch(error);//最新标准API
  272. }else if(navigator.webkitGetUserMedia){
  273. navigator.webkitGetUserMedia(constrains).then(success).catch(error);//webkit内核浏览器
  274. }else if(navigator.mozGetUserMedia){
  275. navagator.mozGetUserMedia(constrains).then(success).catch(error);//Firefox浏览器
  276. }else if(navigator.getUserMedia){
  277. navigator.getUserMedia(constrains).then(success).catch(error);//旧版API
  278. }else{
  279. this.errortext = "你的浏览器不支持访问用户媒体设备";
  280. }
  281. },
  282. success(stream){
  283. var that = this;
  284. that.bgImgClass = 'home_wai';
  285. that.bgImgClass2 = 'home_nei';
  286. that.openCamera = true;
  287. that.errortext = '请把人脸放在圆圈内拍摄脸部';
  288. that.mediaStreamTrack = stream;
  289. const video = document.getElementsByClassName('uni-video-video')[0];
  290. try{
  291. video.srcObject = stream;
  292. }catch{
  293. this.URL = window.URL || window.webkitURL;
  294. video.src = this.URL.createObjectURL(stream);
  295. }
  296. // webkit内核浏览器
  297. //苹果手机的系统弹框会阻止js的线程的继续执行 手动0.1秒之后自动执行代码
  298. setTimeout(() => {
  299.     try{
  300. video.play();
  301. }catch{
  302. that.errortext = '视频流播放失败';
  303. }
  304.         that.main();
  305.     }, 100);
  306. },
  307. error(e){
  308. var that = this;
  309. that.startVideoStatus = false;
  310. that.bgImgClass = 'home_wai remove_animation';
  311. that.bgImgClass2 = 'home_nei remove_animation';
  312. if(this.useCamera == 'hou')
  313. {
  314. that.errortext = "调用后置摄像头失败:"+(e.name?e.name:'')+(e.message?e.message:'');
  315. }else{
  316. that.errortext = "调用前置摄像头失败:"+(e.name?e.name:'')+(e.message?e.message:'');
  317. }
  318. },
  319. main(){ // entry point
  320. var that = this;
  321. VIDEOELEMENT = document.getElementById('myVideo');
  322. //that.errortext = '请将完整脸部对准屏幕中央';
  323. if (VIDEOELEMENT['currentTime'] && VIDEOELEMENT['videoWidth'] && VIDEOELEMENT['videoHeight']){
  324. //console.log(VIDEOELEMENT)
  325. that.start();
  326. } else {
  327. setTimeout(function(){
  328. that.main();
  329. }, 100);
  330. //VIDEOELEMENT['play']();
  331. }
  332. },
  333. start(){ // launched when the video is loaded
  334. var that = this;
  335. faceFilter.init({
  336. canvasId: 'jeeFaceFilterCanvas',
  337. videoSettings: {
  338. videoElement: VIDEOELEMENT
  339. },
  340. rotate:-90,
  341. NNCPath: '../../../static/neuralNets/', // root of NN_DEFAULT.json file
  342. callbackReady: function(errCode, spec){
  343. if (errCode){
  344. //
  345. that.errortext = '人脸初始化出错'+ errCode;
  346. that.startVideoStatus = false;
  347. console.log('AN ERROR HAPPENS. SORRY BRO :( . ERR =', errCode);
  348. return;
  349. }
  350. CVD = JeelizCanvas2DHelper(spec);
  351. CVD.ctx.strokeStyle = 'yellow';
  352. //that.errortext = '初始化成功';
  353. },
  354. // called at each render iteration (drawing loop):
  355. callbackTrack: function(detectState){
  356. //console.log(detectState.detected)
  357. that.detectState = '';
  358. that.faceCoo = '';
  359. //console.log(detectState)
  360. if (detectState.detected>0.9){
  361. that.detectState = detectState;
  362. that.showVideo = 'block';
  363. $('#jeeFaceFilterCanvas2').hide();
  364. var faceCoo = CVD.getCoordinates(detectState);
  365. that.faceCoo = faceCoo;
  366. CVD.ctx.clearRect(0,0,CVD.canvas.width, CVD.canvas.height);
  367. CVD.update_canvasTexture();
  368. CVD.draw();
  369. var check = that.checkTrue();
  370. if(check)
  371. {
  372. that.errortext = '请保持不动,即将拍照';
  373. if( that.startCut == false)
  374. {
  375. //console.log('start setTimeout')
  376. that.startCut = true;
  377. setTimeout(function(){
  378. //console.log('setTimeout')
  379. that.savePause(true);
  380. that.cutPhoto();
  381. },1000)
  382. }
  383. }
  384. //that.savePause(true)
  385. }else{
  386. that.showVideo = 'block';
  387. $('#jeeFaceFilterCanvas2').hide();
  388. //that.$api.loadingMsg('请将人脸放置框中')
  389. that.errortext = '请将完整脸部对准屏幕中央';
  390. }
  391. }
  392. }); //end JEELIZFACEFILTER.init call
  393. },
  394. checkTrue(dump){
  395. //return true;
  396. var that = this;
  397. var faceCoo = that.faceCoo;
  398. var faceCooStr = JSON.stringify(faceCoo);
  399. var detectState = that.detectState;
  400. if(!faceCoo || !detectState || detectState == '' || faceCoo == '')
  401. {
  402. return false;
  403. }
  404. var x = parseFloat(faceCoo.x).toFixed(2);
  405. var y = parseFloat(faceCoo.y).toFixed(2);
  406. var w = parseFloat(faceCoo.w).toFixed(2);
  407. var h = parseFloat(faceCoo.h).toFixed(2);
  408. var cw = parseFloat(CVD.canvas.width).toFixed(2);
  409. var ch = parseFloat(CVD.canvas.height).toFixed(2);
  410. var xcw = x/cw;
  411. var ycw = y/ch;
  412. if(xcw < 0.25 || xcw > 0.5 || ycw > 0.45 || ycw < 0.1)
  413. {
  414. that.errortext = '请将完整脸部对准屏幕中央';
  415. }else{
  416. that.errortext = '';
  417. }
  418. if(that.errortext && that.errortext != '')
  419. {
  420. return false;
  421. }
  422. var faceMj = w * h ;
  423. var allMj = cw * ch;
  424. var zhanbi = faceMj / allMj;
  425. var mianjiObj = {
  426. faceMj:faceMj,
  427. zhanbi:zhanbi
  428. }
  429. var mianjiobj2 = {
  430. cw:cw,
  431. ch:ch,
  432. allMj:allMj,
  433. }
  434. var mianjiStr = JSON.stringify(mianjiObj);
  435. var mianjiStr2 = JSON.stringify(mianjiobj2);
  436. if(zhanbi < 0.18)
  437. {
  438. that.errortext = '请离脸部近一点'
  439. }else if(zhanbi > 0.28 )
  440. {
  441. that.errortext = '请离脸部远一点'
  442. }else{
  443. return true;
  444. }
  445. return false;
  446. },
  447. cutPhoto(rectparams){
  448. var that = this;
  449. var check = that.checkTrue(true);
  450. if(check == false)
  451. {
  452. that.savePause(false);
  453. return ;
  454. }
  455. that.errortext = '拍照成功';
  456. that.bgImgClass = 'home_wai remove_animation';
  457. that.bgImgClass2 = 'home_nei remove_animation';
  458. that.showVideo = 'none';
  459. //$('#jeeFaceFilterCanvas').hide();
  460. $('#jeeFaceFilterCanvas2').show();
  461. CVD.ctx.clearRect(0,0,CVD.canvas.width, CVD.canvas.height);
  462. CVD.draw();
  463. /* console.log('oldrect',JSON.stringify(rectparams))
  464. var rectnew = this.opeRect(rectparams,'canvas',0.5);
  465. console.log('cutPhoto',JSON.stringify(rectnew)) */
  466. var clip = $('#jeeFaceFilterCanvas2')[0];
  467. var context_clip = clip.getContext('2d');
  468. /* var maxwidth = clip.width;
  469. var ratio = parseFloat(maxwidth/this.vwidth).toFixed(3);
  470. console.log(maxwidth,this.vwidth,ratio)
  471. var rect = this.opeRect(rect,'clipImage',ratio);
  472. console.log(rect); */
  473. context_clip.drawImage(
  474. $('#jeeFaceFilterCanvas')[0], //规定要使用的图像、画布或视频。
  475. 0,0, //开始剪切的 x 坐标位置。
  476. CVD.canvas.width, CVD.canvas.height, //被剪切图像的高度。
  477. 0, 0,//在画布上放置图像的 x 、y坐标位置。
  478. this.vwidth,this.vwidth //要使用的图像的宽度、高度
  479. );
  480. //context_clip.clearRect(0, 0, CVD.canvas.width, CVD.canvas.height);//清除画布
  481. //位移来做镜像翻转
  482. if(that.useCamera == 'qian')
  483. {
  484. //使用前置摄像头需要反转镜头
  485. context_clip.translate(this.vwidth, 0);
  486. context_clip.scale(-1, 1); //左右镜像翻转
  487. //ctx.translate(0, 160 + posy * 2);
  488. //ctx.scale(1, -1); //上下镜像翻转
  489. context_clip.drawImage($('#jeeFaceFilterCanvas2')[0], 0, 0, this.vwidth, this.vwidth);
  490. }
  491. this.imgUrl = clip.toDataURL("image/jpeg");
  492. //this.uploadHeadImg
  493. this.useImg();
  494. },
  495. useImg(){
  496. this.imgSize();
  497. },
  498. imgSize(){
  499. var that = this;
  500. if (this.imgUrl) {
  501.         // 获取base64图片byte大小
  502.         const equalIndex = this.imgUrl.indexOf("="); // 获取=号下标
  503.         let size;
  504.         if (equalIndex > 0) {
  505.           const str = this.imgUrl.substring(0, equalIndex); // 去除=号
  506.           const strLength = str.length;
  507.           const fileLength = strLength - (strLength / 8) * 2; // 真实的图片byte大小
  508.           size = Math.floor(fileLength / 1024); // 向下取整
  509.         } else {
  510.           const strLength = this.imgUrl.length;
  511.           const fileLength = strLength - (strLength / 8) * 2;
  512.           size = Math.floor(fileLength / 1024); // 向下取整
  513.         }
  514.         if (size >= 200) {
  515.           // 图片超过200k 重新再次压缩
  516. this.imgUrl = $('#jeeFaceFilterCanvas2')[0].toDataURL("image/jpeg", 0.8);
  517. this.imgSize();
  518.         }else{
  519. that.faceOpeImg();
  520. }
  521.       }
  522. },
  523. async faceOpeImg(){
  524. var that = this;
  525. //图片上传
  526. // console.log(this.imgUrl)
  527. // return
  528. let data = { name: 'file', filePath: this.imgUrl };
  529. uploadPhoto(data).then(response => {
  530. var imgsur=response.fileName;
  531. uni.$emit('refreshFace',imgsur)
  532. uni.navigateBack({
  533. delta:1
  534. })
  535. // http://10.90.90.53:8065/profile/upload/2025/03/20/1742462163358_20250320171603A001.jpeg
  536. // that.datainfo.humanFaceData =
  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-top: 100rpx; box-sizing: border-box;display: flex;flex-direction: column;}
  572. .photitp{flex: 0 0 auto;margin-top: 40rpx;
  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>