look.vue 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  1. <template>
  2. <view class="center">
  3. <view class="c-list">
  4. <view class="xinxiup">
  5. <view class="c-row b-b">
  6. <text class="tit">合同编号:</text>
  7. <view class="con-list">
  8. <text>{{goods.contractNo}}({{goods.goodsName}})</text>
  9. </view>
  10. </view>
  11. <view class="c-row b-b">
  12. <text class="tit">买方名称:</text>
  13. <view class="con-list">
  14. <text>{{goods.contracter}}</text>
  15. </view>
  16. </view>
  17. <view class="c-row">
  18. <text class="tit">累计收发:</text>
  19. <view class="con-list">
  20. <text style="font-size: 18px">{{sendout}}<text class="hair">发</text>{{collect}}<text
  21. class="collect">收</text></text>
  22. <!-- <text>{{goods.level}}收</text> -->
  23. </view>
  24. </view>
  25. </view>
  26. <view v-for="(item , index) in carlist" :Key="index" class="forxinxi">
  27. <view class="c-row carNos">
  28. <text>{{item.carNo}} ({{item.tranCarNo}})</text>
  29. <view class="con-list">
  30. <text>{{item.sendDateStart}}<text class="hair">发</text></text>
  31. </view>
  32. </view>
  33. <view class="c-row b-b">
  34. <text class="tit">结算价(元/吨)</text>
  35. <view class="con-list">
  36. <text>{{item.settlementPrice}}</text>
  37. </view>
  38. </view>
  39. <view class="c-row b-b">
  40. <text class="tit">净重(吨)</text>
  41. <view class="con-list">
  42. <text style="font-size: 18px;">{{item.loadNetWeight}}<text
  43. class="hair">发</text>{{item.unloadNetWeight}}<text class="collect">收</text></text>
  44. </view>
  45. </view>
  46. <view class="c-row b-b">
  47. <text class="tit">扣款(元/吨)</text>
  48. <view class="con-list">
  49. <text>{{item.deductionAmount}}</text>
  50. </view>
  51. </view>
  52. <view class="c-row b-b" v-if=" item.deductionItems != null">
  53. <text class="tit">扣款原因</text>
  54. <view class="con-list">
  55. <text>{{item.deductionItems}}</text>
  56. </view>
  57. </view>
  58. <view v-if='item.loadPoundImg'>
  59. <view class="poundtitle">发货磅单</view>
  60. <view class="poundlists">
  61. <image :src="item.loadPoundImg" mode="" @click="ViewImage(item.loadPoundImg)" class="poundlist">
  62. </image>
  63. </view>
  64. </view>
  65. <view v-if='item.unloadPoundImg'>
  66. <view class="poundtitle">收货磅单</view>
  67. <view class="poundlists">
  68. <image :src="item.unloadPoundImg" mode="" @click="ViewImage(item.unloadPoundImg)"
  69. class="poundlist"></image>
  70. </view>
  71. </view>
  72. <button v-if='item.confirmFlag != 3 && item.status == "已送达"' class=" btn btns unload"
  73. style="background-color: #22C572; color: #FFFFFF ;width:80%;"
  74. @click="confirmunload(item)">确认卸货</button>
  75. </view>
  76. </view>
  77. <view class='footer'>
  78. <button class="btn car" @click="commit1(goods)">添加发车信息</button>
  79. </view>
  80. <!-- <view class="addcarwrap">
  81. <view class="addcar" style="background-color: #FFFFFF;"
  82. @click="commit1(goods)">
  83. +
  84. 添加发车信息</view>
  85. </view> -->
  86. <view v-if='imgstatus' class='shade'>
  87. <view class='shade-content'>
  88. <image v-if='img' style='width:100px;height:100px;' :src='img'></image>
  89. <button style='' @click='imgstatus=false'>取消</button>
  90. </view>
  91. </view>
  92. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  93. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
  94. :showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
  95. </view>
  96. </template>
  97. <script>
  98. import uniNumberBox from '@/components/uni-number-box.vue';
  99. import {
  100. mapState
  101. } from 'vuex';
  102. export default {
  103. components: {
  104. uniNumberBox
  105. },
  106. data() {
  107. return {
  108. isShowAlert: false,
  109. content: '您尚未登录,是否立即登录?',
  110. carlist: [],
  111. swiperCurrent: 0,
  112. titleNViewBackground: '',
  113. swiperLength: 0,
  114. id: '',
  115. goods: {
  116. // id:"",
  117. // contractNo:'',
  118. // contractNo:'',
  119. // unloadPoundImg:'',
  120. // loadPoundImg:'',
  121. // carNo:'',
  122. // sendDateStart:'',
  123. // settlementPrice:'',
  124. // deductionAmount:'',
  125. // deductionItems:'',
  126. },
  127. gooods1: {
  128. contractNo: '',
  129. },
  130. img: '',
  131. share: {
  132. title: '',
  133. imageUrl: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/shareLogo.png',
  134. },
  135. imgstatus: false,
  136. reason: "",
  137. price: undefined,
  138. imgstatus: false,
  139. reason: "",
  140. price: undefined,
  141. planId: '',
  142. };
  143. },
  144. onShow() {
  145. this.loaddata()
  146. },
  147. //下拉刷新
  148. onPullDownRefresh() {
  149. this.loaddata()
  150. setTimeout(function() {
  151. uni.stopPullDownRefresh();
  152. }, 1000);
  153. },
  154. onLoad(option) {
  155. this.goods.goodsName = option.goodsName
  156. this.goods.contracter = option.contracter
  157. this.id = option.id
  158. this.planId = option.planId
  159. this.goods.contractNo = option.contractNo
  160. },
  161. computed: {
  162. ...mapState(['hasLogin', 'userInfo']),
  163. sendout() {
  164. var num = 0
  165. for (var i = 0; i < this.carlist.length; i++) {
  166. num += this.carlist[i].loadNetWeight
  167. }
  168. return num
  169. },
  170. collect() {
  171. var num = 0
  172. for (var i = 0; i < this.carlist.length; i++) {
  173. num += this.carlist[i].unloadNetWeight
  174. }
  175. return num
  176. }
  177. },
  178. methods: {
  179. unload(item) {
  180. this.img = item.unloadPoundImg
  181. this.imgstatus = true
  182. },
  183. shipments(item) {
  184. this.img = item.loadPoundImg
  185. this.imgstatus = true
  186. },
  187. commit1() {
  188. var tranCarNo = ''
  189. if (this.carlist.length <= 9) {
  190. tranCarNo = 'C00' + (this.carlist.length + 1)
  191. } else if (this.carlist.length < 100 && this.carlist.length > 9) {
  192. tranCarNo = 'C0' + (this.carlist.length + 1)
  193. } else if (this.carlist.length < 1000 && this.carlist.length > 99) {
  194. tranCarNo = 'C' + (this.carlist.length + 1)
  195. }
  196. var that = this
  197. uni.navigateTo({
  198. url: `/pageB/contract/contract_detail?contractNo=` +
  199. that.goods.contractNo + '&goodsName=' + that.goods.goodsName + '&tranCarNo=' + tranCarNo +
  200. '&planId=' + that.planId
  201. })
  202. },
  203. confirmunload(item) {
  204. this.$api.doRequest('post', '/tranCarInfo/api/confirmUnloading', {
  205. id: item.id
  206. }).then(res => {
  207. if (res.data.code == 200) {
  208. uni.showToast({
  209. title: '卸货成功',
  210. icon: 'none',
  211. duration: 2000
  212. })
  213. item.confirmFlag = 3
  214. }
  215. })
  216. .catch(res => {
  217. if (res.errmsg) {
  218. uni.showToast({
  219. title: res.errmsg,
  220. icon: 'none',
  221. duration: 2000
  222. })
  223. } else {
  224. uni.showToast({
  225. title: "系统异常,请联系管理员",
  226. icon: 'none',
  227. duration: 2000
  228. })
  229. }
  230. });
  231. },
  232. loaddata() {
  233. this.$api.doRequest('get', '/tranCarInfo/api/selectTranCarInfoNum', {
  234. contractNo: this.goods.contractNo
  235. }, 'application/json;charset=UTF-8').then(res => {
  236. if (res.data.code == 200) {
  237. this.carlist = res.data.data
  238. }
  239. })
  240. .catch(res => {
  241. if (res.errmsg) {
  242. uni.showToast({
  243. title: res.errmsg,
  244. icon: 'none',
  245. duration: 2000
  246. })
  247. } else {
  248. uni.showToast({
  249. title: "系统异常,请联系管理员",
  250. icon: 'none',
  251. duration: 2000
  252. })
  253. }
  254. });
  255. },
  256. ViewImage(imageUrl) {
  257. console.log(imageUrl) // http://192.168.100.251:8970/6_1597822634094.png
  258. var images = [];
  259. images.push(imageUrl);
  260. console.log(images) // ["http://192.168.100.251:8970/6_1597822634094.png"]
  261. uni.previewImage({ // 预览图片 图片路径必须是一个数组 => ["http://192.168.100.251:8970/6_1597822634094.png"]
  262. current: 0,
  263. urls: images,
  264. longPressActions: { //长按保存图片到相册
  265. itemList: ['保存图片'],
  266. success: (data) => {
  267. console.log(data);
  268. uni.saveImageToPhotosAlbum({ //保存图片到相册
  269. filePath: payUrl,
  270. success: function() {
  271. uni.showToast({
  272. icon: 'success',
  273. title: '保存成功'
  274. })
  275. },
  276. fail: (err) => {
  277. uni.showToast({
  278. icon: 'none',
  279. title: '保存失败,请重新尝试'
  280. })
  281. }
  282. });
  283. },
  284. fail: (err) => {
  285. console.log(err.errMsg);
  286. }
  287. }
  288. });
  289. },
  290. priceInput(e) {
  291. this.price = e.detail.value
  292. },
  293. reasonInput(e) {
  294. this.reason = e.detail.value
  295. },
  296. // navToDetailPage() {
  297. // const that = this
  298. // uni.navigateTo({
  299. // url: `/pageA/product/detail_upload?id=${that.goods.id}`
  300. // })
  301. // },
  302. endSale() {
  303. const that = this
  304. uni.showLoading({
  305. title: '正在加载',
  306. mask: true
  307. })
  308. that.$api.request('sale', 'endSale', {
  309. id: that.goods.id,
  310. reason: that.reason
  311. }, failres => {
  312. if (failres.errmsg) {
  313. uni.showToast({
  314. title: failres.errmsg,
  315. icon: 'none',
  316. duration: 2000
  317. })
  318. } else {
  319. uni.showToast({
  320. title: "系统异常,请联系管理员",
  321. icon: 'none',
  322. duration: 2000
  323. })
  324. }
  325. uni.hideLoading()
  326. }).then(res => {
  327. that.$api.msg('终止成功')
  328. uni.hideLoading()
  329. setTimeout(() => {
  330. uni.navigateBack()
  331. }, 1000);
  332. })
  333. },
  334. alertBtn() {
  335. uni.navigateTo({
  336. url: '/pages/public/login'
  337. })
  338. },
  339. cancelClick() {
  340. this.isShowAlert = false
  341. },
  342. tradeNow() {
  343. if (!this.hasLogin) {
  344. this.isShowAlert = true;
  345. // uni.showModal({
  346. // title: '提示',
  347. // content: '您尚未登录,是否立即登录?',
  348. // showCancel: true,
  349. // confirmText: '登录',
  350. // success: (e) => {
  351. // if (e.confirm) {
  352. // uni.navigateTo({
  353. // url: '/pages/public/login'
  354. // })
  355. // }
  356. // },
  357. // fail: () => {},
  358. // complete: () => {}
  359. // })
  360. } else {
  361. const that = this
  362. uni.navigateTo({
  363. url: `/pageA/product/trade?id=${that.goods.id}&packing=${that.goods.packing}}&province=${that.goods.province}
  364. &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&seller=${that.goods.seller}
  365. &companyId=${that.goods.companyId}&sellerPhone=${that.goods.sellerPhone}&minSale=${that.goods.minSale}
  366. &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}
  367. &basis=${that.goods.basis}&basisSmall=${that.goods.basisSmall}&basisBig=${that.goods.basisBig}
  368. &unloadingFee=${that.goods.unloadingFee}`
  369. })
  370. }
  371. }
  372. },
  373. }
  374. </script>
  375. <style lang='scss' scoped>
  376. .center {
  377. padding: 10px 20px;
  378. background-color: #F5F6FA;
  379. margin-bottom: 100px;
  380. }
  381. page {
  382. background: $page-color-base;
  383. /* padding-bottom: 160upx; */
  384. }
  385. .container {
  386. padding: 10px 20px;
  387. background-color: #F5F6FA;
  388. }
  389. .icon-you {
  390. font-size: $font-base + 2upx;
  391. color: #888;
  392. }
  393. .carousel {
  394. width: 100%;
  395. height: 350upx;
  396. .carousel-item {
  397. width: 100%;
  398. height: 100%;
  399. padding: 0 28upx;
  400. overflow: hidden;
  401. }
  402. image {
  403. width: 100%;
  404. height: 100%;
  405. border-radius: 10upx;
  406. }
  407. }
  408. .carousel-section {
  409. padding: 0;
  410. .titleNview-placing {
  411. padding-top: 0;
  412. height: 0;
  413. }
  414. .carousel {
  415. .carousel-item {
  416. padding: 0;
  417. }
  418. }
  419. .swiper-dots {
  420. left: 45upx;
  421. bottom: 40upx;
  422. }
  423. }
  424. /* 分享 */
  425. .share-section {
  426. display: flex;
  427. align-items: center;
  428. color: $font-color-base;
  429. background: linear-gradient(left, #fdf5f6, #fbebf6);
  430. padding: 12upx 30upx;
  431. .share-icon {
  432. display: flex;
  433. align-items: center;
  434. width: 70upx;
  435. height: 30upx;
  436. line-height: 1;
  437. border: 1px solid $uni-color-primary;
  438. border-radius: 4upx;
  439. position: relative;
  440. overflow: hidden;
  441. font-size: 22upx;
  442. color: $uni-color-primary;
  443. &:after {
  444. content: '';
  445. width: 50upx;
  446. height: 50upx;
  447. border-radius: 50%;
  448. left: -20upx;
  449. top: -12upx;
  450. position: absolute;
  451. background: $uni-color-primary;
  452. }
  453. }
  454. .icon-xingxing {
  455. position: relative;
  456. z-index: 1;
  457. font-size: 24upx;
  458. margin-left: 2upx;
  459. margin-right: 10upx;
  460. color: #fff;
  461. line-height: 1;
  462. }
  463. .tit {
  464. font-size: $font-base;
  465. margin-left: 10upx;
  466. }
  467. .icon-bangzhu1 {
  468. padding: 10upx;
  469. font-size: 30upx;
  470. line-height: 1;
  471. }
  472. .share-btn {
  473. flex: 1;
  474. text-align: right;
  475. font-size: $font-sm;
  476. color: $uni-color-primary;
  477. }
  478. .icon-you {
  479. font-size: $font-sm;
  480. margin-left: 4upx;
  481. color: $uni-color-primary;
  482. }
  483. }
  484. /* .c-list {
  485. font-size: $font-sm + 2upx;
  486. color: $font-color-base;
  487. background: #fff;
  488. .c-row {
  489. display: flex;
  490. align-items: center;
  491. padding: 20upx 30upx;
  492. position: relative;
  493. }
  494. .tit {
  495. width: 220upx;
  496. }
  497. .con {
  498. flex: 1;
  499. color: $font-color-dark;
  500. .selected-text {
  501. margin-right: 10upx;
  502. }
  503. }
  504. .bz-list {
  505. height: 40upx;
  506. font-size: $font-sm+2upx;
  507. color: $font-color-dark;
  508. text {
  509. display: inline-block;
  510. margin-right: 30upx;
  511. }
  512. }
  513. .con-list {
  514. flex: 1;
  515. display: flex;
  516. flex-direction: column;
  517. color: $font-color-dark;
  518. line-height: 40upx;
  519. text-align: right;
  520. padding-right: 20upx;
  521. }
  522. .red {
  523. color: $uni-color-primary;
  524. }
  525. } */
  526. /* 评价 */
  527. .eva-section {
  528. display: flex;
  529. flex-direction: column;
  530. padding: 20upx 30upx;
  531. background: #fff;
  532. margin-top: 16upx;
  533. .e-header {
  534. display: flex;
  535. align-items: center;
  536. height: 70upx;
  537. font-size: $font-sm + 2upx;
  538. color: $font-color-light;
  539. .tit {
  540. font-size: $font-base + 2upx;
  541. color: $font-color-dark;
  542. margin-right: 4upx;
  543. }
  544. .tip {
  545. flex: 1;
  546. text-align: right;
  547. }
  548. .icon-you {
  549. margin-left: 10upx;
  550. }
  551. }
  552. }
  553. .eva-box {
  554. display: flex;
  555. padding: 20upx 0;
  556. .portrait {
  557. flex-shrink: 0;
  558. width: 80upx;
  559. height: 80upx;
  560. border-radius: 100px;
  561. }
  562. .right {
  563. flex: 1;
  564. display: flex;
  565. flex-direction: column;
  566. font-size: $font-base;
  567. color: $font-color-base;
  568. padding-left: 26upx;
  569. .con {
  570. font-size: $font-base;
  571. color: $font-color-dark;
  572. padding: 20upx 0;
  573. }
  574. .bot {
  575. display: flex;
  576. justify-content: space-between;
  577. font-size: $font-sm;
  578. color: $font-color-light;
  579. }
  580. }
  581. }
  582. /* 详情 */
  583. .detail-desc {
  584. background: #fff;
  585. margin-top: 16upx;
  586. width: 750upx;
  587. .d-header {
  588. display: flex;
  589. justify-content: center;
  590. align-items: center;
  591. height: 80upx;
  592. font-size: $font-base + 2upx;
  593. color: $font-color-dark;
  594. position: relative;
  595. text {
  596. padding: 0 20upx;
  597. background: #fff;
  598. position: relative;
  599. z-index: 1;
  600. }
  601. &:after {
  602. position: absolute;
  603. left: 50%;
  604. top: 50%;
  605. transform: translateX(-50%);
  606. width: 300upx;
  607. height: 0;
  608. content: '';
  609. border-bottom: 1px solid #ccc;
  610. }
  611. }
  612. }
  613. /* 规格选择弹窗 */
  614. .attr-content {
  615. padding: 10upx 30upx;
  616. .a-t {
  617. display: flex;
  618. image {
  619. width: 170upx;
  620. height: 170upx;
  621. flex-shrink: 0;
  622. margin-top: -40upx;
  623. border-radius: 8upx;
  624. ;
  625. }
  626. .right {
  627. display: flex;
  628. flex-direction: column;
  629. padding-left: 24upx;
  630. font-size: $font-sm + 2upx;
  631. color: $font-color-base;
  632. line-height: 42upx;
  633. .price {
  634. font-size: $font-lg;
  635. color: $uni-color-primary;
  636. margin-bottom: 10upx;
  637. }
  638. .selected-text {
  639. margin-right: 10upx;
  640. }
  641. }
  642. }
  643. .attr-list {
  644. display: flex;
  645. flex-direction: column;
  646. font-size: $font-base + 2upx;
  647. color: $font-color-base;
  648. padding-top: 30upx;
  649. padding-left: 10upx;
  650. }
  651. .item-list {
  652. padding: 30upx 0 0;
  653. display: flex;
  654. flex-wrap: wrap;
  655. text {
  656. display: flex;
  657. align-items: center;
  658. justify-content: center;
  659. background: #eee;
  660. margin-right: 20upx;
  661. margin-bottom: 20upx;
  662. border-radius: 100upx;
  663. min-width: 60upx;
  664. height: 60upx;
  665. padding: 0 20upx;
  666. font-size: $font-base;
  667. color: $font-color-dark;
  668. }
  669. .selected {
  670. background: #fbebee;
  671. color: $uni-color-primary;
  672. }
  673. }
  674. }
  675. /* 弹出层 */
  676. .popup {
  677. position: fixed;
  678. left: 0;
  679. top: 0;
  680. right: 0;
  681. bottom: 0;
  682. z-index: 99;
  683. &.show {
  684. display: block;
  685. .mask {
  686. animation: showPopup 0.2s linear both;
  687. }
  688. .layer {
  689. animation: showLayer 0.2s linear both;
  690. }
  691. }
  692. &.hide {
  693. .mask {
  694. animation: hidePopup 0.2s linear both;
  695. }
  696. .layer {
  697. animation: hideLayer 0.2s linear both;
  698. }
  699. }
  700. &.none {
  701. display: none;
  702. }
  703. .mask {
  704. position: fixed;
  705. top: 0;
  706. width: 100%;
  707. height: 100%;
  708. z-index: 1;
  709. background-color: rgba(0, 0, 0, 0.4);
  710. }
  711. .layer {
  712. position: fixed;
  713. z-index: 99;
  714. bottom: 0;
  715. width: 100%;
  716. min-height: 40vh;
  717. border-radius: 10upx 10upx 0 0;
  718. background-color: #fff;
  719. .btn {
  720. height: 66upx;
  721. line-height: 66upx;
  722. border-radius: 100upx;
  723. background: $uni-color-primary;
  724. font-size: $font-base + 2upx;
  725. color: #fff;
  726. margin: 30upx auto 20upx;
  727. }
  728. }
  729. @keyframes showPopup {
  730. 0% {
  731. opacity: 0;
  732. }
  733. 100% {
  734. opacity: 1;
  735. }
  736. }
  737. @keyframes hidePopup {
  738. 0% {
  739. opacity: 1;
  740. }
  741. 100% {
  742. opacity: 0;
  743. }
  744. }
  745. @keyframes showLayer {
  746. 0% {
  747. transform: translateY(120%);
  748. }
  749. 100% {
  750. transform: translateY(0%);
  751. }
  752. }
  753. @keyframes hideLayer {
  754. 0% {
  755. transform: translateY(0);
  756. }
  757. 100% {
  758. transform: translateY(120%);
  759. }
  760. }
  761. }
  762. .swiper-dots {
  763. display: flex;
  764. position: absolute;
  765. left: 60upx;
  766. bottom: 15upx;
  767. width: 72upx;
  768. height: 36upx;
  769. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);
  770. background-size: 100% 100%;
  771. .num {
  772. width: 36upx;
  773. height: 36upx;
  774. border-radius: 50px;
  775. font-size: 24upx;
  776. color: #fff;
  777. text-align: center;
  778. line-height: 36upx;
  779. }
  780. .sign {
  781. position: absolute;
  782. top: 0;
  783. left: 50%;
  784. line-height: 36upx;
  785. font-size: 12upx;
  786. color: #fff;
  787. transform: translateX(-50%);
  788. }
  789. }
  790. /* 底部操作菜单 */
  791. .page-bottom {
  792. position: fixed;
  793. left: 30upx;
  794. bottom: 30upx;
  795. z-index: 95;
  796. display: flex;
  797. justify-content: center;
  798. align-items: center;
  799. width: 690upx;
  800. height: 100upx;
  801. background: rgba(255, 255, 255, .9);
  802. box-shadow: 0 0 20upx 0 rgba(0, 0, 0, .5);
  803. border-radius: 16upx;
  804. .p-b-btn {
  805. display: flex;
  806. flex-direction: column;
  807. align-items: center;
  808. justify-content: center;
  809. font-size: $font-sm;
  810. color: $font-color-base;
  811. width: 96upx;
  812. height: 80upx;
  813. .yticon {
  814. font-size: 40upx;
  815. line-height: 48upx;
  816. color: $font-color-light;
  817. }
  818. &.active,
  819. &.active .yticon {
  820. color: $uni-color-primary;
  821. }
  822. .icon-fenxiang2 {
  823. font-size: 42upx;
  824. transform: translateY(-2upx);
  825. }
  826. .icon-shoucang {
  827. font-size: 46upx;
  828. }
  829. }
  830. }
  831. .rich-img {
  832. width: 100%;
  833. height: auto;
  834. margin: 0;
  835. padding: 0;
  836. line-height: 0px;
  837. }
  838. button::after {
  839. border: none;
  840. }
  841. /* 销售信息 */
  842. .introduce-section {
  843. background: #fff;
  844. padding: 20upx 30upx;
  845. padding-bottom: 100upx;
  846. .guess-item {
  847. padding-bottom: 20upx;
  848. border-bottom: 1px solid #ccc;
  849. }
  850. .title {
  851. font-size: 28upx;
  852. color: $font-color-dark;
  853. font-weight: bold;
  854. height: 50upx;
  855. line-height: 50upx;
  856. flex: 2.5;
  857. }
  858. .title-tip {
  859. flex: 1.5;
  860. }
  861. .price-box {
  862. display: flex;
  863. align-items: baseline;
  864. height: 120rpx;
  865. padding: 10upx 0;
  866. font-size: 26upx;
  867. color: $uni-color-primary;
  868. }
  869. .price {
  870. font-size: $font-lg + 2upx;
  871. }
  872. .m-price {
  873. margin: 0 12upx;
  874. color: $font-color-light;
  875. text-decoration: line-through;
  876. }
  877. .coupon-tip {
  878. align-items: center;
  879. padding: 4upx 10upx;
  880. background: $uni-color-primary;
  881. font-size: $font-sm;
  882. color: #fff;
  883. border-radius: 6upx;
  884. line-height: 1;
  885. transform: translateY(-4upx);
  886. }
  887. .bot-row {
  888. display: flex;
  889. align-items: center;
  890. height: 50upx;
  891. font-size: $font-sm;
  892. color: $font-color-light;
  893. view {
  894. flex: 1;
  895. }
  896. }
  897. }
  898. .shade {
  899. position: fixed;
  900. top: 0;
  901. left: 0;
  902. width: 100%;
  903. background: rgba(0, 0, 0, 0.5);
  904. height: 100%;
  905. z-index: 999999;
  906. }
  907. .shade-content {
  908. background: #fff;
  909. position: absolute;
  910. top: 50%;
  911. left: 50%;
  912. transform: translateX(-50%) translateY(-50%);
  913. z-index: 999999;
  914. text-align: center;
  915. width: 325px;
  916. padding: 10px;
  917. }
  918. .c-row {
  919. display: -webkit-box;
  920. display: -webkit-flex;
  921. display: flex;
  922. -webkit-box-align: center;
  923. -webkit-align-items: center;
  924. align-items: center;
  925. padding: 20rpx 30rpx;
  926. position: relative;
  927. }
  928. .con-list {
  929. -webkit-box-flex: 1;
  930. -webkit-flex: 1;
  931. flex: 1;
  932. display: -webkit-box;
  933. display: -webkit-flex;
  934. display: flex;
  935. -webkit-box-orient: vertical;
  936. -webkit-box-direction: normal;
  937. -webkit-flex-direction: column;
  938. flex-direction: column;
  939. color: #303133;
  940. line-height: 40rpx;
  941. text-align: right;
  942. padding-right: 20rpx;
  943. font-size: 14px;
  944. }
  945. .xinxiup {
  946. background-color: #FFFFFF;
  947. border-radius: 20px;
  948. padding: 5px 10px;
  949. }
  950. .forxinxi {
  951. background-color: #FFFFFF;
  952. margin-top: 20px;
  953. border-radius: 20px;
  954. padding-bottom: 20px;
  955. /* padding: 5px 10px; */
  956. }
  957. .carNos {
  958. background-color: #EEEFF4;
  959. border-top-left-radius: 20px;
  960. border-top-right-radius: 20px;
  961. height: 60px;
  962. font-size: 18px;
  963. font-weight: 600;
  964. }
  965. .hair {
  966. width: 24px;
  967. height: 24px;
  968. border-radius: 10px;
  969. font-size: 10px;
  970. color: #22C572;
  971. background-color: #E9F8F0;
  972. }
  973. .collect {
  974. width: 24px;
  975. height: 24px;
  976. border-radius: 10px;
  977. font-size: 10px;
  978. color: #FE6430;
  979. background-color: #FEECE6;
  980. }
  981. .footer {
  982. position: fixed;
  983. bottom: 0;
  984. width: 90%;
  985. padding: 20px 0;
  986. z-index: 4;
  987. }
  988. .btn {
  989. width: 90%;
  990. background: #22C572;
  991. color: #fff;
  992. border-radius: 30px;
  993. }
  994. .poundlist {
  995. width: 62px;
  996. height: 85px;
  997. }
  998. .poundlists {
  999. margin-left: 14px;
  1000. margin-top: 10px;
  1001. }
  1002. .poundtitle {
  1003. font-size: 15px;
  1004. margin-left: 14px;
  1005. margin-top: 10px;
  1006. }
  1007. .unload {}
  1008. /* .addcarwrap{
  1009. position:fixed;bottom:0;
  1010. width:100%;
  1011. left:0;
  1012. z-index:9999;
  1013. }
  1014. .addcarwrap .addcar{
  1015. text-align:center;
  1016. margin: 0 auto;
  1017. height:46px;
  1018. line-height:46px;
  1019. color:#00C265;
  1020. } */
  1021. </style>