SayPriceInfo.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. <template>
  2. <div class="mobile-modal" @touchmove="preventTouchMove($event)">
  3. <div class="mobile-modal-box">
  4. <div class="mobile-modal-header">
  5. {{sayInfoTitle}}
  6. <!--{{purchaseDetail.agreed == 1 || agreed == 1 ? '已采纳' : '已报价'}}-->
  7. <i class="icon-guanbi iconfont" @click="cancel"></i>
  8. </div>
  9. <!--<i class="icon-guanbi iconfont" @click="cancel"></i>-->
  10. <div class="say-price-info" ref="mobileModalBox">
  11. <div>
  12. <div v-if="isBuyer" class="is-buyer">
  13. <div class="base-info base">
  14. <div class="content-line">
  15. 品牌:<span>{{purchaseDetail.inbrand || '-'}}</span>
  16. </div>
  17. <div class="content-line">
  18. 物料名称:<span>{{purchaseDetail.prodTitle || '-'}}</span>
  19. </div>
  20. <div class="content-line">
  21. 型号:<span>{{purchaseDetail.cmpCode || '-'}}</span>
  22. </div>
  23. <div class="content-line">
  24. 规格:<span>{{purchaseDetail.spec || '-'}}</span>
  25. </div>
  26. <div class="content-line">
  27. 采购数量(PCS):<span>{{purchaseDetail.needquantity || '-'}}</span>
  28. </div>
  29. <!-- <div class="content-line">
  30. 币种:<span>{{purchaseDetail.custCurrency || '不限'}}</span>
  31. </div>-->
  32. <!--<div class="content-line">
  33. 生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
  34. </div>-->
  35. <div class="content-line">
  36. 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
  37. </div>
  38. <div class="content-line">
  39. 联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>
  40. </div>
  41. </div>
  42. <!-- <div class="base-info">
  43. <div class="content-line">
  44. 买家:<span>{{purchaseDetail.inquiry && purchaseDetail.inquiry.enterprise ? purchaseDetail.inquiry.enterprise.enName : purchaseDetail.userName}}</span>
  45. </div>
  46. <div class="content-line">
  47. 联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>
  48. </div>
  49. </div>-->
  50. <ul class="mobile-switch-say">
  51. <li class="inline-block" :class="{'active': sayType == 'current'}" @click="setSayType('current')">当前型号报价</li>
  52. <li class="inline-block" :class="{'active': sayType == 'replace'}" @click="setSayType('replace')">替代型号报价</li>
  53. </ul>
  54. <div class="base-info say-info say" :class="{'long': item.showRefuseList}" v-for="(item, index) in qutationsTemp" v-if="(sayType == 'current' && item.isReplace != 1) || (sayType == 'replace' && item.isReplace == 1)">
  55. <!-- <img v-if="agreed != 1 && (!item.agreed || item.agreed !== 1) && activeIndex == index" src="/images/mobile/@2x/applyPurchase/say-price-check.png" alt="">
  56. <img v-if="agreed != 1 && (!item.agreed || item.agreed !== 1) && activeIndex != index" src="/images/mobile/@2x/applyPurchase/say-price-default.png" alt="">
  57. <img v-if="item.agreed == 1" src="/images/mobile/@2x/applyPurchase/say-price-accept.png" alt="">-->
  58. <div class="content-title">
  59. <i>{{index + 1}}</i>
  60. <div class="inline-block text-ellipse vend-name">{{item.vendName}}</div>
  61. <img src="/images/mobile/center/accept.png" alt="" v-if="item.agreed == 1">
  62. <img src="/images/mobile/center/refuse.png" alt="" v-if="item.agreed == 0">
  63. </div>
  64. <template v-if="item.isReplace == 1">
  65. <div class="content-line">
  66. 品牌:<span>{{item.replaceBrand || '-'}}</span>
  67. </div>
  68. <div class="content-line">
  69. 型号:<span>{{item.replaceCmpCode || '-'}}</span>
  70. </div>
  71. <div class="content-line">
  72. 规格:<span>{{item.replaceSpec || '-'}}</span>
  73. </div>
  74. <div class="content-line">
  75. 报价人:<span v-if="item.user">{{item.user.userName}}</span>
  76. <span v-else>-</span>
  77. </div>
  78. <div class="content-line date">
  79. 交期(天):<span>{{item.leadtime}}</span>
  80. </div>
  81. <div class="content-line">
  82. 电话:<span v-if="item.user">{{item.user.userTel}}</span>
  83. <span v-else>-</span>
  84. </div>
  85. </template>
  86. <template v-else>
  87. <div class="content-line">
  88. 报价人:<span v-if="item.user">{{item.user.userName}}</span>
  89. <span v-else>-</span>
  90. </div>
  91. <div class="content-line">
  92. 电话:<span v-if="item.user">{{item.user.userTel}}</span>
  93. <span v-else>-</span>
  94. </div>
  95. <div class="content-line date">
  96. 交期(天):<span>{{item.leadtime}}</span>
  97. </div>
  98. </template>
  99. <div class="content-line date">
  100. 税率%:<span>{{item.taxrate | '-'}}</span>
  101. </div>
  102. <div class="content-line date">
  103. 报价时间:<span>{{item.offerTime | date}}</span>
  104. </div>
  105. <!--<p>{{item.offerTime | date}}</p>-->
  106. <div class="price clearfix">
  107. <span>价格梯度:<br/>(PCS)</span>
  108. <table class="com-price-list com-price-listLong">
  109. <thead>
  110. <tr>
  111. <th>分段数量</th>
  112. <th>分段单价</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr v-for="replie in item.replies">
  117. <td class="date text-ellipse">{{replie.lapQty ? replie.lapQty + '+' : '-'}}</td>
  118. <td class="date text-ellipse">{{replie.price ? (item.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. </div>
  123. <div class="refused-txt" v-if="item.agreed === 0">拒绝理由:<span>{{item.refusereason}}</span></div>
  124. <!--<div class="price-level">
  125. <p>价格梯度:<span>(pcs)</span></p>
  126. <ul>
  127. <li v-for="replie in item.replies">
  128. <span>{{replie.lapQty ? replie.lapQty + '+' : '-'}}</span>
  129. <span>{{replie.price ? (item.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</span>
  130. </li>
  131. </ul>
  132. </div>-->
  133. <div class="operate-say" v-if="item.agreed != 1 && item.agreed != 0">
  134. <a class="operate-say-btn inline-block" @click="acceptQutation(item)">采纳报价</a>
  135. <a class="operate-say-btn inline-block refuse" @click="setShowRefuseList(item, !item.showRefuseList)">
  136. 拒绝报价
  137. <img src="/images/mobile/center/refuse-arrow-down.png" alt="">
  138. <ul v-if="item.showRefuseList">
  139. <li class="text-ellipse" @click.stop="selectRefuse(item, '采购需求变更')">采购需求变更</li>
  140. <li class="text-ellipse" @click.stop="selectRefuse(item, '价格过高')">价格过高</li>
  141. <li class="text-ellipse" @click.stop="selectRefuse(item, '需进一步了解原因')">需进一步了解原因</li>
  142. <li class="text-ellipse" @click.stop="selectRefuse(item, '已选定合适供应商')">已选定合适供应商</li>
  143. <li class="text-ellipse" @click.stop="selectRefuse(item, '交期过长')">交期过长</li>
  144. </ul>
  145. </a>
  146. </div>
  147. </div>
  148. <!-- <a class="say-price-btn" v-if="purchaseDetail.agreed != 1" @click="acceptQutation">采纳报价</a>
  149. <div style="height: 0.5rem;width: 100%"></div>-->
  150. </div>
  151. <div v-if="!isBuyer" class="is-vendor">
  152. <div class="base-info">
  153. <div class="content-title">
  154. <span class="inline-block text-ellipse">{{purchaseDetail.inquiry && purchaseDetail.inquiry.enterprise ? purchaseDetail.inquiry.enterprise.enName : purchaseDetail.userName}}</span>
  155. <img src="/images/mobile/center/accept.png" alt="" v-if="purchaseDetail.agreed == 1">
  156. <img src="/images/mobile/center/refuse.png" alt="" v-if="purchaseDetail.agreed == 0">
  157. </div>
  158. <div class="content-line">
  159. 品牌:<span>{{purchaseDetail.inbrand || '-'}}</span>
  160. </div>
  161. <div class="content-line">
  162. 物料名称:<span>{{purchaseDetail.prodTitle || '-'}}</span>
  163. </div>
  164. <div class="content-line">
  165. 型号:<span>{{purchaseDetail.cmpCode || '-'}}</span>
  166. </div>
  167. <div class="content-line">
  168. 规格:<span>{{purchaseDetail.spec || '-'}}</span>
  169. </div>
  170. <div class="content-line">
  171. 采购数量(PCS):<span>{{purchaseDetail.needquantity || '-'}}</span>
  172. </div>
  173. <div class="content-line">
  174. 币种:<span>{{purchaseDetail.custCurrency || '不限'}}</span>
  175. </div>
  176. <!-- <div class="content-line">
  177. 生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
  178. </div>-->
  179. <div class="content-line">
  180. 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
  181. </div>
  182. <div class="content-line">
  183. 联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>
  184. </div>
  185. </div>
  186. <!--<div class="base-info">
  187. <div class="content-line">
  188. 报价人:<span v-if="purchaseDetail.user">{{purchaseDetail.user.userName}}</span>
  189. <span v-else>-</span>
  190. </div>
  191. <div class="content-line">
  192. 联系电话:<span v-if="purchaseDetail.user">{{purchaseDetail.user.userTel || '-'}}</span>
  193. <span v-else>-</span>
  194. </div>
  195. </div>-->
  196. <div class="base-info say-info">
  197. <template v-if="purchaseDetail.isReplace == 1">
  198. <div class="content-line inline-block">
  199. 品牌:<span>{{purchaseDetail.replaceBrand || '-'}}</span>
  200. </div>
  201. <div class="content-line inline-block">
  202. 型号:<span>{{purchaseDetail.replaceCmpCode || '-'}}</span>
  203. </div>
  204. <div class="content-line inline-block">
  205. 规格:<span>{{purchaseDetail.replaceSpec || '-'}}</span>
  206. </div>
  207. <div class="content-line inline-block">
  208. 报价人:<span>{{purchaseDetail.user ? purchaseDetail.user.userName : '-'}}</span>
  209. </div>
  210. <div class="content-line inline-block date">
  211. 交期(天):<span>{{purchaseDetail.leadtime}}</span>
  212. </div>
  213. <div class="content-line inline-block">
  214. 电话:<span>{{purchaseDetail.user ? purchaseDetail.user.userTel : '-'}}</span>
  215. </div>
  216. </template>
  217. <template v-else>
  218. <div class="content-line inline-block">
  219. 报价人:<span>{{purchaseDetail.user ? purchaseDetail.user.userName : '-'}}</span>
  220. </div>
  221. <div class="content-line inline-block">
  222. 电话:<span>{{purchaseDetail.user ? purchaseDetail.user.userTel : '-'}}</span>
  223. </div>
  224. <div class="content-line inline-block date">
  225. 交期(天):<span>{{purchaseDetail.leadtime}}</span>
  226. </div>
  227. </template>
  228. <div class="content-line inline-block date">
  229. 报价时间:<span>{{purchaseDetail.offerTime | date}}</span>
  230. </div>
  231. <!--<p>{{purchaseDetail.offerTime | date}}</p>-->
  232. <div class="price clearfix">
  233. <span>价格梯度:<br/>(PCS)</span>
  234. <table class="com-price-list com-price-listLong">
  235. <thead>
  236. <tr>
  237. <th>分段数量</th>
  238. <th>分段单价</th>
  239. </tr>
  240. </thead>
  241. <tbody>
  242. <tr v-for="replie in purchaseDetail.replies">
  243. <td class="date text-ellipse">{{replie.lapQty ? replie.lapQty + '+' : '-'}}</td>
  244. <td class="date text-ellipse">{{replie.price ? (purchaseDetail.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</td>
  245. </tr>
  246. </tbody>
  247. </table>
  248. </div>
  249. <div class="refused-txt" v-if="purchaseDetail.agreed === 0">拒绝理由:<span v-text="purchaseDetail.refusereason"></span></div>
  250. <!--<div class="price-level vendor">
  251. <p>价格梯度:<span>(pcs)</span></p>
  252. <ul>
  253. <li v-for="replie in purchaseDetail.replies">
  254. <span>{{replie.lapQty ? replie.lapQty + '+' : '-'}}</span>
  255. <span>{{replie.price ? (purchaseDetail.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</span>
  256. </li>
  257. </ul>
  258. </div>-->
  259. </div>
  260. </div>
  261. </div>
  262. <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
  263. </div>
  264. </div>
  265. </div>
  266. </template>
  267. <script>
  268. import {RemindBox} from '~components/mobile/common'
  269. export default {
  270. data () {
  271. return {
  272. activeIndex: -1,
  273. remindText: '',
  274. timeoutCount: 0,
  275. qutationsTemp: [],
  276. refusereason: '',
  277. sayType: 'current',
  278. currentCount: 0,
  279. replaceCount: 0
  280. }
  281. },
  282. components: {
  283. RemindBox
  284. },
  285. props: ['agreed', 'userType'],
  286. filters: {
  287. date: function (date) {
  288. if (date) {
  289. const d = new Date(Number(date))
  290. const year = d.getFullYear()
  291. const monthTemp = d.getMonth() + 1
  292. const month = monthTemp < 10 ? '0' + monthTemp : '' + monthTemp
  293. const day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate() + ' '
  294. return year + '-' + month + '-' + day
  295. } else {
  296. return '-'
  297. }
  298. },
  299. userNameFilter (str) {
  300. return str ? str.substring(0, 1) + '**' : '-'
  301. }
  302. },
  303. computed: {
  304. purchaseDetail () {
  305. let obj = {}
  306. if (this.isBuyer) {
  307. this.replaceCount = 0
  308. this.currentCount = 0
  309. obj = this.baseUtils.deepCopy(this.$store.state.applyPurchase.purchaseManList.buyerInquiryDetail.data)
  310. if (obj.qutations) {
  311. this.qutationsTemp = obj.qutations
  312. for (let i = 0; i < this.qutationsTemp.length; i++) {
  313. this.$set(this.qutationsTemp[i], 'showRefuseList', false)
  314. this.qutationsTemp[i].isReplace === 1 ? this.replaceCount++ : this.currentCount++
  315. }
  316. }
  317. if (this.currentCount === 0) {
  318. this.sayType = 'replace'
  319. }
  320. } else {
  321. obj = this.$store.state.applyPurchase.purchaseManList.vendorInquiryDetail.data
  322. }
  323. return obj
  324. },
  325. user () {
  326. return this.$store.state.option.user
  327. },
  328. isBuyer () {
  329. return this.$route.query.type === 'buyer' || this.userType === 'buyer'
  330. },
  331. sayInfoTitle () {
  332. if (this.isBuyer) {
  333. return this.sayType === 'current' ? '当前型号报价' : '替代型号报价'
  334. } else {
  335. return this.purchaseDetail.isReplace === 1 ? '替代型号报价' : '当前型号报价'
  336. }
  337. }
  338. },
  339. methods: {
  340. cancel: function () {
  341. this.$emit('cancelSayPriceInfoAction', false)
  342. },
  343. selectQutation: function (index) {
  344. this.activeIndex = this.activeIndex === index ? -1 : index
  345. },
  346. acceptQutation: function (item) {
  347. // if (this.activeIndex > -1) {
  348. // } else {
  349. // // this.$message.success('请选择报价信息')
  350. // this.onRemind('请选择报价信息')
  351. // }
  352. this.$http.post('/inquiry/buyer/adopt?id=' + item.id + '&status=1')
  353. .then(response => {
  354. // this.$message.success('采纳成功')
  355. this.onRemind('采纳成功')
  356. // this.$emit('cancelSayPriceInfoAction', true)
  357. item.agreed = 1
  358. // this.$route.query.type === 'saler' ? this.$store.dispatch('applyPurchase/loadVendorInquiryDetail', {id: this.$route.params.id}) : this.$store.dispatch('applyPurchase/loadBuyerInquiryDetail', {id: this.$route.params.id})
  359. }, err => {
  360. console.log(err)
  361. // this.$message.success('系统错误')
  362. this.onRemind(err.response.data.message || '系统错误')
  363. })
  364. },
  365. onRemind: function (str) {
  366. this.remindText = str
  367. this.timeoutCount ++
  368. },
  369. selectRefuse: function (item, reason) {
  370. item.showRefuseList = false
  371. this.$http.post(`/inquiry/buyer/refuse?id=${item.id}&status=0&refusereason=${encodeURIComponent(reason)}`)
  372. .then(res => {
  373. item.agreed = 0
  374. this.onRemind('拒绝报价成功')
  375. item.refusereason = reason
  376. }, err => {
  377. this.onRemind(err.response.data.message || '拒绝报价失败,系统错误')
  378. console.log(err)
  379. })
  380. },
  381. setShowRefuseList: function (item, flag) {
  382. // console.log(flag)
  383. item.showRefuseList = flag
  384. },
  385. setSayType: function (sayType) {
  386. if ((sayType === 'current' && this.currentCount > 0) || (sayType === 'replace' && this.replaceCount > 0)) {
  387. this.sayType = sayType
  388. } else {
  389. this.onRemind(`暂无${sayType === 'current' ? '当前型号报价' : '替代型号报价'}`)
  390. }
  391. }
  392. },
  393. mounted() {
  394. this.$nextTick(() => {
  395. // console.log('start')
  396. this._initscroll()
  397. })
  398. }
  399. }
  400. </script>
  401. <style lang="scss" scoped>
  402. .mobile-modal {
  403. .mobile-modal-box {
  404. top: 1.66rem;
  405. left: 3%;
  406. right: 3%;
  407. bottom: 1.66rem;
  408. width: 7rem;
  409. margin: 0 auto;
  410. background: #fff;
  411. .icon-guanbi {
  412. position: absolute;
  413. right: -.25rem;
  414. font-size: .6rem;
  415. top: -.4rem;
  416. color: #fff;
  417. z-index: 1;
  418. }
  419. .say-price-info {
  420. /*background: #f3f3f3;*/
  421. /*padding: .18rem 0 0 0;*/
  422. width: 100%;
  423. overflow: hidden;
  424. max-height: 90%;
  425. position: relative;
  426. margin-top: .1rem;
  427. .refused-txt {
  428. span{
  429. color: #ef5042;
  430. }
  431. }
  432. .base-info {
  433. margin: 0 auto;
  434. /*border-bottom: .18rem solid #f3f3f3;*/
  435. /* &:last-child {
  436. margin-bottom: 0;
  437. }*/
  438. &.say-info {
  439. /*height: 4.54rem;*/
  440. position: relative;
  441. /* margin-top: .18rem;*/
  442. > img {
  443. position: absolute;
  444. right: 0;
  445. top: 0;
  446. width: 1rem;
  447. height: 1rem;
  448. }
  449. .content-line {
  450. width: 4.55rem;
  451. span {
  452. color: #333;
  453. }
  454. &.date {
  455. span {
  456. color: #ef5042;
  457. }
  458. }
  459. }
  460. > p {
  461. font-size: .24rem;
  462. color: #999;
  463. }
  464. .price-level {
  465. font-size: .26rem;
  466. /*position: absolute;*/
  467. /*top: 1.3rem;*/
  468. /*right: .3rem;*/
  469. position: relative;
  470. bottom: .3rem;
  471. width: 4.4rem;
  472. text-align: center;
  473. margin-left: 2rem;
  474. p {
  475. margin-bottom: .1rem;
  476. span {
  477. color: #666;
  478. }
  479. }
  480. ul {
  481. li {
  482. height: .52rem;
  483. span {
  484. height: .52rem;
  485. line-height: .52rem;
  486. padding-left: .22rem;
  487. text-align: left;
  488. display: inline-block;
  489. border-top: .02rem solid #7e7e7e;
  490. border-left: .02rem solid #7e7e7e;
  491. overflow: hidden;
  492. text-overflow: ellipsis;
  493. white-space: nowrap;
  494. width: 50%;
  495. &:last-child {
  496. border-right: .02rem solid #7e7e7e;
  497. }
  498. }
  499. &:last-child {
  500. border-bottom: .02rem solid #7e7e7e;
  501. }
  502. }
  503. }
  504. &.vendor {
  505. margin: .15rem auto 0;
  506. }
  507. }
  508. }
  509. }
  510. .price {
  511. margin-top: .3rem;
  512. span {
  513. width: 1.4rem;
  514. color: #666;
  515. font-size: .28rem;
  516. display: inline-block;
  517. float: left;
  518. }
  519. table {
  520. float: left;
  521. margin: 0 0 .32rem 0;
  522. }
  523. }
  524. .is-buyer {
  525. height: 100%;
  526. .base {
  527. background: #3f84f6;
  528. color: #fff;
  529. margin: 0 .1rem .1rem .1rem;
  530. border-radius: .1rem;
  531. .content-line {
  532. span {
  533. color: #fff;
  534. }
  535. }
  536. }
  537. .say {
  538. .content-title {
  539. border-bottom: 1px solid #d3d3d3;
  540. font-size: .28rem;
  541. font-weight: bold;
  542. height: .81rem;
  543. line-height: .81rem;
  544. .vend-name {
  545. width: 5rem;
  546. }
  547. img {
  548. width: .69rem;
  549. margin-left: .2rem;
  550. }
  551. i {
  552. display: inline-block;
  553. width: .4rem;
  554. height: .4rem;
  555. line-height: .4rem;
  556. color: #fff;
  557. font-weight: bold;
  558. font-style: normal;
  559. background: #3f84f6;
  560. border-radius: .05rem;
  561. text-align: center;
  562. margin-right: .12rem;
  563. }
  564. }
  565. .content-line {
  566. width: 50%;
  567. margin-top: .3rem;
  568. display: inline-block;
  569. vertical-align: middle;
  570. }
  571. .operate-say {
  572. text-align: center;
  573. margin-bottom: .73rem;
  574. .operate-say-btn {
  575. width: 3rem;
  576. height: .54rem;
  577. line-height: .54rem;
  578. text-align: center;
  579. font-size: .28rem;
  580. background: #fff;
  581. color: #3f84f6;
  582. border: 1px solid #3f84f6;
  583. border-radius: .08rem;
  584. &.refuse {
  585. color: #666;
  586. border-color: #e5e5e5;
  587. margin-left: .2rem;
  588. position: relative;
  589. img {
  590. width: .1rem;
  591. position: absolute;
  592. right: .21rem;
  593. top: .25rem;
  594. }
  595. ul {
  596. position: absolute;
  597. width: 3rem;
  598. li {
  599. height: .58rem;
  600. line-height: .58rem;
  601. padding-left: .16rem;
  602. font-size: .28rem;
  603. color: #666;
  604. background: #fff;
  605. text-align: left;
  606. border: 1px solid #e5e5e5;
  607. border-bottom-left-radius: .08rem;
  608. border-bottom-right-radius: .08rem;
  609. border-top: none;
  610. &:active, &:hover, &:focus {
  611. background: #dbf0fd;
  612. color: #333;
  613. }
  614. }
  615. }
  616. }
  617. }
  618. }
  619. &.long {
  620. .operate-say {
  621. margin-bottom: 3rem;
  622. }
  623. }
  624. }
  625. }
  626. .is-vendor {
  627. height: 100%;
  628. .base-info {
  629. .content-title {
  630. color: #3f84f6;
  631. font-size: .28rem;
  632. font-weight: bold;
  633. height: .82rem;
  634. line-height: .82rem;
  635. border-bottom: 1px solid #d3d3d3;
  636. margin-bottom: .1rem;
  637. span {
  638. width: 5.62rem;
  639. }
  640. img {
  641. width: .76rem;
  642. }
  643. }
  644. }
  645. .say-info {
  646. border-top: 1px solid #d3d3d3;
  647. .inline-block {
  648. width: 50%;
  649. margin-top: .1rem;
  650. }
  651. .price {
  652. margin-top: .2rem;
  653. }
  654. }
  655. }
  656. .say-price-btn {
  657. margin: .37rem auto .7rem;
  658. }
  659. }
  660. }
  661. }
  662. </style>