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

487 lines
11 KiB

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