MaterialInEdit.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  1. <template>
  2. <view>
  3. <uni-forms ref="form" labelPosition="left" labelAlign="left" @submit="submitForm">
  4. <view class="uni-form-item uni-column">
  5. <view class="title"><text class="uni-form-item__title">入库类型</text></view>
  6. <view class="uni-input-wrapper ">
  7. <input class="uni-input-small" disabled=true v-model="intypeName" />
  8. <a href='javascript:;' @click='getType' class="uni-icon"><i class="fa fa-search" aria-hidden="true"></i></a>
  9. </view>
  10. </view>
  11. <view class="uni-form-item uni-column">
  12. <view class="title"><text class="uni-form-item__title">入库日期</text></view>
  13. <view class="uni-input-wrapper" style="justify-content: left;">
  14. <picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange" v-model="inDate"
  15. name="requisitionDate" style="width: 100%;">
  16. <view class="uni-input">{{date}}</view>
  17. </picker>
  18. </view>
  19. </view>
  20. <view class="uni-form-item uni-column">
  21. <view class="title"><text class="uni-form-item__title">材料合同</text></view>
  22. <view class="uni-input-wrapper" >
  23. <input class="uni-input-small" disabled=true v-model="contractName" />
  24. <a href='javascript:;' @click='getContract(projectCode)' class="uni-icon"><i class="fa fa-search" aria-hidden="true"></i></a>
  25. </view>
  26. </view>
  27. <view class="uni-form-item uni-column">
  28. <view class="title"><text class="uni-form-item__title">供应单位</text></view>
  29. <view class="uni-textarea">
  30. <input class="uni-input-small" disabled=true v-model="supplierName" />
  31. </view>
  32. </view>
  33. <view class="uni-form-item uni-column">
  34. <view class="title" style="background-color: #efefef;"><text class="uni-form-item__title">附件</text></view>
  35. <view class="content">
  36. <g-upload ref='gUpload' :mode="imgList" @chooseFile='chooseFile' @imgDelete='imgDelete' :control='control'
  37. :columnNum="columnNum" :maxCount="maxCount"></g-upload>
  38. </view>
  39. </view>
  40. <uni-section title="入库明细" type="line">
  41. <button type="default" @click="openWindow" size="mini">添加材料</button>
  42. </uni-section>
  43. <view class="uni-form-item uni-column">
  44. <t-table border="2" border-color="#999999" >
  45. <t-tr font-size="14" color="#999999" align="left">
  46. <t-th align="left">名称</t-th>
  47. <t-th align="left">入库数量</t-th>
  48. <t-th align="left">不合格数量</t-th>
  49. <t-th align="center" style="width: 50px !important;">操作</t-th>
  50. </t-tr>
  51. <t-tr font-size="12" color="#999999" align="right" v-for="(item,index) in materials" :key="index">
  52. <t-td align="left">{{ item.materialName }}</t-td>
  53. <t-td align="left"><input class="uni-input-small" type="digit" v-model="item.inQty" style="width:50px;"/></t-td>
  54. <t-td align="left"><input class="uni-input-small" type="digit" v-model="item.noQty" style="width:50px;"/></t-td>
  55. <t-td align="center" style="width: 50px !important;"><i class="fa fa-window-close" aria-hidden="true" @click="delRow(index)" style="font-size:20px;cursor: pointer;color: #999;margin-left:15px;" title="删除"></i></t-td>
  56. </t-tr>
  57. </t-table>
  58. </view>
  59. <view style="margin-bottom: 120px;">
  60. </view>
  61. <view class="uni-btn-v uni-column">
  62. <button type="primary" form-type="submit" style="border-radius: 15px;">编辑</button>
  63. </view>
  64. </uni-forms>
  65. </view>
  66. </template>
  67. <script>
  68. import {
  69. getSupplierNameAndType
  70. } from "@/common/api/commonApi.js";
  71. import {
  72. Decimal
  73. } from 'decimal.js'; //decimal计算
  74. import {GetMaterials,UpdateMaterialIn,GetMaterialInByMaterialInCode,getContractAndSupplier,getGroupName} from '@/common/api/MaterialInOut.js';
  75. import tTable from '@/components/t-table/t-table.vue';
  76. import tTh from '@/components/t-table/t-th.vue';
  77. import tTr from '@/components/t-table/t-tr.vue';
  78. import tTd from '@/components/t-table/t-td.vue';
  79. var sourceType = [
  80. ['camera'],
  81. ['album'],
  82. ['camera', 'album']
  83. ]
  84. var sizeType = [
  85. ['compressed'],
  86. ['original'],
  87. ['compressed', 'original']
  88. ]
  89. export default {
  90. components: {
  91. tTable,
  92. tTh,
  93. tTr,
  94. tTd
  95. },
  96. data() {
  97. return {
  98. intypeCode: '',
  99. intypeName:'',
  100. inDate: this.$util.getDate({
  101. format: true
  102. }),
  103. contractName:'',
  104. contractCode:'',
  105. supplierName:'',
  106. contract:{},
  107. userCode: this.$util.getState(this,"userCode"), //用户编号
  108. projectCode:this.$util.getState(this,"projectCode"),
  109. contractList: [], //合同
  110. materials:[], //材料
  111. title: 'choose/previewImage',
  112. imageList: [],
  113. sourceTypeIndex: 2,
  114. sourceType: ['拍照', '相册', '拍照或相册'],
  115. sizeTypeIndex: 2,
  116. sizeType: ['压缩', '原图', '压缩或原图'],
  117. countIndex: 5,
  118. count: [1, 2, 3, 4, 5],
  119. title1: 'picker',
  120. array: [],
  121. index: 0,
  122. date: this.$util.getDate({
  123. format: true
  124. }),
  125. startDate: this.$util.getDate('start'),
  126. endDate: this.$util.getDate('end'),
  127. control: true,
  128. columnNum: 3,
  129. imgList: [],
  130. urlList: [],
  131. maxCount: 5
  132. }
  133. },
  134. onLoad() {
  135. //console.info(page.path);
  136. console.info(uni.getStorageSync('storage_state'));
  137. //console.info(this);
  138. this.$util.persistLogin(this);
  139. //console.info(this.$store.state.user);
  140. },
  141. onUnload() {
  142. this.imageList = [],
  143. this.sourceTypeIndex = 2,
  144. this.sourceType = ['拍照', '相册', '拍照或相册'],
  145. this.sizeTypeIndex = 2,
  146. this.sizeType = ['压缩', '原图', '压缩或原图'],
  147. this.countIndex = 5;
  148. },
  149. created: function() {
  150. console.info('created');
  151. //console.info(this.intypeName);
  152. this.GetMaterialInByCode();
  153. },
  154. mounted:function(){
  155. console.info('mounted');
  156. //console.info('intype',this.intypeCode);
  157. },
  158. updated: function() {
  159. console.info('updated');
  160. console.info('contract',this.contract);
  161. console.info('date',this.date);
  162. console.info('indate',this.inDate);
  163. if(this.date){
  164. this.inDate=this.date;
  165. }
  166. if(this.contract){
  167. if(this.contract.length>0){
  168. this.getSupplierName(this.contract[0].supplierCode,this.contract[0].supplierTypeCode);
  169. }
  170. }
  171. },
  172. methods: {
  173. /**
  174. * 手动提交
  175. * @param {Object} form
  176. */
  177. submitForm(e) {
  178. console.info('submitForm');
  179. let _this = this;
  180. if(this.intypeCode==""){
  181. uni.showToast({
  182. title:'请选择入库类型',
  183. duration:3000,
  184. icon:'none'
  185. });
  186. return;
  187. }
  188. if(this.inDate==""){
  189. uni.showToast({
  190. title:'请选择入库日期',
  191. duration:3000,
  192. icon:'none'
  193. });
  194. return;
  195. }
  196. if(this.contractCode==""){
  197. uni.showToast({
  198. title:'请选择材料合同',
  199. duration:3000,
  200. icon:'none'
  201. });
  202. return;
  203. }
  204. if(!this.userCode){
  205. uni.showToast({
  206. title:'用户登录已失效,请重新登录',
  207. duration:3000,
  208. icon:'none'
  209. });
  210. return;
  211. }
  212. if(!this.contract){
  213. uni.showToast({
  214. title:'请重新选择材料合同',
  215. duration:3000,
  216. icon:'none'
  217. });
  218. return;
  219. }
  220. var materialIn = {
  221. materialInCode:_this.$util.getQuery("id"),
  222. materialInID:_this.$util.getQuery("id"),
  223. projectCode: this.$store.state.projectCode,
  224. groupCode: this.intypeCode,
  225. inDate:this.inDate,
  226. inPerson: this.userCode,
  227. inputPerson: this.userCode,
  228. contractCode: this.contractCode,
  229. supplierCode: this.contract[0].supplierCode,
  230. supplierTypeCode: this.contract[0].supplierTypeCode,
  231. supplierTypeId: this.contract[0].supplierTypeId
  232. };
  233. console.info('materials',this.materials);
  234. var list1 = this.materials;
  235. console.info('list1',list1);
  236. let list = [];
  237. let isLessThan=true;
  238. list1.forEach(function(item, index, array) {
  239. if(item.inQty<=0){
  240. console.info('入库数量不能小于0');
  241. isLessThan=false;
  242. return;
  243. }
  244. list.push({
  245. materialCode: item.materialCode,
  246. unit: item.unit,
  247. inQty: new Decimal(item.inQty).toFixed(2) - 0,
  248. inPrice: new Decimal(item.standardPrice).toFixed(2) - 0,
  249. noPassQty:new Decimal(item.noQty).toFixed(2) - 0,
  250. });
  251. //list.push({requisitionCode:'',contractCode:item.contractCode,estimateCash: 220});
  252. });
  253. if(!isLessThan){
  254. uni.showToast({
  255. title:'入库数量不能小于0',
  256. duration:3000,
  257. icon:'none'
  258. });
  259. return;
  260. }
  261. console.info("【list】",list);
  262. if (list.length <= 0) {
  263. uni.showToast({
  264. title: "请添加材料",
  265. icon: "none",
  266. duration: 3000
  267. });
  268. return;
  269. }
  270. //return;
  271. var data = {
  272. materialIn: materialIn,
  273. mDetailList: list
  274. };
  275. console.info('data',data);
  276. //return;
  277. //var strList=JSON.stringify(list);
  278. //var strData=JSON.stringify(data);
  279. UpdateMaterialIn(data).then((res) => {
  280. console.info("提交应答返回值",res);
  281. if (res) {
  282. //上传图片
  283. //_this.uploadFileToServe(res);
  284. uni.navigateTo({
  285. url: '/pages/template/GetMaterialIns/GetMaterialIns'
  286. })
  287. } else {
  288. uni.showToast({
  289. title: '修改失败,重新操作',
  290. icon: 'none',
  291. duration: 3000
  292. })
  293. }
  294. });
  295. },
  296. bindPickerChange: function(e) {
  297. //console.log('picker发送选择改变,携带值为:' + e.detail.value);
  298. //console.info(e.detail);
  299. this.index = e.detail.value;
  300. this.changeType = this.array[this.index];
  301. console.info(this.changeType);
  302. },
  303. bindDateChange: function(e) {
  304. this.date = e.detail.value;
  305. this.requisitionDate = this.date;
  306. console.info(this.date);
  307. },
  308. GetDropDown: function() {
  309. let that = this;
  310. GetQianzhengDropDown().then((res) => {
  311. console.info(res);
  312. res.forEach(function(item, index, array) {
  313. that.$set(that.array, index, item);
  314. });
  315. that.changeType = that.array[0];
  316. });
  317. },
  318. openWindow: function() {
  319. let _this = this;
  320. //console.info('监听事件外部this');
  321. //console.info(this);
  322. _this.saveTemp(_this);
  323. if(_this.contractCode==undefined||_this.contractCode==''){
  324. uni.showToast({
  325. title:'请选择材料合同',
  326. icon:'none',
  327. duration:3000
  328. });
  329. return;
  330. }
  331. //创建名字为fire的监听器,监听子页面传值事件
  332. uni.$on('materials', function(data) {
  333. console.info("监听materials子页面的传值",data);
  334. //从子页面返回父页面,原来表单已经填写的值会丢失,因此需要重新赋值
  335. _this.getTemp(_this);
  336. _this.materials = [];
  337. data.forEach(function(item, index, array) {
  338. //console.info("foreach");
  339. _this.$set(_this.materials, index, item);
  340. });
  341. //接收一次监听,一旦监听到回传值,则清除监听事件,若不清除,会占用资源
  342. uni.$off("materials");
  343. console.info("监听materials子页面的传值结束");
  344. });
  345. //打开子页面
  346. uni.navigateTo({
  347. url: "/pages/template/selectmaterials/selectmaterials?contractCode="+_this.contractCode
  348. })
  349. },
  350. delRow: function(index) {
  351. console.info("删除");
  352. console.info(this.materials[index]);
  353. this.materials.splice(index, 1);
  354. },
  355. /*
  356. 上传后返回的值:
  357. list:上传后图片数组
  358. v:返回当前上传图片的临时路径
  359. */
  360. chooseFile(list, v) {
  361. console.log("上传图片_list:", list)
  362. console.log("上传图片_v:", v);
  363. this.urlList = list;
  364. console.info("urlList", this.urlList);
  365. },
  366. /*
  367. 删除图片:
  368. list:删除返回删除后剩余的图片数组
  369. eq:返回删除的数组
  370. */
  371. imgDelete(list, eq) {
  372. console.log("删除图片_list:", list);
  373. console.log("删除图片_eq:", eq);
  374. this.urlList = list;
  375. console.info("urlList", this.urlList);
  376. },
  377. /*
  378. 执行上传服务:
  379. urlList:要上传的图片:数组类型
  380. */
  381. uploadFileToServe(masterCode) {
  382. let _this = this;
  383. var urlList = _this.urlList;
  384. if (!urlList || urlList.length <= 0) {
  385. return;
  386. };
  387. //console.info(urlList);
  388. //return;
  389. for (let i = 0; i < urlList.length; i++) {
  390. uni.uploadFile({
  391. url: '/api/Requisition/UploadImage',
  392. filePath: urlList[i],
  393. name: 'file',
  394. formData: {
  395. createPerson: _this.$store.state.user.userCode,
  396. masterCode: masterCode
  397. },
  398. headers: {
  399. 'Content-Type': 'multipart/form-data; boundary = ' + new Date().getTime()
  400. //这里要把content-type设置为multipard/form-data,同时还要设置boundary
  401. },
  402. success: (uploadFileRes) => {
  403. console.log("图片上传:", uploadFileRes.data);
  404. }
  405. });
  406. }
  407. },
  408. /*
  409. 获取入库类型
  410. */
  411. getType() {
  412. let _this = this;
  413. console.info('gettype',_this);
  414. _this.saveTemp(_this);
  415. //创建名字为fire的监听器,监听子页面传值事件
  416. uni.$on('intype', function(data) {
  417. console.info("监听intype子页面的传值", data);
  418. console.info('监听',_this);
  419. _this.getTemp(_this);
  420. _this.intypeCode=data[0].id;
  421. _this.intypeName=data[0].name;
  422. _this.$nextTick(function(){
  423. //更新dom
  424. });
  425. console.info(data[0].id,data[0].name);
  426. console.info(_this.intypeCode,_this.intypeName);
  427. //接收一次监听,一旦监听到回传值,则清除监听事件,若不清除,会占用资源
  428. uni.$off("intype");
  429. });
  430. uni.navigateTo({
  431. url: '/pages/tree/tree?classCode=1503'
  432. });
  433. },
  434. /*获取材料合同*/
  435. getContract(projectCode){
  436. console.info('getContract',projectCode);
  437. let _this = this;
  438. _this.saveTemp(_this); //表单存入缓存
  439. //创建名字为fire的监听器,监听子页面传值事件
  440. uni.$on('contract', function(data) {
  441. console.info("监听contract子页面的传值", data);
  442. _this.getTemp(_this); //自缓存中取出表单数据,重新赋值
  443. _this.contractCode=data[0].contractCode;
  444. _this.contractName=data[0].contractName;
  445. _this.contract=data;
  446. console.info('_this.contract',_this.contract);
  447. //接收一次监听,一旦监听到回传值,则清除监听事件,若不清除,会占用资源
  448. uni.$off("contract");
  449. });
  450. uni.navigateTo({
  451. url: '/pages/template/SelectContract/SelectContract?projectCode='+projectCode
  452. });
  453. },
  454. /* 获取供应商名称 */
  455. getSupplierName(supplierCode, supplierTypeCode){
  456. console.info('getSupplierName');
  457. console.info('supplierCode',supplierCode);
  458. console.info('supplierTypeCode',supplierTypeCode);
  459. let that=this;
  460. if(supplierCode&&supplierTypeCode){
  461. getSupplierNameAndType(supplierCode, supplierTypeCode).then(res=>{
  462. console.info('getSupplierNameAndType',res);
  463. that.supplierName=res;
  464. });
  465. }
  466. },
  467. saveTemp(_this){ //临时存
  468. uni.setStorage({
  469. key:'intypeName',
  470. data:_this.intypeName
  471. });
  472. uni.setStorage({
  473. key:'intypeCode',
  474. data:_this.intypeCode
  475. });
  476. uni.setStorage({
  477. key:'inDate',
  478. data:_this.inDate
  479. });
  480. uni.setStorage({
  481. key:'contractCode',
  482. data:_this.contractCode
  483. });
  484. uni.setStorage({
  485. key:'contractName',
  486. data:_this.contractName
  487. });
  488. uni.setStorage({
  489. key:'supplierCode',
  490. data:_this.supplierCode
  491. });
  492. uni.setStorage({
  493. key:'supplierName',
  494. data:_this.supplierName
  495. });
  496. uni.setStorage({
  497. key:'contract',
  498. data:_this.contract
  499. });
  500. uni.setStorage({
  501. key:'usercode',
  502. data:_this.usercode
  503. });
  504. uni.setStorage({
  505. key:'imageList',
  506. data:_this.imageList
  507. });
  508. },
  509. getTemp(_this){ //获取缓存,重新给表单赋值
  510. _this.intypeCode=uni.getStorageSync('intypeCode');
  511. _this.intypeName=uni.getStorageSync('intypeName');
  512. _this.inDate=uni.getStorageSync('inDate');
  513. _this.contractCode=uni.getStorageSync('contractCode');
  514. _this.contractName=uni.getStorageSync('contractName');
  515. _this.supplierCode=uni.getStorageSync('supplierCode');
  516. _this.supplierName=uni.getStorageSync('supplierName');
  517. _this.supplierCode=uni.getStorageSync('supplierCode');
  518. _this.usercode=uni.getStorageSync('usercode');
  519. _this.contract=uni.getStorageSync('contract');
  520. },
  521. GetMaterialInByCode(){
  522. let _this=this;
  523. let id=this.$util.getQuery("id");
  524. GetMaterialInByMaterialInCode(id).then(res=>{
  525. console.info('GetMaterialInByMaterialInCode',res);
  526. let mainEntity=res.mainEntity;
  527. let subList=res.subList;
  528. console.info('projectCode',_this.projectCode);
  529. if(mainEntity.projectCode!=_this.projectCode){
  530. uni.showModal({
  531. title: '提示',
  532. content: '非本人,无编辑权限',
  533. success: function (res) {
  534. if (res.confirm||res.cancel) {
  535. uni.navigateTo({
  536. url:'../GetMaterialIns/GetMaterialIns'
  537. })
  538. }
  539. }
  540. });
  541. }
  542. //初始化赋值
  543. _this.intypeCode=mainEntity.groupCode;
  544. _this.date=mainEntity.inDate.substring(0,10);
  545. _this.contractCode=mainEntity.contractCode;
  546. getContractAndSupplier(mainEntity.contractCode).then(res=>{
  547. console.info('getContractAndSupplier',res);
  548. _this.contractCode=res[0].contractCode;
  549. _this.contractName=res[0].contractName;
  550. console.info('res.contractName',res[0].contractName);
  551. console.info('_this.contractName',_this.contractName);
  552. _this.contract=res;
  553. });
  554. getGroupName(mainEntity.groupCode).then(res=>{
  555. console.info('getGroupName',res);
  556. _this.intypeName=res;
  557. });
  558. subList.forEach(function(item, index, array) {
  559. //console.info("foreach");
  560. _this.$set(_this.materials, index, item);
  561. });
  562. });
  563. },
  564. }
  565. }
  566. </script>
  567. <style scoped>
  568. /* 头条小程序组件内不能引入字体 */
  569. /* #ifdef MP-TOUTIAO */
  570. @font-face {
  571. font-family: uniicons;
  572. font-weight: normal;
  573. font-style: normal;
  574. src: url("~@/static/uni.ttf") format("truetype");
  575. }
  576. /* #endif */
  577. page {
  578. display: flex;
  579. flex-direction: column;
  580. box-sizing: border-box;
  581. background-color: #efeff4;
  582. min-height: 100%;
  583. height: auto;
  584. }
  585. view {
  586. font-size: 14px;
  587. line-height: inherit;
  588. }
  589. .uni-form-item__title {
  590. font-size: 16px;
  591. line-height: 24px;
  592. }
  593. .uni-input-wrapper {
  594. /* #ifndef APP-NVUE */
  595. display: flex;
  596. /* #endif */
  597. padding: 8px 13px;
  598. flex-direction: row;
  599. flex-wrap: nowrap;
  600. background-color: #FFFFFF;
  601. }
  602. .title {
  603. background-color: #efefef;
  604. padding: 5px 20px;
  605. }
  606. .uni-input {
  607. height: 28px;
  608. line-height: 28px;
  609. font-size: 15px;
  610. padding: 5px;
  611. flex: 1;
  612. background-color: #FFFFFF;
  613. }
  614. .uni-input-small {
  615. height: 28px;
  616. line-height: 28px;
  617. font-size: 15px;
  618. padding: 5px;
  619. flex: 1;
  620. width: 270px;
  621. background-color: #FFFFFF;
  622. }
  623. .uni-icon {
  624. height: 28px;
  625. line-height: 28px;
  626. font-size: 20px;
  627. padding-right: 15px;
  628. color: #5555ff;
  629. width: 50px;
  630. }
  631. .uni-eye-active {
  632. color: #007AFF;
  633. }
  634. .uni-btn-v {
  635. position: fixed;
  636. bottom: 0;
  637. width: 100%;
  638. }
  639. .header-slot-box {
  640. font-size: 15px;
  641. margin: 5px 5px;
  642. width: 20%;
  643. justify-content: center;
  644. }
  645. .body-slot-box {
  646. font-size: 15px;
  647. margin: 5px 5px;
  648. width: 40%;
  649. justify-content: center;
  650. }
  651. .footer-slot-box {
  652. font-size: 15px;
  653. margin: 5px 5px;
  654. width: 40%;
  655. justify-content: center;
  656. }
  657. .uni-textarea textarea {
  658. font-size: 15px;
  659. }
  660. .content {
  661. padding: 40rpx;
  662. background-color: #fff;
  663. }
  664. /* 上传控件 */
  665. .uploadControl {
  666. border: 1rpx solid #eee;
  667. border-radius: 10rpx;
  668. width: 130rpx;
  669. display: block;
  670. height: 130rpx;
  671. text-align: center;
  672. line-height: 130rpx;
  673. font-size: 30rpx;
  674. color: #888;
  675. background-color: #eeeeee;
  676. }
  677. .bg1 {
  678. background-color: #EFEFEF;
  679. }
  680. </style>