CommodityInfo.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <template>
  2. <div>
  3. <div class="menu-com row">
  4. <div class="menu-title col-md-12">
  5. <nuxt-link to="/">商城首页</nuxt-link> >
  6. <nuxt-link to="/provider/home" v-if="storeInfo.type == 'AGENCY' || storeInfo.type == 'DISTRIBUTION'" title="代理经销">代理经销</nuxt-link>
  7. <nuxt-link to="/provider/factories" v-if="storeInfo.type == 'ORIGINAL_FACTORY'" title="原厂专区">原厂专区</nuxt-link>
  8. <nuxt-link :to="'/store/' + storeInfo.uuid" v-if="storeInfo.type == 'CONSIGNMENT'" title="库存寄售">库存寄售</nuxt-link>
  9. >
  10. <span v-if="storeInfo.type != 'CONSIGNMENT'"><nuxt-link :to="'/store/' + storeInfo.uuid" :title="storeInfo.storeName" v-text="storeInfo.storeName">storeInfo.storeName</nuxt-link>> </span>
  11. <span>产品详情</span>
  12. </div>
  13. </div>
  14. <div id="commodity-info-fragment">
  15. <div class="commodity-detail">
  16. <div class="img">
  17. <img src="/images/floor/specificPrice-store.png" alt="" class="specific-price" v-if="isConsignment && isSpecificPriceTag(commodity.tag)">
  18. <img :src="commodity.img || '/images/store/common/default.png'" style="width: 256px;height: 256px;"/>
  19. <div class="box">
  20. <img v-if="commodity.status === 602" src="/images/store/isSellOut.png" alt="">
  21. </div>
  22. </div>
  23. <div class="content">
  24. <div class="code">
  25. <span v-text="commodity.code"></span>
  26. </div>
  27. <div class="commodity-info-detail">
  28. <div class="com-info">
  29. <span class="name">价&nbsp;格</span>:
  30. <span class="money">
  31. <span v-if="fragment.currency == 'RMB'">¥</span>
  32. <span v-if="fragment.currency == 'USD'">$</span>
  33. <span>{{fragment.price | currency}}</span>
  34. </span>
  35. </div>
  36. <div class="com-info">
  37. <span class="name">品&nbsp;牌</span>:<span v-text="commodity.brandNameEn"></span>
  38. </div>
  39. <div class="com-info">
  40. <span class="name">类&nbsp;目</span>:<span v-text="commodity.kindNameCn || '无类目信息'"></span>
  41. </div>
  42. <div class="com-info">
  43. <span class="name">下&nbsp;载</span>:<a @click="toAttach(component.attach)" v-if="component.attach">规格书</a><span v-if="!component.attach">暂无信息</span>
  44. </div>
  45. <div class="com-info">
  46. <span class="name">包&nbsp;装</span>:<span v-text="commodity.packaging || '无包装信息'"></span>
  47. </div>
  48. <div class="com-info">
  49. <span class="name">规&nbsp;格</span>:<span v-text="commodity.spec || '无规格信息'"></span>
  50. </div>
  51. <div class="com-info">
  52. <span class="name" style="letter-spacing: 1.5px;">最小包装数</span>:<span v-text="commodity.minPackQty || '无最小包装数信息'"></span>
  53. </div>
  54. <div class="com-info">
  55. <span class="name">库&nbsp;存</span>:<span v-text="commodity.reserve || 0"></span><em style="margin-left: 3px;">PCS</em>
  56. (<span v-text="commodity.minBuyQty || 1"></span>个起订)
  57. <span :class="commodity.breakUp?'div-sell can-div-sell':'div-sell not-div-sell'" v-if="commodity.breakUp">可拆卖</span>
  58. </div>
  59. <div class="com-info">
  60. <span class="name">交&nbsp;期</span>:
  61. <div class="delivery">
  62. <span v-text="commodity.b2cMinDelivery || 0"></span>
  63. <span v-if="commodity.b2cMaxDelivery && commodity.b2cMaxDelivery !== commodity.b2cMinDelivery">-</span>
  64. <span v-if="commodity.b2cMaxDelivery && commodity.b2cMaxDelivery !== commodity.b2cMinDelivery" v-text="commodity.b2cMaxDelivery || 0"></span>
  65. <span>(天)</span>
  66. </div>
  67. </div>
  68. <div class="com-info form-inline" v-if="commodity.status !== 602 && commodity.status !== 612">
  69. <span class="name">数&nbsp;量</span>:
  70. <div class="input-group" style="width: 120px">
  71. <div :class="fragment.canSub ? ' input-group-addon operate':'input-group-addon'" @click="fragment.canSub ?subNum():''" :style="!fragment.canSub ?'cursor: not-allowed;':''">-</div>
  72. <input type="text" class="form-control" placeholder="数量" v-model="fragment.num" @change="inputNum()" @input="onInput()" style="padding: 0;min-width: 100px;text-align: center;"/>
  73. <div :class="fragment.canAdd ?'input-group-addon operate':'input-group-addon'" @click="fragment.canAdd ?addNum():''" :style="!fragment.canAdd ?'cursor: not-allowed;':''">+</div>
  74. <!-- <div class="input-group-addon operate" @click="subNum()">-</div>
  75. <input type="text" class="form-control" placeholder="数量" v-model="fragment.num" @change="inputNum()"style="padding: 0;min-width: 100px;text-align: center;"/>
  76. <div class="input-group-addon operate" @click="addNum()">+</div>-->
  77. </div>
  78. ×
  79. <!--<div class="select">
  80. <select class="form-control" :disabled="commodity.currencyName != 'RMB-USD'" v-model="fragment.currency" @change="changeCurrency()">
  81. <option value="RMB">RMB</option>
  82. <option value="USD">USD</option>
  83. </select>
  84. </div>-->
  85. <div class="select">
  86. <span v-if="fragment.currency == 'RMB'">¥</span>
  87. <span v-if="fragment.currency == 'USD'">$</span>
  88. <span>{{(fragment.price || 0) | currency}}</span>
  89. <span v-if="fragment.currency == 'RMB'" class="tax"> ( 含税 ) </span>
  90. </div>
  91. <span class="money">
  92. <span v-if="fragment.currency == 'RMB'">¥</span>
  93. <span v-if="fragment.currency == 'USD'">$</span>
  94. <span>{{calculate | currencyShort}}</span>
  95. </span>
  96. </div>
  97. <div class="button" v-if="commodity.status !== 602 && commodity.status !== 612">
  98. <button class="btn btn-default btn-primary" @click="buyNow(false, commodity)">加入购物车</button>
  99. <button class="btn btn-default btn-now" @click="buyNow(true, commodity)">立即购买</button>
  100. </div>
  101. <div class="warn-area" v-if="commodity.status === 602 || commodity.status === 612" v-text="commodity.status === 602 ? '此产品已售罄':'此产品已下架'"></div>
  102. </div>
  103. <div class="price-block">
  104. <div class="commodity-price">
  105. <div class="title">价格梯度</div>
  106. <div class="table">
  107. <div class="head">
  108. <div class="fragment">梯度/pcs</div>
  109. <div class="price" v-if="commodity.currencyName == 'RMB'">单价¥(含税)</div>
  110. <div class="price" v-if="commodity.currencyName == 'USD'">单价$</div>
  111. </div>
  112. <ul class="list-unstyled list-inline">
  113. <li v-for="price in commodity.prices">
  114. <div class="fragment">
  115. <span v-text="price.start"></span>+
  116. </div>
  117. <div class="price" v-if="commodity.currencyName == 'RMB'">
  118. <span v-if="price.rMBPrice">{{price.rMBPrice || 0 | currency}}</span>
  119. </div>
  120. <div class="price" v-if="commodity.currencyName == 'USD'">
  121. <span v-if="price.uSDPrice">{{price.uSDPrice || 0 | currency}}</span>
  122. </div>
  123. </li>
  124. </ul>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </template>
  133. <script>
  134. function initFragment (commodity) {
  135. if (!commodity) {
  136. return {}
  137. }
  138. let fragment = {}
  139. let prices = commodity.prices[0]
  140. fragment.num = commodity.minBuyQty
  141. fragment.prices = prices
  142. if (commodity.currencyName !== 'USD') {
  143. fragment.currency = 'RMB'
  144. } else {
  145. fragment.currency = 'USD'
  146. }
  147. if (fragment.currency !== 'USD') {
  148. fragment.price = prices.rMBPrice
  149. } else {
  150. fragment.price = prices.uSDPrice
  151. }
  152. fragment.canAdd = true
  153. fragment.canSub = false
  154. return fragment
  155. }
  156. function getFragment (commodity, fragment) {
  157. // 判断是否小于第一分段的起订量
  158. if (commodity.prices[0].start > fragment.num) {
  159. fragment.num = commodity.prices[0].start
  160. }
  161. // 获取分段的信息
  162. let prices = commodity.prices
  163. for (let i = 0; i < prices.length; i++) {
  164. if (fragment.num <= prices[i].end) {
  165. fragment.prices = prices[i]
  166. break
  167. }
  168. }
  169. }
  170. import { enidfilter } from '~utils/baseUtils'
  171. export default {
  172. name: 'commodity-info',
  173. data () {
  174. return {
  175. fragment: {
  176. currency: 'RMB',
  177. num: 0,
  178. price: 0,
  179. canAdd: true,
  180. canSub: true}
  181. }
  182. },
  183. watch: {
  184. fragment: function (val, oldVal) {
  185. }
  186. },
  187. filters: {
  188. currencyShort: function (num) {
  189. if (typeof num === 'number' && num > 0) {
  190. console.log('111')
  191. if (num <= 0.01) {
  192. num = 0.01
  193. } else {
  194. if (num.toString().indexOf('.') === -1) {
  195. num += '.00'
  196. } else {
  197. let inputStr = num.toString()
  198. let arr = inputStr.split('.')
  199. let floatNum = arr[1]
  200. if (floatNum.length > 2) {
  201. num = inputStr.substring(0, arr[0].length + 3)
  202. if (Number(floatNum.charAt(2)) >= 1) {
  203. num = (Math.ceil(Number(num) * 100) + 1) / 100
  204. let inputStr1 = num.toString()
  205. let arr1 = inputStr1.split('.')
  206. let floatNum1 = arr1[1]
  207. if (num.toString().indexOf('.') === -1) {
  208. num += '.00'
  209. }
  210. if (floatNum1.length === 1) {
  211. num = num + '0'
  212. }
  213. }
  214. } else if (floatNum.length === 1) {
  215. num = num + '0'
  216. }
  217. }
  218. }
  219. }
  220. return num
  221. },
  222. currency: function (num) {
  223. if (typeof num === 'number' && num > 0) {
  224. if (num <= 0.000001) {
  225. num = 0.000001
  226. } else {
  227. if (num.toString().indexOf('.') === -1) {
  228. num += '.00'
  229. } else {
  230. let inputStr = num.toString()
  231. let arr = inputStr.split('.')
  232. let floatNum = arr[1]
  233. if (floatNum.length > 6) {
  234. num = inputStr.substring(0, arr[0].length + 7)
  235. if (Number(floatNum.charAt(6)) > 4) {
  236. num = (Number(num) * 1000000 + 1) / 1000000
  237. }
  238. } else if (floatNum.length === 1) {
  239. num = num + '0'
  240. }
  241. }
  242. }
  243. }
  244. return num
  245. }
  246. },
  247. computed: {
  248. storeInfo () {
  249. return this.$store.state.shop.storeInfo.store.data
  250. },
  251. commodity () {
  252. let commodity = this.$store.state.shop.storeInfo.commodity.data
  253. this.fragment = initFragment(commodity)
  254. return commodity
  255. },
  256. component () {
  257. return this.$store.state.shop.storeInfo.component.data
  258. },
  259. calculate () {
  260. this.fragment.total = this.fragment.price * Math.pow(10, 6) * this.fragment.num
  261. return Math.ceil(this.fragment.total) / Math.pow(10, 6)
  262. },
  263. user () {
  264. return this.$store.state.option.user
  265. },
  266. isConsignment () {
  267. return this.storeInfo.type === 'CONSIGNMENT'
  268. }
  269. },
  270. mounted () {
  271. this.$nextTick(() => {
  272. this.loadSaveHistory()
  273. })
  274. },
  275. methods: {
  276. isSpecificPriceTag: function (tag) {
  277. return tag && tag.indexOf('特价') !== -1
  278. },
  279. onInput () {
  280. let prices = this.commodity.prices
  281. if (prices && prices.length) {
  282. let _this = this
  283. for (let i = 0; i < prices.length; i++) {
  284. if (_this.fragment.num >= prices[i].start && _this.fragment.num <= prices[i].end) {
  285. _this.fragment.price = _this.fragment.currency === 'RMB' ? prices[i].rMBPrice : prices[i].uSDPrice
  286. break
  287. }
  288. }
  289. }
  290. },
  291. loadSaveHistory () {
  292. if (this.user.logged) {
  293. this.$store.dispatch('shop/saveHistory', {id: this.commodity.batchCode})
  294. }
  295. },
  296. changeCurrency () {
  297. if (this.fragment.currency === 'RMB') {
  298. this.fragment.price = this.fragment.prices.rMBPrice
  299. } else if (this.fragment.currency === 'USD') {
  300. this.fragment.price = this.fragment.prices.uSDPrice
  301. }
  302. },
  303. changeNum: function (newNum) {
  304. let pack = this.commodity.perQty || this.commodity.minPackQty
  305. let buy = this.commodity.minBuyQty
  306. let reserve = this.commodity.reserve
  307. let breakUp = this.commodity.breakUp
  308. if (!newNum) {
  309. this.fragment.num = buy
  310. } else {
  311. newNum = parseInt(newNum)
  312. if (breakUp) {
  313. if (newNum < buy) {
  314. this.$message.error('最小起订量为' + buy)
  315. this.fragment.num = buy
  316. this.fragment.canSub = false
  317. this.fragment.canAdd = true
  318. } else if (newNum > reserve) {
  319. this.$message.error('库存不足')
  320. this.fragment.num = reserve
  321. this.fragment.canAdd = false
  322. this.fragment.canSub = true
  323. } else {
  324. this.fragment.canSub = true
  325. this.fragment.canAdd = true
  326. this.fragment.num = newNum
  327. newNum === buy && (this.fragment.canSub = false)
  328. newNum === reserve && (this.fragment.canAdd = false)
  329. }
  330. } else {
  331. if (newNum < buy) {
  332. this.$message.error('最小起订量为' + buy)
  333. this.fragment.num = buy
  334. this.fragment.canSub = false
  335. if (newNum > reserve) {
  336. this.$message.error('库存不足')
  337. this.fragment.num = reserve - (reserve % pack)
  338. this.fragment.canAdd = false
  339. }
  340. } else if (newNum > reserve) {
  341. this.fragment.canSub = true
  342. this.fragment.canAdd = false
  343. this.$message.error('库存不足')
  344. this.fragment.num = reserve - (reserve % pack)
  345. } else {
  346. this.fragment.canSub = true
  347. this.fragment.canAdd = true
  348. let remainder = newNum % pack
  349. if (remainder !== 0) {
  350. // console.log(this.fragment.num)
  351. this.$message.error('不支持拆包且包装量为' + pack)
  352. // 这个直接赋值的,应该给这个值进行判断(Math.floor(newNum / pack) + 1) * pack
  353. let res = (Math.floor(newNum / pack) + 1) * pack
  354. this.fragment.num = res > reserve ? Math.floor(newNum / pack) * pack : res
  355. } else {
  356. this.fragment.num = newNum
  357. }
  358. newNum === buy && (this.fragment.canSub = false)
  359. newNum === reserve && (this.fragment.canAdd = false)
  360. }
  361. }
  362. }
  363. },
  364. subNum () {
  365. let pack = this.commodity.perQty || this.commodity.minPackQty
  366. let newNum = 0
  367. if (this.commodity.breakUp) {
  368. newNum = this.fragment.num - 1
  369. } else {
  370. newNum = this.fragment.num - pack
  371. }
  372. this.changeNum(newNum)
  373. getFragment(this.commodity, this.fragment)
  374. this.onInput()
  375. },
  376. addNum () {
  377. let pack = this.commodity.perQty || this.commodity.minPackQty
  378. let newNum = 0
  379. if (this.commodity.breakUp) {
  380. newNum = this.fragment.num + 1
  381. } else {
  382. newNum = this.fragment.num + pack
  383. }
  384. this.changeNum(newNum)
  385. getFragment(this.commodity, this.fragment)
  386. this.onInput()
  387. },
  388. inputNum () {
  389. if ((/^[\d]*$/).test(this.fragment.num)) {
  390. this.changeNum(this.fragment.num)
  391. getFragment(this.commodity, this.fragment)
  392. } else {
  393. this.$message.error('请输入整数')
  394. this.fragment.num = this.commodity.minBuyQty
  395. }
  396. },
  397. buyNow: function (isBuy, item) {
  398. if (!this.$store.state.option.user.logged) {
  399. this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
  400. if (response.data) {
  401. window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  402. }
  403. })
  404. } else {
  405. if (item) {
  406. if (isBuy) {
  407. this.$http.post('/trade/order/buyNow', [{
  408. uuid: item.uuid,
  409. batchCode: item.batchCode,
  410. number: this.fragment.num,
  411. storeid: item.storeid,
  412. storeUuid: item.storeid,
  413. currencyName: item.currencyName,
  414. minPackQty: item.minPackQty
  415. }])
  416. .then(response => {
  417. if (response.data.success) {
  418. if (response.data.message) {
  419. this.$message({
  420. message: response.data.message,
  421. type: 'success'
  422. })
  423. window.setTimeout(function () {
  424. window.location.href = '/user#/order/pay/' + enidfilter(response.data.data.orderid)
  425. }, 1000)
  426. } else {
  427. window.location.href = '/user#/order/pay/' + enidfilter(response.data.data.orderid)
  428. }
  429. } else {
  430. if (response.data.data && response.data.data.unvailable === 1) {
  431. this.$message.error('产品信息已失效,请刷新界面')
  432. } else {
  433. this.$message.error(response.data.message)
  434. }
  435. }
  436. }, err => {
  437. console.log(err)
  438. if (item.minBuyQty > item.reserve) {
  439. this.$message.error('商品' + item.code + '的库存已经不满足最小起订量')
  440. }
  441. })
  442. } else {
  443. // this.$store.dispatch('user/addCar', {uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty})
  444. this.$http.post('/trade/cart/add', {
  445. uuid: item.uuid,
  446. batchCode: item.batchCode,
  447. number: this.fragment.num,
  448. storeid: item.storeid,
  449. storeUuid: item.storeid,
  450. currencyName: item.currencyName,
  451. minPackQty: item.minPackQty
  452. })
  453. .then(response => {
  454. if (response.data.success) {
  455. if (response.data.message) {
  456. this.$message({
  457. message: '添加购物车成功,但商品信息有更新',
  458. type: 'success'
  459. })
  460. } else {
  461. this.$message({
  462. message: '添加购物车成功',
  463. type: 'success'
  464. })
  465. }
  466. } else {
  467. if (response.data.code === 2) {
  468. this.$message.error(response.data.message + ',请刷新页面')
  469. } else {
  470. this.$message.error(response.data.message)
  471. }
  472. }
  473. })
  474. }
  475. }
  476. }
  477. },
  478. toAttach: function (url) {
  479. if (this.user.logged) {
  480. if (url && url !== '1') {
  481. window.open(url)
  482. } else {
  483. this.$message.error('规格书地址错误')
  484. }
  485. } else {
  486. this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
  487. if (response.data) {
  488. window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  489. }
  490. })
  491. }
  492. }
  493. }
  494. }
  495. </script>
  496. <style scoped>
  497. .container.commodity {
  498. width: 1190px;
  499. padding-left: 0;
  500. padding-right: 0;
  501. }
  502. .commodity .commodity-detail {
  503. width: 100%;
  504. display: inline-block;
  505. font-size: 0;
  506. }
  507. .commodity-detail .img{
  508. float: left;
  509. width: 258px;
  510. height: 320px;
  511. position: relative;
  512. }
  513. .commodity-detail .img >img {
  514. border: 1px solid #D6D3CE;
  515. }
  516. .commodity-detail .img .specific-price {
  517. position: absolute;
  518. left: 0;
  519. top: 0;
  520. border: none;
  521. }
  522. .commodity-detail .img .box {
  523. height: 62px;
  524. position: relative;
  525. }
  526. .commodity-detail .img .box img {
  527. position: absolute;
  528. right: 3px;
  529. bottom: 64px;
  530. }
  531. .commodity-detail .content {
  532. width: 932px;
  533. float: left;
  534. font-size: 14px;
  535. }
  536. .commodity-detail .content {
  537. padding-left: 20px;
  538. }
  539. .commodity-detail .content .code {
  540. font-size: 24px;
  541. color: rgb(50, 50, 50);
  542. font-weight: 600;
  543. border-bottom: 1px solid #D6D3CE;
  544. line-height: 40px;
  545. }
  546. .commodity-detail .content .com-info {
  547. font-size: 14px;
  548. line-height: 26px;
  549. }
  550. .commodity-detail .content .com-info em {
  551. font-size: 14px;
  552. line-height: 26px;
  553. font-style: normal;
  554. }
  555. .input-group .input-group-operate {
  556. padding: 6px 12px;
  557. font-size: 14px;
  558. font-weight: 400;
  559. line-height: 1;
  560. color: #555;
  561. text-align: center;
  562. background-color: #eee;
  563. border: 1px solid #ccc;
  564. border-radius: 4px;
  565. }
  566. .input-group .input-group-operate:last-child {
  567. border-bottom-left-radius: 0;
  568. border-top-left-radius: 0;
  569. }
  570. .input-group .input-group-operate:first-child {
  571. border-bottom-right-radius: 0;
  572. border-top-right-radius: 0;
  573. }
  574. .content .com-info .name {
  575. letter-spacing: 15px;
  576. }
  577. .content .com-info a{
  578. color: #1162a4;
  579. }
  580. .content .com-info:hover a{
  581. color: #23527c;
  582. }
  583. .content .warn-area {
  584. font-size: 16px;
  585. font-weight: bold;
  586. color: #333;
  587. margin-top: 15px;
  588. }
  589. .commodity-info-detail {
  590. float: left;
  591. padding-top: 10px;
  592. width: 582px;
  593. }
  594. .price-block {
  595. float: right;
  596. width: 330px;
  597. margin-top: 10px;
  598. height: 220px;
  599. }
  600. .commodity-price {
  601. line-height: 30px;
  602. text-align: center;
  603. border: 1px solid #D6D3CE;
  604. }
  605. .commodity-price .title {
  606. background-color: #f7f7f7;
  607. border-bottom: 1px solid #D6D3CE;
  608. }
  609. .commodity-price .head {
  610. border-bottom: 1px solid #D6D3CE;
  611. }
  612. .commodity-price .fragment {
  613. display: inline-block;
  614. width: 150px;
  615. }
  616. .commodity-price .price {
  617. width: 150px;
  618. display: inline-block;
  619. }
  620. .com-info div.select {
  621. display: inline-block;
  622. font-weight: 600;
  623. color: red;
  624. font-size: 14px;
  625. }
  626. .com-info div.select .tax {
  627. font-weight: normal;
  628. color: black;
  629. font-size: 12px;
  630. }
  631. .com-info .operate {
  632. cursor: pointer;
  633. }
  634. .com-info .operate:hover, .com-info .operate:link {
  635. background-color: #00B83F;
  636. color: white;
  637. }
  638. .com-info .money {
  639. font-weight: 600;
  640. color: red;
  641. font-size: 14px;
  642. }
  643. .com-info select {
  644. border-radius: 4px;
  645. width: 120px!important;
  646. }
  647. ul.list-inline {
  648. margin: 0;
  649. }
  650. .commodity-price ul.list-inline li {
  651. padding-left: 0;
  652. padding-right: 0;
  653. border-bottom: 1px dashed #D6D3CE;
  654. }
  655. .commodity-price .table {
  656. margin-bottom: 0;
  657. }
  658. .commodity-price ul>li:last-child {
  659. border-bottom: none;
  660. }
  661. div.button {
  662. padding-top: 20px;
  663. float: left;
  664. }
  665. button.btn-now {
  666. border: 1px solid #3D76C6;
  667. color: #3D76C6;
  668. margin-left: 30px;
  669. }
  670. .com-info .delivery {
  671. display: inline;
  672. }
  673. #commodity-info-fragment{
  674. margin-bottom: 20px;
  675. }
  676. .commodity-detail .content .com-info .div-sell {
  677. font-size: 12px;
  678. height: 16px;
  679. line-height: 16px;
  680. color: #fff;
  681. padding: 0 5px;
  682. display: inline-block;
  683. position: relative;
  684. }
  685. .commodity-detail .content .com-info .can-div-sell {
  686. background: #5078cb;
  687. }
  688. .commodity-detail .content .com-info .not-div-sell {
  689. background: #fc8200;
  690. }
  691. .commodity-detail .content .com-info .can-div-sell:before {
  692. content: '';
  693. position: absolute;
  694. left: -8px;
  695. top: 10px;
  696. border-left: 8px solid transparent;
  697. border-bottom: 6px solid #5078cb;
  698. }
  699. .commodity-detail .content .com-info .not-div-sell:before {
  700. content: '';
  701. position: absolute;
  702. left: -8px;
  703. top: 10px;
  704. border-left: 8px solid transparent;
  705. border-bottom: 6px solid #fc8200;
  706. }
  707. </style>