resource.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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>物料名称 / 单位</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">单位</span>
  83. <p v-text="item.unit ? item.unit : 'PCS'">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. this.applyObj.deadline = this.baseUtils.formatDate(this.baseUtils.getFullDay(new Date(this.applyObj.deadline)), 'yyyy-MM-dd hh:mm:ss')
  266. this.validObj.deadline = true
  267. },
  268. // 检查单价预算
  269. checkUnitPrice () {
  270. this.validObj.unitPrice = this.applyObj.unitPrice === '' ? true : this.applyObj.unitPrice > 0 && this.applyObj.unitPrice < 100000000
  271. if (!this.validObj.unitPrice && this.applyObj.unitPrice <= 0) {
  272. this.$message.error('单价必须是大于0的数字')
  273. }
  274. return this.validObj.unitPrice
  275. },
  276. // 检查采购数量
  277. checkAmount () {
  278. this.validObj.amount = this.applyObj.amount === '' ? true : this.applyObj.amount > 0 && this.applyObj.amount < 1000000000
  279. return this.validObj.amount
  280. },
  281. // 检查时间是否有输入
  282. checkDeadline () {
  283. this.validObj.deadline = Boolean(this.applyObj.deadline)
  284. return this.validObj.deadline
  285. },
  286. // 检查各个字段输入正常数据
  287. checkAll () {
  288. return this.checkDeadline() && this.checkUnitPrice() && this.checkAmount()
  289. },
  290. emptyForm () {
  291. for (let attr in this.applyObj) {
  292. this.applyObj[attr] = attr === 'currency' ? 'RMB' : ''
  293. }
  294. },
  295. // 请求询价信息
  296. goPublish () {
  297. let _this = this
  298. this.isClick = true
  299. setTimeout(function () {
  300. _this.isClick = false
  301. }, 1000)
  302. if (this.checkAll()) {
  303. let inquiry = {}
  304. let inquiryItem = {}
  305. if (this.user.data.enterprise) {
  306. inquiry.enUU = this.user.data.enterprise.uu
  307. }
  308. let date = new Date()
  309. let currency = this.applyObj.unitPrice ? this.applyObj.currency : null
  310. inquiry.recorderUU = this.user.data.userUU
  311. inquiry.code = 'MALL' + date.getTime()
  312. inquiry.date = date
  313. inquiry.recorder = this.user.data.userName
  314. inquiry.endDate = this.applyObj.deadline
  315. inquiry.sourceapp = 'MALL'
  316. inquiry.amount = 1
  317. inquiryItem.userUU = this.user.data.userUU
  318. inquiryItem.source = 'MALL'
  319. inquiryItem.userName = this.user.data.userName
  320. inquiryItem.userTel = this.user.data.userTel
  321. inquiryItem.needquantity = this.applyObj.amount
  322. inquiryItem.inbrand = this.applyObj.brand
  323. inquiryItem.currency = currency
  324. inquiryItem.cmpCode = this.applyObj.cmpCode.toUpperCase()
  325. inquiryItem.unitPrice = this.applyObj.unitPrice
  326. inquiryItem.produceDate = this.applyObj.produceDate
  327. inquiryItem.date = date
  328. inquiryItem.endDate = this.applyObj.deadline
  329. inquiryItem.encapsulation = this.applyObj.encapsulation
  330. inquiryItem.spec = this.applyObj.spec
  331. inquiryItem.prodTitle = this.applyObj.prodName
  332. let inquiryItems = []
  333. inquiryItems.push(inquiryItem)
  334. inquiry.inquiryItems = inquiryItems
  335. inquiry.currency = this.applyObj.unitPrice ? this.applyObj.currency : null
  336. this.$http.post('/inquiry/buyer/save', inquiry)
  337. .then(res => {
  338. this.$message.success('发布成功')
  339. this.hasDialog = false
  340. this.emptyForm()
  341. }, error => {
  342. console.log(error)
  343. this.$message.error('发布失败')
  344. })
  345. } else {
  346. if (!this.validObj.deadline) {
  347. this.$message.error('截止日期不能为空')
  348. } else if (!this.validObj.amount) {
  349. this.$message.error('请输入正确的数值')
  350. }
  351. }
  352. }
  353. }
  354. }
  355. </script>
  356. <style type="text/scss" lang="scss">
  357. .resource_info{
  358. background: #ecf1f1;
  359. .el-dialog{
  360. width: 680px!important;
  361. .el-dialog__header{
  362. background: #4290f7;
  363. line-height: 40px;
  364. padding: 0 20px 0;
  365. display:block;
  366. .el-dialog__title{
  367. color:#fff;
  368. }
  369. .el-dialog__headerbtn:hover .el-dialog__close, .el-dialog__headerbtn:focus .el-dialog__close{
  370. color:#fff;
  371. }
  372. }
  373. .el-dialog__body{
  374. padding: 10px 20px;
  375. }
  376. .el-dialog__footer{
  377. text-align: center;
  378. button{
  379. display:inline-block;
  380. background: #3c7cf5;
  381. color:#fff;
  382. font-size: 14px;
  383. line-height: 30px;
  384. height:30px;
  385. padding:0 10px;
  386. box-shadow: none;
  387. border: 0;
  388. border-radius:5px;
  389. }
  390. }
  391. }
  392. .form_dialog{
  393. .el-date-editor--date{
  394. width: 230px;
  395. &.error {
  396. input {
  397. border: 1px solid #f4645f !important;
  398. }
  399. }
  400. }
  401. ul{
  402. li{
  403. width:50%;
  404. font-size: 14px;
  405. color:#666;
  406. vertical-align: top;
  407. margin-bottom:15px;
  408. &.form-item {
  409. position: relative;
  410. p{
  411. margin:0;
  412. margin-left:80px;
  413. word-break: break-all;
  414. word-wrap: break-word;
  415. }
  416. span {
  417. float:left;
  418. width: 112px;
  419. text-align: right;
  420. display: inline-block;
  421. color:#3c7cf5;
  422. i {
  423. position: relative;
  424. top: 2px;
  425. right: 5px;
  426. color: #e41515;
  427. }
  428. }
  429. ul {
  430. line-height: normal;
  431. position: absolute;
  432. top: 19px;
  433. left: 79px;
  434. background: #fff;
  435. border: 1px solid #b5b5b5;
  436. z-index: 1;
  437. max-height: 120px;
  438. overflow-y: auto;
  439. overflow-x: hidden;
  440. border-radius: 3px;
  441. width: 114px;
  442. font-size: 12px;
  443. li {
  444. height: 24px;
  445. line-height: 24px;
  446. cursor: pointer;
  447. overflow: hidden;
  448. text-overflow: ellipsis;
  449. white-space: nowrap;
  450. padding: 0 5px;
  451. &:hover {
  452. background: #ddd;
  453. }
  454. }
  455. }
  456. select {
  457. width: 40px;
  458. position: absolute;
  459. height: 20px;
  460. background: url('/images/applyPurchase/select.png')no-repeat right;
  461. background-position-x: 23px;
  462. padding: 0 0 0 7px;
  463. border-radius: 0;
  464. & + input {
  465. padding-left: 45px;
  466. }
  467. }
  468. .el-input {
  469. width: 198px;
  470. }
  471. input {
  472. font-size: 14px;
  473. width: 198px;
  474. height: 20px;
  475. line-height: 20px;
  476. border-radius: 2px;
  477. padding: 0 3px;
  478. box-shadow: none;
  479. -webkit-box-shadow: none;
  480. -moz-box-shadow: none;
  481. &.error {
  482. border-color: #f4645f!important;
  483. }
  484. }
  485. }
  486. }
  487. }
  488. }
  489. .crumbs{
  490. background: #ecf1f1;
  491. .menu-com{
  492. margin: 0;
  493. .menu-title{
  494. line-height: 40px;
  495. font-size: 14px;
  496. padding-left: 0;
  497. margin:0;
  498. a{
  499. color: #5078cb;
  500. font-size: 14px;
  501. }
  502. }
  503. }
  504. }
  505. .user_info{
  506. margin-bottom:5px;
  507. .user_title{
  508. display:inline-block;
  509. position:relative;
  510. padding-bottom:13px;
  511. margin-right:330px;
  512. &:hover{
  513. .user_mes{
  514. display:block;
  515. }
  516. }
  517. .user_name{
  518. span{
  519. font-size: 20px;
  520. color:#666;
  521. font-weight: bold;
  522. margin-right:10px;
  523. }
  524. a{
  525. display:inline-block;
  526. padding:0 10px;
  527. border-radius:3px;
  528. font-size: 12px;
  529. height:24px;
  530. line-height: 24px;
  531. color:#fff;
  532. background: #ffa200;
  533. }
  534. }
  535. .user_mes{
  536. display:none;
  537. position:absolute;
  538. top:100%;
  539. left:0;
  540. z-index: 200;
  541. height:10px;
  542. &:before{
  543. content: '';
  544. display:block;
  545. position:absolute;
  546. bottom:5px;
  547. left:20px;
  548. z-index: 100;
  549. border: 5px solid rgba(0,0,0,.7);
  550. -webkit-transform: rotate(45deg);
  551. -moz-transform: rotate(45deg);
  552. -o-transform:rotate(45deg);
  553. -ms-transform: rotate(45deg);
  554. transform:rotate(45deg);
  555. }
  556. .mes-list{
  557. padding:10px 10px;
  558. background: rgba(0,0,0,.7);
  559. color:#fff;
  560. p{
  561. max-width:1183px;
  562. min-width:118px;
  563. margin:0;
  564. line-height: 20px;
  565. font-size: 12px;
  566. color:#fff;
  567. overflow: hidden;
  568. white-space: nowrap;
  569. span{
  570. margin: 0 5px;
  571. .supplier_icon1{
  572. display:inline-block;
  573. position: relative;
  574. top: 5px;
  575. width:20px;
  576. height:18px;
  577. background: url(/images/supplier/icon/supplier_icon.png)no-repeat 0 0;
  578. }
  579. .supplier_icon2{
  580. display:inline-block;
  581. position: relative;
  582. top: 5px;
  583. width:20px;
  584. height:18px;
  585. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -20px 0;
  586. }
  587. .supplier_icon3{
  588. display:inline-block;
  589. position: relative;
  590. top: 5px;
  591. width:20px;
  592. height:18px;
  593. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -40px 0;
  594. }
  595. .supplier_icon4{
  596. display:inline-block;
  597. position: relative;
  598. top: 5px;
  599. height:18px;
  600. width:22px;
  601. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -60px 0;
  602. }
  603. .supplier_icon5{
  604. display:inline-block;
  605. position: relative;
  606. top: 5px;
  607. width:20px;
  608. height:18px;
  609. background: url(/images/supplier/icon/supplier_icon.png)no-repeat -85px 0;
  610. }
  611. }
  612. }
  613. }
  614. }
  615. }
  616. .search{
  617. width:310px;
  618. margin:0;
  619. float:right;
  620. .btn{
  621. background: #3c7cf5;
  622. color:#fff;
  623. }
  624. }
  625. }
  626. .info_list{
  627. padding-bottom:200px;
  628. .empty{
  629. background: #ffffff;
  630. text-align: center;
  631. padding: 80px 0;
  632. img{
  633. vertical-align: top;
  634. margin-right:15px;
  635. }
  636. .info{
  637. display: inline-block;
  638. padding-top:10px;
  639. }
  640. }
  641. table {
  642. table-layout: fixed;
  643. thead{
  644. tr{
  645. line-height: 32px;
  646. vertical-align: middle;
  647. th{
  648. font-size: 14px;
  649. color:#fff;
  650. text-align: center;
  651. background: #3975f4;
  652. span{
  653. display:inline-block;
  654. width:33%;
  655. }
  656. }
  657. }
  658. }
  659. tbody{
  660. tr{
  661. border:1px solid #dadada;
  662. &:nth-child(odd){
  663. background: #fff;
  664. }
  665. &:nth-child(even){
  666. background: #f8f8f8;
  667. }
  668. &:hover{
  669. cursor:pointer;
  670. background: #f8fafe;
  671. td{
  672. &:first-child{
  673. border-left:1px solid #3975f4;
  674. }
  675. &:last-child{
  676. border-right:1px solid #3975f4;
  677. }
  678. border-top:1px solid #3975f4;
  679. border-bottom:1px solid #3975f4;
  680. }
  681. }
  682. td{
  683. vertical-align: middle;
  684. margin:0 auto;
  685. padding:10px 0;
  686. &:first-child, &:last-child{
  687. color:#ed791c;
  688. text-align: center;
  689. }
  690. a{
  691. display:inline-block;
  692. padding:0 10px;
  693. margin:0 auto;
  694. line-height: 24px;
  695. border-radius:3px;
  696. height:24px;
  697. font-size: 12px;
  698. color:#fff;
  699. background: #3c7cf5;
  700. text-align: center;
  701. }
  702. ul{
  703. margin-left:5px;
  704. }
  705. .item{
  706. font-size: 12px;
  707. line-height: 18px;
  708. padding: 10px 0;
  709. vertical-align: top;
  710. width:33%;
  711. span{
  712. display: inline-block;
  713. width: 96px;
  714. text-align: right;
  715. margin-right: 10px;
  716. color: #3c7cf5;
  717. }
  718. p{
  719. display:block;
  720. width:210px;
  721. margin-left:100px;
  722. margin-bottom:0;
  723. color:#333;
  724. word-break: break-all;
  725. word-wrap:break-word;
  726. }
  727. }
  728. }
  729. }
  730. }
  731. }
  732. }
  733. }
  734. </style>