球星卡微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

492 lines
11 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
3 years ago
3 years ago
  1. <template>
  2. <view class="flex-col page">
  3. <view class="flex-col group_4">
  4. <view class="flex-col section_2" v-if="imageList.length > 0">
  5. <view class="flex-row equal-division">
  6. <image mode="aspectFit" :src="item" class="equal-division-item" v-for="(item, index) in imageList" :key="index" @click="previewImage(index)" />
  7. </view>
  8. </view>
  9. <view class="flex-col section_3">
  10. <view class="flex-row">
  11. <text class="text_2">编号</text>
  12. <text class="text_3">{{ details.sub_order.series_num }}</text>
  13. </view>
  14. <view class="flex-row">
  15. <text class="text_2">年份</text>
  16. <text class="text_3">{{ details.sub_order.years }}</text>
  17. </view>
  18. <view class="flex-row group_8">
  19. <text class="text_2">发行商</text>
  20. <text class="text_3">{{ details.sub_order.publisher }}</text>
  21. </view>
  22. <view class="flex-row group_6">
  23. <text class="text_2">系列</text>
  24. <text class="text_3">{{ details.sub_order.card_series }}</text>
  25. </view>
  26. <view class="flex-row group_7">
  27. <text class="text_2">子系列</text>
  28. <text class="text_3">{{ details.sub_order.sub_card_series }}</text>
  29. </view>
  30. <view class="flex-row group_8">
  31. <text class="text_2">卡片限编</text>
  32. <text class="text_3">{{ details.sub_order.limit_num }}</text>
  33. </view>
  34. <view class="flex-row group_8">
  35. <text class="text_2">人物名称</text>
  36. <text class="text_3">{{ details.sub_order.title }}</text>
  37. </view>
  38. </view>
  39. <view class="justify-between section_4">
  40. <view class="flex-col">
  41. <view class="flex-col items-center">
  42. <view class="group_11">
  43. <text class="text_10">居中分</text>
  44. <text class="text_11">{{ details.sub_order.center_s }}</text>
  45. </view>
  46. <view class="group_12">
  47. <text class="text_12">卡角分</text>
  48. <text class="text_13">{{ details.sub_order.corner_s }}</text>
  49. </view>
  50. </view>
  51. <view class="group_13">
  52. <text class="text_14">边框分</text>
  53. <text class="text_15">{{ details.sub_order.border_s }}</text>
  54. </view>
  55. <view class="group_14">
  56. <text class="text_16">表面分</text>
  57. <text class="text_17">{{ details.sub_order.front_s }}</text>
  58. </view>
  59. <view class="group_15">
  60. <text class="text_18">签字分</text>
  61. <text class="text_19">{{ details.sub_order.sign_s }}</text>
  62. </view>
  63. </view>
  64. <view class="flex-col items-center section_5">
  65. <text class="text_20">{{ details.sub_order.total_s }}</text>
  66. <text class="text_score">{{ details.sub_order.score }}</text>
  67. <text class="text_21">总评分</text>
  68. </view>
  69. </view>
  70. <view class="flex-col section_6" v-if="$isRight(details.history)">
  71. <view class="flex-col group_16">
  72. <lf-table :Header="header" :Content="details.history" height="auto" width="686" :showNumber="false"></lf-table>
  73. <view class="flex-col items-center button" @click="setClipboardData" v-if="details.sub_order.pm_url">
  74. <text>复制拍卖链接</text>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </template>
  81. <script>
  82. import lfTable from '@/components/lf-table.vue';
  83. export default {
  84. components: {
  85. lfTable
  86. },
  87. data() {
  88. return {
  89. header: [{
  90. text: '评级',
  91. width: 343,
  92. key: 'title'
  93. },{
  94. text: '数量',
  95. width: 343,
  96. key: 'num'
  97. }],
  98. details: {},
  99. };
  100. },
  101. computed: {
  102. imageList(){
  103. let list = [];
  104. if(this.details.sub_order){
  105. if(!this.details.sub_order.images_url) return list;
  106. let count = this.details.sub_order.images_url.length;
  107. list = this.details.sub_order.images_url;
  108. if(count<3){
  109. for(let i=0;i<3-count;i++){
  110. list.push(null)
  111. }
  112. }
  113. }
  114. return list;
  115. }
  116. },
  117. onLoad(options){
  118. if(this.$valueType(options.data) !== 'undefined'){
  119. this.details = JSON.parse(decodeURIComponent(options.data));
  120. let f = ['series_num','card_series','card_series',
  121. 'sub_card_series','publisher','limit_num',
  122. 'center_s','corner_s','border_s','front_s',
  123. 'sign_s','score'];
  124. for (let i = 0; i < f.length; i++) {
  125. let key = f[i]
  126. let v = this.details.sub_order[key]
  127. if(v == null || v == '0'){
  128. this.details.sub_order[key] = '-'
  129. }
  130. }
  131. }
  132. },
  133. methods: {
  134. // 复制拍卖链接 todo 暂时不用
  135. setClipboardData(){
  136. let that = this;
  137. uni.setClipboardData({
  138. data: that.details.sub_order.pm_url
  139. })
  140. },
  141. previewImage(current){
  142. if(this.imageList[current]){
  143. uni.previewImage({
  144. urls: this.imageList,
  145. current: current
  146. })
  147. }
  148. },
  149. }
  150. };
  151. </script>
  152. <style scoped lang="scss">
  153. .equal-division-item {
  154. flex: 1 1 330rpx;
  155. border-radius: 10rpx;
  156. width: 330rpx;
  157. height: 396rpx;
  158. &:nth-child(2n){
  159. margin-left: 25rpx;
  160. }
  161. }
  162. .left-text-wrapper {
  163. width: 82rpx;
  164. }
  165. .page {
  166. background-color: #f6f6f6;
  167. width: 100%;
  168. overflow-y: auto;
  169. height: 100%;
  170. }
  171. .group_4 {
  172. padding-top: 2rpx;
  173. flex: 1 1 auto;
  174. overflow-y: auto;
  175. }
  176. .section_2 {
  177. padding: 40rpx 0;
  178. background-color: rgb(255, 255, 255);
  179. }
  180. .section_3 {
  181. margin-top: 30rpx;
  182. padding: 40rpx 32rpx;
  183. background-color: rgb(255, 255, 255);
  184. }
  185. .section_4 {
  186. margin-top: 30rpx;
  187. padding: 40rpx 34rpx;
  188. background-color: rgb(255, 255, 255);
  189. }
  190. .section_6 {
  191. margin-top: 30rpx;
  192. padding: 0 32rpx 16rpx;
  193. background-color: rgb(255, 255, 255);
  194. }
  195. .equal-division {
  196. margin-left: 32rpx;
  197. margin-right: 33rpx;
  198. }
  199. .group_6 {
  200. margin-top: 50rpx;
  201. }
  202. .group_7 {
  203. margin-top: 50rpx;
  204. }
  205. .group_8 {
  206. margin-top: 50rpx;
  207. }
  208. .section_5 {
  209. margin-right: 78rpx;
  210. margin-top: 6rpx;
  211. padding: 80rpx 0;
  212. background-image: url('https://qxk-img.leadfyy.com/qxk_app_images/pingfenkuang.png');
  213. background-position: 0px 0px;
  214. background-size: 100% 100%;
  215. background-repeat: no-repeat;
  216. width: 306rpx;
  217. height: 404rpx;
  218. }
  219. .group_16 {
  220. padding: 40rpx 0;
  221. }
  222. .image_7 {
  223. margin-left: 25rpx;
  224. }
  225. .text_2 {
  226. color: rgb(119, 119, 119);
  227. font-size: 32rpx;
  228. font-weight: 500;
  229. line-height: 44rpx;
  230. white-space: nowrap;
  231. display: inline-block;
  232. width: 180rpx;
  233. }
  234. .text_3 {
  235. color: rgb(51, 51, 51);
  236. font-size: 32rpx;
  237. font-weight: 500;
  238. line-height: 44rpx;
  239. white-space: nowrap;
  240. }
  241. .text_4 {
  242. color: rgb(119, 119, 119);
  243. font-size: 32rpx;
  244. font-weight: 500;
  245. line-height: 44rpx;
  246. white-space: nowrap;
  247. }
  248. .text_5 {
  249. margin-left: 92rpx;
  250. color: rgb(51, 51, 51);
  251. font-size: 32rpx;
  252. font-weight: 500;
  253. line-height: 44rpx;
  254. white-space: nowrap;
  255. }
  256. .text_6 {
  257. color: rgb(119, 119, 119);
  258. font-size: 32rpx;
  259. font-weight: 500;
  260. line-height: 44rpx;
  261. white-space: nowrap;
  262. }
  263. .text_7 {
  264. margin-left: 60rpx;
  265. color: rgb(51, 51, 51);
  266. font-size: 32rpx;
  267. font-weight: 500;
  268. line-height: 44rpx;
  269. white-space: nowrap;
  270. }
  271. .text_8 {
  272. color: rgb(119, 119, 119);
  273. font-size: 32rpx;
  274. font-weight: 500;
  275. line-height: 44rpx;
  276. white-space: nowrap;
  277. }
  278. .text_9 {
  279. margin-left: 60rpx;
  280. color: rgb(51, 51, 51);
  281. font-size: 32rpx;
  282. font-weight: 500;
  283. line-height: 44rpx;
  284. white-space: nowrap;
  285. }
  286. .group_13 {
  287. margin-top: 50rpx;
  288. white-space: nowrap;
  289. }
  290. .group_14 {
  291. margin-top: 50rpx;
  292. white-space: nowrap;
  293. }
  294. .group_15 {
  295. margin-top: 50rpx;
  296. white-space: nowrap;
  297. }
  298. .text_20 {
  299. color: rgb(34, 34, 34);
  300. font-size: 120rpx;
  301. line-height: 168rpx;
  302. white-space: nowrap;
  303. }
  304. .text_21 {
  305. margin-top: 36rpx;
  306. color: rgb(34, 34, 34);
  307. font-size: 28rpx;
  308. font-weight: 500;
  309. line-height: 40rpx;
  310. white-space: nowrap;
  311. }
  312. .section_7 {
  313. border-radius: 10rpx;
  314. border: solid 2rpx rgb(246, 246, 246);
  315. }
  316. .button {
  317. margin-top: 40rpx;
  318. padding: 26rpx 0;
  319. color: rgb(255, 255, 255);
  320. font-size: 32rpx;
  321. font-weight: 600;
  322. line-height: 44rpx;
  323. white-space: nowrap;
  324. background-color: rgb(231, 162, 63);
  325. border-radius: 10rpx;
  326. }
  327. .group_11 {
  328. white-space: nowrap;
  329. }
  330. .group_12 {
  331. margin-top: 40rpx;
  332. white-space: nowrap;
  333. }
  334. .text_14 {
  335. color: rgb(119, 119, 119);
  336. font-size: 32rpx;
  337. font-weight: 500;
  338. line-height: 44rpx;
  339. }
  340. .text_15 {
  341. color: rgb(51, 51, 51);
  342. font-size: 32rpx;
  343. font-weight: 700;
  344. line-height: 44rpx;
  345. }
  346. .text_16 {
  347. color: rgb(119, 119, 119);
  348. font-size: 32rpx;
  349. font-weight: 500;
  350. line-height: 44rpx;
  351. }
  352. .text_17 {
  353. color: rgb(51, 51, 51);
  354. font-size: 32rpx;
  355. font-weight: 700;
  356. line-height: 44rpx;
  357. }
  358. .text_18 {
  359. color: rgb(119, 119, 119);
  360. font-size: 32rpx;
  361. font-weight: 500;
  362. line-height: 44rpx;
  363. }
  364. .text_19 {
  365. color: rgb(51, 51, 51);
  366. font-size: 32rpx;
  367. font-weight: 700;
  368. line-height: 44rpx;
  369. }
  370. .section_8 {
  371. padding: 20rpx 130rpx;
  372. color: rgb(85, 85, 85);
  373. font-size: 28rpx;
  374. font-weight: 500;
  375. line-height: 40rpx;
  376. white-space: nowrap;
  377. background-color: rgb(246, 246, 246);
  378. border-radius: 10rpx 10rpx 0px 0px;
  379. }
  380. .group_17 {
  381. padding: 16rpx 158rpx;
  382. color: rgb(51, 51, 51);
  383. font-size: 32rpx;
  384. font-weight: 600;
  385. line-height: 44rpx;
  386. white-space: nowrap;
  387. border-bottom: solid 2rpx rgb(246, 246, 246);
  388. }
  389. .group_18 {
  390. padding: 16rpx 150rpx;
  391. color: rgb(51, 51, 51);
  392. font-size: 32rpx;
  393. font-weight: 600;
  394. line-height: 44rpx;
  395. white-space: nowrap;
  396. border-bottom: solid 2rpx rgb(246, 246, 246);
  397. }
  398. .group_19 {
  399. padding: 16rpx 154rpx 0 162rpx;
  400. color: rgb(51, 51, 51);
  401. font-size: 32rpx;
  402. font-weight: 600;
  403. line-height: 44rpx;
  404. white-space: nowrap;
  405. position: relative;
  406. }
  407. .group_20 {
  408. margin-top: 14rpx;
  409. padding: 18rpx 150rpx 14rpx;
  410. color: rgb(51, 51, 51);
  411. font-size: 32rpx;
  412. font-weight: 600;
  413. line-height: 44rpx;
  414. white-space: nowrap;
  415. border-top: solid 2rpx rgb(246, 246, 246);
  416. border-bottom: solid 2rpx rgb(246, 246, 246);
  417. }
  418. .group_21 {
  419. padding: 16rpx 152rpx 16rpx 164rpx;
  420. color: rgb(51, 51, 51);
  421. font-size: 32rpx;
  422. font-weight: 600;
  423. line-height: 44rpx;
  424. white-space: nowrap;
  425. border-bottom: solid 2rpx rgb(246, 246, 246);
  426. }
  427. .group_22 {
  428. padding: 16rpx 134rpx 20rpx;
  429. color: rgb(51, 51, 51);
  430. font-size: 32rpx;
  431. font-weight: 600;
  432. line-height: 44rpx;
  433. white-space: nowrap;
  434. }
  435. .text_10 {
  436. color: rgb(119, 119, 119);
  437. font-size: 32rpx;
  438. font-weight: 500;
  439. line-height: 44rpx;
  440. }
  441. .text_11 {
  442. color: rgb(51, 51, 51);
  443. font-size: 32rpx;
  444. font-weight: 700;
  445. line-height: 44rpx;
  446. }
  447. .text_12 {
  448. color: rgb(119, 119, 119);
  449. font-size: 32rpx;
  450. font-weight: 500;
  451. line-height: 44rpx;
  452. }
  453. .text_13 {
  454. color: rgb(51, 51, 51);
  455. font-size: 32rpx;
  456. font-weight: 700;
  457. line-height: 44rpx;
  458. }
  459. .section_9 {
  460. align-self: center;
  461. background-color: rgb(255, 255, 255);
  462. width: 82rpx;
  463. height: 2rpx;
  464. }
  465. .text_25 {
  466. margin-right: 6rpx;
  467. }
  468. .text_27 {
  469. margin-right: 12rpx;
  470. }
  471. .text_35 {
  472. margin-right: 18rpx;
  473. }
  474. .image_8 {
  475. align-self: center;
  476. width: 20rpx;
  477. height: 22rpx;
  478. }
  479. .text_34 {
  480. margin-left: 8rpx;
  481. }
  482. </style>