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

483 lines
11 KiB

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