InStoreAdd.vue 19 KB

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