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

431 lines
11 KiB

4 years ago
4 years ago
  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. import { dispose } from '@/common/directoss.js';
  123. export default {
  124. data() {
  125. return {
  126. address: {},
  127. isQuickReview: false,
  128. sonpingInfo: {
  129. name: '',
  130. phone: '',
  131. number: ''
  132. },
  133. fileList: [],
  134. remarks: ''
  135. };
  136. },
  137. methods: {
  138. async afterRead(event){
  139. let imageList = await dispose(event.file);
  140. this.fileList.push(...imageList);
  141. console.log("上传完成后的图片---------", this.fileList)
  142. },
  143. deletePic(event){
  144. this.fileList.splice(event.index, 1);
  145. },
  146. next(){
  147. let sonpingInfo = this.sonpingInfo;
  148. if(!this.$isRight(this.address)) return this.$msg('请选择收货地址');
  149. if(!sonpingInfo.name) return this.$msg('请填写送评人信息');
  150. if(!sonpingInfo.phone) return this.$msg('请填写送评人手机号');
  151. if(!sonpingInfo.number) return this.$msg('请填写送评数量');
  152. this.$url('/pages/write/distribution');
  153. }
  154. }
  155. };
  156. </script>
  157. <style scoped lang="css">
  158. .equal-division-item {
  159. flex: 1 1 240rpx;
  160. padding: 10rpx 0;
  161. }
  162. .image_10 {
  163. width: 44rpx;
  164. height: 44rpx;
  165. }
  166. .image_6 {
  167. border-radius: 50%;
  168. width: 80rpx;
  169. height: 80rpx;
  170. }
  171. .equal-division-item_1 {
  172. margin-left: 28rpx;
  173. flex: 1 1 210rpx;
  174. border-radius: 10rpx;
  175. width: 210rpx;
  176. height: 130rpx;
  177. }
  178. .text_2 {
  179. margin-top: 20rpx;
  180. }
  181. .page {
  182. background-color: #f6f6f6;
  183. width: 100%;
  184. overflow-y: auto;
  185. height: 100%;
  186. }
  187. .group_4 {
  188. flex: 1 1 auto;
  189. overflow-y: auto;
  190. }
  191. .group_5 {
  192. padding-top: 2rpx;
  193. color: rgb(85, 85, 85);
  194. font-size: 28rpx;
  195. font-weight: 500;
  196. line-height: 40rpx;
  197. white-space: nowrap;
  198. position: relative;
  199. }
  200. .section_4 {
  201. margin-top: 30rpx;
  202. padding: 40rpx 32rpx 40rpx 40rpx;
  203. background-color: rgb(255, 255, 255);
  204. }
  205. .section_5 {
  206. margin-top: 30rpx;
  207. padding: 40rpx 32rpx 16rpx;
  208. background-color: rgb(255, 255, 255);
  209. }
  210. .equal-division {
  211. padding: 30rpx 14rpx;
  212. background-color: rgb(255, 255, 255);
  213. }
  214. .group_9 {
  215. width: 404rpx;
  216. position: absolute;
  217. right: 166rpx;
  218. top: 81rpx;
  219. }
  220. .text_8 {
  221. margin-top: 20rpx;
  222. color: rgb(51, 51, 51);
  223. font-size: 32rpx;
  224. line-height: 44rpx;
  225. }
  226. .group_14 {
  227. margin-top: 40rpx;
  228. align-items: center;
  229. }
  230. .group_15 {
  231. margin-top: 50rpx;
  232. align-items: center;
  233. }
  234. .group_16 {
  235. margin-top: 50rpx;
  236. align-items: center;
  237. }
  238. .group_17 {
  239. margin-top: 44rpx;
  240. }
  241. .group_19 {
  242. margin-top: 44rpx;
  243. color: rgb(119, 119, 119);
  244. font-size: 32rpx;
  245. font-weight: 500;
  246. line-height: 44rpx;
  247. white-space: nowrap;
  248. }
  249. .group_20 {
  250. margin-top: 50rpx;
  251. }
  252. .group_21 {
  253. margin-top: 50rpx;
  254. color: rgb(255, 255, 255);
  255. font-size: 32rpx;
  256. font-weight: 600;
  257. line-height: 44rpx;
  258. white-space: nowrap;
  259. }
  260. .section_2 {
  261. background-image: repeating-linear-gradient(
  262. 90deg,
  263. rgb(231, 162, 63),
  264. rgb(231, 162, 63) 2.4691358024691357%,
  265. transparent 2.4691358024691357%,
  266. transparent 14.814814814814815%
  267. );
  268. width: 162rpx;
  269. height: 2rpx;
  270. }
  271. .section_3 {
  272. background-image: repeating-linear-gradient(
  273. 90deg,
  274. rgb(195, 195, 195),
  275. rgb(195, 195, 195) 2.4691358024691357%,
  276. transparent 2.4691358024691357%,
  277. transparent 14.814814814814815%
  278. );
  279. width: 162rpx;
  280. height: 2rpx;
  281. }
  282. .image_11 {
  283. margin-top: 4rpx;
  284. }
  285. .text_9 {
  286. color: rgb(51, 51, 51);
  287. font-size: 36rpx;
  288. font-weight: 600;
  289. line-height: 50rpx;
  290. white-space: nowrap;
  291. }
  292. .group_13 {
  293. margin-top: 4rpx;
  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_11 {
  301. color: rgb(119, 119, 119);
  302. font-size: 32rpx;
  303. font-weight: 500;
  304. line-height: 44rpx;
  305. white-space: nowrap;
  306. }
  307. .text_12 {
  308. margin-left: 20rpx;
  309. color: rgb(51, 51, 51);
  310. font-size: 32rpx;
  311. font-weight: 500;
  312. line-height: 44rpx;
  313. white-space: nowrap;
  314. }
  315. .text_13 {
  316. color: rgb(119, 119, 119);
  317. font-size: 32rpx;
  318. font-weight: 500;
  319. line-height: 44rpx;
  320. white-space: nowrap;
  321. }
  322. .text_14 {
  323. margin-left: 20rpx;
  324. color: rgb(51, 51, 51);
  325. font-size: 32rpx;
  326. font-weight: 500;
  327. line-height: 44rpx;
  328. white-space: nowrap;
  329. }
  330. .text_15 {
  331. color: rgb(119, 119, 119);
  332. font-size: 32rpx;
  333. font-weight: 500;
  334. line-height: 44rpx;
  335. white-space: nowrap;
  336. }
  337. .text_16 {
  338. margin-left: 52rpx;
  339. color: rgb(51, 51, 51);
  340. font-size: 32rpx;
  341. font-weight: 500;
  342. line-height: 44rpx;
  343. white-space: nowrap;
  344. }
  345. .group_18 {
  346. margin: 6rpx 0;
  347. }
  348. .switch {
  349. border-radius: 104rpx;
  350. width: 100rpx;
  351. height: 56rpx;
  352. }
  353. .equal-division_1 {
  354. margin-top: 20rpx;
  355. }
  356. .text_20 {
  357. color: rgb(119, 119, 119);
  358. font-size: 32rpx;
  359. font-weight: 500;
  360. line-height: 44rpx;
  361. white-space: nowrap;
  362. }
  363. .text-wrapper {
  364. margin-top: 20rpx;
  365. padding: 30rpx 0 138rpx;
  366. color: rgb(153, 153, 153);
  367. font-size: 28rpx;
  368. font-weight: 500;
  369. line-height: 40rpx;
  370. white-space: nowrap;
  371. background-color: rgb(246, 246, 246);
  372. border-radius: 10rpx;
  373. }
  374. .button {
  375. padding: 26rpx 0;
  376. background-color: rgb(231, 162, 63);
  377. border-radius: 10rpx;
  378. }
  379. .section_6 {
  380. margin-top: 22rpx;
  381. align-self: center;
  382. border-radius: 4rpx;
  383. width: 196rpx;
  384. height: 8rpx;
  385. }
  386. .text_6 {
  387. color: rgb(51, 51, 51);
  388. font-size: 36rpx;
  389. font-weight: 700;
  390. line-height: 50rpx;
  391. white-space: nowrap;
  392. }
  393. .text_7 {
  394. margin-left: 40rpx;
  395. margin-top: 4rpx;
  396. color: rgb(51, 51, 51);
  397. font-size: 32rpx;
  398. font-weight: 700;
  399. line-height: 44rpx;
  400. white-space: nowrap;
  401. }
  402. .text_17 {
  403. color: rgb(119, 119, 119);
  404. font-size: 32rpx;
  405. font-weight: 500;
  406. line-height: 44rpx;
  407. white-space: nowrap;
  408. }
  409. .text_18 {
  410. margin: 6rpx 0 4rpx 10rpx;
  411. color: rgb(231, 162, 63);
  412. font-size: 24rpx;
  413. font-weight: 500;
  414. line-height: 34rpx;
  415. white-space: nowrap;
  416. }
  417. .image_13 {
  418. margin-left: 0;
  419. }
  420. .text_21 {
  421. margin-left: 30rpx;
  422. }
  423. /deep/.u-textarea{
  424. background-color: #f6f6f6 !important;
  425. margin-top: 20rpx;
  426. border-radius: 10rpx;
  427. }
  428. </style>