resource.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. <template>
  2. <div class="resource_info">
  3. <div class="container">
  4. <div class="crumbs">
  5. <div class="container">
  6. <div class="menu-com row">
  7. <div class="menu-title col-md-12">
  8. <nuxt-link to="/">首页 ></nuxt-link>
  9. <nuxt-link to="/supplier">供应商资源 ></nuxt-link>
  10. <span>供应商物料库</span>
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. <div class="user_info">
  16. <div class="user_title">
  17. <div class="user_name">
  18. <span>{{enUser.enName ? enUser.enName : '企业名称'}}&nbsp;&nbsp;<i class="fa fa-angle-down"></i></span>
  19. <a :href="/store/+ storeInfo.uuid" target="_blank" v-if="storeInfo.uuid">进入店铺</a>
  20. </div>
  21. <div class="user_mes">
  22. <div class="mes-list">
  23. <p>
  24. <span><i class="supplier_icon1"></i>企业执照号:{{enUser.enBussinessCode ? enUser.enBussinessCode : '暂无信息'}}</span>
  25. <span><i class="supplier_icon2"></i> 地址:{{enUser.enAddress ? enUser.enAddress : '暂无信息'}}</span>
  26. </p>
  27. <p>
  28. <span><i class="supplier_icon3"></i> 邮箱:{{enUser.enEmail ? enUser.enEmail : '暂无信息'}}</span>
  29. <span><i class="supplier_icon4"></i> 电话:{{enUser.enTel ? enUser.enTel : '暂无信息'}}</span>
  30. <span><i class="supplier_icon5"></i> 行业:{{enUser.enIndustry ? enUser.enIndustry : '暂无信息'}}</span>
  31. </p>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="search">
  36. <div class="input-group">
  37. <input type="search" class="form-control" placeholder="请输入要查找的内容"
  38. v-model="searchCode" @keyup.13="goodsSearch(searchCode)" @search="goodsSearch(searchCode)"/>
  39. <span class="input-group-btn">
  40. <button type="button" class="btn" id="search_btn" @click="goodsSearch(searchCode)">
  41. 搜索 <i class="fa fa-search"></i>
  42. </button>
  43. </span>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="info_list">
  48. <table>
  49. <thead>
  50. <tr>
  51. <th width="66">序号</th>
  52. <th width="1008">
  53. <span>原厂型号 / 品牌</span>
  54. <span>物料名称 / 库存(PCS)</span>
  55. <span>规格</span>
  56. </th>
  57. <th width="116">操作</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <tr v-for="(item, index) in list.content" @click="jumpDetail(item.id)">
  62. <td v-text="index + 1">12</td>
  63. <td>
  64. <ul class="list-inline">
  65. <li class="item">
  66. <span class="fl">原厂型号</span>
  67. <p v-text="item.cmpCode ? spliceString(item.cmpCode, 95) : '暂无信息'">2</p>
  68. </li>
  69. <li class="item">
  70. <span class="fl">物料名称</span>
  71. <p v-text="item.kind ? spliceString(item.kind, 95) : item.prodName ? spliceString(item.prodName, 95) : '暂无信息'">1</p>
  72. </li>
  73. <li class="item">
  74. <span class="fl">规格</span>
  75. <p v-text="item.spec ? spliceString(item.spec, 95) : '暂无信息'">1</p>
  76. </li>
  77. <li class="item">
  78. <span class="fl">品牌</span>
  79. <p v-text="item.standard !== 1 ? spliceString(item.brand, 95) : spliceString(item.pbranden, 95)">2</p>
  80. </li>
  81. <li class="item">
  82. <span class="fl">库存(PCS)</span>
  83. <p v-text="item.erpReserve ? item.erpReserve : 0">1</p>
  84. </li>
  85. </ul>
  86. </td>
  87. <td>
  88. <a @click="immediatelyClick(item)" @mouseleave="hasClick = false" @mouseenter="hasClick = true">立即询价</a>
  89. </td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. <div class="empty" v-if="!list.content || list.content.length === 0">
  94. <img src="/images/supplier/icon/empty.png">
  95. <div class="info">
  96. <p>暂无物料信息</p>
  97. <a href="javascript:history.go(-1)"><i class="fa fa-reply" style="margin-right:5px;"></i>返回上一页</a>
  98. </div>
  99. </div>
  100. <div style="float: right;background: #ecf1f1;">
  101. <page :total="list.totalElements" :page-size="pageParams.count"
  102. :current="pageParams.page" v-on:childEvent="handleCurrentChange">
  103. </page>
  104. </div>
  105. </div>
  106. <el-dialog
  107. title="我要询价"
  108. :visible.sync="hasDialog">
  109. <div class="form_dialog">
  110. <ul class="list-inline">
  111. <li class="form-item">
  112. <span>品牌:</span>
  113. <p v-text="applyObj.brand ? spliceString(applyObj.brand, 90) : '-'">32432</p>
  114. </li>
  115. <li class="form-item">
  116. <span>物料名称:</span>
  117. <p v-text="applyObj.prodName ? spliceString(applyObj.prodName, 90) : '-'">32</p>
  118. </li>
  119. <li class="form-item">
  120. <span>型号:</span>
  121. <p v-text="applyObj.cmpCode ? spliceString(applyObj.cmpCode, 90) : '-'">32432</p>
  122. </li>
  123. <li class="form-item">
  124. <span>规格:</span>
  125. <p v-text="applyObj.spec ? spliceString(applyObj.spec, 90) : '-'">32432</p>
  126. </li>
  127. <li class="form-item">
  128. <span><i>*</i>截止日期:</span>
  129. <el-date-picker
  130. :class="{'error': !validObj.deadline}"
  131. v-model="applyObj.deadline"
  132. type="date"
  133. :picker-options="pickerOptions"
  134. @change="setDeadLineValid"
  135. :editable="false"
  136. :clearable="true"
  137. size="mini">
  138. </el-date-picker>
  139. </li>
  140. <li class="form-item">
  141. <span>封装:</span>
  142. <input type="text" class="form-control" v-model="applyObj.encapsulation"/>
  143. </li>
  144. <!--<li class="form-item">-->
  145. <!--<span>单价预算:</span>-->
  146. <!--<select v-model="applyObj.currency" class="form-control" style="width:40px;">-->
  147. <!--<option value="RMB">¥</option>-->
  148. <!--<option value="USD">$</option>-->
  149. <!--</select>-->
  150. <!--<input type="number" v-model="applyObj.unitPrice" class="form-control" :class="{'error': !validObj.unitPrice}"/>-->
  151. <!--</li>-->
  152. <!--<li class="form-item">-->
  153. <!--<span>生产日期:</span>-->
  154. <!--<input type="text" class="form-control" v-model="applyObj.produceDate"/>-->
  155. <!--</li>-->
  156. <li class="form-item">
  157. <span>采购数量(PCS):</span>
  158. <input type="number" class="form-control" v-model="applyObj.amount" :class="{'error': !validObj.amount}"/>
  159. </li>
  160. </ul>
  161. </div>
  162. <span slot="footer" class="dialog-footer">
  163. <button @click="authorityInterceptor(baseUrls.userPublishSeek, goPublish)" :disabled="isClick">询价提交</button>
  164. </span>
  165. </el-dialog>
  166. </div>
  167. </div>
  168. </template>
  169. <script>
  170. import Page from '~/components/common/page/pageComponent.vue'
  171. export default {
  172. name: 'ResourceView',
  173. data () {
  174. return {
  175. isClick: false,
  176. applyObj: {
  177. cmpCode: '',
  178. brand: '',
  179. unitPrice: '',
  180. currency: 'RMB',
  181. prodName: '',
  182. spec: '',
  183. encapsulation: '',
  184. produceDate: '',
  185. amount: '',
  186. deadline: ''
  187. },
  188. validObj: {
  189. unitPrice: true,
  190. amount: true,
  191. deadline: true
  192. },
  193. pickerOptions: {
  194. disabledDate (time) {
  195. // 大于等于今天 小于三个月后
  196. return time.getTime() < Date.now() - 1000 * 60 * 60 * 24 || time.getTime() > Date.now() + 1000 * 60 * 60 * 24 * 30 * 3
  197. }
  198. },
  199. hasDialog: false,
  200. hasClick: false,
  201. searchCode: '',
  202. pageParams: {
  203. count: 20,
  204. page: 1
  205. }
  206. }
  207. },
  208. components: {
  209. Page
  210. },
  211. computed: {
  212. list () {
  213. return this.$store.state.supplier.material.material.data
  214. },
  215. enUser () {
  216. return this.$store.state.supplier.material.enUser.data
  217. },
  218. storeInfo () {
  219. return this.$store.state.shop.storeInfo.store.data
  220. },
  221. user () {
  222. return this.$store.state.option.user
  223. }
  224. },
  225. methods: {
  226. // 格式化字符串长度
  227. spliceString (str, length) {
  228. return str && str.length ? this.baseUtils.spliceStr(str, length) : '暂无信息'
  229. },
  230. // 跳转到器件详情页面
  231. jumpDetail (id) {
  232. if (!this.hasClick) {
  233. this.$router.push(this.$route.path + '/' + id)
  234. }
  235. },
  236. // 获取分页数据
  237. handleCurrentChange (type) {
  238. this.pageParams.page = type
  239. this.$store.dispatch('supplier/loadMaterialList', {page: type, size: this.pageParams.count, vendUU: this.$route.params.uuid, keyword: this.searchCode})
  240. },
  241. // 根据搜索信息获取数据
  242. goodsSearch (type) {
  243. this.pageParams.page = 1
  244. this.$store.dispatch('supplier/loadMaterialList', {
  245. page: this.pageParams.page,
  246. size: this.pageParams.count,
  247. vendUU: this.$route.params.uuid,
  248. keyword: type
  249. })
  250. },
  251. // 弹出询价界面
  252. immediatelyClick (type) {
  253. if (!this.user.logged) {
  254. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  255. } else {
  256. this.hasDialog = true
  257. this.applyObj.cmpCode = type.cmpCode
  258. this.applyObj.brand = (type.standard === 1 ? type.pbranden : type.brand)
  259. this.applyObj.spec = type.spec
  260. this.applyObj.prodName = type.kind ? type.kind : (type.prodName ? type.prodName : '-')
  261. }
  262. },
  263. // 时间格式化
  264. setDeadLineValid: function () {
  265. if(this.applyObj.deadline === '') {return ''}
  266. this.applyObj.deadline = this.baseUtils.formatDate(this.baseUtils.getFullDay(new Date(this.applyObj.deadline)), 'yyyy-MM-dd hh:mm:ss')
  267. this.validObj.deadline = true
  268. },
  269. // 检查单价预算
  270. checkUnitPrice () {
  271. this.validObj.unitPrice = this.applyObj.unitPrice === '' ? true : this.applyObj.unitPrice > 0 && this.applyObj.unitPrice < 100000000
  272. if (!this.validObj.unitPrice && this.applyObj.unitPrice <= 0) {
  273. this.$message.error('单价必须是大于0的数字')
  274. }
  275. return this.validObj.unitPrice
  276. },
  277. // 检查采购数量
  278. checkAmount () {
  279. this.validObj.amount = this.applyObj.amount === '' ? true : this.applyObj.amount > 0 && this.applyObj.amount < 1000000000
  280. return this.validObj.amount
  281. },
  282. // 检查时间是否有输入
  283. checkDeadline () {
  284. this.validObj.deadline = Boolean(this.applyObj.deadline)
  285. return this.validObj.deadline
  286. },
  287. // 检查各个字段输入正常数据
  288. checkAll () {
  289. return this.checkDeadline() && this.checkUnitPrice() && this.checkAmount()
  290. },
  291. emptyForm () {
  292. for (let attr in this.applyObj) {
  293. this.applyObj[attr] = attr === 'currency' ? 'RMB' : ''
  294. }
  295. },
  296. // 请求询价信息
  297. goPublish () {
  298. let _this = this
  299. this.isClick = true
  300. setTimeout(function () {
  301. _this.isClick = false
  302. }, 1000)
  303. if (this.checkAll()) {
  304. let inquiry = {}
  305. let inquiryItem = {}
  306. if (this.user.data.enterprise) {
  307. inquiry.enUU = this.user.data.enterprise.uu
  308. }
  309. let date = new Date()
  310. let currency = this.applyObj.unitPrice ? this.applyObj.currency : null
  311. inquiry.recorderUU = this.user.data.userUU
  312. inquiry.code = 'MALL' + date.getTime()
  313. inquiry.date = date
  314. inquiry.recorder = this.user.data.userName
  315. inquiry.endDate = this.applyObj.deadline
  316. inquiry.sourceapp = 'MALL'
  317. inquiry.amount = 1
  318. inquiryItem.userUU = this.user.data.userUU
  319. inquiryItem.source = 'MALL'
  320. inquiryItem.userName = this.user.data.userName
  321. inquiryItem.userTel = this.user.data.userTel
  322. inquiryItem.needquantity = this.applyObj.amount
  323. inquiryItem.inbrand = this.applyObj.brand
  324. inquiryItem.currency = currency
  325. inquiryItem.cmpCode = this.applyObj.cmpCode.toUpperCase()
  326. inquiryItem.unitPrice = this.applyObj.unitPrice
  327. inquiryItem.produceDate = this.applyObj.produceDate
  328. inquiryItem.date = date
  329. inquiryItem.endDate = this.applyObj.deadline
  330. inquiryItem.encapsulation = this.applyObj.encapsulation
  331. inquiryItem.spec = this.applyObj.spec
  332. inquiryItem.prodTitle = this.applyObj.prodName
  333. let inquiryItems = []
  334. inquiryItems.push(inquiryItem)
  335. inquiry.inquiryItems = inquiryItems
  336. inquiry.currency = this.applyObj.unitPrice ? this.applyObj.currency : null
  337. this.$http.post('/inquiry/buyer/save', inquiry)
  338. .then(res => {
  339. this.$message.success('发布成功')
  340. this.hasDialog = false
  341. this.emptyForm()
  342. }, error => {
  343. // console.log(error)
  344. this.$message.error('发布失败')
  345. })
  346. } else {
  347. if (!this.validObj.deadline) {
  348. this.$message.error('截止日期不能为空')
  349. } else if (!this.validObj.amount) {
  350. this.$message.error('请输入正确的数值')
  351. }
  352. }
  353. }
  354. }
  355. }
  356. </script>
  357. <style type="text/scss" lang="scss">
  358. .resource_info{
  359. background: #ecf1f1;
  360. .el-dialog{
  361. width: 680px!important;
  362. .el-dialog__header{
  363. background: #4290f7;
  364. line-height: 40px;
  365. padding: 0 20px 0;
  366. display:block;
  367. .el-dialog__title{
  368. color:#fff;
  369. }
  370. .el-dialog__headerbtn:hover .el-dialog__close, .el-dialog__headerbtn:focus .el-dialog__close{
  371. color:#fff;
  372. }
  373. }
  374. .el-dialog__body{
  375. padding: 10px 20px;
  376. }
  377. .el-dialog__footer{
  378. text-align: center;
  379. button{
  380. display:inline-block;
  381. background: #3c7cf5;
  382. color:#fff;
  383. font-size: 14px;
  384. line-height: 30px;
  385. height:30px;
  386. padding:0 10px;
  387. box-shadow: none;
  388. border: 0;
  389. border-radius:5px;
  390. }
  391. }
  392. }
  393. .form_dialog{
  394. .el-date-editor--date{
  395. width: 230px;
  396. &.error {
  397. input {
  398. border: 1px solid #f4645f !important;
  399. }
  400. }
  401. }
  402. ul{
  403. li{
  404. width:50%;
  405. font-size: 14px;
  406. color:#666;
  407. vertical-align: top;
  408. margin-bottom:15px;
  409. &.form-item {
  410. position: relative;
  411. p{
  412. margin:0;
  413. margin-left:80px;
  414. word-break: break-all;
  415. word-wrap: break-word;
  416. }
  417. span {
  418. float:left;
  419. width: 112px;
  420. text-align: right;
  421. display: inline-block;
  422. color:#3c7cf5;
  423. i {
  424. position: relative;
  425. top: 2px;
  426. right: 5px;
  427. color: #e41515;
  428. }
  429. }
  430. ul {
  431. line-height: normal;
  432. position: absolute;
  433. top: 19px;
  434. left: 79px;
  435. background: #fff;
  436. border: 1px solid #b5b5b5;
  437. z-index: 1;
  438. max-height: 120px;
  439. overflow-y: auto;
  440. overflow-x: hidden;
  441. border-radius: 3px;
  442. width: 114px;
  443. font-size: 12px;
  444. li {
  445. height: 24px;
  446. line-height: 24px;
  447. cursor: pointer;
  448. overflow: hidden;
  449. text-overflow: ellipsis;
  450. white-space: nowrap;
  451. padding: 0 5px;
  452. &:hover {
  453. background: #ddd;
  454. }
  455. }
  456. }
  457. select {
  458. width: 40px;
  459. position: absolute;
  460. height: 20px;
  461. background: url('/images/applyPurchase/select.png')no-repeat right;
  462. background-position-x: 23px;
  463. padding: 0 0 0 7px;
  464. border-radius: 0;
  465. & + input {
  466. padding-left: 45px;
  467. }
  468. }
  469. .el-input {
  470. width: 198px;
  471. }
  472. input {
  473. font-size: 14px;
  474. width: 198px;
  475. height: 20px;
  476. line-height: 20px;
  477. border-radius: 2px;
  478. padding: 0 3px;
  479. box-shadow: none;
  480. -webkit-box-shadow: none;
  481. -moz-box-shadow: none;
  482. &.error {
  483. border-color: #f4645f!important;
  484. }
  485. }
  486. }
  487. }
  488. }
  489. }
  490. .crumbs{
  491. background: #ecf1f1;
  492. .menu-com{
  493. margin: 0;
  494. .menu-title{
  495. line-height: 40px;
  496. font-size: 14px;
  497. padding-left: 0;
  498. margin:0;
  499. a{
  500. color: #5078cb;
  501. font-size: 14px;
  502. }
  503. }
  504. }
  505. }
  506. .user_info{
  507. margin-bottom:5px;
  508. .user_title{
  509. display:inline-block;
  510. position:relative;
  511. padding-bottom:13px;
  512. margin-right:330px;
  513. &:hover{
  514. .user_mes{
  515. display:block;
  516. }
  517. }
  518. .user_name{
  519. span{
  520. font-size: 20px;
  521. color:#666;
  522. font-weight: bold;
  523. margin-right:10px;
  524. }
  525. a{
  526. display:inline-block;
  527. padding:0 10px;
  528. border-radius:3px;
  529. font-size: 12px;
  530. height:24px;
  531. line-height: 24px;
  532. color:#fff;
  533. background: #ffa200;
  534. }
  535. }
  536. .user_mes{
  537. display:none;
  538. position:absolute;
  539. top:100%;
  540. left:0;
  541. z-index: 200;
  542. height:10px;
  543. &:before{
  544. content: '';
  545. display:block;
  546. position:absolute;
  547. bottom:5px;
  548. left:20px;
  549. z-index: 100;
  550. border: 5px solid rgba(0,0,0,.7);
  551. -webkit-transform: rotate(45deg);
  552. -moz-transform: rotate(45deg);
  553. -o-transform:rotate(45deg);
  554. -ms-transform: rotate(45deg);
  555. transform:rotate(45deg);
  556. }
  557. .mes-list{
  558. padding:10px 10px;
  559. background: rgba(0,0,0,.7);
  560. color:#fff;
  561. p{
  562. max-width:1183px;
  563. min-width:118px;
  564. margin:0;
  565. line-height: 20px;
  566. font-size: 12px;
  567. color:#fff;
  568. overflow: hidden;
  569. white-space: nowrap;
  570. span{
  571. margin: 0 5px;
  572. .supplier_icon1{
  573. display:inline-block;
  574. position: relative;
  575. top: 5px;
  576. width:20px;
  577. height:18px;
  578. background: url(/images/supplier/icon/supplier_icon.png)no-repeat 0 0;
  579. }
  580. .supplier_icon2{
  581. display:inline-block;
  582. position: relative;
  583. top: 5px;
  584. width:20px;
  585. height:18px;
  586. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -20px 0;
  587. }
  588. .supplier_icon3{
  589. display:inline-block;
  590. position: relative;
  591. top: 5px;
  592. width:20px;
  593. height:18px;
  594. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -40px 0;
  595. }
  596. .supplier_icon4{
  597. display:inline-block;
  598. position: relative;
  599. top: 5px;
  600. height:18px;
  601. width:22px;
  602. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -60px 0;
  603. }
  604. .supplier_icon5{
  605. display:inline-block;
  606. position: relative;
  607. top: 5px;
  608. width:20px;
  609. height:18px;
  610. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -85px 0;
  611. }
  612. }
  613. }
  614. }
  615. }
  616. }
  617. .search{
  618. width:310px;
  619. margin:0;
  620. float:right;
  621. .btn{
  622. background: #3c7cf5;
  623. color:#fff;
  624. }
  625. }
  626. }
  627. .info_list{
  628. padding-bottom:200px;
  629. .empty{
  630. background: #ffffff;
  631. text-align: center;
  632. padding: 80px 0;
  633. img{
  634. vertical-align: top;
  635. margin-right:15px;
  636. }
  637. .info{
  638. display: inline-block;
  639. padding-top:10px;
  640. }
  641. }
  642. table {
  643. table-layout: fixed;
  644. thead{
  645. tr{
  646. line-height: 32px;
  647. vertical-align: middle;
  648. th{
  649. font-size: 14px;
  650. color:#fff;
  651. text-align: center;
  652. background: #3975f4;
  653. span{
  654. display:inline-block;
  655. width:33%;
  656. }
  657. }
  658. }
  659. }
  660. tbody{
  661. tr{
  662. border:1px solid #dadada;
  663. &:nth-child(odd){
  664. background: #fff;
  665. }
  666. &:nth-child(even){
  667. background: #f8f8f8;
  668. }
  669. &:hover{
  670. cursor:pointer;
  671. background: #f8fafe;
  672. td{
  673. &:first-child{
  674. border-left:1px solid #3975f4;
  675. }
  676. &:last-child{
  677. border-right:1px solid #3975f4;
  678. }
  679. border-top:1px solid #3975f4;
  680. border-bottom:1px solid #3975f4;
  681. }
  682. }
  683. td{
  684. vertical-align: middle;
  685. margin:0 auto;
  686. padding:10px 0;
  687. &:first-child, &:last-child{
  688. color:#ed791c;
  689. text-align: center;
  690. }
  691. a{
  692. display:inline-block;
  693. padding:0 10px;
  694. margin:0 auto;
  695. line-height: 24px;
  696. border-radius:3px;
  697. height:24px;
  698. font-size: 12px;
  699. color:#fff;
  700. background: #3c7cf5;
  701. text-align: center;
  702. }
  703. ul{
  704. margin-left:5px;
  705. }
  706. .item{
  707. font-size: 12px;
  708. line-height: 18px;
  709. padding: 10px 0;
  710. vertical-align: top;
  711. width:33%;
  712. span{
  713. display: inline-block;
  714. width: 96px;
  715. text-align: right;
  716. margin-right: 10px;
  717. color: #3c7cf5;
  718. }
  719. p{
  720. display:block;
  721. width:210px;
  722. margin-left:100px;
  723. margin-bottom:0;
  724. color:#333;
  725. word-break: break-all;
  726. word-wrap:break-word;
  727. }
  728. }
  729. }
  730. }
  731. }
  732. }
  733. }
  734. }
  735. </style>