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

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