shot.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  1. <template>
  2. <headerBar
  3. title="拍摄商品"
  4. showUser
  5. :menu="[
  6. {
  7. type:'setting'
  8. }
  9. ]"
  10. />
  11. <hardware-check/>
  12. <div class="photography-page flex-col">
  13. <div class="main-container">
  14. <div class="content-wrapper flex-row">
  15. <img class="camera-image" referrerpolicy="no-referrer" src="@/assets/images/Photography/camera-icon.png" />
  16. <div class="step-number flex-col"><span class="text_22">1</span></div>
  17. <div class="step-one flex-col justify-between">
  18. <div class="step-header flex-row">
  19. <span class="step-title">第一步:获取商品货号</span>
  20. <img class="step-icon" referrerpolicy="no-referrer" src="@/assets/images/Photography/step1-icon.png" />
  21. <img class="step-divider" referrerpolicy="no-referrer"
  22. src="@/assets/images/Photography/step-divider-line.png" />
  23. </div>
  24. <div class="step-content flex-row justify-between">
  25. <div class="method-container flex-col">
  26. <div class="auto-method flex-row justify-between">
  27. <div class="text-method-tag flex-col"><span class="text_4">自动获取</span></div>
  28. <span class="method-description">用遥控器扫描商品资料二维码</span>
  29. </div>
  30. <div class="scan-method flex-row justify-between">
  31. <div class="remote-control flex-col">
  32. <div class="scan-button flex-col"></div>
  33. <img class="scan-line" referrerpolicy="no-referrer"
  34. src="@/assets/images/Photography/remote-scan-line.png" />
  35. </div>
  36. <span class="scan-label">遥控器扫描键</span>
  37. </div>
  38. <div class="manual-method flex-row justify-between">
  39. <div class="method-tag flex-col"><span class="text_7">手动获取</span></div>
  40. <span class="method-description">手工输入货号</span>
  41. </div>
  42. <div class="input-container flex-row">
  43. <el-input class="input-item" v-model="goods_art_no_tpl" placeholder="请输入货号">
  44. <template #append>
  45. <el-button class="input-button" type="primary" @click="saveGoodsArtNo">确认</el-button>
  46. </template>
  47. </el-input>
  48. </div>
  49. </div>
  50. <img class="remote-image" referrerpolicy="no-referrer"
  51. src="@/assets/images/Photography/remote-control.png" />
  52. </div>
  53. </div>
  54. <div class="step-number flex-col"><span class="text_22">2</span></div>
  55. <div class="step-two flex-col justify-between">
  56. <span class="step-title">第二步:启动拍摄(根据左右脚按遥控器左右键启动)</span>
  57. <div class="shooting-container flex-col">
  58. <div class="shooting-tips flex-row justify-between">
  59. <img class="info-icon" referrerpolicy="no-referrer" src="@/assets/images/Photography/info-icon.png" />
  60. <span class="tips-text">遥控左右按键可启动拍摄,中间按钮可在拍摄5张主图后解锁,用于拍摄自定义图</span>
  61. </div>
  62. <span class="left-foot-text">遥控器左键:控制左脚鞋启动拍摄</span>
  63. <div class="remote-control-container flex-row justify-end">
  64. <div class="remote-buttons flex-row">
  65. <div class="left-button flex-col"></div>
  66. <div class="right-button flex-col"></div>
  67. </div>
  68. <img class="left-button-image" referrerpolicy="no-referrer"
  69. src="@/assets/images/Photography/remote-left-button.png" />
  70. <img class="right-button-image" referrerpolicy="no-referrer"
  71. src="@/assets/images/Photography/remote-right-button.png" />
  72. </div>
  73. <span class="right-foot-text">遥控器右键:控制右脚鞋启动拍摄</span>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="history-section flex-col">
  78. <span class="history-title flex between">
  79. <div>拍摄记录</div>
  80. <div class="c-666 fs-12" v-if="goodsList.length">
  81. <el-button @click="delAll" class="input-button" type="primary" size="mini">一键删除</el-button>
  82. </div>
  83. </span>
  84. <img class="divider-line" referrerpolicy="no-referrer" src="@/assets/images/Photography/divider-line.png" />
  85. <div class="history-warp">
  86. <div v-if="!goodsList.length" class="fs-14 c-666 mar-top-50">
  87. {{ loading ? '数据正在加载中,请稍候...' : '暂无数据,请先进行拍摄'}}
  88. </div>
  89. <div v-else class="history-item clearfix" v-for="item,index in goodsList" style="padding:10px;">
  90. <div class="flex between flex-item c-333">
  91. <div class="chaochu flex-item flex left">货号:{{ item.goods_art_no }}</div>
  92. <div class="c-666 fs-12">{{ getTime(item.action_time) }}</div>
  93. </div>
  94. <div class="mar-top-10" style="width: 100%" >
  95. <component class="history-item_image"
  96. v-loading="!image.image_path && runAction.goods_art_no == item.goods_art_no"
  97. v-for="image in item.items"
  98. :is="image.image_path ? 'div' : 'p'"
  99. >
  100. <el-popover
  101. popper-class="shot-image-popper"
  102. placement="left"
  103. :hide-after="0"
  104. v-if="image.image_path"
  105. >
  106. <template #reference>
  107. <el-image :src="getFilePath(image.image_path)" fit="contain" >
  108. <template #error>
  109. <div class="image-slot"></div>
  110. </template>
  111. </el-image>
  112. </template>
  113. <el-image :src="getFilePath(image.image_path)" fit="contain" >
  114. <template #error>
  115. <div class="image-slot"></div>
  116. </template>
  117. </el-image>
  118. </el-popover>
  119. <el-image :src="getFilePath(image.image_path)" fit="contain" v-else>
  120. <template #error>
  121. <div class="image-slot"></div>
  122. </template>
  123. </el-image>
  124. </component>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- 无数据 -->
  129. <!-- <div class="empty-state flex-col justify-between">
  130. <img
  131. class="empty-icon"
  132. referrerpolicy="no-referrer"
  133. src="@/assets/images/Photography/empty-state-icon.png"
  134. />
  135. <span class="empty-text">暂无数据</span>
  136. </div>-->
  137. <div v-if="goodsList.length" class="next-step button--primary1 flex-col" @click="openPhotographyDetail"><span
  138. class="next-step-text">拍摄完毕,进入下一步处理</span></div>
  139. </div>
  140. </div>
  141. </div>
  142. </template>
  143. <script setup lang="ts">
  144. import headerBar from '@/components/header-bar/index.vue'
  145. import { ref, reactive, onMounted, onBeforeUnmount,watchEffect } from 'vue'
  146. import icpList from '@/utils/ipc'
  147. import client from "@/stores/modules/client";
  148. import socket from "@/stores/modules/socket";
  149. import { ElMessage ,ElMessageBox } from 'element-plus'
  150. import { getFilePath,getRouterUrl } from '@/utils/appfun'
  151. import {useRouter} from "vue-router";
  152. import HardwareCheck from '@/components/check/index.vue'
  153. import checkInfo from "@/stores/modules/check";
  154. const loading = ref(false)
  155. const runLoading = ref(false)
  156. const takePictureLoading = ref(false)
  157. const clientStore = client();
  158. const Router = useRouter()
  159. const goodsList = ref([])
  160. const goods_art_no_tpl = ref('')
  161. const goods_art_no = ref('')
  162. const runAction = ref({
  163. "action": "",
  164. "goods_art_no": ""
  165. })
  166. // 初始化 WebSocket 状态管理
  167. const socketStore = socket()
  168. /**
  169. * 保存货号模板到货号变量中。
  170. */
  171. function saveGoodsArtNo(){
  172. if(goods_art_no_tpl.value){
  173. goods_art_no.value = goods_art_no_tpl.value
  174. ElMessage.success('商品货号'+goods_art_no.value+'获取成功,请在遥控器上按下左或右脚按键,启动拍摄')
  175. }
  176. }
  177. /**
  178. * 获取拍照记录。
  179. * @param params - 可选参数,用于分页或其他筛选条件。
  180. */
  181. async function getPhotoRecords(params?:{}) {
  182. clientStore.ipc.removeAllListeners(icpList.takePhoto.getPhotoRecords);
  183. loading.true = true;
  184. clientStore.ipc.send(icpList.takePhoto.getPhotoRecords,{
  185. ...params,
  186. page:1,
  187. size:100,
  188. });
  189. clientStore.ipc.on(icpList.takePhoto.getPhotoRecords, (event, result) => {
  190. loading.true = false;
  191. clientStore.ipc.removeAllListeners(icpList.takePhoto.getPhotoRecords);
  192. if(result.code === 0){
  193. goodsList.value = result.data.list
  194. }else if(result.msg) {
  195. ElMessage.error(result.msg)
  196. }
  197. });
  198. }
  199. /**
  200. * 执行拍照操作。
  201. * @param data - 包含拍摄所需的数据对象。
  202. */
  203. async function runGoods(data) {
  204. console.log('aa2')
  205. await socketStore.connectSocket();
  206. console.log('aa3')
  207. socketStore.sendMessage({
  208. type: 'run_mcu',
  209. data,
  210. })
  211. ElMessage.success('开始拍摄,请稍后')
  212. runLoading.value = true;
  213. runAction.value = data
  214. goods_art_no.value = ''
  215. goods_art_no_tpl.value = ''
  216. clientStore.ipc.on(icpList.socket.message + '_run_mcu', (event, result) => {
  217. clientStore.ipc.removeAllListeners(icpList.socket.message + '_run_mcu');
  218. console.log('_run_mcu');
  219. console.log(result);
  220. if(result.code !== 0 && result.msg){
  221. ElMessage.error(result.msg)
  222. runLoading.value = false
  223. return;
  224. }
  225. })
  226. }
  227. /**
  228. * 格式化时间字符串。
  229. * @param time - 原始时间字符串。
  230. * @returns 格式化后的时间字符串,若输入为空则返回 null。
  231. */
  232. const getTime = function(time){
  233. if(!time) return null
  234. return time.replace('T',' ').substr(5,11)
  235. }
  236. /**
  237. * 删除所有商品货号的历史记录。
  238. */
  239. async function delAll(){
  240. let params = goodsList.value.map(item=>item.goods_art_no)
  241. await ElMessageBox.confirm('确定要删除当下的历史记录吗?', '提示', {
  242. confirmButtonText: '确定',
  243. cancelButtonText: '取消',
  244. })
  245. del({goods_art_nos:params})
  246. }
  247. /**
  248. * 删除指定的商品货号。
  249. * @param params - 包含需要删除的货号列表的对象。
  250. */
  251. const del = async function(params){
  252. clientStore.ipc.removeAllListeners(icpList.takePhoto.delectGoodsArts);
  253. clientStore.ipc.send(icpList.takePhoto.delectGoodsArts,params);
  254. clientStore.ipc.on(icpList.takePhoto.delectGoodsArts, (event, result) => {
  255. clientStore.ipc.removeAllListeners(icpList.takePhoto.delectGoodsArts);
  256. if(result.code === 0){
  257. ElMessage.info('货号删除成功')
  258. getPhotoRecords()
  259. }else if(result.msg) {
  260. ElMessage.error(result.msg)
  261. }
  262. });
  263. }
  264. /**
  265. * 检查是否可以进入下一步操作。
  266. */
  267. const next = async function(){
  268. if(runLoading.value){
  269. ElMessage.error('正在拍摄中,请稍候')
  270. return;
  271. }
  272. if(goodsList.length){
  273. ElMessage.error('请先拍摄商品。')
  274. return;
  275. }
  276. }
  277. /**
  278. * 页面挂载时初始化事件监听器并获取初始数据。
  279. */
  280. onMounted(async () => {
  281. // 监听蓝牙扫描事件
  282. clientStore.ipc.on(icpList.socket.message + '_blue_tooth_scan', (event, result) => {
  283. console.log('_blue_tooth_scan')
  284. if (result.code === 0 && result.data?.data) {
  285. console.log(goods_art_no.value);
  286. if(!goods_art_no.value){
  287. ElMessage.error('请先扫描货号或者手动输入货号!')
  288. return;
  289. }
  290. runGoods({
  291. ...result.data?.data,
  292. goods_art_no: goods_art_no.value
  293. })
  294. }
  295. });
  296. await getPhotoRecords();
  297. // 监听图片处理完成事件
  298. clientStore.ipc.on(icpList.socket.message + '_image_process', (event, result) => {
  299. console.log('_image_process')
  300. console.log(result)
  301. getPhotoRecords()
  302. // 延迟两秒再获取一遍数据
  303. setTimeout(()=>{
  304. getPhotoRecords()
  305. },3000)
  306. })
  307. // 监听拍照完成事件
  308. clientStore.ipc.on(icpList.socket.message + '_photo_take', (event, result) => {
  309. console.log('_photo_take')
  310. console.log(result)
  311. if(result.status === 2 && result.msg.includes('执行完成')){
  312. getPhotoRecords()
  313. // 延迟两秒再获取一遍数据
  314. setTimeout(()=>{
  315. getPhotoRecords()
  316. },3000)
  317. takePictureLoading.value = false;
  318. }
  319. })
  320. // 监听拍照完成后的最终状态事件
  321. clientStore.ipc.on(icpList.socket.message + '_photo_take_finish', (event, result) => {
  322. console.log('_photo_take_finish')
  323. console.log(result)
  324. if(result.code === 0) runLoading.value = false;
  325. })
  326. // 监听手动触发拍照事件
  327. clientStore.ipc.on(icpList.socket.message + '_handler_take_picture', async (event, result) => {
  328. console.log('_photo_take_finish')
  329. console.log(result)
  330. if(result.code === 0){
  331. if(runLoading.value || takePictureLoading.value){
  332. ElMessage.error('拍摄程序正在运行,请稍候')
  333. return
  334. }
  335. ElMessage.success('正在拍摄中,请稍候')
  336. await socketStore.connectSocket();
  337. socketStore.sendMessage(result.data)
  338. takePictureLoading.value = true;
  339. getPhotoRecords()
  340. // 延迟两秒再获取一遍数据
  341. setTimeout(()=>{
  342. getPhotoRecords()
  343. },3000)
  344. }
  345. })
  346. })
  347. const checkInfoStore = checkInfo()
  348. checkInfoStore.set_blue_tooth_scan_NO('')
  349. watchEffect(async ()=>{
  350. if(checkInfoStore.blue_tooth_scan_NO){
  351. ElMessage.success('商品货号'+checkInfoStore.blue_tooth_scan_NO+'获取成功,请在遥控器上按下左或右脚按键,启动拍摄')
  352. goods_art_no.value = checkInfoStore.blue_tooth_scan_NO
  353. checkInfoStore.set_blue_tooth_scan_NO('')
  354. }
  355. })
  356. /**
  357. * 页面卸载时移除所有事件监听器。
  358. */
  359. onBeforeUnmount(() => {
  360. clientStore.ipc.removeAllListeners(icpList.socket.message + '_blue_tooth_scan');
  361. clientStore.ipc.removeAllListeners(icpList.socket.message + '_image_process');
  362. clientStore.ipc.removeAllListeners(icpList.socket.message + '_run_mcu');
  363. clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take');
  364. clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take_finish');
  365. })
  366. /**
  367. * 打开主图详情页面。
  368. */
  369. function openPhotographyDetail() {
  370. if(takePictureLoading.value){
  371. ElMessage.error('正在拍摄中,请稍候')
  372. return;
  373. }
  374. const { href } = Router.resolve({
  375. name: 'PhotographyDetail',
  376. query:{
  377. goods_art_nos:goodsList.value.map(item=>item.goods_art_no),
  378. }
  379. })
  380. clientStore.ipc.removeAllListeners(icpList.utils.openMain);
  381. let params = {
  382. title: '主图与详情生成',
  383. width: 1000,
  384. height: 630,
  385. frame: true,
  386. id: "PhotographyDetail",
  387. url: getRouterUrl(href)
  388. }
  389. clientStore.ipc.send(icpList.utils.openMain, params);
  390. }
  391. </script>
  392. <style lang="scss">
  393. .shot-image-popper {
  394. width: calc(100vw - 370px) !important;
  395. left: 20px !important;
  396. top: 50px !important;
  397. height: calc(100vh - 70px) !important;
  398. transform: translate(0px, 0px) !important;
  399. .el-image {
  400. width: 100%;
  401. height:100%;
  402. display: block;
  403. .el-image__inner {
  404. width: 100%;
  405. height:100%;
  406. display: block;
  407. }
  408. }
  409. }
  410. </style>
  411. <style scoped lang="scss">
  412. .photography-page {
  413. background-color: rgba(255, 255, 255, 1);
  414. position: relative;
  415. .main-container {
  416. position: relative;
  417. display: flex;
  418. .content-wrapper {
  419. flex-grow: 1 ;
  420. position: relative;
  421. top: 0;
  422. left: 0;
  423. right: 0;
  424. bottom: 0;
  425. margin: auto;
  426. justify-content: center;
  427. .step-number {
  428. background-color: rgba(22, 119, 255, 1);
  429. border-radius: 50%;
  430. height: 32px;
  431. margin-top: 51px;
  432. width: 32px;
  433. .text_22 {
  434. width: 6px;
  435. height: 22px;
  436. overflow-wrap: break-word;
  437. color: rgba(255, 255, 255, 1);
  438. font-size: 14px;
  439. font-weight: NaN;
  440. text-align: right;
  441. white-space: nowrap;
  442. line-height: 22px;
  443. margin: 5px 0 0 13px;
  444. }
  445. }
  446. .step-one {
  447. width: 426px;
  448. height: 521px;
  449. margin: 55px 0 0 5px;
  450. .step-header {
  451. width: 391px;
  452. height: 24px;
  453. margin-left: 3px;
  454. .step-title {
  455. width: 160px;
  456. height: 24px;
  457. overflow-wrap: break-word;
  458. color: rgba(0, 0, 0, 0.85);
  459. font-size: 16px;
  460. font-family: PingFangSC-Medium;
  461. font-weight: 500;
  462. text-align: left;
  463. white-space: nowrap;
  464. line-height: 24px;
  465. }
  466. .step-icon {
  467. width: 32px;
  468. height: 20px;
  469. margin-top: 4px;
  470. }
  471. .step-divider {
  472. width: 191px;
  473. height: 1px;
  474. margin: 13px 0 0 8px;
  475. }
  476. }
  477. .step-content {
  478. width: 426px;
  479. height: 469px;
  480. margin-top: 28px;
  481. .method-container {
  482. background-color: rgba(247, 247, 247, 1);
  483. height: 469px;
  484. width: 353px;
  485. .auto-method {
  486. width: 253px;
  487. height: 24px;
  488. margin: 28px 0 0 14px;
  489. .text-method-tag {
  490. background-color: rgba(0, 174, 30, 1);
  491. height: 24px;
  492. width: 65px;
  493. .text_4 {
  494. width: 56px;
  495. height: 20px;
  496. overflow-wrap: break-word;
  497. color: rgba(255, 255, 255, 1);
  498. font-size: 14px;
  499. font-family: PingFangSC-Semibold;
  500. font-weight: 600;
  501. text-align: left;
  502. white-space: nowrap;
  503. line-height: 20px;
  504. margin: 2px 0 0 4px;
  505. }
  506. }
  507. .method-description {
  508. width: 182px;
  509. height: 20px;
  510. overflow-wrap: break-word;
  511. color: rgba(71, 71, 71, 1);
  512. font-size: 14px;
  513. font-family: PingFangSC-Semibold;
  514. font-weight: 600;
  515. text-align: left;
  516. white-space: nowrap;
  517. line-height: 20px;
  518. margin-top: 2px;
  519. }
  520. }
  521. .scan-method {
  522. width: 263px;
  523. height: 246px;
  524. margin: 9px 0 0 85px;
  525. .remote-control {
  526. height: 246px;
  527. background: url(@/assets/images/Photography/left-button.png) 0px 0px no-repeat;
  528. background-size: 98px 246px;
  529. width: 97px;
  530. position: relative;
  531. .scan-button {
  532. background-color: rgba(0, 174, 30, 1);
  533. border-radius: 50%;
  534. width: 27px;
  535. height: 27px;
  536. margin: 27px 0 0 34px;
  537. }
  538. .scan-line {
  539. position: absolute;
  540. left: 52px;
  541. top: 40px;
  542. width: 112px;
  543. height: 1px;
  544. }
  545. }
  546. .scan-label {
  547. width: 96px;
  548. height: 22px;
  549. overflow-wrap: break-word;
  550. color: rgba(0, 174, 30, 1);
  551. font-size: 16px;
  552. font-family: PingFangSC-Semibold;
  553. font-weight: 600;
  554. text-align: left;
  555. white-space: nowrap;
  556. line-height: 22px;
  557. margin-top: 30px;
  558. }
  559. }
  560. .manual-method {
  561. width: 155px;
  562. height: 24px;
  563. margin: 53px 0 0 14px;
  564. .method-tag {
  565. background-color: rgba(0, 148, 174, 1);
  566. height: 24px;
  567. width: 65px;
  568. .text_7 {
  569. width: 56px;
  570. height: 20px;
  571. overflow-wrap: break-word;
  572. color: rgba(255, 255, 255, 1);
  573. font-size: 14px;
  574. font-family: PingFangSC-Semibold;
  575. font-weight: 600;
  576. text-align: left;
  577. white-space: nowrap;
  578. line-height: 20px;
  579. margin: 2px 0 0 4px;
  580. }
  581. }
  582. .method-description {
  583. width: 84px;
  584. height: 20px;
  585. overflow-wrap: break-word;
  586. color: rgba(71, 71, 71, 1);
  587. font-size: 14px;
  588. font-family: PingFangSC-Semibold;
  589. font-weight: 600;
  590. text-align: left;
  591. white-space: nowrap;
  592. line-height: 20px;
  593. margin-top: 2px;
  594. }
  595. }
  596. .input-container {
  597. width: 260px;
  598. height: 36px;
  599. margin: 7px 0 42px 83px;
  600. .input-item {
  601. :deep(.el-input__inner){
  602. height: 36px;
  603. line-height: 36px;
  604. }
  605. }
  606. }
  607. }
  608. .remote-image {
  609. width: 61px;
  610. height: 38px;
  611. margin-top: 216px;
  612. }
  613. }
  614. }
  615. .step-two {
  616. width: 384px;
  617. height: 521px;
  618. margin: 55px 0 0 7px;
  619. .step-title {
  620. width: 384px;
  621. height: 24px;
  622. overflow-wrap: break-word;
  623. color: rgba(0, 0, 0, 0.85);
  624. font-size: 16px;
  625. font-family: PingFangSC-Medium;
  626. font-weight: 500;
  627. text-align: left;
  628. white-space: nowrap;
  629. line-height: 24px;
  630. }
  631. .shooting-container {
  632. background-color: rgba(247, 247, 247, 1);
  633. width: 353px;
  634. height: 469px;
  635. margin: 28px 0 0 2px;
  636. .shooting-tips {
  637. width: 325px;
  638. height: 40px;
  639. margin: 12px 0 0 15px;
  640. .info-icon {
  641. width: 16px;
  642. height: 16px;
  643. margin-top: 2px;
  644. }
  645. .tips-text {
  646. width: 302px;
  647. height: 40px;
  648. overflow-wrap: break-word;
  649. color: rgba(255, 76, 0, 1);
  650. font-size: 14px;
  651. font-weight: NaN;
  652. text-align: left;
  653. line-height: 20px;
  654. }
  655. }
  656. .left-foot-text {
  657. width: 240px;
  658. height: 22px;
  659. overflow-wrap: break-word;
  660. color: rgba(0, 174, 30, 1);
  661. font-size: 16px;
  662. font-family: PingFangSC-Semibold;
  663. font-weight: 600;
  664. text-align: left;
  665. white-space: nowrap;
  666. line-height: 22px;
  667. margin: 36px 0 0 9px;
  668. }
  669. .remote-control-container {
  670. position: relative;
  671. width: 280px;
  672. height: 298px;
  673. margin: 9px 0 0 35px;
  674. .remote-buttons {
  675. width: 206px;
  676. height: 233px;
  677. background: url(@/assets/images/Photography/right-button.png) 100% no-repeat;
  678. background-size: 100% 100%;
  679. margin: 30px 0 0 37px;
  680. .left-button {
  681. background-color: rgba(0, 174, 30, 1);
  682. border-radius: 50%;
  683. width: 55px;
  684. height: 55px;
  685. margin: 91px 0 0 1px;
  686. }
  687. .right-button {
  688. background-color: rgba(0, 148, 174, 1);
  689. border-radius: 50%;
  690. width: 55px;
  691. height: 55px;
  692. margin: 91px 2px 0 93px;
  693. }
  694. }
  695. .left-button-image {
  696. width: 40px;
  697. height: 148px;
  698. margin: 150px 0 0 -3px;
  699. }
  700. .right-button-image {
  701. position: absolute;
  702. left: 0;
  703. top: 0;
  704. width: 40px;
  705. height: 148px;
  706. }
  707. }
  708. .right-foot-text {
  709. width: 240px;
  710. height: 22px;
  711. overflow-wrap: break-word;
  712. color: rgba(0, 148, 174, 1);
  713. font-size: 16px;
  714. font-family: PingFangSC-Semibold;
  715. font-weight: 600;
  716. text-align: left;
  717. white-space: nowrap;
  718. line-height: 22px;
  719. margin: 12px 0 18px 98px;
  720. }
  721. }
  722. }
  723. }
  724. .camera-image {
  725. position: absolute;
  726. left: 620px;
  727. top: 220px;
  728. width: 111px;
  729. height: 111px;
  730. }
  731. .step-number-two {
  732. background-color: rgba(22, 119, 255, 1);
  733. border-radius: 50%;
  734. height: 32px;
  735. width: 32px;
  736. position: absolute;
  737. left: 450px;
  738. top: 51px;
  739. .step-text {
  740. width: 9px;
  741. height: 22px;
  742. overflow-wrap: break-word;
  743. color: rgba(255, 255, 255, 1);
  744. font-size: 14px;
  745. font-weight: NaN;
  746. text-align: right;
  747. white-space: nowrap;
  748. line-height: 22px;
  749. margin: 5px 0 0 12px;
  750. }
  751. }
  752. }
  753. }
  754. .history-section {
  755. background-color: rgba(234, 236, 237, 1);
  756. width: 332px;
  757. height: calc(100vh - 30px);
  758. .history-title {
  759. width: calc(100% - 20px);
  760. height: 22px;
  761. overflow-wrap: break-word;
  762. color: rgba(51, 51, 51, 1);
  763. font-size: 16px;
  764. font-family: PingFangSC-Semibold;
  765. font-weight: 600;
  766. text-align: center;
  767. white-space: nowrap;
  768. line-height: 22px;
  769. margin: 9px 0 0 10px;
  770. }
  771. .divider-line {
  772. width: 100%;
  773. height: 1px;
  774. margin-top: 9px;
  775. }
  776. .history-warp {
  777. width: 100%;
  778. flex-grow: 1;
  779. overflow: auto;
  780. height: calc(100% - 125px);
  781. .history-item {
  782. .history-item_image {
  783. width: 70px;
  784. height: 70px;
  785. float: left;
  786. margin: 6px 0 0 6px;
  787. background: #F7F7F7;
  788. .el-image {
  789. display: block;
  790. width:100%;
  791. height: 100%;
  792. }
  793. &:first-child {
  794. width: 146px;
  795. height: 146px;
  796. }
  797. &.el-loading-parent--relative{
  798. ::v-deep {
  799. .el-loading-mask { display: none}
  800. }
  801. }
  802. }
  803. p:first-of-type {
  804. ::v-deep {
  805. .el-loading-mask { display: block !important;}
  806. }
  807. }
  808. }
  809. }
  810. .empty-state {
  811. width: 56px;
  812. height: 48px;
  813. .empty-icon {
  814. width: 32px;
  815. height: 18px;
  816. margin-left: 12px;
  817. }
  818. .empty-text {
  819. width: 56px;
  820. height: 20px;
  821. overflow-wrap: break-word;
  822. color: rgba(153, 153, 153, 1);
  823. font-size: 14px;
  824. font-weight: NaN;
  825. text-align: left;
  826. white-space: nowrap;
  827. line-height: 20px;
  828. margin-top: 10px;
  829. }
  830. }
  831. .next-step {
  832. height: 50px;
  833. background-size: 100% 100%;
  834. width: 100%;
  835. line-height: 50px;
  836. .next-step-text {
  837. width: 100%;
  838. overflow-wrap: break-word;
  839. color: rgba(255, 255, 255, 1);
  840. font-weight: NaN;
  841. text-align: center;
  842. white-space: nowrap;
  843. }
  844. }
  845. }
  846. </style>
  847. <style lang="scss" scoped></style>