index.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947
  1. <template>
  2. <div id="outerDiv" class="development_stage">
  3. <!-- <div style="z-index:9999;background: red;width: 1920px;height: 1080px">-->
  4. <canvas id="myCanvas" width="1900" height="1080" style="background: #00ff00;z-index: 9999"></canvas>
  5. <!-- </div>-->
  6. <head-component :headinfo=headinfo></head-component>
  7. <div id="cc"
  8. style="position: absolute;width: 5px;height: 5px;background: #ff0000;margin: 0 auto;z-index: 99999"></div>
  9. <div class="page-content">
  10. <div style="display: flex;justify-content: center;width: 1890px;height: 912px;margin-top: 13px">
  11. <div class="page-box">
  12. <!--<div style="width: 1px;height: 1700px;border: 1px solid red;position: absolute;left:916px;top: 0px"></div>-->
  13. <!--<div style="width: 850px;height: 1px;border: 1px solid green;position: absolute;left: 66px;top: 400px"></div>-->
  14. <!--<div style="width: 1700px;height: 1px;border: 1px solid white;position: absolute;left: 70px;top: 906px"></div>-->
  15. <FollowRingChart ref="followRingChart1" id="ring-chart1" class="ring-chart1"
  16. :chartProps="chartPrpps1"/>
  17. <FollowRingChart ref="followRingChar2" id="ring-chart2" class="ring-chart2"
  18. :chartProps="chartPrpps2"
  19. style="z-index: 9999"/>
  20. <FollowRingChart ref="followRingChart3" id="ring-chart3" class="ring-chart3"
  21. :chartProps="chartPrpps3"/>
  22. <FollowRingChart ref="followRingChart4" id="ring-chart4" class="ring-chart4"
  23. :chartProps="chartPrpps4"/>
  24. <!--<FollowRingChart ref="followRingChart5" id="ring-chart5" class="ring-chart5"-->
  25. <!--:chartProps="chartPrpps5"/>-->
  26. <!--<FollowRingChart ref="followRingChart6" id="ring-chart6" class="ring-chart6"-->
  27. <!--:chartProps="chartPrpps6"/>-->
  28. <!--<FollowRingChart ref="followRingChart7" id="ring-chart7" class="ring-chart7"-->
  29. <!--:chartProps="chartPrpps7"/>-->
  30. <!--<FollowRingChart ref="followRingChart8" id="ring-chart8" class="ring-chart8"-->
  31. <!--:chartProps="chartPrpps8"/>-->
  32. <!--<FollowRingChart ref="followRingChart9" id="ring-chart9" class="ring-chart9"-->
  33. <!--:chartProps="chartPrpps9"/>-->
  34. <!--<FollowRingChart ref="followRingChart10" id="ring-chart10" class="ring-chart10"-->
  35. <!--:chartProps="chartPrpps10"/>-->
  36. <!--<FollowRingChart ref="followRingChart11" id="ring-chart11" class="ring-chart11"-->
  37. <!--:chartProps="chartPrpps11"/>-->
  38. <!--<FollowRingChart ref="followRingChart12" id="ring-chart12" class="ring-chart12"-->
  39. <!--:chartProps="chartPrpps12"/>-->
  40. <!--<FollowRingChart ref="followRingChart13" id="ring-chart13" class="ring-chart13"-->
  41. <!--:chartProps="chartPrpps13"/>-->
  42. <!--<FollowRingChart ref="followRingChart14" id="ring-chart14" class="ring-chart14"-->
  43. <!--:chartProps="chartPrpps14"/>-->
  44. <!--<FollowRingChart ref="followRingChart15" id="ring-chart15" class="ring-chart15"-->
  45. <!--:chartProps="chartPrpps15"/>-->
  46. <!--<FollowRingChart ref="followRingChart16" id="ring-chart16" class="ring-chart16"-->
  47. <!--:chartProps="chartPrpps16"/>-->
  48. <!--<FollowRingChart ref="followRingChart17" id="ring-chart17" class="ring-chart17"-->
  49. <!--:chartProps="chartPrpps17"/>-->
  50. <!--<FollowRingChart ref="followRingChart18" id="ring-chart18" class="ring-chart18"-->
  51. <!--:chartProps="chartPrpps18"/>-->
  52. </div>
  53. </div>
  54. <!--<div id="eraser"-->
  55. <!--@click="edit"-->
  56. <!--:class="[chartPrpps1.status == 'edit'?'bg-color-style':'bg-color-style1']"-->
  57. <!--&gt;-->
  58. <!--橡皮-->
  59. <!--</div>-->
  60. <!--<div id="save"-->
  61. <!--@click="save"-->
  62. <!--style="position: absolute;top:80px;text-align:center;line-height:50px;left:10px;width: 50px;height: 50px;background: green;border-radius: 50%">-->
  63. <!--保存-->
  64. <!--</div>-->
  65. </div>
  66. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:168px;border: 1px;width: 1000px;height: 1px;"></div>-->
  67. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  68. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  69. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  70. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  71. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  72. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  73. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  74. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  75. <!--<div style="position: absolute; background: #ffff00;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  76. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  77. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  78. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  79. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  80. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:px;border: 1px;width: 1000px;height: 1px;"></div>-->
  81. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:627px;border: 1px;width: 1000px;height: 1px;"></div>-->
  82. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:644px;border: 1px;width: 1000px;height: 1px;"></div>-->
  83. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:676px;border: 1px;width: 1000px;height: 1px;"></div>-->
  84. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:710px;border: 1px;width: 1000px;height: 1px;"></div>-->
  85. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:746px;border: 1px;width: 1000px;height: 1px;"></div>-->
  86. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:762px;border: 1px;width: 1000px;height: 1px;"></div>-->
  87. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:797px;border: 1px;width: 1000px;height: 1px;"></div>-->
  88. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:830px;border: 1px;width: 1000px;height: 1px;"></div>-->
  89. <!--<div style="position: absolute; background: #ff0000;z-index: 9999;left:0;top:864px;border: 1px;width: 1000px;height: 1px;"></div>-->
  90. <!---->
  91. </div>
  92. </template>
  93. <script setup>
  94. const raduis_half = [168, 204, 237, 272,
  95. 287, 322, 354, 390,
  96. 406, 440, 474, 508,
  97. 525, 558, 592, 627,
  98. 644, 676, 710, 746,
  99. 762, 797, 830, 864]
  100. import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
  101. import {onMounted, reactive} from "vue";
  102. // import FollowRingChart from "@/views/xjc-integratedmachine/wakeup/rainbow/FollowRingChart.vue";
  103. import FollowRingChart from './FollowRingChart.vue'
  104. const headinfo = ref({})
  105. const router = useRouter()
  106. const chartDivs = ref([])
  107. const out_width = ref(1920)
  108. const out_height = ref(1023)
  109. const centerPoint = ref({})
  110. function init() {
  111. centerPoint.value.x = out_width.value / 2
  112. centerPoint.value.y = out_height.value
  113. console.log("圆心x:", centerPoint.value.x, "圆心y:", centerPoint.value.y)
  114. let cc = document.getElementById("cc")
  115. cc.style.left = centerPoint.value.x + "px"
  116. cc.style.top = centerPoint.value.y + "px"
  117. chartDivs.value = [
  118. document.getElementById("ring-chart1"),
  119. // document.getElementById("ring-chart2"),
  120. // document.getElementById("ring-chart3"),
  121. // document.getElementById("ring-chart4"),
  122. // document.getElementById("ring-chart5"),
  123. // document.getElementById("ring-chart6"),
  124. // document.getElementById("ring-chart7"),
  125. // document.getElementById("ring-chart8"),
  126. // document.getElementById("ring-chart9"),
  127. // document.getElementById("ring-chart10"),
  128. // document.getElementById("ring-chart11"),
  129. // document.getElementById("ring-chart12"),
  130. ]
  131. let outerDiv = document.getElementById("outerDiv")
  132. outerDiv.addEventListener('touchstart', begin)
  133. outerDiv.addEventListener('touchmove', moving)
  134. outerDiv.addEventListener('touchend', stopMoving)
  135. }
  136. const followRingChart18 = ref(null)
  137. function getDistance(event) {
  138. let mouse_x = event.targetTouches[0].pageX;
  139. let mouse_y = event.targetTouches[0].pageY;
  140. console.log("touchX:", mouse_x, "touchY:", mouse_y)
  141. let distance = Math.sqrt((Math.pow((centerPoint.value.x - mouse_x), 2) + Math.pow((centerPoint.value.y - mouse_y), 2)))
  142. console.log("dis:", distance)
  143. if (distance <= out_height.value - raduis_half[0] && distance > out_height.value - raduis_half[1]) {
  144. console.log("t1")
  145. } else if (distance <= out_height.value - raduis_half[1] && distance > out_height.value - raduis_half[2]) {
  146. console.log("t2")
  147. }else if (distance <= out_height.value - raduis_half[2] && distance > out_height.value - raduis_half[3]) {
  148. console.log("t3")
  149. }
  150. }
  151. function begin(event) {
  152. getDistance(event)
  153. // followRingChart18.value.finish()
  154. }
  155. function moving() {
  156. // console.log("mmmmmm")
  157. }
  158. function stopMoving() {
  159. // console.log("ssssss")
  160. }
  161. onMounted(() => {
  162. setHeadinfo()
  163. init()
  164. settingChooseChart(1)
  165. initCanvas()
  166. })
  167. function settingChooseChart(index) {
  168. // chartDivs.value.forEach(function (item, index) {
  169. // item.style.zIndex = 1
  170. // })
  171. // chartDivs.value[index].style.zIndex = 99999
  172. }
  173. function setHeadinfo() {
  174. headinfo.value = {
  175. title: '生涯彩虹图',
  176. user: {
  177. avatar: '头像路径',
  178. nickName: '张三'
  179. },
  180. backUrl: '/xjc-integratedmachine/wakeup/rainbow/knowledge_explanation_1'
  181. }
  182. }
  183. const chartPrpps1 = ref({
  184. top: 160,
  185. left: 90,
  186. width: 1700,
  187. height: 1700,
  188. borderColor: "#FFFF00",
  189. color: "#ff00ff",
  190. bncolor: "#ffffff",
  191. radiusMax: '850px',
  192. radiusMin: '816px',
  193. isFinish: false,
  194. status: 'new',
  195. power: false
  196. })
  197. const chartPrpps2 = ref({
  198. top: 228,
  199. left: 158,
  200. width: 1628,
  201. height: 1628,
  202. borderColor: "#00af3c",
  203. color: "#00af3c",
  204. bncolor: "#00af3c",
  205. radiusMax: '816px',
  206. radiusMin: '782px',
  207. isFinish: false,
  208. status: 'new',
  209. power: true
  210. })
  211. const chartPrpps3 = ref({
  212. top: 296,
  213. left: 226,
  214. width: 1562,
  215. height: 1562,
  216. borderColor: "pink",
  217. color: "pink",
  218. bncolor: "pink",
  219. radiusMax: '782px',
  220. radiusMin: '748px',
  221. isFinish: false,
  222. status: 'new',
  223. power: false
  224. })
  225. const chartPrpps4 = ref({
  226. top: 364,
  227. left: 294,
  228. width: 1465,
  229. height: 1465,
  230. borderColor: "#ffff00",
  231. color: "#ffff00",
  232. bncolor: "#ffff00",
  233. radiusMax: '731px',
  234. radiusMin: '697px',
  235. isFinish: false,
  236. status: 'new',
  237. power: false
  238. })
  239. const chartPrpps5 = ref({
  240. top: 483,
  241. left: 413,
  242. width: 1391,
  243. height: 1391,
  244. borderColor: "orange",
  245. color: "orange",
  246. bncolor: "orange",
  247. radiusMax: '697px',
  248. radiusMin: '663px',
  249. isFinish: false,
  250. status: 'new',
  251. power: false
  252. })
  253. const chartPrpps6 = ref({
  254. top: 551,
  255. left: 481,
  256. width: 1325,
  257. height: 1325,
  258. borderColor: "green",
  259. color: "green",
  260. bncolor: "green",
  261. radiusMax: '663px',
  262. radiusMin: '629px',
  263. isFinish: false,
  264. status: 'new',
  265. power: false
  266. })
  267. const chartPrpps7 = ref({
  268. top: 432,
  269. left: 200,
  270. width: 1400,
  271. height: 1400,
  272. borderColor: "pink",
  273. color: "pink",
  274. bncolor: "pink",
  275. radiusMax: '612px',
  276. radiusMin: '578px',
  277. isFinish: false,
  278. status: 'new',
  279. power: false
  280. })
  281. const chartPrpps8 = ref({
  282. top: 612,
  283. left: 531,
  284. width: 1271,
  285. height: 1271,
  286. borderColor: "green",
  287. color: "green",
  288. bncolor: "green",
  289. radiusMax: '578px',
  290. radiusMin: '544px',
  291. isFinish: false,
  292. status: 'new',
  293. power: false
  294. })
  295. const chartPrpps9 = ref({
  296. top: 612,
  297. left: 531,
  298. width: 1100,
  299. height: 1100,
  300. borderColor: "orange",
  301. color: "orange",
  302. bncolor: "orange",
  303. radiusMax: '544px',
  304. radiusMin: '510px',
  305. isFinish: false,
  306. status: 'new',
  307. power: false
  308. })
  309. const chartPrpps10 = ref({
  310. top: 612,
  311. left: 531,
  312. width: 1272,
  313. height: 1272,
  314. borderColor: "green",
  315. color: "green",
  316. bncolor: "green",
  317. radiusMax: '493px',
  318. radiusMin: '459px',
  319. isFinish: false,
  320. status: 'new',
  321. power: false
  322. })
  323. const chartPrpps11 = ref({
  324. top: 612,
  325. left: 531,
  326. width: 1272,
  327. height: 1272,
  328. borderColor: "pink",
  329. color: "pink",
  330. bncolor: "pink",
  331. radiusMax: '459px',
  332. radiusMin: '425px',
  333. isFinish: false,
  334. status: 'new',
  335. power: false
  336. })
  337. const chartPrpps12 = ref({
  338. top: 612,
  339. left: 531,
  340. width: 1272,
  341. height: 1272,
  342. borderColor: "orange",
  343. color: "orange",
  344. bncolor: "orange",
  345. radiusMax: '425px',
  346. radiusMin: '391px',
  347. isFinish: false,
  348. status: 'new',
  349. power: false
  350. })
  351. const chartPrpps13 = ref({
  352. top: 612,
  353. left: 531,
  354. width: 1272,
  355. height: 1272,
  356. borderColor: "green",
  357. color: "green",
  358. bncolor: "green",
  359. radiusMax: '374px',
  360. radiusMin: '340px',
  361. isFinish: false,
  362. status: 'new',
  363. power: false
  364. })
  365. const chartPrpps14 = ref({
  366. top: 612,
  367. left: 531,
  368. width: 1272,
  369. height: 1272,
  370. borderColor: "blue",
  371. color: "blue",
  372. bncolor: "blue",
  373. radiusMax: '340px',
  374. radiusMin: '306px',
  375. isFinish: false,
  376. status: 'new',
  377. power: false
  378. })
  379. const chartPrpps15 = ref({
  380. top: 612,
  381. left: 531,
  382. width: 1272,
  383. height: 1272,
  384. borderColor: "pink",
  385. color: "pink",
  386. bncolor: "pink",
  387. radiusMax: '306px',
  388. radiusMin: '272px',
  389. isFinish: false,
  390. status: 'new',
  391. power: false
  392. })
  393. const chartPrpps16 = ref({
  394. top: 612,
  395. left: 531,
  396. width: 1272,
  397. height: 1272,
  398. borderColor: "orange",
  399. color: "orange",
  400. bncolor: "orange",
  401. radiusMax: '255px',
  402. radiusMin: '221px',
  403. isFinish: false,
  404. status: 'new',
  405. power: false
  406. })
  407. const chartPrpps17 = ref({
  408. top: 612,
  409. left: 531,
  410. width: 1272,
  411. height: 1272,
  412. borderColor: "blue",
  413. color: "blue",
  414. bncolor: "blue",
  415. radiusMax: '221px',
  416. radiusMin: '187px',
  417. isFinish: false,
  418. status: 'new',
  419. power: false
  420. })
  421. const chartPrpps18 = ref({
  422. top: 612,
  423. left: 531,
  424. width: 1272,
  425. height: 1272,
  426. borderColor: "green",
  427. color: "green",
  428. bncolor: "green",
  429. radiusMax: '187px',
  430. radiusMin: '153px',
  431. isFinish: false,
  432. status: 'new',
  433. power: false
  434. })
  435. // const chartPrpps19= ref({
  436. // top: 612,
  437. // left: 531,
  438. // width: 1272,
  439. // height: 1272,
  440. // borderColor: "orange",
  441. // color: "orange",
  442. // bncolor: "orange",
  443. // radiusMax: '306px',
  444. // radiusMin: '272px',
  445. // isFinish: false,
  446. // status : 'new'
  447. // })
  448. const position = reactive({x: 10, y: 10});
  449. let isDragging = false;
  450. let originX, originY;
  451. function jumpTo(path) {
  452. console.log(path)
  453. router.push({
  454. path: path,
  455. query: {name: 123}
  456. })
  457. }
  458. const startDrag = (e) => {
  459. console.log("e", e)
  460. isDragging = true;
  461. originX = e.clientX - position.x;
  462. originY = e.clientY - position.y;
  463. console.log("originX", originX, originY, "originY")
  464. document.addEventListener('mousemove', onMouseMove);
  465. document.addEventListener('mouseup', stopDrag);
  466. };
  467. const onMouseMove = (e) => {
  468. if (isDragging) {
  469. position.x = e.clientX - originX;
  470. position.y = e.clientY - originY;
  471. console.log("position.x", position.x, "position.y", position.y)
  472. }
  473. };
  474. const stopDrag = () => {
  475. isDragging = false;
  476. document.removeEventListener('mousemove', onMouseMove);
  477. document.removeEventListener('mouseup', stopDrag);
  478. };
  479. //编辑和保存
  480. function save() {
  481. status.value = 'save'
  482. //保存
  483. }
  484. function edit() {
  485. if (chartPrpps1.value.status == 'edit') {
  486. chartPrpps1.value.status = 'new'
  487. } else {
  488. chartPrpps1.value.status = 'edit'
  489. }
  490. }
  491. //
  492. function initCanvas() {
  493. const canvas = document.getElementById("myCanvas");
  494. const ctx = canvas.getContext("2d");
  495. // 圆心和半径
  496. const centerX = 960;
  497. const centerY = 1023;
  498. const radius = 855;
  499. // 绘制红色边框的圆
  500. ctx.beginPath();
  501. ctx.arc(centerX, centerY, radius, 0, Math.PI * 2);
  502. ctx.strokeStyle = "red";
  503. ctx.lineWidth = 5;
  504. ctx.stroke();
  505. // 填充半透明黄色
  506. ctx.fillStyle = "rgba(255, 255, 0, 0.5)";
  507. ctx.fill();
  508. }
  509. </script>
  510. <style scoped lang="scss">
  511. //body,html{
  512. // overflow: hidden;
  513. //}
  514. p {
  515. margin: 0;
  516. padding: 0;
  517. }
  518. .development_stage {
  519. background: url('@/assets/images/login/login-home-background.png') no-repeat;
  520. background-size: 1920px 1080px;
  521. z-index: 10;
  522. width: 100%;
  523. height: 1080px;
  524. .page-content {
  525. width: 1832px;
  526. height: 980px;
  527. position: absolute;
  528. top: 100px;
  529. //display: flex;
  530. //justify-content: ;
  531. bottom: 0;
  532. }
  533. .page-box {
  534. width: 1832px;
  535. height: 910px;
  536. background: none;
  537. border-radius: 35px 35px 35px 35px;
  538. //margin: 13px auto 0;
  539. /*padding-top: 25px;*/
  540. position: relative;
  541. .text-info {
  542. font-weight: bold;
  543. font-size: 28px;
  544. color: #333333;
  545. line-height: 46px;
  546. padding: 0 150px;
  547. //text-align: center;
  548. text-indent: 2em;
  549. }
  550. .page-main {
  551. width: 1546px;
  552. height: 681px;
  553. //border: 1px solid;
  554. margin: 12px auto;
  555. background: url('@/assets/images/wakeup/rainbow/backgroud-rainbow.png') no-repeat;
  556. background-size: 1546px 681px;
  557. display: flex;
  558. justify-content: space-between;
  559. .page-left {
  560. width: 1273px;
  561. height: 571px;
  562. background: #000000;
  563. border-radius: 10px 10px 10px 10px;
  564. margin-left: 26px;
  565. //border: #FFFFFF 1px solid;
  566. margin-top: 95px;
  567. background: url('@/assets/images/wakeup/rainbow/rainbow-border.png') no-repeat;
  568. background-size: 1200px 500px;
  569. //border: 1px solid #FFFFFF;
  570. }
  571. .page-right {
  572. width: 250px;
  573. height: 681px;
  574. //border: 1px solid #FFFFFF;
  575. margin-right: 26px;
  576. .page-right-top {
  577. width: 250px;
  578. height: 260px;
  579. //border: 1px solid white;
  580. .color-box:nth-child(1) {
  581. margin-top: 24px;
  582. }
  583. .color-box {
  584. //border: 1px solid white;
  585. display: flex;
  586. justify-content: center;
  587. align-items: center;
  588. margin-top: 10px;
  589. .box-left {
  590. width: 53px;
  591. height: 25px;
  592. //background: #FFC300;
  593. border-radius: 10px 10px 10px 10px;
  594. //border: 1px solid white;
  595. }
  596. .box-label {
  597. width: 122px;
  598. font-weight: 400;
  599. font-size: 20px;
  600. color: #FFFFFF;
  601. margin-left: 10px;
  602. }
  603. }
  604. }
  605. .page-right-btn-group {
  606. display: flex;
  607. flex-direction: column;
  608. justify-content: center;
  609. align-items: center;
  610. .img-btn {
  611. width: 170px;
  612. height: 54px;
  613. margin-top: 20px;
  614. }
  615. .eraser-box {
  616. width: 165px;
  617. height: 50px;
  618. background: url('@/assets/images/wakeup/rainbow/eraser-shadom.png') no-repeat;
  619. background-size: 163px 47px;
  620. position: relative;
  621. img {
  622. width: 165px;
  623. height: 83px;
  624. position: absolute;
  625. top: -33px;
  626. left: 10px;
  627. }
  628. }
  629. }
  630. }
  631. }
  632. }
  633. .img-box {
  634. width: 100%;
  635. height: 100px;
  636. display: flex;
  637. justify-content: center;
  638. align-items: center;
  639. margin-top: 6px;
  640. z-index: 10;
  641. img {
  642. width: 244px;
  643. height: 92px;
  644. z-index: 10;
  645. }
  646. }
  647. .fixed-box {
  648. width: 100%;
  649. height: 100px;
  650. position: absolute;
  651. bottom: 125px;
  652. }
  653. .content-bottom {
  654. width: 100%;
  655. height: 100%;
  656. display: flex;
  657. justify-content: space-between;
  658. position: relative;
  659. align-items: center;
  660. .draw {
  661. width: 109px;
  662. height: 170px;
  663. img {
  664. width: 109px;
  665. height: 170px;
  666. }
  667. }
  668. .ai-rabit {
  669. position: absolute;
  670. right: -27px;
  671. //top: -271px;
  672. display: flex;
  673. align-items: center;
  674. .ai-rabit-text {
  675. width: 345px;
  676. height: 89px;
  677. background: #E8EEF7;
  678. font-weight: 300;
  679. margin-bottom: 20px;
  680. font-size: 22px;
  681. color: #000000;
  682. padding: 16px;
  683. border-radius: 24px 24px 24px 24px;
  684. }
  685. img {
  686. width: 178px;
  687. height: 270px;
  688. }
  689. }
  690. }
  691. .draggable-ball {
  692. position: absolute;
  693. cursor: pointer;
  694. user-select: none; /* 防止拖拽时选中文字 */
  695. }
  696. .ring-chart1 {
  697. width: 1832px;
  698. height: 800px;
  699. border: 1px pink solid;
  700. position: absolute;
  701. left: 14px;
  702. top: 0px;
  703. //background: #ffff00;
  704. }
  705. .ring-chart2 {
  706. width: 1832px;
  707. height: 800px;
  708. position: absolute;
  709. left: 48px;
  710. top: 36px;
  711. }
  712. .ring-chart3 {
  713. width: 1832px;
  714. height: 800px;
  715. position: absolute;
  716. left: 81px;
  717. top: 69px;
  718. }
  719. .ring-chart4 {
  720. width: 1832px;
  721. height: 800px;
  722. position: absolute;
  723. left: 130px;
  724. top: 117px;
  725. }
  726. .ring-chart5 {
  727. width: 1832px;
  728. height: 800px;
  729. position: absolute;
  730. left: 154px;
  731. top: 154px;
  732. }
  733. .ring-chart6 {
  734. width: 1832px;
  735. height: 800px;
  736. position: absolute;
  737. top: 187px;
  738. left: 187px;
  739. }
  740. .ring-chart7 {
  741. width: 1832px;
  742. height: 800px;
  743. position: absolute;
  744. top: 150px;
  745. left: 150px;
  746. }
  747. .ring-chart8 {
  748. width: 1832px;
  749. height: 800px;
  750. position: absolute;
  751. top: 214px;
  752. left: 214px;
  753. }
  754. .ring-chart9 {
  755. width: 1832px;
  756. height: 800px;
  757. position: absolute;
  758. top: 299px;
  759. left: 299px;
  760. }
  761. .ring-chart10 {
  762. width: 1832px;
  763. height: 800px;
  764. position: absolute;
  765. top: 213px;
  766. left: 213px;
  767. }
  768. .ring-chart11 {
  769. width: 1832px;
  770. height: 800px;
  771. position: absolute;
  772. top: 213px;
  773. left: 213px;
  774. }
  775. .ring-chart12 {
  776. width: 1832px;
  777. height: 800px;
  778. position: absolute;
  779. top: 213px;
  780. left: 213px;
  781. }
  782. .ring-chart13 {
  783. width: 1832px;
  784. height: 800px;
  785. position: absolute;
  786. top: 213px;
  787. left: 213px;
  788. }
  789. .ring-chart14 {
  790. width: 1832px;
  791. height: 800px;
  792. position: absolute;
  793. top: 213px;
  794. left: 213px;
  795. }
  796. .ring-chart15 {
  797. width: 1832px;
  798. height: 800px;
  799. position: absolute;
  800. top: 213px;
  801. left: 213px;
  802. }
  803. .ring-chart16 {
  804. width: 1832px;
  805. height: 800px;
  806. position: absolute;
  807. top: 213px;
  808. left: 213px;
  809. }
  810. .ring-chart17 {
  811. width: 1832px;
  812. height: 800px;
  813. position: absolute;
  814. top: 213px;
  815. left: 213px;
  816. }
  817. .ring-chart18 {
  818. width: 1832px;
  819. height: 800px;
  820. position: absolute;
  821. top: 213px;
  822. left: 213px;
  823. }
  824. }
  825. .bg-color-style {
  826. color: black;
  827. background: #ffff00;
  828. }
  829. #eraser {
  830. position: absolute;
  831. top: 10px;
  832. text-align: center;
  833. line-height: 50px;
  834. left: 10px;
  835. width: 50px;
  836. height: 50px;
  837. //background: #FFFFFF;
  838. border: 1px solid #00afff;
  839. border-radius: 50%
  840. }
  841. .bg-color-style1 {
  842. background: #FFFFFF;
  843. }
  844. </style>