shelfSet.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. <template>
  2. <view class="content">
  3. <u-navbar back-text="货架设置" :border-bottom="false" :background="{backgroundColor: $config('primaryColor')}"
  4. back-icon-color="#fff" :back-text-style="{ color: '#fff' }">
  5. <view slot='right' style="padding: 0 30upx;color: #ffffff;" @click="toPlRacking" v-if="shelfPlaceList">
  6. <u-icon name="piliangshangjia" custom-prefix="iscm-icon"></u-icon>
  7. <text style="margin-left: 6rpx;">批量上架</text>
  8. <u-badge v-if="showDot" :is-dot="true" size="mini" type="error"></u-badge>
  9. </view>
  10. </u-navbar>
  11. <view class="body-content flex flex_column">
  12. <view class="card-box" v-if="detailData">
  13. <view class="card-row flex align_center justify_between">
  14. <view class="label">货架名称</view>
  15. <view class="text flex align_center" @click="editShelf">
  16. <text style="width: 80%;flex: 1;">{{detailData.shelfName}}</text>
  17. <u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
  18. </view>
  19. </view>
  20. <view class="card-row flex align_center justify_between">
  21. <view class="label">关联客户</view>
  22. <view class="text flex align_center" @click="customeSet">
  23. <text
  24. style="width: 80%;flex: 1;">{{ (detailData&&detailData.customerEntity&&detailData.customerEntity.customerName) || '--' }}</text>
  25. <u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
  26. </view>
  27. </view>
  28. <view class="card-row align_center flex justify_between">
  29. <view class="label" style="width: 40%;" @click="showTip(0)">价格权限设置 <u-icon color="#ffaa00"
  30. name="question-circle"></u-icon></view>
  31. <view class="text flex align_center justify_end" style="width: 60%;"
  32. @click="openSetPriceShow">
  33. <view style="flex-grow: 1;">
  34. <view>货架产品:<text style="width: 80%;flex: 1;">{{showPriceStr.length ? showPriceStr.join("/") : '--'}}</text></view>
  35. <view>非货架产品:<text style="width: 80%;flex: 1;">{{showNonPriceStr.length ? showNonPriceStr.join("/") : '--'}}</text></view>
  36. </view>
  37. <u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
  38. </view>
  39. </view>
  40. <view class="card-row align_center flex justify_between" v-if="showMore">
  41. <view class="label" style="width: 50%;" @click="showTip(1)">是否设置完成 <u-icon color="#ffaa00"
  42. name="question-circle"></u-icon></view>
  43. <view class="text" style="width: 50%;text-align: right;"><u-switch v-model="switchVal"
  44. @change="switchChange"></u-switch></view>
  45. </view>
  46. <view class="moreSeting" @click="showMore=!showMore">
  47. <text>{{!showMore?'更多设置':'收起'}}</text> <u-icon :name="showMore?'arrow-up':'arrow-down'"></u-icon>
  48. </view>
  49. </view>
  50. <!-- 货位信息 -->
  51. <view class="shelfPlace" :style="{height: scrollH+'px'}" v-if="shelfPlaceList">
  52. <view class="flex align_center shelfPlaceHead">
  53. <view class="lt"><text>□</text>表示没有绑定产品</view>
  54. <view class="search-btn flex align_center" @click="toSearchHw">
  55. <view><u-icon name="search"></u-icon><text>按产品搜索</text></view>
  56. <u-icon name="scan"></u-icon>
  57. </view>
  58. </view>
  59. <view class="flex shelfTabs">
  60. <view class="leftTabs">
  61. <view v-for="item in placeTab" :key="item" :class="curTab==item?'active':''"
  62. @click="tabChange(item)">{{item}}层</view>
  63. </view>
  64. <view class="rightCons flex flex_column">
  65. <view class="hwList flex_1">
  66. <text @click="editHw(item)" v-for="item in shelfPlaceList[curTab]"
  67. :key="item.shelfPlaceCode"
  68. :class="item.shelfProductApiEntity && item.shelfProductApiEntity.productSn?'':'red'">
  69. {{item.shelfPlaceCode}}
  70. </text>
  71. <text class="add" @click="addHw('add',1)"><u-icon name="plus"></u-icon></text>
  72. </view>
  73. <view class="hwAction flex justify_between">
  74. <u-button shape="circle" @click="tapPopup(1)" size="medium">打印贴签</u-button>
  75. <u-button class="newbtn" @click="tapPopup(2)" type='primary' shape="circle"
  76. size="medium">快速补货</u-button>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view style="width: 100%;" v-else>
  82. <view class="nodata" v-if="!loading">
  83. <view>
  84. <u-image :src="`../../static/${$config('themePath')}/def_no_data@3x.png`" width="180"
  85. height="180" border-radius="10"></u-image>
  86. </view>
  87. <view class="flex">
  88. 暂无货位信息,请点击
  89. <view>
  90. <text @click="toPlRacking">批量上架</text>
  91. <u-badge :offset="[-6,-10]" v-if="showDot" :is-dot="true" size="mini"
  92. type="error"></u-badge>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="nodata" v-else>
  97. <u-loadmore :load-text="$config('loadText')" status="loading" />
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 设置价格显示弹框 -->
  102. <u-modal v-model="updateShowPrice" :show-cancel-button="true" title="价格权限设置" @confirm="savePriceSet">
  103. <view class="slot-content" style="padding: 1.5rem 1rem;text-align: center;">
  104. <view style="color: #999;font-size: 0.8rem;margin: 0.5rem;">提示:不勾选则不显示价格</view>
  105. <u-checkbox-group @change="priceSetChange">
  106. <u-checkbox v-for="item in showPrice" :key="item.paramCode" v-model="item.checked"
  107. :name="item.paramCode">{{item.text}}</u-checkbox>
  108. </u-checkbox-group>
  109. <u-checkbox-group @change="nonPriceSetChange">
  110. <u-checkbox v-for="item in showNonPrice" :key="item.paramCode" v-model="item.checked"
  111. :name="item.paramCode">{{item.text}}</u-checkbox>
  112. </u-checkbox-group>
  113. </view>
  114. </u-modal>
  115. </view>
  116. </template>
  117. <script>
  118. import {
  119. shelfDetail,
  120. shelfSave,
  121. modifFinishFlag,
  122. getProductPlace,
  123. getShelfPriceShow,
  124. updateShelfPriceShow
  125. } from '@/api/shelf'
  126. import {
  127. shelfCartNotEmpty
  128. } from '@/api/shelfCart'
  129. import {
  130. createShelfReplenishBill
  131. } from '@/api/shelfReplenish'
  132. export default {
  133. components: {},
  134. data() {
  135. return {
  136. loading: false,
  137. shelfSn: null,
  138. detailData: null,
  139. switchVal: false,
  140. showMenus: false,
  141. scrollH: 400,
  142. popData: [{
  143. title: '快速补货',
  144. val: '0'
  145. }, {
  146. title: '打印贴签',
  147. val: '1'
  148. }],
  149. pleft: 0,
  150. ptop: 0,
  151. shelfPlaceList: null,
  152. placeTab: [],
  153. curTab: '',
  154. isLoad: false,
  155. webView: null,
  156. showDot: false,
  157. showPrice: [],
  158. showNonPrice:[],
  159. showPriceStr: [],
  160. showNonPriceStr:[],
  161. updateShowPrice: false,
  162. showPriceBak: [],
  163. showMore: false
  164. }
  165. },
  166. watch: {
  167. showMore(a, b) {
  168. this.getScrollHeight(a)
  169. },
  170. },
  171. onLoad(option) {
  172. this.shelfSn = option.shelfSn
  173. // 获取货架详情
  174. this.getShelfDetal()
  175. // 获取货物
  176. this.getShelfPlace()
  177. this.isLoad = true
  178. // this.webView = this.$mp.page.$getAppWebview();
  179. uni.$on("editCustome", (data) => {
  180. this.isLoad = true
  181. this.saveShelf(data, 0)
  182. })
  183. uni.$on("editShelfName", (data) => {
  184. this.isLoad = true
  185. this.saveShelf(data, 1)
  186. })
  187. // const win = uni.getWindowInfo()
  188. // this.pleft = Math.floor(win.windowWidth * 0.3)
  189. // this.ptop = Math.floor(win.windowHeight - 70)
  190. this.getScrollHeight(this.showMore)
  191. console.log(this.shelfSn)
  192. },
  193. onUnload() {
  194. uni.$off("editCustome")
  195. uni.$off("editShelfName")
  196. },
  197. onShow() {
  198. if (!this.isLoad) {
  199. this.updateHw()
  200. }
  201. },
  202. methods: {
  203. getScrollHeight(a) {
  204. const sys = uni.getSystemInfoSync()
  205. const h = a ? 290 : 250
  206. if (sys.platform == 'android') {
  207. this.scrollH = sys.windowHeight - h
  208. } else {
  209. if (sys.safeArea.top) {
  210. this.scrollH = sys.windowHeight - h + sys.statusBarHeight - 34
  211. } else {
  212. this.scrollH = sys.windowHeight - h - 14
  213. }
  214. }
  215. },
  216. // 刷新货位
  217. updateHw() {
  218. this.placeTab = []
  219. this.shelfPlaceList = null
  220. this.getShelfPlace(true)
  221. },
  222. // 批量上架
  223. toPlRacking() {
  224. const url = this.showDot ? '/pages/batchShelves/cartList' : '/pages/batchShelves/index'
  225. uni.navigateTo({
  226. url: url + "?shelfSn=" + this.shelfSn + '&shelfName=' + this.detailData.shelfName +
  227. '&customerSn=' + this.detailData.customerSn
  228. })
  229. },
  230. // 更多操作
  231. tapPopup(e) {
  232. // 打印贴签
  233. if (e == 1) {
  234. if (this.hasNoBindPro()) {
  235. uni.navigateTo({
  236. url: "/pages/latePlay/chooseProduct?shelfSn=" + this.shelfSn + '&shelfName=' + this
  237. .detailData.shelfName
  238. })
  239. } else {
  240. uni.showModal({
  241. showCancel: false,
  242. confirmText: "好的",
  243. title: "提示",
  244. content: "所有货位都没有绑定产品,无法打印贴签!"
  245. })
  246. }
  247. }
  248. // 快速补货
  249. if (e == 2) {
  250. createShelfReplenishBill({
  251. shelfSn: this.shelfSn,
  252. enableFlag: 1
  253. }).then(res => {
  254. console.log(res.data)
  255. if (res.data && res.data.length) {
  256. const params = Object.assign(this.detailData, {
  257. list: res.data
  258. })
  259. this.$store.state.vuex_tempData = params
  260. uni.navigateTo({
  261. url: "/pages/shelfSetting/quickReplenish"
  262. })
  263. } else {
  264. uni.showModal({
  265. showCancel: false,
  266. confirmText: "好的",
  267. title: "提示",
  268. content: "没有需要补货的产品"
  269. })
  270. }
  271. })
  272. }
  273. },
  274. showTip(type) {
  275. uni.showModal({
  276. showCancel: false,
  277. confirmText: "好的",
  278. title: "提示",
  279. content: type ? "只有当数字货架的“是否设置完成”为“是”,系统才会自动对该货架生成补货单,修理厂才能正常下单。" :
  280. "不勾选则不显示价格,结算价:即易码通进货价"
  281. })
  282. },
  283. // 设置完成是否
  284. switchChange(v) {
  285. const params = {
  286. shelfSn: this.shelfSn,
  287. finishFlag: v ? '1' : '0'
  288. }
  289. modifFinishFlag(params).then(res => {
  290. if (res.status == 200) {
  291. uni.showToast({
  292. icon: 'none',
  293. title: res.message
  294. })
  295. }
  296. })
  297. },
  298. // 关联客户
  299. customeSet() {
  300. uni.navigateTo({
  301. url: "/pages/sales/chooseCustomer?backPage=shelfEdit&shelfName=" + this.detailData.shelfName
  302. })
  303. },
  304. // 修改货架名称
  305. editShelf() {
  306. uni.navigateTo({
  307. url: "/pages/shelfSetting/editShelf?shelfName=" + this.detailData.shelfName
  308. })
  309. },
  310. // 是否没有绑定任何产品
  311. hasNoBindPro() {
  312. let noBindPro = null;
  313. for (let i = 0; i < this.placeTab.length; i++) {
  314. noBindPro = this.shelfPlaceList[this.placeTab[i]].find(item => item.shelfProductApiEntity && item
  315. .shelfProductApiEntity.productSn);
  316. if (!!noBindPro) {
  317. break
  318. }
  319. }
  320. return !!noBindPro
  321. },
  322. // 按照产品搜索货位
  323. toSearchHw() {
  324. if (this.hasNoBindPro()) {
  325. uni.navigateTo({
  326. url: "/pages/shelfSetting/searchShelfHw?shelfName=" + this.detailData.shelfName +
  327. "&shelfSn=" + this.shelfSn
  328. })
  329. } else {
  330. uni.showModal({
  331. showCancel: false,
  332. confirmText: "好的",
  333. title: "提示",
  334. content: "所有货位都没有绑定产品,无法搜索!"
  335. })
  336. }
  337. },
  338. // 编辑货位
  339. editHw(item) {
  340. const hasProduct = item.shelfProductApiEntity && item.shelfProductApiEntity.productSn
  341. const type = hasProduct ? 'edit' : 'bind'
  342. const params = Object.assign(this.detailData, item)
  343. this.$store.state.vuex_tempData = params
  344. uni.navigateTo({
  345. url: "/pages/shelfSetting/editShelfHw?type=" + type
  346. })
  347. },
  348. // 新增货位
  349. addHw(type, flag) {
  350. let shelfPlaceCode = ''
  351. if (type == 'edit') {
  352. shelfPlaceCode = flag
  353. }
  354. if (type == 'add' && flag == 1) {
  355. const row = this.shelfPlaceList[this.curTab]
  356. const num = row[row.length - 1].shelfPlaceCode.replace(this.curTab, '')
  357. const nextNum = Number(num) + 1
  358. shelfPlaceCode = this.curTab + (nextNum < 10 ? '0' : '') + nextNum
  359. }
  360. const params = {
  361. customerSn: this.detailData.customerSn,
  362. shelfSn: this.detailData.shelfSn,
  363. id: this.detailData.id
  364. }
  365. uni.navigateTo({
  366. url: "/pages/shelfSetting/addShelfHw?detailData=" + encodeURIComponent(JSON.stringify(
  367. params)) + "&type=" + type + "&shelfPlaceCode=" + shelfPlaceCode
  368. })
  369. },
  370. // 保存数字货架基本信息
  371. saveShelf(data, type) {
  372. const params = {
  373. shelfSn: this.shelfSn
  374. }
  375. if (type == 1) {
  376. params.customerSn = this.detailData.customerSn
  377. params.shelfName = data.shelfName
  378. } else {
  379. params.customerSn = data.customerSn
  380. }
  381. shelfSave(params).then(res => {
  382. if (res.status == 200) {
  383. this.toashMsg(res.message)
  384. this.getShelfDetal()
  385. }
  386. })
  387. },
  388. // 获取价格显示设置
  389. getShelfPriceShow() {
  390. getShelfPriceShow({
  391. shelfSn: this.shelfSn
  392. }).then(res => {
  393. if (res.status == 200) {
  394. const ret = res.data && res.data
  395. this.showPriceBak = ret
  396. this.formatPriceShow()
  397. }
  398. })
  399. },
  400. // 格式化价格显示
  401. formatPriceShow(){
  402. this.showPrice = []
  403. this.showPriceStr = []
  404. this.showNonPrice = []
  405. this.showNonPriceStr = []
  406. this.showPriceBak.map(item => {
  407. if (item.paramCode == 'shelf_price_show' && item.paramValue == 1) {
  408. this.showPriceStr.push("车主价")
  409. }
  410. if (item.paramCode == 'shelf_cost_show' && item.paramValue == 1) {
  411. this.showPriceStr.push("结算价")
  412. }
  413. if (item.paramCode == 'non_shelf_price_show' && item.paramValue == 1) {
  414. this.showNonPriceStr.push("车主价")
  415. }
  416. if (item.paramCode == 'non_shelf_cost_show' && item.paramValue == 1) {
  417. this.showNonPriceStr.push("结算价")
  418. }
  419. if(item.paramCode.indexOf("non_")>=0){
  420. this.showNonPrice.push({
  421. paramCode: item.paramCode,
  422. paramValue: item.paramValue,
  423. text: item.paramCode == 'non_shelf_price_show' ? '车主价' : '结算价',
  424. checked: item.paramValue == 1
  425. })
  426. }else{
  427. this.showPrice.push({
  428. paramCode: item.paramCode,
  429. paramValue: item.paramValue,
  430. text: item.paramCode == 'shelf_price_show' ? '车主价' : '结算价',
  431. checked: item.paramValue == 1
  432. })
  433. }
  434. })
  435. },
  436. openSetPriceShow(){
  437. this.formatPriceShow()
  438. this.updateShowPrice = true
  439. },
  440. // 选择价格显示
  441. priceSetChange(e) {
  442. console.log(e)
  443. this.showPrice.map(item => {
  444. item.paramValue = e.includes(item.paramCode) ? 1 : 0
  445. })
  446. },
  447. nonPriceSetChange(e){
  448. this.showNonPrice.map(item => {
  449. item.paramValue = e.includes(item.paramCode) ? 1 : 0
  450. })
  451. },
  452. // 价格显示保存
  453. savePriceSet() {
  454. uni.showLoading({
  455. mask: true,
  456. title: '正在保存价格设置...'
  457. })
  458. // 更新价格显示
  459. updateShelfPriceShow({
  460. shelfSn: this.shelfSn,
  461. paramValue: [...this.showPrice,...this.showNonPrice]
  462. }).then(res => {
  463. if (res.status == 200) {
  464. this.getShelfPriceShow()
  465. this.toashMsg(res.message)
  466. }
  467. uni.hideLoading()
  468. })
  469. },
  470. getShelfDetal() {
  471. shelfDetail({
  472. sn: this.shelfSn
  473. }).then(res => {
  474. if (res.status == 200) {
  475. this.detailData = res.data
  476. this.switchVal = res.data.finishFlag == 1
  477. // 价格设置
  478. this.getShelfPriceShow()
  479. } else {
  480. this.detailData = null
  481. }
  482. })
  483. },
  484. getShelfPlace(flag) {
  485. this.loading = true
  486. getProductPlace({
  487. shelfSn: this.shelfSn
  488. }).then(res => {
  489. if (res.status == 200 && res.data) {
  490. this.shelfPlaceList = res.data
  491. // 获取层
  492. for (let a in res.data) {
  493. this.placeTab.push(a)
  494. }
  495. // 排序
  496. this.placeTab.sort(function(a, b) {
  497. return (a + '').localeCompare(b + '');
  498. });
  499. console.log(this.placeTab)
  500. if (!flag || !this.curTab) {
  501. this.curTab = this.placeTab[0]
  502. }
  503. if (this.placeTab.length == 0) {
  504. this.shelfPlaceList = null
  505. }
  506. } else {
  507. this.shelfPlaceList = null
  508. this.placeTab = []
  509. }
  510. // 是否有已录入的产品
  511. this.getHasCartNotEmpty()
  512. this.isLoad = false
  513. this.loading = false
  514. })
  515. },
  516. tabChange(item) {
  517. this.curTab = item
  518. },
  519. getHasCartNotEmpty() {
  520. shelfCartNotEmpty({
  521. shelfSn: this.shelfSn
  522. }).then(res => {
  523. this.showDot = res.data == 1
  524. })
  525. }
  526. }
  527. }
  528. </script>
  529. <style lang="less">
  530. .content {
  531. width: 100%;
  532. .nodata {
  533. padding: 100rpx 50rpx;
  534. text-align: center;
  535. display: flex;
  536. flex-direction: column;
  537. justify-content: center;
  538. align-items: center;
  539. >view {
  540. position: relative;
  541. padding: 10upx 0;
  542. text {
  543. color: #00aaff;
  544. margin-left: 10rpx;
  545. }
  546. }
  547. }
  548. .body-content {
  549. width: 100%;
  550. }
  551. .card-box {
  552. background-color: #fff;
  553. border-radius: 0.5rem;
  554. box-shadow: 0.1rem 0.2rem 0.3rem #eee;
  555. padding: 0 1rem;
  556. margin: 0.5rem;
  557. .card-row {
  558. border-bottom: 1rpx solid #eee;
  559. padding: 20rpx 0;
  560. min-height: 90rpx;
  561. &:last-child {
  562. border-bottom: 0;
  563. }
  564. .label {
  565. flex: 1;
  566. width: 20%;
  567. }
  568. .text {
  569. width: 80%;
  570. color: #666;
  571. }
  572. }
  573. .moreSeting {
  574. text-align: center;
  575. color: #999;
  576. padding: 20upx;
  577. >text {
  578. margin-right: 10rpx;
  579. }
  580. }
  581. }
  582. .shelfPlace {
  583. height: calc(100% - 300rpx);
  584. .shelfPlaceHead {
  585. padding: 0.2rem 0.5rem 0.5rem;
  586. justify-content: space-between;
  587. .lt {
  588. font-size: 0.9rem;
  589. color: #999;
  590. text {
  591. color: #ff5500;
  592. font-size: 1rem;
  593. }
  594. }
  595. .search-btn {
  596. border: 1rpx solid #eee;
  597. border-radius: 50rpx;
  598. width: 50%;
  599. justify-content: space-between;
  600. padding: 0.3rem 0.5rem;
  601. color: #999;
  602. background-color: #fff;
  603. font-size: 0.9rem;
  604. &:active {
  605. opacity: 0.6;
  606. }
  607. }
  608. }
  609. .shelfTabs {
  610. height: calc(100% - 85rpx);
  611. .leftTabs {
  612. width: 20%;
  613. overflow: auto;
  614. >view {
  615. padding: 0.8rem 0.5rem;
  616. border-left: 0.2rem solid #f8f8f8;
  617. text-align: center;
  618. }
  619. .active {
  620. border-color: rgb(47, 126, 209);
  621. background-color: #fff;
  622. }
  623. }
  624. .rightCons {
  625. width: 80%;
  626. background-color: #fff;
  627. position: relative;
  628. .hwList {
  629. overflow: auto;
  630. padding: 0.5rem;
  631. padding-bottom: 105rpx;
  632. >text {
  633. border: 1rpx solid #eee;
  634. padding: 0.2rem 0.8rem;
  635. border-radius: 0.3rem;
  636. margin: 0.5rem 2%;
  637. float: left;
  638. width: 20%;
  639. text-align: center;
  640. }
  641. .red {
  642. border-color: #ff5500;
  643. }
  644. .add {
  645. border-style: dashed;
  646. border-color: #999;
  647. color: #999;
  648. }
  649. }
  650. .hwAction {
  651. padding: 0.5rem;
  652. position: fixed;
  653. bottom: 0;
  654. right: 0;
  655. width: 80%;
  656. background-color: #fff;
  657. button {
  658. width: 240rpx;
  659. }
  660. .newbtn {
  661. background-color: rgb(51, 95, 182);
  662. color: #fff;
  663. }
  664. }
  665. }
  666. }
  667. }
  668. }
  669. </style>