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

504 lines
12 KiB

4 years ago
4 years ago
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" @click="pickerShow(true)">
  87. <view class="flex-row group_18">
  88. <text class="text_17">是否快评</text>
  89. <text class="text_18">(价格翻倍)</text>
  90. </view>
  91. <view class="pick-panel">
  92. <view>
  93. {{columnsData[columnsIndex].title}}
  94. </view>
  95. <image
  96. src="@/static/icon/rightArrow.png"
  97. class="image_10 image_11 rote90"
  98. />
  99. </view>
  100. <!-- <u-switch v-model="isQuickReview" activeColor="#e7a23f"></u-switch> -->
  101. </view>
  102. <view class="flex-col group_19" v-if="columnsIndex!=0">
  103. <view class="fast_desc">
  104. {{columnsData[columnsIndex].desc}}
  105. </view>
  106. </view>
  107. <view class="flex-col group_19">
  108. <text>打包照片</text>
  109. <view class="flex-row equal-division_1">
  110. <u-upload
  111. :fileList="fileList"
  112. name="1"
  113. multiple
  114. :maxCount="4"
  115. :previewFullImage="true"
  116. @afterRead="afterRead"
  117. @delete="deletePic"
  118. ></u-upload>
  119. </view>
  120. </view>
  121. <view class="flex-col group_20">
  122. <text class="text_20">备注</text>
  123. <u-textarea v-model="remarks" placeholder="请输入备注" :height="100" class="textarea" :count="true"></u-textarea>
  124. </view>
  125. <view class="flex-row group_15">
  126. <text class="text_11">优惠券</text>
  127. <u-input v-model="couponText" placeholder="非必填,请输入优惠券码"></u-input>
  128. </view>
  129. <view class="flex-col group_21">
  130. <view class="flex-col items-center button" @click="next">
  131. <text>寄送藏品</text>
  132. </view>
  133. <view class="section_6"> </view>
  134. </view>
  135. </view>
  136. </view>
  137. <u-picker :show="show" :columns="columns" immediateChange="true" @cancel="pickerShow(false)" @confirm="confirmPicker"></u-picker>
  138. </view>
  139. </template>
  140. <script>
  141. import { dispose } from '@/common/directoss.js';
  142. export default {
  143. data() {
  144. return {
  145. address: {},
  146. isQuickReview: 0,
  147. sonpingInfo: {
  148. name: '',
  149. phone: '',
  150. number: ''
  151. },
  152. fileList: [],
  153. remarks: '',
  154. rateIndex: 0,
  155. coupon: '',
  156. show:false,
  157. columns:[],
  158. columnsData:null,
  159. columnsIndex:0,
  160. };
  161. },
  162. // computed:{
  163. // columns:()=>{
  164. // return ['1','2'];
  165. // },
  166. // },
  167. onLoad(options){
  168. this.rateIndex = options.rate_index || 0;
  169. let d = uni.getStorageSync('qxk_sysinfo')
  170. if(d){
  171. let options = d.fast_options
  172. this.columnsData =[{id:0,title:'否'},...options]
  173. let texts = this.columnsData.map((item)=>{
  174. return item.title
  175. })
  176. //t = [...t,...texts];
  177. this.columns.push(texts)
  178. }
  179. },
  180. methods: {
  181. async afterRead(event){
  182. let imageList = await dispose(event.file);
  183. this.fileList.push(...imageList);
  184. console.log("上传完成后的图片---------", this.fileList)
  185. },
  186. deletePic(event){
  187. this.fileList.splice(event.index, 1);
  188. },
  189. pickerShow(v){
  190. this.show = v
  191. },
  192. confirmPicker(e){
  193. console.log("confirmPicker",e)
  194. this.columnsIndex = e.indexs[0]
  195. this.isQuickReview = e.indexs[0]
  196. //e.
  197. this.pickerShow(false)
  198. },
  199. next(){
  200. let sonpingInfo = this.sonpingInfo;
  201. if(!this.$isRight(this.address)) return this.$msg('请选择收货地址');
  202. if(!sonpingInfo.name) return this.$msg('请填写送评人信息');
  203. if(!sonpingInfo.phone) return this.$msg('请填写送评人手机号');
  204. if(!sonpingInfo.number) return this.$msg('请填写送评数量');
  205. this.$url('/pages/write/distribution');
  206. }
  207. }
  208. };
  209. </script>
  210. <style scoped lang="css">
  211. .pick-panel{
  212. display: flex;
  213. }
  214. .rote90{
  215. transform: rotate(90deg);
  216. }
  217. .fast_desc{
  218. display:inline-block;
  219. width: 100%;
  220. height: auto;
  221. word-wrap: break-word;
  222. word-break: break-all;
  223. white-space: pre-wrap;
  224. font-size: 28rpx;
  225. }
  226. .equal-division-item {
  227. flex: 1 1 240rpx;
  228. padding: 10rpx 0;
  229. }
  230. .image_10 {
  231. width: 44rpx;
  232. height: 44rpx;
  233. }
  234. .image_6 {
  235. border-radius: 50%;
  236. width: 80rpx;
  237. height: 80rpx;
  238. }
  239. .equal-division-item_1 {
  240. margin-left: 28rpx;
  241. flex: 1 1 210rpx;
  242. border-radius: 10rpx;
  243. width: 210rpx;
  244. height: 130rpx;
  245. }
  246. .text_2 {
  247. margin-top: 20rpx;
  248. }
  249. .page {
  250. background-color: #f6f6f6;
  251. width: 100%;
  252. overflow-y: auto;
  253. height: 100%;
  254. }
  255. .group_4 {
  256. flex: 1 1 auto;
  257. overflow-y: auto;
  258. }
  259. .group_5 {
  260. padding-top: 2rpx;
  261. color: rgb(85, 85, 85);
  262. font-size: 28rpx;
  263. font-weight: 500;
  264. line-height: 40rpx;
  265. white-space: nowrap;
  266. position: relative;
  267. }
  268. .section_4 {
  269. margin-top: 30rpx;
  270. padding: 40rpx 32rpx 40rpx 40rpx;
  271. background-color: rgb(255, 255, 255);
  272. }
  273. .section_5 {
  274. margin-top: 30rpx;
  275. padding: 40rpx 32rpx 16rpx;
  276. background-color: rgb(255, 255, 255);
  277. }
  278. .equal-division {
  279. padding: 30rpx 14rpx;
  280. background-color: rgb(255, 255, 255);
  281. }
  282. .group_9 {
  283. width: 404rpx;
  284. position: absolute;
  285. right: 166rpx;
  286. top: 81rpx;
  287. }
  288. .text_8 {
  289. margin-top: 20rpx;
  290. color: rgb(51, 51, 51);
  291. font-size: 32rpx;
  292. line-height: 44rpx;
  293. }
  294. .group_14 {
  295. margin-top: 40rpx;
  296. align-items: center;
  297. }
  298. .group_15 {
  299. margin-top: 50rpx;
  300. align-items: center;
  301. }
  302. .group_16 {
  303. margin-top: 50rpx;
  304. align-items: center;
  305. }
  306. .group_17 {
  307. margin-top: 44rpx;
  308. }
  309. .group_19 {
  310. margin-top: 44rpx;
  311. color: rgb(119, 119, 119);
  312. font-size: 32rpx;
  313. font-weight: 500;
  314. line-height: 44rpx;
  315. white-space: nowrap;
  316. }
  317. .group_20 {
  318. margin-top: 50rpx;
  319. }
  320. .group_21 {
  321. margin-top: 50rpx;
  322. color: rgb(255, 255, 255);
  323. font-size: 32rpx;
  324. font-weight: 600;
  325. line-height: 44rpx;
  326. white-space: nowrap;
  327. }
  328. .section_2 {
  329. background-image: repeating-linear-gradient(
  330. 90deg,
  331. rgb(231, 162, 63),
  332. rgb(231, 162, 63) 2.4691358024691357%,
  333. transparent 2.4691358024691357%,
  334. transparent 14.814814814814815%
  335. );
  336. width: 162rpx;
  337. height: 2rpx;
  338. }
  339. .section_3 {
  340. background-image: repeating-linear-gradient(
  341. 90deg,
  342. rgb(195, 195, 195),
  343. rgb(195, 195, 195) 2.4691358024691357%,
  344. transparent 2.4691358024691357%,
  345. transparent 14.814814814814815%
  346. );
  347. width: 162rpx;
  348. height: 2rpx;
  349. }
  350. .image_11 {
  351. margin-top: 4rpx;
  352. }
  353. .text_9 {
  354. color: rgb(51, 51, 51);
  355. font-size: 36rpx;
  356. font-weight: 600;
  357. line-height: 50rpx;
  358. white-space: nowrap;
  359. }
  360. .group_13 {
  361. margin-top: 4rpx;
  362. color: rgb(119, 119, 119);
  363. font-size: 28rpx;
  364. font-weight: 500;
  365. line-height: 40rpx;
  366. white-space: nowrap;
  367. }
  368. .text_11 {
  369. color: rgb(119, 119, 119);
  370. font-size: 32rpx;
  371. font-weight: 500;
  372. line-height: 44rpx;
  373. white-space: nowrap;
  374. }
  375. .text_12 {
  376. margin-left: 20rpx;
  377. color: rgb(51, 51, 51);
  378. font-size: 32rpx;
  379. font-weight: 500;
  380. line-height: 44rpx;
  381. white-space: nowrap;
  382. }
  383. .text_13 {
  384. color: rgb(119, 119, 119);
  385. font-size: 32rpx;
  386. font-weight: 500;
  387. line-height: 44rpx;
  388. white-space: nowrap;
  389. }
  390. .text_14 {
  391. margin-left: 20rpx;
  392. color: rgb(51, 51, 51);
  393. font-size: 32rpx;
  394. font-weight: 500;
  395. line-height: 44rpx;
  396. white-space: nowrap;
  397. }
  398. .text_15 {
  399. color: rgb(119, 119, 119);
  400. font-size: 32rpx;
  401. font-weight: 500;
  402. line-height: 44rpx;
  403. white-space: nowrap;
  404. }
  405. .text_16 {
  406. margin-left: 52rpx;
  407. color: rgb(51, 51, 51);
  408. font-size: 32rpx;
  409. font-weight: 500;
  410. line-height: 44rpx;
  411. white-space: nowrap;
  412. }
  413. .group_18 {
  414. margin: 6rpx 0;
  415. }
  416. .switch {
  417. border-radius: 104rpx;
  418. width: 100rpx;
  419. height: 56rpx;
  420. }
  421. .equal-division_1 {
  422. margin-top: 20rpx;
  423. }
  424. .text_20 {
  425. color: rgb(119, 119, 119);
  426. font-size: 32rpx;
  427. font-weight: 500;
  428. line-height: 44rpx;
  429. white-space: nowrap;
  430. }
  431. .text-wrapper {
  432. margin-top: 20rpx;
  433. padding: 30rpx 0 138rpx;
  434. color: rgb(153, 153, 153);
  435. font-size: 28rpx;
  436. font-weight: 500;
  437. line-height: 40rpx;
  438. white-space: nowrap;
  439. background-color: rgb(246, 246, 246);
  440. border-radius: 10rpx;
  441. }
  442. .button {
  443. padding: 26rpx 0;
  444. background-color: rgb(231, 162, 63);
  445. border-radius: 10rpx;
  446. }
  447. .section_6 {
  448. margin-top: 22rpx;
  449. align-self: center;
  450. border-radius: 4rpx;
  451. width: 196rpx;
  452. height: 8rpx;
  453. }
  454. .text_6 {
  455. color: rgb(51, 51, 51);
  456. font-size: 36rpx;
  457. font-weight: 700;
  458. line-height: 50rpx;
  459. white-space: nowrap;
  460. }
  461. .text_7 {
  462. margin-left: 40rpx;
  463. margin-top: 4rpx;
  464. color: rgb(51, 51, 51);
  465. font-size: 32rpx;
  466. font-weight: 700;
  467. line-height: 44rpx;
  468. white-space: nowrap;
  469. }
  470. .text_17 {
  471. color: rgb(119, 119, 119);
  472. font-size: 32rpx;
  473. font-weight: 500;
  474. line-height: 44rpx;
  475. white-space: nowrap;
  476. }
  477. .text_18 {
  478. margin: 6rpx 0 4rpx 10rpx;
  479. color: rgb(231, 162, 63);
  480. font-size: 24rpx;
  481. font-weight: 500;
  482. line-height: 34rpx;
  483. white-space: nowrap;
  484. }
  485. .image_13 {
  486. margin-left: 0;
  487. }
  488. .text_21 {
  489. margin-left: 30rpx;
  490. }
  491. /deep/.u-textarea{
  492. background-color: #f6f6f6 !important;
  493. margin-top: 20rpx;
  494. border-radius: 10rpx;
  495. }
  496. </style>