detail.vue 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298
  1. <template>
  2. <!--采购详情-->
  3. <view class="container">
  4. <view class="">
  5. <view class="back-btn cuIcon-back" @click="navBack"></view>
  6. <view class='title1'>采购详情</view>
  7. </view>
  8. <image style='width:100%;' src='../../static/img/jiaoyi/bg@3x.png'></image>
  9. <view class="introduce-section">
  10. <view style='height:70px;'>
  11. <view class="title Semibold">{{goods.title}}</view>
  12. <view class='flex justify-between Regular'>
  13. <view style='flex:1.5;color:#878C9C;'>
  14. {{goods.receivePrivate}}{{goods.receiveCity}}{{goods.receiveArea}}{{goods.receiveWarehouse}}
  15. </view>
  16. <view v-if='goods.procurementPlanType=="现货"' class="title-tip NumberBold">
  17. {{goods.procurementPrice}}
  18. </view>
  19. <view style='text-align:right;' v-else class="title-tip NumberBold">
  20. {{goods.basisPrice}}
  21. </view>
  22. </view>
  23. <view style='text-align:right;' class="Regular" v-if='goods.procurementPlanType=="现货"'>采购价格</view>
  24. <view style='text-align:right;' class="Regular" v-if='goods.procurementPlanType=="期货"'>今日基差</view>
  25. </view>
  26. </view>
  27. <view v-if="goods.storeImg" class="carousel-section">
  28. <swiper autoplay="true" interval="3000" duration="500" class="carousel" circular @change="swiperChange">
  29. <swiper-item key="0" class="carousel-item">
  30. <image :src="goods.storeImg" @tap="ViewImage(goods.storeImg)" />
  31. </swiper-item>
  32. <swiper-item key="1" class="carousel-item">
  33. <image :src="goods.foodsImg" @tap="ViewImage(goods.foodsImg)" />
  34. </swiper-item>
  35. <swiper-item key="2" class="carousel-item">
  36. <image :src="goods.carImg" @tap="ViewImage(goods.carImg)" />
  37. </swiper-item>
  38. </swiper>
  39. <view class="swiper-dots">
  40. <text class="num">{{swiperCurrent+1}}</text>
  41. <text class="sign">/</text>
  42. <text class="num">{{swiperLength}}</text>
  43. </view>
  44. </view>
  45. <view class="detail-desc">
  46. <view class="d-header Medium">
  47. <text>基本信息</text>
  48. </view>
  49. <view class="c-list Regular">
  50. <view class="c-row">
  51. <text class="tit">货名</text>
  52. <view class="con-list">
  53. <text>{{goods.goodsName}}</text>
  54. </view>
  55. </view>
  56. <view class="c-row">
  57. <text class="tit">采购量(吨)</text>
  58. <view class="con-list">
  59. <text>{{goods.plannedPurchaseVolume}}</text>
  60. </view>
  61. </view>
  62. <view class="c-row">
  63. <text class="tit">最小成交量(吨)</text>
  64. <view class="con-list">
  65. <text>{{goods.minimumVolume}}</text>
  66. </view>
  67. </view>
  68. <view class="c-row">
  69. <text class="tit">类型</text>
  70. <view class="con-list">
  71. <text>{{goods.procurementPlanType}}</text>
  72. </view>
  73. </view>
  74. <view class="c-row">
  75. <text class="tit">价格类型</text>
  76. <view class="con-list">
  77. <text>{{goods.priceType}}</text>
  78. </view>
  79. </view>
  80. <view v-if='goods.procurementPlanType=="现货"' class="c-row">
  81. <text class="tit">采购价格(元/吨)</text>
  82. <view class="con-list">
  83. <text>{{goods.procurementPrice}}</text>
  84. </view>
  85. </view>
  86. <view v-else class="c-row">
  87. <text class="tit">基差(元/吨)</text>
  88. <view class="con-list">
  89. <text>{{goods.basisPrice}}</text>
  90. </view>
  91. </view>
  92. <view class="c-row">
  93. <text class="tit">收货地区</text>
  94. <view class="con-list">
  95. <text>{{goods.receivePrivate}}{{goods.receiveCity}}{{goods.receiveArea}}</text>
  96. </view>
  97. </view>
  98. <view class="c-row">
  99. <text class="tit">运费承担方</text>
  100. <view class="con-list">
  101. <text>{{goods.freightPayer}}</text>
  102. </view>
  103. </view>
  104. <view class="c-row">
  105. <text class="tit">包装方式</text>
  106. <view class="con-list">
  107. <text>{{goods.packingType}}</text>
  108. </view>
  109. </view>
  110. <view v-if='goods.baggingNotes' class="c-row">
  111. <text class="tit">袋装备注</text>
  112. <view class="con-list">
  113. <text>{{goods.baggingNotes}}</text>
  114. </view>
  115. </view>
  116. <view class="c-row">
  117. <text class="tit">买方</text>
  118. <view class="con-list">
  119. <text>{{goods.buyer}}</text>
  120. </view>
  121. </view>
  122. <view class="c-row" @click="contactUs">
  123. <text class="tit">买方电话</text>
  124. <view class="con-list">
  125. <view>{{goods.buyerPhone}}
  126. <image style='width:11px;height:11px;' src='../../static/img/jiaoyi/gengduo1@3x.png'>
  127. </image>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="detail-desc">
  134. <view class="d-header Medium">
  135. <text>货物要求</text>
  136. </view>
  137. <view class="c-list Regular">
  138. <view class="c-row" v-if="goods.waterContent">
  139. <text class="tit">水分(%){{'<='}} </text>
  140. <view class="con-list">
  141. <text>{{goods.waterContent}}</text>
  142. </view>
  143. </view>
  144. <view class="c-row" v-if="goods.bulkDensity">
  145. <text class="tit">容重(g/L){{'>='}}</text>
  146. <view class="con-list">
  147. <text>{{goods.bulkDensity}}</text>
  148. </view>
  149. </view>
  150. <view class="c-row" v-if="goods.jiaorenli">
  151. <text class="tit">热损伤(%){{'<='}}</text>
  152. <view class="con-list">
  153. <text>{{goods.jiaorenli}}</text>
  154. </view>
  155. </view>
  156. <view class="c-row" v-if="goods.impurity">
  157. <text class="tit">杂质(%){{'<='}}</text>
  158. <view class="con-list">
  159. <text>{{goods.impurity}}</text>
  160. </view>
  161. </view>
  162. <view class="c-row" v-if="goods.mildewGrain">
  163. <text class="tit">霉变粒(%){{'<='}}</text>
  164. <view class="con-list">
  165. <text>{{goods.mildewGrain}}</text>
  166. </view>
  167. </view>
  168. <view class="c-row" v-if="goods.imperfectGrain">
  169. <text class="tit">不完善粒(%){{'<='}}</text>
  170. <view class="con-list">
  171. <text>{{goods.imperfectGrain}}</text>
  172. </view>
  173. </view>
  174. <view class="c-row" v-if="goods.protein">
  175. <text class="tit">蛋白(%){{'>='}} </text>
  176. <view class="con-list">
  177. <text>{{goods.protein}}</text>
  178. </view>
  179. </view>
  180. <view class="c-row" v-if="goods.grain">
  181. <text class="tit">粒型</text>
  182. <view class="con-list">
  183. <text>{{goods.grain}}</text>
  184. </view>
  185. </view>
  186. <view class="c-row" v-if="goods.grade">
  187. <text class="tit">品级</text>
  188. <view class="con-list">
  189. <text>{{goods.grade}}</text>
  190. </view>
  191. </view>
  192. <view class="c-row" v-if="goods.outputPrivate">
  193. <text class="tit">产地</text>
  194. <view class="con-list">
  195. <text>{{goods.outputPrivate}}{{goods.outputCity}}</text>
  196. </view>
  197. </view>
  198. <view class="c-row" v-if="goods.outputYear">
  199. <text class="tit">产出年份</text>
  200. <view class="con-list">
  201. <text>{{goods.outputYear}}</text>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. <view v-if='status' class='shade'>
  207. <view class='shade-content'>
  208. <view class='shade-content-item'>
  209. 您的粮商身份正在审核中,请耐心等待认证状态可在<text>我的-身份认证</text>中查看
  210. </view>
  211. <image @click='status=false' style='width:30px;height:30px;margin-top:10px;'
  212. src='../../static/img/jiaoyi/guanbi-2@3x.png'></image>
  213. </view>
  214. </view>
  215. <!-- 底部操作菜单 -->
  216. <view class="page-bottom1">
  217. <view class="Regular">
  218. <u-button class="talk-online" @click="contactUs">立即沟通</u-button>
  219. <u-button @click="salegrain" v-if="goods.pcFlag == 1" type="primary"
  220. class="action-btn no-border add-cart-btn">立即卖粮</u-button>
  221. <u-button v-else type="primary" class="action-btn no-border add-cart-btn" @click="tradeNow">立即发车
  222. </u-button>
  223. </view>
  224. </view>
  225. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  226. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='去认证' title='温馨提示'
  227. showCancelButton='false' :content="content" @confirm="goOpenService" @cancel="cancelClick"></u-modal>
  228. <u-modal v-model="isShowAlert1" :title-style="{fontSize: '18px',fontWeight:'500'}"
  229. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
  230. showCancelButton='false' :content="content1" @confirm="alertBtn1" @cancel="cancelClick1"></u-modal>
  231. </view>
  232. </template>
  233. <script>
  234. import uniNumberBox from '@/components/uni-number-box.vue';
  235. import {
  236. mapState
  237. } from 'vuex';
  238. export default {
  239. components: {
  240. uniNumberBox
  241. },
  242. data() {
  243. return {
  244. isShowAlert1: false,
  245. content1: '您尚未登录,是否立即登录?',
  246. content: '您还未认证粮商身份,下单前请先完善您的身份信息。',
  247. isShowAlert: false,
  248. swiperCurrent: 0,
  249. titleNViewBackground: '',
  250. swiperLength: 0,
  251. goods: {
  252. id: undefined,
  253. title: undefined,
  254. soldCount: 0,
  255. total: 0,
  256. price: 0,
  257. origin: undefined,
  258. stock: undefined,
  259. level: undefined,
  260. goodsName: undefined,
  261. smell: undefined,
  262. priceType: undefined,
  263. packing: undefined,
  264. year: undefined,
  265. waterContent: 0,
  266. bulkDensity: 0,
  267. moldy: 0,
  268. impurity: 0,
  269. overFlow: 0,
  270. seller: '',
  271. sellerPhone: '',
  272. minSale: 0,
  273. status: 0
  274. },
  275. status: false,
  276. share: {
  277. title: '',
  278. imageUrl: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/shareLogo.png',
  279. },
  280. reason: "",
  281. price: undefined,
  282. };
  283. },
  284. onShow() {},
  285. onLoad(options) {
  286. this.goods.compId = options.compId
  287. const that = this
  288. uni.showLoading({
  289. title: '正在加载',
  290. mask: true
  291. })
  292. this.$api.doRequest('get', '/procurementPlanInfo/getProcurementPlan', {
  293. id: options.id
  294. }).then(res => {
  295. uni.hideLoading()
  296. this.goods = res.data.data
  297. })
  298. // .then(res => {
  299. // console.log(res.data)
  300. // that.goods = res.data
  301. // that.swiperLength = 3
  302. // if(that.goods.soldCount >= that.goods.total){
  303. // that.goods.status = 1
  304. // }
  305. // that.share.title = that.goods.title
  306. // uni.hideLoading()
  307. // })
  308. },
  309. computed: {
  310. ...mapState(['hasLogin', 'userInfo'])
  311. },
  312. methods: {
  313. alertBtn1() {
  314. uni.navigateTo({
  315. url: '/pages/public/login'
  316. })
  317. },
  318. cancelClick1() {
  319. this.isShowAlert = false
  320. },
  321. cancelClick() {
  322. this.isShowAlert = false
  323. },
  324. goOpenService() {
  325. uni.navigateTo({ //跳转页面
  326. url: `/pages/attestation/index`
  327. })
  328. },
  329. numFilter(value) {
  330. if (!value) {
  331. return 0
  332. }
  333. // 截取当前数据到小数点后两位
  334. let realVal = parseFloat(value).toFixed(2)
  335. return realVal
  336. },
  337. swiperChange(e) {
  338. const index = e.detail.current;
  339. this.swiperCurrent = index;
  340. },
  341. contactUs() {
  342. const that = this
  343. uni.makePhoneCall({
  344. // 手机号
  345. phoneNumber: that.goods.buyerPhone,
  346. // 成功回调
  347. success: (res) => {
  348. console.log('调用成功!')
  349. },
  350. // 失败回调
  351. fail: (res) => {
  352. console.log('调用失败!')
  353. that.contactUs()
  354. }
  355. });
  356. },
  357. ViewImage(e) {
  358. var img = [];
  359. img.push(e)
  360. uni.previewImage({
  361. current: 0,
  362. urls: img
  363. });
  364. },
  365. priceInput(e) {
  366. this.price = e.detail.value
  367. },
  368. reasonInput(e) {
  369. this.reason = e.detail.value
  370. },
  371. navToDetailPage() {
  372. const that = this
  373. uni.navigateTo({
  374. url: `/pageA/product/detail_upload?id=${that.goods.id}`
  375. })
  376. },
  377. changePrice(options) {
  378. const that = this
  379. uni.showLoading({
  380. title: '正在加载'
  381. })
  382. if (!that.price) {
  383. that.$api.msg('请输入修改价格')
  384. return
  385. }
  386. that.$api.request('sale', 'changePrice', {
  387. id: that.goods.id,
  388. price: that.price
  389. }, failres => {
  390. if (failres.errmsg) {
  391. uni.showToast({
  392. title: failres.errmsg,
  393. icon: 'none',
  394. duration: 2000
  395. })
  396. } else {
  397. uni.showToast({
  398. title: "系统异常,请联系管理员",
  399. icon: 'none',
  400. duration: 2000
  401. })
  402. }
  403. uni.hideLoading()
  404. }).then(res => {
  405. that.$api.msg('修改成功')
  406. uni.hideLoading()
  407. setTimeout(() => {
  408. uni.navigateBack()
  409. }, 1000);
  410. })
  411. },
  412. salegrain() {
  413. // uni.navigateTo({
  414. // url: `/pageA/product/business_buy?id=${this.goods.id}&receiveArea=${this.goods.receiveArea}&minimumVolume=${this.goods.minimumVolume}
  415. // &goodsName=${this.goods.goodsName}&receiveCity=${this.goods.receiveCity}&receivePrivate=${this.goods.receivePrivate}&buyer=${this.goods.buyer}
  416. // `
  417. // })
  418. // var that=this
  419. if (!this.hasLogin) {
  420. this.isShowAlert1 = true;
  421. // uni.showModal({
  422. // title: '提示',
  423. // content: '您尚未登录,是否立即登录?',
  424. // showCancel: true,
  425. // confirmText: '登录',
  426. // success: (e) => {
  427. // if (e.confirm) {
  428. // uni.navigateTo({
  429. // url: '/pages/public/login'
  430. // })
  431. // }
  432. // },
  433. // fail: () => {},
  434. // complete: () => {}
  435. // })
  436. } else {
  437. this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
  438. commonId: this.userInfo.id
  439. }).then(res => {
  440. if (res.data.code == 200) {
  441. uni.navigateTo({
  442. url: `/pageA/product/business_buy?id=${this.goods.id}&receiveArea=${this.goods.receiveArea}&minimumVolume=${this.goods.minimumVolume}&goodsName=${this.goods.goodsName}&receiveCity=${this.goods.receiveCity}&receivePrivate=${this.goods.receivePrivate}&buyer=${this.goods.buyer}&basisPrice=${this.goods.basisPrice}&procurementPrice=${this.goods.procurementPrice}&receiveWarehouse=${this.goods.receiveWarehouse}&procurementPlanType=${this.goods.procurementPlanType}&procurementPlan=${this.goods.procurementPlanNo}&compId=${this.goods.compId}&invoiceFeeCompany=${this.goods.invoiceFeeCompany}&invoiceFeePerson=${this.goods.invoiceFeePerson}`
  443. // url: `/pageA/product/business_buy?id=${this.goods.id}&packing=${this.goods.packing}}&province=${this.goods.province}
  444. // &city=${this.goods.city}&area=${this.goods.area}&storeName=${this.goods.storeName}&seller=${this.goods.seller}
  445. // &companyId=${this.goods.companyId}&sellerPhone=${this.goods.sellerPhone}&minSale=${this.goods.minSale}
  446. // &exsitCount=${this.goods.total}&isFutures=${this.goods.isFutures}
  447. // &basis=${this.goods.basis}&basisSmall=${this.goods.basisSmall}&basisBig=${this.goods.basisBig}
  448. // &unloadingFee=${this.goods.unloadingFee}&goodsName=${this.goods.goodsName}&receivePrivate=${this.goods.receivePrivate}&receiveCity=${that.goods.receiveCity}
  449. // &receiveArea=${this.goods.receiveArea}&minimumVolume=${this.goods.minimumVolume}&buyer=${this.goods.buyer}`
  450. })
  451. } else if (res.data.code == 11016) {
  452. this.isShowAlert = true
  453. // uni.showModal({
  454. // title: '温馨提示',
  455. // content: '您还未认证粮商身份, 下单前请先完善您的身份信息。',
  456. // confirmText: "去认证",
  457. // confirmColor: '#22C572',
  458. // success: function (res) {
  459. // if (res.confirm) {
  460. // uni.navigateTo({//跳转页面
  461. // url:`/pages/attestation/index`
  462. // })
  463. // } else if (res.cancel) {
  464. // }
  465. // }
  466. // });
  467. } else if (res.data.code == 11017) {
  468. this.status = true
  469. }
  470. })
  471. // uni.showModal({
  472. // title: '温馨提示',
  473. // content: '请在发车前认真核实买方身份,并在签订正规的交易合同后发起发车操作,是否继续发车?',
  474. // confirmText: "发车",
  475. // confirmColor: '#22C572',
  476. // success: function (res) {
  477. // if (res.confirm) {
  478. // uni.navigateTo({//跳转页面
  479. // url:"../index/index"
  480. // })
  481. // } else if (res.cancel) {
  482. // }
  483. // }
  484. // });
  485. // const that = this
  486. // uni.navigateTo({
  487. // url: `/pageA/product/trade?id=${that.goods.id}&packing=${that.goods.packing}}&province=${that.goods.province}
  488. // &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&seller=${that.goods.seller}
  489. // &companyId=${that.goods.companyId}&sellerPhone=${that.goods.sellerPhone}&minSale=${that.goods.minSale}
  490. // &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}
  491. // &basis=${that.goods.basis}&basisSmall=${that.goods.basisSmall}&basisBig=${that.goods.basisBig}
  492. // &unloadingFee=${that.goods.unloadingFee}`
  493. // })
  494. }
  495. },
  496. endSale() {
  497. const that = this
  498. uni.showLoading({
  499. title: '正在加载',
  500. mask: true
  501. })
  502. that.$api.request('sale', 'endSale', {
  503. id: that.goods.id,
  504. reason: that.reason
  505. }, failres => {
  506. if (failres.errmsg) {
  507. uni.showToast({
  508. title: failres.errmsg,
  509. icon: 'none',
  510. duration: 2000
  511. })
  512. } else {
  513. uni.showToast({
  514. title: "系统异常,请联系管理员",
  515. icon: 'none',
  516. duration: 2000
  517. })
  518. }
  519. uni.hideLoading()
  520. }).then(res => {
  521. that.$api.msg('终止成功')
  522. uni.hideLoading()
  523. setTimeout(() => {
  524. uni.navigateBack()
  525. }, 1000);
  526. })
  527. },
  528. navBack() {
  529. uni.navigateBack();
  530. },
  531. tradeNow() {
  532. uni.showModal({
  533. title: '立即发车',
  534. content: '是否立即发车?',
  535. showCancel: true,
  536. confirmText: '确认',
  537. success: (e) => {
  538. if (e.confirm) {
  539. uni.navigateTo({
  540. url: '../freightTransport/addsendgoods'
  541. })
  542. }
  543. },
  544. fail: () => {},
  545. complete: () => {}
  546. })
  547. // this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo',{commonId:options.id}).then(res => {
  548. // uni.hideLoading()
  549. // this.goods=res.data.data
  550. // })
  551. // if (!this.hasLogin) {
  552. // uni.showModal({
  553. // title: '提示',
  554. // content: '您尚未登录,是否立即登录?',
  555. // showCancel: true,
  556. // confirmText: '登录',
  557. // success: (e) => {
  558. // if (e.confirm) {
  559. // uni.navigateTo({
  560. // url: '/pages/public/login'
  561. // })
  562. // }
  563. // },
  564. // fail: () => {},
  565. // complete: () => {}
  566. // })
  567. // }
  568. // else{
  569. // uni.showModal({
  570. // title: '温馨提示',
  571. // content: '请在发车前认真核实买方身份,并在签订正规的交易合同后发起发车操作,是否继续发车?',
  572. // confirmText: "发车",
  573. // confirmColor: '#22C572',
  574. // success: function (res) {
  575. // if (res.confirm) {
  576. // uni.navigateTo({//跳转页面
  577. // url:"../index/index"
  578. // })
  579. // } else if (res.cancel) {
  580. // }
  581. // }
  582. // });
  583. // const that = this
  584. // uni.navigateTo({
  585. // url: `/pageA/product/trade?id=${that.goods.id}&packing=${that.goods.packing}}&province=${that.goods.province}
  586. // &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&seller=${that.goods.seller}
  587. // &companyId=${that.goods.companyId}&sellerPhone=${that.goods.sellerPhone}&minSale=${that.goods.minSale}
  588. // &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}
  589. // &basis=${that.goods.basis}&basisSmall=${that.goods.basisSmall}&basisBig=${that.goods.basisBig}
  590. // &unloadingFee=${that.goods.unloadingFee}`
  591. // })
  592. // }
  593. }
  594. },
  595. }
  596. </script>
  597. <style scoped lang='scss'>
  598. .title1 {
  599. position: absolute;
  600. left: 50%;
  601. transform: translateX(-50%);
  602. top: 40upx;
  603. padding-top: var(--status-bar-height);
  604. z-index: 9999;
  605. color: #fff;
  606. font-size: 36rpx;
  607. }
  608. page {
  609. background: #F5F6FA;
  610. /* padding-bottom: 160upx; */
  611. }
  612. .container {
  613. padding-bottom: 160upx;
  614. }
  615. .icon-you {
  616. font-size: $font-base + 2upx;
  617. color: #888;
  618. }
  619. .carousel {
  620. width: 100%;
  621. height: 350upx;
  622. .carousel-item {
  623. width: 100%;
  624. height: 100%;
  625. padding: 0 28upx;
  626. overflow: hidden;
  627. }
  628. image {
  629. width: 100%;
  630. height: 100%;
  631. border-radius: 10upx;
  632. }
  633. }
  634. .carousel-section {
  635. padding: 0;
  636. .titleNview-placing {
  637. padding-top: 0;
  638. height: 0;
  639. }
  640. .carousel {
  641. .carousel-item {
  642. padding: 0;
  643. }
  644. }
  645. .swiper-dots {
  646. left: 45upx;
  647. bottom: 40upx;
  648. }
  649. }
  650. /* 分享 */
  651. .share-section {
  652. display: flex;
  653. align-items: center;
  654. color: $font-color-base;
  655. background: linear-gradient(left, #fdf5f6, #fbebf6);
  656. padding: 12upx 30upx;
  657. .share-icon {
  658. display: flex;
  659. align-items: center;
  660. width: 70upx;
  661. height: 30upx;
  662. line-height: 1;
  663. border: 1px solid $uni-color-primary;
  664. border-radius: 4upx;
  665. position: relative;
  666. overflow: hidden;
  667. font-size: 22upx;
  668. color: $uni-color-primary;
  669. &:after {
  670. content: '';
  671. width: 50upx;
  672. height: 50upx;
  673. border-radius: 50%;
  674. left: -20upx;
  675. top: -12upx;
  676. position: absolute;
  677. background: $uni-color-primary;
  678. }
  679. }
  680. .icon-xingxing {
  681. position: relative;
  682. z-index: 1;
  683. font-size: 24upx;
  684. margin-left: 2upx;
  685. margin-right: 10upx;
  686. color: #fff;
  687. line-height: 1;
  688. }
  689. .tit {
  690. font-size: $font-base;
  691. margin-left: 10upx;
  692. }
  693. .icon-bangzhu1 {
  694. padding: 10upx;
  695. font-size: 30upx;
  696. line-height: 1;
  697. }
  698. .share-btn {
  699. flex: 1;
  700. text-align: right;
  701. font-size: $font-sm;
  702. color: $uni-color-primary;
  703. }
  704. .icon-you {
  705. font-size: $font-sm;
  706. margin-left: 4upx;
  707. color: $uni-color-primary;
  708. }
  709. }
  710. .c-list {
  711. font-size: $font-sm + 2upx;
  712. color: $font-color-base;
  713. background: #fff;
  714. .c-row {
  715. display: flex;
  716. align-items: center;
  717. padding: 20upx 30upx;
  718. position: relative;
  719. }
  720. .tit {
  721. width: 220upx;
  722. }
  723. .con {
  724. flex: 1;
  725. color: $font-color-dark;
  726. .selected-text {
  727. margin-right: 10upx;
  728. }
  729. }
  730. .bz-list {
  731. height: 40upx;
  732. font-size: $font-sm+2upx;
  733. color: $font-color-dark;
  734. text {
  735. display: inline-block;
  736. margin-right: 30upx;
  737. }
  738. }
  739. .con-list {
  740. flex: 1;
  741. display: flex;
  742. flex-direction: column;
  743. color: $font-color-dark;
  744. line-height: 40upx;
  745. text-align: right;
  746. padding-right: 20upx;
  747. font-family: PingFangSC-Medium, PingFang SC;
  748. font-weight: 500;
  749. font-size: 28rpx;
  750. }
  751. .red {
  752. color: $uni-color-primary;
  753. }
  754. }
  755. /* 评价 */
  756. .eva-section {
  757. display: flex;
  758. flex-direction: column;
  759. padding: 20upx 30upx;
  760. background: #fff;
  761. margin-top: 16upx;
  762. .e-header {
  763. display: flex;
  764. align-items: center;
  765. height: 70upx;
  766. font-size: $font-sm + 2upx;
  767. color: $font-color-light;
  768. .tit {
  769. font-size: $font-base + 2upx;
  770. color: $font-color-dark;
  771. margin-right: 4upx;
  772. }
  773. .tip {
  774. flex: 1;
  775. text-align: right;
  776. }
  777. .icon-you {
  778. margin-left: 10upx;
  779. }
  780. }
  781. }
  782. .eva-box {
  783. display: flex;
  784. padding: 20upx 0;
  785. .portrait {
  786. flex-shrink: 0;
  787. width: 80upx;
  788. height: 80upx;
  789. border-radius: 100px;
  790. }
  791. .right {
  792. flex: 1;
  793. display: flex;
  794. flex-direction: column;
  795. font-size: $font-base;
  796. color: $font-color-base;
  797. padding-left: 26upx;
  798. .con {
  799. font-size: $font-base;
  800. color: $font-color-dark;
  801. padding: 20upx 0;
  802. }
  803. .bot {
  804. display: flex;
  805. justify-content: space-between;
  806. font-size: $font-sm;
  807. color: $font-color-light;
  808. }
  809. }
  810. }
  811. /* 详情 */
  812. .detail-desc {
  813. background: #fff;
  814. margin-top: 16upx;
  815. margin: 10px;
  816. position: relative;
  817. z-index: 4;
  818. border-radius: 5px;
  819. .d-header {
  820. display: flex;
  821. padding: 10px;
  822. font-size: $font-base + 2upx;
  823. color: $font-color-dark;
  824. position: relative;
  825. border-bottom: 1px solid #EEEEEE;
  826. text {
  827. padding: 0 20upx;
  828. position: relative;
  829. z-index: 1;
  830. }
  831. }
  832. }
  833. /* 规格选择弹窗 */
  834. .attr-content {
  835. padding: 10upx 30upx;
  836. .a-t {
  837. display: flex;
  838. image {
  839. width: 170upx;
  840. height: 170upx;
  841. flex-shrink: 0;
  842. margin-top: -40upx;
  843. border-radius: 8upx;
  844. ;
  845. }
  846. .right {
  847. display: flex;
  848. flex-direction: column;
  849. padding-left: 24upx;
  850. font-size: $font-sm + 2upx;
  851. color: $font-color-base;
  852. line-height: 42upx;
  853. .price {
  854. font-size: $font-lg;
  855. color: $uni-color-primary;
  856. margin-bottom: 10upx;
  857. }
  858. .selected-text {
  859. margin-right: 10upx;
  860. }
  861. }
  862. }
  863. .attr-list {
  864. display: flex;
  865. flex-direction: column;
  866. font-size: $font-base + 2upx;
  867. color: $font-color-base;
  868. padding-top: 30upx;
  869. padding-left: 10upx;
  870. }
  871. .item-list {
  872. padding: 30upx 0 0;
  873. display: flex;
  874. flex-wrap: wrap;
  875. text {
  876. display: flex;
  877. align-items: center;
  878. justify-content: center;
  879. background: #eee;
  880. margin-right: 20upx;
  881. margin-bottom: 20upx;
  882. border-radius: 100upx;
  883. min-width: 60upx;
  884. height: 60upx;
  885. padding: 0 20upx;
  886. font-size: $font-base;
  887. color: $font-color-dark;
  888. }
  889. .selected {
  890. background: #fbebee;
  891. color: $uni-color-primary;
  892. }
  893. }
  894. }
  895. /* 弹出层 */
  896. .popup {
  897. position: fixed;
  898. left: 0;
  899. top: 0;
  900. right: 0;
  901. bottom: 0;
  902. z-index: 99;
  903. &.show {
  904. display: block;
  905. .mask {
  906. animation: showPopup 0.2s linear both;
  907. }
  908. .layer {
  909. animation: showLayer 0.2s linear both;
  910. }
  911. }
  912. &.hide {
  913. .mask {
  914. animation: hidePopup 0.2s linear both;
  915. }
  916. .layer {
  917. animation: hideLayer 0.2s linear both;
  918. }
  919. }
  920. &.none {
  921. display: none;
  922. }
  923. .mask {
  924. position: fixed;
  925. top: 0;
  926. width: 100%;
  927. height: 100%;
  928. z-index: 1;
  929. background-color: rgba(0, 0, 0, 0.4);
  930. }
  931. .layer {
  932. position: fixed;
  933. z-index: 99;
  934. bottom: 0;
  935. width: 100%;
  936. min-height: 40vh;
  937. border-radius: 10upx 10upx 0 0;
  938. background-color: #fff;
  939. .btn {
  940. height: 66upx;
  941. line-height: 66upx;
  942. border-radius: 100upx;
  943. background: $uni-color-primary;
  944. font-size: $font-base + 2upx;
  945. color: #fff;
  946. margin: 30upx auto 20upx;
  947. }
  948. }
  949. @keyframes showPopup {
  950. 0% {
  951. opacity: 0;
  952. }
  953. 100% {
  954. opacity: 1;
  955. }
  956. }
  957. @keyframes hidePopup {
  958. 0% {
  959. opacity: 1;
  960. }
  961. 100% {
  962. opacity: 0;
  963. }
  964. }
  965. @keyframes showLayer {
  966. 0% {
  967. transform: translateY(120%);
  968. }
  969. 100% {
  970. transform: translateY(0%);
  971. }
  972. }
  973. @keyframes hideLayer {
  974. 0% {
  975. transform: translateY(0);
  976. }
  977. 100% {
  978. transform: translateY(120%);
  979. }
  980. }
  981. }
  982. .swiper-dots {
  983. display: flex;
  984. position: absolute;
  985. left: 60upx;
  986. bottom: 15upx;
  987. width: 72upx;
  988. height: 36upx;
  989. 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==);
  990. background-size: 100% 100%;
  991. .num {
  992. width: 36upx;
  993. height: 36upx;
  994. border-radius: 50px;
  995. font-size: 24upx;
  996. color: #fff;
  997. text-align: center;
  998. line-height: 36upx;
  999. }
  1000. .sign {
  1001. position: absolute;
  1002. top: 0;
  1003. left: 50%;
  1004. line-height: 36upx;
  1005. font-size: 12upx;
  1006. color: #fff;
  1007. transform: translateX(-50%);
  1008. }
  1009. }
  1010. /* 底部操作菜单 */
  1011. .page-bottom1 {
  1012. position: fixed;
  1013. left: 0;
  1014. bottom: 0;
  1015. z-index: 95;
  1016. width: 100%;
  1017. height: 70px;
  1018. background: rgba(255, 255, 255, .9);
  1019. padding: 15px;
  1020. border-radius: 0;
  1021. text-align: right;
  1022. button {
  1023. display: inline-block;
  1024. border-radius: 18px;
  1025. margin: 0 10px;
  1026. font-size: 14px;
  1027. background: #fff;
  1028. color: #333333;
  1029. border: 1px solid #333;
  1030. }
  1031. .action-btn {
  1032. background: #22C572;
  1033. color: #fff;
  1034. border: 1px solid #22C572;
  1035. height: 76rpx;
  1036. line-height: 76rpx;
  1037. }
  1038. .p-b-btn {
  1039. display: flex;
  1040. flex-direction: column;
  1041. align-items: center;
  1042. justify-content: center;
  1043. font-size: $font-sm;
  1044. color: $font-color-base;
  1045. width: 96upx;
  1046. height: 80upx;
  1047. .yticon {
  1048. font-size: 40upx;
  1049. line-height: 48upx;
  1050. color: $font-color-light;
  1051. }
  1052. &.active,
  1053. &.active .yticon {
  1054. color: $uni-color-primary;
  1055. }
  1056. .icon-fenxiang2 {
  1057. font-size: 42upx;
  1058. transform: translateY(-2upx);
  1059. }
  1060. .icon-shoucang {
  1061. font-size: 46upx;
  1062. }
  1063. }
  1064. }
  1065. .rich-img {
  1066. width: 100%;
  1067. height: auto;
  1068. margin: 0;
  1069. padding: 0;
  1070. line-height: 0px;
  1071. }
  1072. button::after {
  1073. border: none;
  1074. }
  1075. /* 销售信息 */
  1076. .introduce-section {
  1077. background: #fff;
  1078. padding: 30upx 30upx;
  1079. position: relative;
  1080. margin: 10px;
  1081. padding-bottom: 25px;
  1082. margin-top: -364rpx;
  1083. border-radius: 5px;
  1084. z-index: 4;
  1085. .guess-item {
  1086. padding-bottom: 20upx;
  1087. border-bottom: 1px solid #ccc;
  1088. }
  1089. .title {
  1090. font-size: 16px;
  1091. color: $font-color-dark;
  1092. font-weight: bold;
  1093. height: 50upx;
  1094. line-height: 50upx;
  1095. flex: 2.5;
  1096. }
  1097. .title-tip {
  1098. flex: 1.5;
  1099. color: #FD714F;
  1100. font-size: 30px;
  1101. text-align: right;
  1102. }
  1103. .price-box {
  1104. display: flex;
  1105. align-items: baseline;
  1106. height: 120rpx;
  1107. padding: 10upx 0;
  1108. font-size: 26upx;
  1109. color: $uni-color-primary;
  1110. }
  1111. .price {
  1112. font-size: $font-lg + 2upx;
  1113. }
  1114. .m-price {
  1115. margin: 0 12upx;
  1116. color: $font-color-light;
  1117. text-decoration: line-through;
  1118. }
  1119. .coupon-tip {
  1120. align-items: center;
  1121. padding: 4upx 10upx;
  1122. background: $uni-color-primary;
  1123. font-size: $font-sm;
  1124. color: #fff;
  1125. border-radius: 6upx;
  1126. line-height: 1;
  1127. transform: translateY(-4upx);
  1128. }
  1129. .bot-row {
  1130. display: flex;
  1131. align-items: center;
  1132. height: 50upx;
  1133. font-size: $font-sm;
  1134. color: $font-color-light;
  1135. view {
  1136. flex: 1;
  1137. }
  1138. }
  1139. }
  1140. .back-btn {
  1141. position: absolute;
  1142. left: 40upx;
  1143. z-index: 9999;
  1144. padding-top: var(--status-bar-height);
  1145. top: 40upx;
  1146. font-size: 40upx;
  1147. color: #fff;
  1148. }
  1149. .shade {
  1150. position: fixed;
  1151. top: 0;
  1152. left: 0;
  1153. width: 100%;
  1154. background: rgba(0, 0, 0, 0.5);
  1155. height: 100%;
  1156. z-index: 999999;
  1157. }
  1158. .shade-content {
  1159. position: absolute;
  1160. top: 50%;
  1161. left: 50%;
  1162. transform: translateX(-50%) translateY(-50%);
  1163. z-index: 999999;
  1164. text-align: center;
  1165. }
  1166. .shade-content-item {
  1167. background: #fff;
  1168. width: 277px;
  1169. text-align: center;
  1170. height: 121px;
  1171. padding: 35px 10px;
  1172. border-radius: 15px;
  1173. }
  1174. a {
  1175. text-decoration: none;
  1176. }
  1177. .talk-online {
  1178. height: 76rpx;
  1179. line-height: 76rpx;
  1180. background: #FFFFFF;
  1181. border-radius: 38rpx;
  1182. border: 1px solid #B7B9C3 !important;
  1183. padding: 0 34rpx;
  1184. }
  1185. .u-hairline-border:after {
  1186. border: none;
  1187. }
  1188. </style>