SayPriceInfo.vue 25 KB

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