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

440 lines
10 KiB

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