球星卡微信小程序
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.

482 lines
11 KiB

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