shot.vue 22 KB

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