shot.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <template>
  2. <div class="photography-page flex-col">
  3. <div class="main-container">
  4. <div class="content-wrapper flex-row">
  5. <img class="camera-image" referrerpolicy="no-referrer" src="@/assets/images/Photography/camera-icon.png" />
  6. <div class="step-number flex-col"><span class="text_22">1</span></div>
  7. <div class="step-one flex-col justify-between">
  8. <div class="step-header flex-row">
  9. <span class="step-title">第一步:获取商品货号</span>
  10. <img class="step-icon" referrerpolicy="no-referrer" src="@/assets/images/Photography/step1-icon.png" />
  11. <img class="step-divider" referrerpolicy="no-referrer"
  12. src="@/assets/images/Photography/step-divider-line.png" />
  13. </div>
  14. <div class="step-content flex-row justify-between">
  15. <div class="method-container flex-col">
  16. <div class="auto-method flex-row justify-between">
  17. <div class="text-method-tag flex-col"><span class="text_4">自动获取</span></div>
  18. <span class="method-description">用遥控器扫描商品资料二维码</span>
  19. </div>
  20. <div class="scan-method flex-row justify-between">
  21. <div class="remote-control flex-col">
  22. <div class="scan-button flex-col"></div>
  23. <img class="scan-line" referrerpolicy="no-referrer"
  24. src="@/assets/images/Photography/remote-scan-line.png" />
  25. </div>
  26. <span class="scan-label">遥控器扫描键</span>
  27. </div>
  28. <div class="manual-method flex-row justify-between">
  29. <div class="method-tag flex-col"><span class="text_7">手动获取</span></div>
  30. <span class="method-description">手工输入货号</span>
  31. </div>
  32. <div class="input-container flex-row">
  33. <el-input class="input-item" v-model="input2" placeholder="请输入货号">
  34. <template #append>
  35. <el-button class="input-button" type="primary" @click="input2 = ''">确认</el-button>
  36. </template>
  37. </el-input>
  38. </div>
  39. </div>
  40. <img class="remote-image" referrerpolicy="no-referrer"
  41. src="@/assets/images/Photography/remote-control.png" />
  42. </div>
  43. </div>
  44. <div class="step-number flex-col"><span class="text_22">2</span></div>
  45. <div class="step-two flex-col justify-between">
  46. <span class="step-title">第二步:启动拍摄(根据左右脚按遥控器左右键启动)</span>
  47. <div class="shooting-container flex-col">
  48. <div class="shooting-tips flex-row justify-between">
  49. <img class="info-icon" referrerpolicy="no-referrer" src="@/assets/images/Photography/info-icon.png" />
  50. <span class="tips-text">遥控左右按键可启动拍摄,中间按钮可在拍摄5张主图后解锁,用于拍摄自定义图</span>
  51. </div>
  52. <span class="left-foot-text">遥控器左键:控制左脚鞋启动拍摄</span>
  53. <div class="remote-control-container flex-row justify-end">
  54. <div class="remote-buttons flex-row">
  55. <div class="left-button flex-col"></div>
  56. <div class="right-button flex-col"></div>
  57. </div>
  58. <img class="left-button-image" referrerpolicy="no-referrer"
  59. src="@/assets/images/Photography/remote-left-button.png" />
  60. <img class="right-button-image" referrerpolicy="no-referrer"
  61. src="@/assets/images/Photography/remote-right-button.png" />
  62. </div>
  63. <span class="right-foot-text">遥控器右键:控制右脚鞋启动拍摄</span>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="history-section flex-col">
  68. <span class="history-title">拍摄历史</span>
  69. <img class="divider-line" referrerpolicy="no-referrer" src="@/assets/images/Photography/divider-line.png" />
  70. <div class="history-warp">
  71. <div class="history-item " style="padding:10px;">
  72. <div class="flex-item left c-333">货号:AU7729 8192 9291</div>
  73. <el-skeleton class="mar-top-10" style="width: 100%" :loading="loading" animated :throttle="500">
  74. <template #template>
  75. <div class="flex top left">
  76. <el-skeleton-item variant="image" style="width: 146px; height: 146px" />
  77. <div style=" flex: 1; height: 100%; margin-top: -6px;" class="flex top wrap between">
  78. <el-skeleton-item v-for="i in 4" :key="i" variant="image"
  79. style="width: 70px; height: 70px;margin: 6px 0 0 6px; " />
  80. </div>
  81. </div>
  82. </template>
  83. <template #default>
  84. <div class="flex top left">
  85. <el-popover v-if="test_image_url" width="280" height="280" trigger="hover">
  86. <template #reference>
  87. <el-image :src="ossResize(test_image_url, {
  88. m: 'fill',
  89. h: 146,
  90. w: 146
  91. })" fit="contain" class="cur-p" style="width: 146px; height: 146px" />
  92. </template>
  93. <el-image style="width: 250px;height: 250px" fit="contain" :src="ossResize(test_image_url, {
  94. m: 'fill',
  95. h: 250,
  96. w: 250
  97. })
  98. " />
  99. </el-popover>
  100. <div style=" flex: 1; height: 100%; margin-top: -6px;" class="flex top wrap between">
  101. <template v-for="i in 4" :key="i">
  102. <el-popover v-if="test_image_url" width="280" height="280" trigger="hover">
  103. <template #reference>
  104. <el-image :src="ossResize(test_image_url, {
  105. m: 'fill',
  106. h: 80,
  107. w: 80
  108. })" fit="contain" class="cur-p" style="width: 70px; height: 70px;margin: 6px 0 0 6px;" />
  109. </template>
  110. <el-image style="width: 250px;height: 250px" fit="contain" :src="ossResize(test_image_url, {
  111. m: 'fill',
  112. h: 250,
  113. w: 250
  114. })
  115. " />
  116. </el-popover>
  117. </template>
  118. </div>
  119. </div>
  120. </template>
  121. </el-skeleton>
  122. </div>
  123. <template v-for="i in 5" :key="i">
  124. <img class="divider-line" referrerpolicy="no-referrer"
  125. src="@/assets/images/Photography/divider-line.png" />
  126. <div class="history-item" style="padding:10px;">
  127. <div class="flex-item left c-333">货号:AU7729 8192 9291</div>
  128. <el-skeleton class="mar-top-10" style="width: 100%" :loading="loading" animated :throttle="500">
  129. <template #template>
  130. <div class="flex top left">
  131. <el-skeleton-item variant="image" style="width: 146px; height: 146px" />
  132. <div style=" flex: 1; height: 100%; margin-top: -6px; margin-left: 8px;"
  133. class="flex top wrap between">
  134. <el-skeleton-item v-for="i in 4" :key="i" variant="image"
  135. style="width: 70px; height: 70px;margin: 6px 0 0 0px; " />
  136. </div>
  137. </div>
  138. <div style=" flex: 1; height: 100%; margin-top: 4px;" class="flex top wrap between">
  139. <el-skeleton-item v-for="i in 4" :key="i" variant="image"
  140. style="width: 70px; height: 70px;margin: 6px 0 0 0px; " />
  141. </div>
  142. </template>
  143. <template #default>
  144. <div class="flex top left">
  145. <el-image :src="ossResize(test_image_url, {
  146. m: 'fill',
  147. h: 80,
  148. w: 80
  149. })" fit="contain" style="width: 146px; height: 146px" />
  150. <div style=" flex: 1; height: 100%; margin-top: -6px; margin-left: 8px;"
  151. class="flex top wrap between">
  152. <el-image v-for="i in 4" :key="i" :src="ossResize(test_image_url, {
  153. m: 'fill',
  154. h: 80,
  155. w: 80
  156. })" fit="contain" style="width: 70px; height: 70px;margin: 6px 0 0 0px; " />
  157. </div>
  158. </div>
  159. <div style=" flex: 1; height: 100%; margin-top: 4px; margin-left: -6px;" class="flex top wrap left">
  160. <el-image v-for="i in 6" :key="i" :src="ossResize(test_image_url, {
  161. m: 'fill',
  162. h: 80,
  163. w: 80
  164. })" fit="contain" style="width: 70px; height: 70px; margin: 6px 0 0 7px; " />
  165. </div>
  166. </template>
  167. </el-skeleton>
  168. </div>
  169. </template>
  170. </div>
  171. <!-- 无数据 -->
  172. <!-- <div class="empty-state flex-col justify-between">
  173. <img
  174. class="empty-icon"
  175. referrerpolicy="no-referrer"
  176. src="@/assets/images/Photography/empty-state-icon.png"
  177. />
  178. <span class="empty-text">暂无数据</span>
  179. </div> -->
  180. <div @click="loading = !loading" class="next-step button--primary1 flex-col"><span
  181. class="next-step-text">拍摄完毕,进入下一步处理</span></div>
  182. </div>
  183. </div>
  184. </div>
  185. </template>
  186. <script setup lang="ts">
  187. import { ref } from 'vue'
  188. import { ossResize } from '@/utils/appfun'
  189. const input2 = ref('')
  190. const loading = ref(true)
  191. const test_image_url = ref('https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png')
  192. </script>
  193. <style scoped lang="scss">
  194. .photography-page {
  195. background-color: rgba(255, 255, 255, 1);
  196. position: relative;
  197. .main-container {
  198. position: relative;
  199. display: flex;
  200. .content-wrapper {
  201. flex-grow: 1 ;
  202. position: relative;
  203. top: 0;
  204. left: 0;
  205. right: 0;
  206. bottom: 0;
  207. margin: auto;
  208. justify-content: center;
  209. .step-number {
  210. background-color: rgba(22, 119, 255, 1);
  211. border-radius: 50%;
  212. height: 32px;
  213. margin-top: 51px;
  214. width: 32px;
  215. .text_22 {
  216. width: 6px;
  217. height: 22px;
  218. overflow-wrap: break-word;
  219. color: rgba(255, 255, 255, 1);
  220. font-size: 14px;
  221. font-weight: NaN;
  222. text-align: right;
  223. white-space: nowrap;
  224. line-height: 22px;
  225. margin: 5px 0 0 13px;
  226. }
  227. }
  228. .step-one {
  229. width: 426px;
  230. height: 521px;
  231. margin: 55px 0 0 5px;
  232. .step-header {
  233. width: 391px;
  234. height: 24px;
  235. margin-left: 3px;
  236. .step-title {
  237. width: 160px;
  238. height: 24px;
  239. overflow-wrap: break-word;
  240. color: rgba(0, 0, 0, 0.85);
  241. font-size: 16px;
  242. font-family: PingFangSC-Medium;
  243. font-weight: 500;
  244. text-align: left;
  245. white-space: nowrap;
  246. line-height: 24px;
  247. }
  248. .step-icon {
  249. width: 32px;
  250. height: 20px;
  251. margin-top: 4px;
  252. }
  253. .step-divider {
  254. width: 191px;
  255. height: 1px;
  256. margin: 13px 0 0 8px;
  257. }
  258. }
  259. .step-content {
  260. width: 426px;
  261. height: 469px;
  262. margin-top: 28px;
  263. .method-container {
  264. background-color: rgba(247, 247, 247, 1);
  265. height: 469px;
  266. width: 353px;
  267. .auto-method {
  268. width: 253px;
  269. height: 24px;
  270. margin: 28px 0 0 14px;
  271. .text-method-tag {
  272. background-color: rgba(0, 174, 30, 1);
  273. height: 24px;
  274. width: 65px;
  275. .text_4 {
  276. width: 56px;
  277. height: 20px;
  278. overflow-wrap: break-word;
  279. color: rgba(255, 255, 255, 1);
  280. font-size: 14px;
  281. font-family: PingFangSC-Semibold;
  282. font-weight: 600;
  283. text-align: left;
  284. white-space: nowrap;
  285. line-height: 20px;
  286. margin: 2px 0 0 4px;
  287. }
  288. }
  289. .method-description {
  290. width: 182px;
  291. height: 20px;
  292. overflow-wrap: break-word;
  293. color: rgba(71, 71, 71, 1);
  294. font-size: 14px;
  295. font-family: PingFangSC-Semibold;
  296. font-weight: 600;
  297. text-align: left;
  298. white-space: nowrap;
  299. line-height: 20px;
  300. margin-top: 2px;
  301. }
  302. }
  303. .scan-method {
  304. width: 263px;
  305. height: 246px;
  306. margin: 9px 0 0 85px;
  307. .remote-control {
  308. height: 246px;
  309. background: url(@/assets/images/Photography/left-button.png) 0px 0px no-repeat;
  310. background-size: 98px 246px;
  311. width: 97px;
  312. position: relative;
  313. .scan-button {
  314. background-color: rgba(0, 174, 30, 1);
  315. border-radius: 50%;
  316. width: 27px;
  317. height: 27px;
  318. margin: 27px 0 0 34px;
  319. }
  320. .scan-line {
  321. position: absolute;
  322. left: 52px;
  323. top: 40px;
  324. width: 112px;
  325. height: 1px;
  326. }
  327. }
  328. .scan-label {
  329. width: 96px;
  330. height: 22px;
  331. overflow-wrap: break-word;
  332. color: rgba(0, 174, 30, 1);
  333. font-size: 16px;
  334. font-family: PingFangSC-Semibold;
  335. font-weight: 600;
  336. text-align: left;
  337. white-space: nowrap;
  338. line-height: 22px;
  339. margin-top: 30px;
  340. }
  341. }
  342. .manual-method {
  343. width: 155px;
  344. height: 24px;
  345. margin: 53px 0 0 14px;
  346. .method-tag {
  347. background-color: rgba(0, 148, 174, 1);
  348. height: 24px;
  349. width: 65px;
  350. .text_7 {
  351. width: 56px;
  352. height: 20px;
  353. overflow-wrap: break-word;
  354. color: rgba(255, 255, 255, 1);
  355. font-size: 14px;
  356. font-family: PingFangSC-Semibold;
  357. font-weight: 600;
  358. text-align: left;
  359. white-space: nowrap;
  360. line-height: 20px;
  361. margin: 2px 0 0 4px;
  362. }
  363. }
  364. .method-description {
  365. width: 84px;
  366. height: 20px;
  367. overflow-wrap: break-word;
  368. color: rgba(71, 71, 71, 1);
  369. font-size: 14px;
  370. font-family: PingFangSC-Semibold;
  371. font-weight: 600;
  372. text-align: left;
  373. white-space: nowrap;
  374. line-height: 20px;
  375. margin-top: 2px;
  376. }
  377. }
  378. .input-container {
  379. width: 260px;
  380. height: 36px;
  381. margin: 7px 0 42px 83px;
  382. .input-item {
  383. :deep(.el-input__inner){
  384. height: 36px;
  385. line-height: 36px;
  386. }
  387. }
  388. }
  389. }
  390. .remote-image {
  391. width: 61px;
  392. height: 38px;
  393. margin-top: 216px;
  394. }
  395. }
  396. }
  397. .step-two {
  398. width: 384px;
  399. height: 521px;
  400. margin: 55px 0 0 7px;
  401. .step-title {
  402. width: 384px;
  403. height: 24px;
  404. overflow-wrap: break-word;
  405. color: rgba(0, 0, 0, 0.85);
  406. font-size: 16px;
  407. font-family: PingFangSC-Medium;
  408. font-weight: 500;
  409. text-align: left;
  410. white-space: nowrap;
  411. line-height: 24px;
  412. }
  413. .shooting-container {
  414. background-color: rgba(247, 247, 247, 1);
  415. width: 353px;
  416. height: 469px;
  417. margin: 28px 0 0 2px;
  418. .shooting-tips {
  419. width: 325px;
  420. height: 40px;
  421. margin: 12px 0 0 15px;
  422. .info-icon {
  423. width: 16px;
  424. height: 16px;
  425. margin-top: 2px;
  426. }
  427. .tips-text {
  428. width: 302px;
  429. height: 40px;
  430. overflow-wrap: break-word;
  431. color: rgba(255, 76, 0, 1);
  432. font-size: 14px;
  433. font-weight: NaN;
  434. text-align: left;
  435. line-height: 20px;
  436. }
  437. }
  438. .left-foot-text {
  439. width: 240px;
  440. height: 22px;
  441. overflow-wrap: break-word;
  442. color: rgba(0, 174, 30, 1);
  443. font-size: 16px;
  444. font-family: PingFangSC-Semibold;
  445. font-weight: 600;
  446. text-align: left;
  447. white-space: nowrap;
  448. line-height: 22px;
  449. margin: 36px 0 0 9px;
  450. }
  451. .remote-control-container {
  452. position: relative;
  453. width: 280px;
  454. height: 298px;
  455. margin: 9px 0 0 35px;
  456. .remote-buttons {
  457. width: 206px;
  458. height: 233px;
  459. background: url(@/assets/images/Photography/right-button.png) 100% no-repeat;
  460. background-size: 100% 100%;
  461. margin: 30px 0 0 37px;
  462. .left-button {
  463. background-color: rgba(0, 174, 30, 1);
  464. border-radius: 50%;
  465. width: 55px;
  466. height: 55px;
  467. margin: 91px 0 0 1px;
  468. }
  469. .right-button {
  470. background-color: rgba(0, 148, 174, 1);
  471. border-radius: 50%;
  472. width: 55px;
  473. height: 55px;
  474. margin: 91px 2px 0 93px;
  475. }
  476. }
  477. .left-button-image {
  478. width: 40px;
  479. height: 148px;
  480. margin: 150px 0 0 -3px;
  481. }
  482. .right-button-image {
  483. position: absolute;
  484. left: 0;
  485. top: 0;
  486. width: 40px;
  487. height: 148px;
  488. }
  489. }
  490. .right-foot-text {
  491. width: 240px;
  492. height: 22px;
  493. overflow-wrap: break-word;
  494. color: rgba(0, 148, 174, 1);
  495. font-size: 16px;
  496. font-family: PingFangSC-Semibold;
  497. font-weight: 600;
  498. text-align: left;
  499. white-space: nowrap;
  500. line-height: 22px;
  501. margin: 12px 0 18px 98px;
  502. }
  503. }
  504. }
  505. }
  506. .camera-image {
  507. position: absolute;
  508. left: 620px;
  509. top: 220px;
  510. width: 111px;
  511. height: 111px;
  512. }
  513. .step-number-two {
  514. background-color: rgba(22, 119, 255, 1);
  515. border-radius: 50%;
  516. height: 32px;
  517. width: 32px;
  518. position: absolute;
  519. left: 450px;
  520. top: 51px;
  521. .step-text {
  522. width: 9px;
  523. height: 22px;
  524. overflow-wrap: break-word;
  525. color: rgba(255, 255, 255, 1);
  526. font-size: 14px;
  527. font-weight: NaN;
  528. text-align: right;
  529. white-space: nowrap;
  530. line-height: 22px;
  531. margin: 5px 0 0 12px;
  532. }
  533. }
  534. }
  535. }
  536. .history-section {
  537. background-color: rgba(234, 236, 237, 1);
  538. width: 332px;
  539. height: 100vh;
  540. .history-title {
  541. width: 64px;
  542. height: 22px;
  543. overflow-wrap: break-word;
  544. color: rgba(51, 51, 51, 1);
  545. font-size: 16px;
  546. font-family: PingFangSC-Semibold;
  547. font-weight: 600;
  548. text-align: center;
  549. white-space: nowrap;
  550. line-height: 22px;
  551. margin: 9px 0 0 10px;
  552. }
  553. .divider-line {
  554. width: 100%;
  555. height: 1px;
  556. margin-top: 9px;
  557. }
  558. .history-warp {
  559. width: 100%;
  560. flex-grow: 1;
  561. overflow: auto;
  562. height: calc(100% - 125px);
  563. }
  564. .empty-state {
  565. width: 56px;
  566. height: 48px;
  567. .empty-icon {
  568. width: 32px;
  569. height: 18px;
  570. margin-left: 12px;
  571. }
  572. .empty-text {
  573. width: 56px;
  574. height: 20px;
  575. overflow-wrap: break-word;
  576. color: rgba(153, 153, 153, 1);
  577. font-size: 14px;
  578. font-weight: NaN;
  579. text-align: left;
  580. white-space: nowrap;
  581. line-height: 20px;
  582. margin-top: 10px;
  583. }
  584. }
  585. .next-step {
  586. height: 50px;
  587. background-size: 100% 100%;
  588. width: 100%;
  589. line-height: 50px;
  590. .next-step-text {
  591. width: 100%;
  592. overflow-wrap: break-word;
  593. color: rgba(255, 255, 255, 1);
  594. font-weight: NaN;
  595. text-align: center;
  596. white-space: nowrap;
  597. }
  598. }
  599. }
  600. </style>
  601. <style lang="scss" scoped></style>