SayPriceInfo.vue 26 KB

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