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

427 lines
11 KiB

  1. <template>
  2. <view class="flex-col page">
  3. <view class="flex-col group_4">
  4. <view class="flex-col group_5">
  5. <view class="flex-row equal-division">
  6. <view class="equal-division-item flex-col items-center">
  7. <image
  8. src="https://project-user-resource-1256085488.cos.ap-guangzhou.myqcloud.com/62677e395a7e3f03107ffc5f/62677e4a35a7e10011e93a80/16509497893751612328.png"
  9. class="image_6"
  10. />
  11. <text class="text_2">填写信息</text>
  12. </view>
  13. <view class="equal-division-item flex-col items-center">
  14. <image
  15. src="https://project-user-resource-1256085488.cos.ap-guangzhou.myqcloud.com/62677e395a7e3f03107ffc5f/62677e4a35a7e10011e93a80/16509497893763969052.png"
  16. class="image_6"
  17. />
  18. <text class="text_2">藏品寄送</text>
  19. </view>
  20. <view class="equal-division-item flex-col items-center">
  21. <image
  22. src="https://project-user-resource-1256085488.cos.ap-guangzhou.myqcloud.com/62677e395a7e3f03107ffc5f/62677e4a35a7e10011e93a80/16509497893767537982.png"
  23. class="image_6"
  24. />
  25. <text class="text_2">评级</text>
  26. </view>
  27. </view>
  28. <view class="justify-between group_9">
  29. <view class="section_2"> </view>
  30. <view class="section_3"> </view>
  31. </view>
  32. </view>
  33. <view class="flex-col section_4" @click="$url('/packages/address/address?is_select=1')">
  34. <view v-if="$isRight(address)">
  35. <view class="justify-between">
  36. <view class="flex-row">
  37. <text class="text_6">{{ address.name }}</text>
  38. <text class="text_7">{{ address.tel }}</text>
  39. </view>
  40. <image
  41. src="https://project-user-resource-1256085488.cos.ap-guangzhou.myqcloud.com/62677e395a7e3f03107ffc5f/62677e4a35a7e10011e93a80/16509497893779891395.png"
  42. class="image_10 image_11"
  43. />
  44. </view>
  45. <text class="text_8">{{ address.desc }}</text>
  46. </view>
  47. <!-- 没有选择地址时 -->
  48. <view v-else>
  49. <view class="justify-between">
  50. <view class="flex-row">
  51. <text class="lf-font-32">点击选择收货地址</text>
  52. </view>
  53. <image
  54. src="https://project-user-resource-1256085488.cos.ap-guangzhou.myqcloud.com/62677e395a7e3f03107ffc5f/62677e4a35a7e10011e93a80/16509497893779891395.png"
  55. class="image_10 image_11"
  56. />
  57. </view>
  58. </view>
  59. </view>
  60. <view class="flex-col section_5">
  61. <view class="justify-between">
  62. <text class="text_9">送评人信息</text>
  63. <!-- <view class="flex-row group_13">
  64. <text>编辑</text>
  65. <image
  66. src="https://project-user-resource-1256085488.cos.ap-guangzhou.myqcloud.com/62677e395a7e3f03107ffc5f/62677e4a35a7e10011e93a80/16509497893779891395.png"
  67. class="image_10"
  68. />
  69. </view> -->
  70. </view>
  71. <view class="flex-row group_14">
  72. <text class="text_11">送评人</text>
  73. <!-- <text class="text_12">送评人</text> -->
  74. <u-input v-model="sonpingInfo.name" placeholder="请输入送评人"></u-input>
  75. </view>
  76. <view class="flex-row group_15">
  77. <text class="text_13">手机号</text>
  78. <!-- <text class="text_14">18266785384</text> -->
  79. <u-input v-model="sonpingInfo.phone" placeholder="请输入送评人手机号" type="number" maxlength="11"></u-input>
  80. </view>
  81. <view class="flex-row group_16">
  82. <text class="text_15">数量</text>
  83. <!-- <text class="text_16">3</text> -->
  84. <u-input v-model="sonpingInfo.number" placeholder="请输入送评数量" type="number"></u-input>
  85. </view>
  86. <view class="justify-between group_17">
  87. <view class="flex-row group_18">
  88. <text class="text_17">是否快评</text>
  89. <text class="text_18">(价格翻倍)</text>
  90. </view>
  91. <u-switch v-model="isQuickReview" activeColor="#e7a23f"></u-switch>
  92. </view>
  93. <view class="flex-col group_19">
  94. <text>打包照片</text>
  95. <view class="flex-row equal-division_1">
  96. <u-upload
  97. :fileList="fileList"
  98. name="1"
  99. multiple
  100. :maxCount="4"
  101. :previewFullImage="true"
  102. @afterRead="afterRead"
  103. @delete="deletePic"
  104. ></u-upload>
  105. </view>
  106. </view>
  107. <view class="flex-col group_20">
  108. <text class="text_20">备注</text>
  109. <u-textarea v-model="remarks" placeholder="请输入备注" :height="100" class="textarea" :count="true"></u-textarea>
  110. </view>
  111. <view class="flex-col group_21">
  112. <view class="flex-col items-center button" @click="next">
  113. <text>寄送藏品</text>
  114. </view>
  115. <view class="section_6"> </view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </template>
  121. <script>
  122. export default {
  123. data() {
  124. return {
  125. address: {},
  126. isQuickReview: false,
  127. sonpingInfo: {
  128. name: '',
  129. phone: '',
  130. number: ''
  131. },
  132. fileList: [],
  133. remarks: ''
  134. };
  135. },
  136. methods: {
  137. afterRead(event){
  138. this.fileList.push(...event.file);
  139. },
  140. deletePic(event){
  141. this.fileList.splice(event.index, 1);
  142. },
  143. next(){
  144. let sonpingInfo = this.sonpingInfo;
  145. if(!this.$isRight(this.address)) return this.$msg('请选择收货地址');
  146. if(!sonpingInfo.name) return this.$msg('请填写送评人信息');
  147. if(!sonpingInfo.phone) return this.$msg('请填写送评人手机号');
  148. if(!sonpingInfo.number) return this.$msg('请填写送评数量');
  149. this.$url('/pages/write/distribution');
  150. }
  151. }
  152. };
  153. </script>
  154. <style scoped lang="css">
  155. .equal-division-item {
  156. flex: 1 1 240rpx;
  157. padding: 10rpx 0;
  158. }
  159. .image_10 {
  160. width: 44rpx;
  161. height: 44rpx;
  162. }
  163. .image_6 {
  164. border-radius: 50%;
  165. width: 80rpx;
  166. height: 80rpx;
  167. }
  168. .equal-division-item_1 {
  169. margin-left: 28rpx;
  170. flex: 1 1 210rpx;
  171. border-radius: 10rpx;
  172. width: 210rpx;
  173. height: 130rpx;
  174. }
  175. .text_2 {
  176. margin-top: 20rpx;
  177. }
  178. .page {
  179. background-color: #f6f6f6;
  180. width: 100%;
  181. overflow-y: auto;
  182. height: 100%;
  183. }
  184. .group_4 {
  185. flex: 1 1 auto;
  186. overflow-y: auto;
  187. }
  188. .group_5 {
  189. padding-top: 2rpx;
  190. color: rgb(85, 85, 85);
  191. font-size: 28rpx;
  192. font-weight: 500;
  193. line-height: 40rpx;
  194. white-space: nowrap;
  195. position: relative;
  196. }
  197. .section_4 {
  198. margin-top: 30rpx;
  199. padding: 40rpx 32rpx 40rpx 40rpx;
  200. background-color: rgb(255, 255, 255);
  201. }
  202. .section_5 {
  203. margin-top: 30rpx;
  204. padding: 40rpx 32rpx 16rpx;
  205. background-color: rgb(255, 255, 255);
  206. }
  207. .equal-division {
  208. padding: 30rpx 14rpx;
  209. background-color: rgb(255, 255, 255);
  210. }
  211. .group_9 {
  212. width: 404rpx;
  213. position: absolute;
  214. right: 166rpx;
  215. top: 81rpx;
  216. }
  217. .text_8 {
  218. margin-top: 20rpx;
  219. color: rgb(51, 51, 51);
  220. font-size: 32rpx;
  221. line-height: 44rpx;
  222. }
  223. .group_14 {
  224. margin-top: 40rpx;
  225. align-items: center;
  226. }
  227. .group_15 {
  228. margin-top: 50rpx;
  229. align-items: center;
  230. }
  231. .group_16 {
  232. margin-top: 50rpx;
  233. align-items: center;
  234. }
  235. .group_17 {
  236. margin-top: 44rpx;
  237. }
  238. .group_19 {
  239. margin-top: 44rpx;
  240. color: rgb(119, 119, 119);
  241. font-size: 32rpx;
  242. font-weight: 500;
  243. line-height: 44rpx;
  244. white-space: nowrap;
  245. }
  246. .group_20 {
  247. margin-top: 50rpx;
  248. }
  249. .group_21 {
  250. margin-top: 50rpx;
  251. color: rgb(255, 255, 255);
  252. font-size: 32rpx;
  253. font-weight: 600;
  254. line-height: 44rpx;
  255. white-space: nowrap;
  256. }
  257. .section_2 {
  258. background-image: repeating-linear-gradient(
  259. 90deg,
  260. rgb(231, 162, 63),
  261. rgb(231, 162, 63) 2.4691358024691357%,
  262. transparent 2.4691358024691357%,
  263. transparent 14.814814814814815%
  264. );
  265. width: 162rpx;
  266. height: 2rpx;
  267. }
  268. .section_3 {
  269. background-image: repeating-linear-gradient(
  270. 90deg,
  271. rgb(195, 195, 195),
  272. rgb(195, 195, 195) 2.4691358024691357%,
  273. transparent 2.4691358024691357%,
  274. transparent 14.814814814814815%
  275. );
  276. width: 162rpx;
  277. height: 2rpx;
  278. }
  279. .image_11 {
  280. margin-top: 4rpx;
  281. }
  282. .text_9 {
  283. color: rgb(51, 51, 51);
  284. font-size: 36rpx;
  285. font-weight: 600;
  286. line-height: 50rpx;
  287. white-space: nowrap;
  288. }
  289. .group_13 {
  290. margin-top: 4rpx;
  291. color: rgb(119, 119, 119);
  292. font-size: 28rpx;
  293. font-weight: 500;
  294. line-height: 40rpx;
  295. white-space: nowrap;
  296. }
  297. .text_11 {
  298. color: rgb(119, 119, 119);
  299. font-size: 32rpx;
  300. font-weight: 500;
  301. line-height: 44rpx;
  302. white-space: nowrap;
  303. }
  304. .text_12 {
  305. margin-left: 20rpx;
  306. color: rgb(51, 51, 51);
  307. font-size: 32rpx;
  308. font-weight: 500;
  309. line-height: 44rpx;
  310. white-space: nowrap;
  311. }
  312. .text_13 {
  313. color: rgb(119, 119, 119);
  314. font-size: 32rpx;
  315. font-weight: 500;
  316. line-height: 44rpx;
  317. white-space: nowrap;
  318. }
  319. .text_14 {
  320. margin-left: 20rpx;
  321. color: rgb(51, 51, 51);
  322. font-size: 32rpx;
  323. font-weight: 500;
  324. line-height: 44rpx;
  325. white-space: nowrap;
  326. }
  327. .text_15 {
  328. color: rgb(119, 119, 119);
  329. font-size: 32rpx;
  330. font-weight: 500;
  331. line-height: 44rpx;
  332. white-space: nowrap;
  333. }
  334. .text_16 {
  335. margin-left: 52rpx;
  336. color: rgb(51, 51, 51);
  337. font-size: 32rpx;
  338. font-weight: 500;
  339. line-height: 44rpx;
  340. white-space: nowrap;
  341. }
  342. .group_18 {
  343. margin: 6rpx 0;
  344. }
  345. .switch {
  346. border-radius: 104rpx;
  347. width: 100rpx;
  348. height: 56rpx;
  349. }
  350. .equal-division_1 {
  351. margin-top: 20rpx;
  352. }
  353. .text_20 {
  354. color: rgb(119, 119, 119);
  355. font-size: 32rpx;
  356. font-weight: 500;
  357. line-height: 44rpx;
  358. white-space: nowrap;
  359. }
  360. .text-wrapper {
  361. margin-top: 20rpx;
  362. padding: 30rpx 0 138rpx;
  363. color: rgb(153, 153, 153);
  364. font-size: 28rpx;
  365. font-weight: 500;
  366. line-height: 40rpx;
  367. white-space: nowrap;
  368. background-color: rgb(246, 246, 246);
  369. border-radius: 10rpx;
  370. }
  371. .button {
  372. padding: 26rpx 0;
  373. background-color: rgb(231, 162, 63);
  374. border-radius: 10rpx;
  375. }
  376. .section_6 {
  377. margin-top: 22rpx;
  378. align-self: center;
  379. border-radius: 4rpx;
  380. width: 196rpx;
  381. height: 8rpx;
  382. }
  383. .text_6 {
  384. color: rgb(51, 51, 51);
  385. font-size: 36rpx;
  386. font-weight: 700;
  387. line-height: 50rpx;
  388. white-space: nowrap;
  389. }
  390. .text_7 {
  391. margin-left: 40rpx;
  392. margin-top: 4rpx;
  393. color: rgb(51, 51, 51);
  394. font-size: 32rpx;
  395. font-weight: 700;
  396. line-height: 44rpx;
  397. white-space: nowrap;
  398. }
  399. .text_17 {
  400. color: rgb(119, 119, 119);
  401. font-size: 32rpx;
  402. font-weight: 500;
  403. line-height: 44rpx;
  404. white-space: nowrap;
  405. }
  406. .text_18 {
  407. margin: 6rpx 0 4rpx 10rpx;
  408. color: rgb(231, 162, 63);
  409. font-size: 24rpx;
  410. font-weight: 500;
  411. line-height: 34rpx;
  412. white-space: nowrap;
  413. }
  414. .image_13 {
  415. margin-left: 0;
  416. }
  417. .text_21 {
  418. margin-left: 30rpx;
  419. }
  420. /deep/.u-textarea{
  421. background-color: #f6f6f6 !important;
  422. margin-top: 20rpx;
  423. border-radius: 10rpx;
  424. }
  425. </style>