homeInfo.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931
  1. <template>
  2. <view>
  3. <ujp-navbar :title="pageTitle" :startGz="false" >
  4. <view class="iconfont service" @click="openModal">
  5. &#xe60d;
  6. </view>
  7. </ujp-navbar>
  8. <view class="main-back">
  9. </view>
  10. <view class="main">
  11. <view class="main-head">
  12. <view class="text" >
  13. <view class="text-1">
  14. 充电桩名称
  15. </view>
  16. <view class="text-2" >
  17. {{applyList.length?applyList[0].chargingName:''}}
  18. </view>
  19. </view>
  20. <view class="charge-img">
  21. <img src="@/assets/img/charge.png" alt="">
  22. </view>
  23. </view>
  24. <view class="charging-info" >
  25. <view class="info-title">
  26. <view class="name">设备信息</view>
  27. <view class="value">
  28. <view class="pack-up" v-show="!listShow" @click="listShow=true">
  29. 收起<text class="iconfont">&#xe607;</text>
  30. </view>
  31. <view class="pack-up" v-if="listShow" @click="listShow=false">
  32. 展开<text class="iconfont">&#xe62c;</text>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="table">
  37. <view class="row">
  38. <view class="name">设备型号</view>
  39. <view class="value">{{obj.model}}</view>
  40. </view>
  41. <view class="row">
  42. <view class="name">出厂编号</view>
  43. <view class="value">{{obj.deviceNo}}</view>
  44. </view>
  45. <template v-if="!listShow">
  46. <view class="row">
  47. <view class="name">固件版号</view>
  48. <view class="value">{{obj.firmwareVersion}}</view>
  49. </view>
  50. <view class="row">
  51. <view class="name">防护等级</view>
  52. <view class="value">{{obj.protectionGrade}}</view>
  53. </view>
  54. <view class="row">
  55. <view class="name">输入电压</view>
  56. <view class="value">{{obj.inputVoltage}}</view>
  57. </view>
  58. <view class="row">
  59. <view class="name">输出电压</view>
  60. <view class="value">{{obj.outputVoltage}}</view>
  61. </view>
  62. <view class="row">
  63. <view class="name">输出电流</view>
  64. <view class="value">{{obj.outputCurrent}}</view>
  65. </view>
  66. <view class="row">
  67. <view class="name">输出功率</view>
  68. <view class="value">{{obj.outputPower}}</view>
  69. </view>
  70. <view class="row">
  71. <view class="name">生产日期</view>
  72. <view class="value">{{obj.manufactureTime}}</view>
  73. </view>
  74. <view class="row">
  75. <view class="name">标准依据</view>
  76. <view class="value">{{obj.standardBasis}}</view>
  77. </view>
  78. <view class="row">
  79. <view class="name">联网卡号</view>
  80. <view class="value">{{obj.trafficCardNumber}}</view>
  81. </view>
  82. <view class="row">
  83. <view class="name">资费标准</view>
  84. <view class="value">{{obj.tariffStandard}}</view>
  85. </view>
  86. <view class="row">
  87. <view class="name">设备启动时间</view>
  88. <view class="value">{{obj.bindingTime}}</view>
  89. </view>
  90. <view class="row">
  91. <view class="name">设备质保期</view>
  92. <view class="value">{{obj.shelfLife}}</view>
  93. </view>
  94. </template>
  95. </view>
  96. </view>
  97. <view class="charging-info" >
  98. <view class="info-title">
  99. <view class="name">联网信息</view>
  100. <view class="value">
  101. </view>
  102. </view>
  103. <view class="table">
  104. <view class="row">
  105. <view class="name">联网卡号</view>
  106. <view class="value">{{obj.trafficCardNumber}}</view>
  107. </view>
  108. <view class="row">
  109. <view class="name">有效期至</view>
  110. <view class="value">{{obj.expirationTime?obj.expirationTime.split(' ')[0]:''}}
  111. <u-button type="primary" @click="popupShowWL=true" v-if="obj.expirationTime&&mallProductList.length"
  112. style="margin-left: 8px;" size="mini" shape="circle" >立即续期</u-button>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="tips">
  117. <u-icon
  118. style=" margin-top: 2px;"
  119. size="30"
  120. name="info-circle"
  121. ></u-icon>
  122. <view>
  123. 家用充电桩内含物联网卡,此卡随设备出厂时赠送三年免费使用时长,三年后将按5元/月资费标准收取费用。
  124. </view>
  125. </view>
  126. </view>
  127. <view class="charging-info">
  128. <view class="info-title">
  129. <view class="name">充电白名单<span class="span">({{vipUserList.length}}/3)</span></view>
  130. <view class="value" @click="addUser()">
  131. <u-icon
  132. style=" margin-top: 2px;"
  133. size="30"
  134. name="plus"
  135. ></u-icon> 添加
  136. </view>
  137. </view>
  138. <view class="table" >
  139. <table>
  140. <tr>
  141. <td>姓名</td>
  142. <td>手机号</td>
  143. <td>车牌号</td>
  144. <td>操作</td>
  145. </tr>
  146. <tr v-for="(item,i) in vipUserList" :key="i">
  147. <td>{{item.userName}}</td>
  148. <td>{{item.phone}}</td>
  149. <td>{{item.carNum==0?'':item.carNum}}</td>
  150. <td class="" style="color:#1677FF" @click="editUser(item)" >修改</td>
  151. </tr>
  152. </table>
  153. </view>
  154. </view>
  155. </view>
  156. <u-popup v-model="popupShowWL" mode="bottom" :closeable="true" border-radius="30" >
  157. <view class="popup-screen">
  158. <view class="popup-title">物联网卡续期
  159. <span style="color: rgba(102, 102, 102, 1);font-weight: 400;">
  160. 有效期至<span style="color: red;">{{obj.expirationTime?obj.expirationTime.split(' ')[0]:''}}</span>
  161. </span>
  162. </view>
  163. <view class="cardList">
  164. <view class="cardInfo" v-for="(item,i) in mallProductList" :key="i"
  165. @click="wlkid=item.id"
  166. :class="{
  167. cardInfoCk:item.id==wlkid
  168. }" >
  169. <view class="name">{{item.remark}}</view>
  170. <view class="price">{{item.price}}元</view>
  171. </view>
  172. </view>
  173. <!-- 支付方式 -->
  174. <view class="payment">
  175. <view class="title">
  176. 选择支付方式
  177. </view>
  178. <radio-group @change="radioChange">
  179. <view class="way">
  180. <view class="way-name">
  181. <text><img src="@/assets/img/riFill-wechat-pay-fill@3x.png" alt=""></text>
  182. 微信支付
  183. </view>
  184. <view class="way-radio">
  185. <label class="radio">
  186. <radio value="0" name="abc" :checked="submitType === '0'" /><text></text>
  187. </label>
  188. </view>
  189. </view>
  190. <view class="way">
  191. <view class="way-name">
  192. <text><img src="@/assets/img/ze-alipay Copy@3x.png" alt=""></text>
  193. 支付宝
  194. </view>
  195. <view class="way-radio">
  196. <label class="radio">
  197. <radio value="1" name="abc" :checked="submitType === '1'" /><text></text>
  198. </label>
  199. </view>
  200. </view>
  201. </radio-group>
  202. </view>
  203. <u-button type="success" style="margin-top: 10px;" @click="submitWLK"
  204. shape="circle" >确认充值</u-button>
  205. </view>
  206. </u-popup>
  207. <u-modal v-model="showModelzfb" :show-cancel-button="true" @confirm="confirmzfb"
  208. confirm-text="支付成功?" title="扫码支付">
  209. <view style="
  210. text-align: center;
  211. ">
  212. <img id="qrcode2" :src="qrCodeImg">
  213. </view>
  214. <view style="
  215. text-align: center;
  216. ">请使用支付宝扫码</view>
  217. </u-modal>
  218. <img id="qrcode" style="display: none;">
  219. <u-popup v-model="popupShow" mode="bottom" :closeable="true" border-radius="30" >
  220. <view class="popup-screen">
  221. <view class="popup-title">{{vipUser.id?'修改':'添加'}}白名单信息</view>
  222. <view style="padding: 4px;" >白名单车主姓名<span style="color: red;">*</span></view>
  223. <u-input :customStyle="customStyle" v-model="vipUser.name"
  224. placeholder="白名单车主姓名(必填)"></u-input>
  225. <view style="padding: 4px;">白名单车主手机号码<span style="color: red;">*</span></view>
  226. <u-input :customStyle="customStyle" type="number" v-model="vipUser.phone"
  227. placeholder="白名单车主手机号码(必填)"></u-input>
  228. <view style="padding: 4px;">白名单车主车牌号</view>
  229. <u-input :customStyle="customStyle" v-model="vipUser.carNum"
  230. placeholder="白名单车主车牌号"></u-input>
  231. <view v-if="vipUser.id" style="display: flex;">
  232. <u-button type="info" style="margin-top: 10px;width: 49%;"
  233. shape="circle" @click="delUser()">删除</u-button>
  234. <u-button type="success" style="margin-top: 10px;width: 49%;"
  235. shape="circle" @click="submitUser()">保存</u-button>
  236. </view>
  237. <view v-else>
  238. <u-button type="success" style="margin-top: 10px;"
  239. shape="circle" @click="submitUser()">保存</u-button>
  240. </view>
  241. </view>
  242. </u-popup>
  243. <view class="botton">
  244. <button class="bottonBtn" @click="bindingHomePile">开始充电</button>
  245. </view>
  246. <u-modal v-model="delShow" @confirm="confirmDelete" confirm-color="#fa3534" :show-cancel-button="true" ref="uModal" title="删除白名单用户"
  247. content="是否删除当前白名单用户?" confirm-text="删除"></u-modal>
  248. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
  249. :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone"
  250. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  251. </view>
  252. </template>
  253. <script>
  254. import * as API from '@/apis/mall.js'
  255. import * as WxJsApi from '@/utils/wxJsApi.js'
  256. import QRCode from 'qrcodejs2'
  257. import * as API_apply from '@/apis/apply.js'
  258. import {
  259. convertCanvasToImage
  260. } from '@/utils'
  261. import {
  262. wxPayJs
  263. } from '@/utils/wxpay'
  264. export default {
  265. components: {
  266. },
  267. data() {
  268. return {
  269. pageTitle:"充电枪详情",
  270. show:false,
  271. consumerPhone:"",
  272. title: '联系客服',
  273. confirmText: '拨打电话',
  274. listShow:true,
  275. popupShow:false,
  276. popupShowWL:false,
  277. customStyle:{
  278. "border-radius": "50px",
  279. "background-color": 'rgba(242, 244, 246, 1)',
  280. padding:"5px 20px",
  281. margin:"5px 0 "
  282. },
  283. applyList:[],
  284. vipUserList:[],
  285. vipUser:{},
  286. delShow:false,
  287. obj:{},
  288. showModelzfb:false,
  289. qrCodeImg: "",
  290. submitForm:{},
  291. submitType:"0",
  292. wlkid:"",
  293. mallProductList:[],
  294. cardList:[
  295. {
  296. name:"包年",
  297. price:60,
  298. id:"c4474038-2921-4cd1-8cf9-93755de7ec2c"
  299. },
  300. {
  301. id:"9c247fb3-097e-46be-9317-d2ae2075e6eb",
  302. name:"1个月",
  303. price:5
  304. },
  305. {
  306. name:"3个月",
  307. price:15
  308. }
  309. ]
  310. }
  311. },
  312. computed: {
  313. },
  314. onShow() {
  315. },
  316. onReady() {
  317. var consumerPhone = "400-8899-619"
  318. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  319. if (consumerPhone) {
  320. this.consumerPhone = consumerPhone
  321. }
  322. },
  323. onLoad(op) {
  324. this.myApplyList()
  325. this.trafficCardMallList()
  326. },
  327. methods: {
  328. confirmzfb(){
  329. this.popupShowWL=false;
  330. uni.showLoading({
  331. title: "加载中",
  332. mask: true,
  333. })
  334. this.findDeviceByNo()
  335. },
  336. submitWLK(){
  337. if(!this.wlkid){
  338. uni.showToast({
  339. title: "请选择购买商品"
  340. })
  341. return
  342. }
  343. var type=this.submitType
  344. if (type == 0) {
  345. this.wxpy()
  346. }
  347. if (type == 1) {
  348. this.alpy()
  349. }
  350. },
  351. alpy() {
  352. uni.showLoading({
  353. title: "加载中",
  354. mask: true,
  355. })
  356. var listcanvas = document.getElementsByTagName('canvas')
  357. if (listcanvas.length > 0) {
  358. document.getElementById("qrcode").removeChild(document.getElementsByTagName('canvas')[0]);
  359. }
  360. var item=this.applyList[0]
  361. API.tradePrecreatePay({
  362. deviceNo:item.deviceNo,
  363. productId: this.wlkid,
  364. opinions:"",
  365. buyNum:1,
  366. receiver:"x",
  367. contactPhone:"x",
  368. deliveryAddress:"x",
  369. }).then((response) => {
  370. console.log(response)
  371. let qrcode = new QRCode('qrcode', {
  372. width: 200,
  373. height: 200,
  374. text: response.data.qr_code,
  375. correctLevel: QRCode.CorrectLevel.M,
  376. })
  377. //this.outOrderNo = response.data.outOrderNo;
  378. var canvas = document.getElementsByTagName('canvas')[0];
  379. this.qrCodeImg = convertCanvasToImage(canvas);
  380. uni.hideLoading()
  381. this.showModelzfb = true
  382. }).catch(error => {
  383. uni.showToast({
  384. title: error
  385. })
  386. })
  387. },
  388. wxpy() {
  389. var item=this.applyList[0]
  390. API.wxJsapiPay({
  391. deviceNo:item.deviceNo,
  392. productId: this.wlkid,
  393. opinions:"",
  394. buyNum:1,
  395. receiver:"x",
  396. contactPhone:"x",
  397. deliveryAddress:"x",
  398. }).then((response) => {
  399. this.submitForm = response.data
  400. wxPayJs(this.submitForm);
  401. }).catch(error => {
  402. uni.showToast({
  403. title: error
  404. })
  405. })
  406. },
  407. radioChange: function(evt) {
  408. this.submitType=evt.detail.value
  409. },
  410. submitUser(){
  411. if(!this.vipUser.name){
  412. uni.showToast({
  413. title: "请填写白名单车主姓名"
  414. })
  415. return
  416. }
  417. if(!this.vipUser.phone){
  418. uni.showToast({
  419. title: "请填写白名单车主手机号码"
  420. })
  421. return
  422. }
  423. uni.showLoading({
  424. title: "加载中",
  425. mask: true,
  426. })
  427. API_apply.saveVipUser(this.vipUser).then((res) => {
  428. //this.obj = res.data
  429. uni.hideLoading()
  430. this.delShow=false
  431. this.popupShow=false
  432. this.findVipUser(1)
  433. }).catch(error => {
  434. uni.showToast({
  435. title: error
  436. })
  437. })
  438. },
  439. confirmDelete(){
  440. uni.showLoading({
  441. title: "加载中",
  442. mask: true,
  443. })
  444. API_apply.deleteVipUser({
  445. id:this.vipUser.id
  446. }).then((res) => {
  447. //this.obj = res.data
  448. uni.hideLoading()
  449. this.delShow=false
  450. this.popupShow=false
  451. uni.showToast({
  452. title: "操作成功"
  453. })
  454. this.findVipUser(1)
  455. }).catch(error => {
  456. uni.showToast({
  457. title: error
  458. })
  459. })
  460. },
  461. delUser(){
  462. this.delShow=true;
  463. },
  464. editUser(item){
  465. this.popupShow=true;
  466. this.vipUser=item;
  467. this.vipUser.name=item.userName
  468. var item=this.applyList[0]
  469. this.vipUser.stationId=item.stationId
  470. if(this.vipUser.carNum==0){
  471. this.vipUser.carNum=''
  472. }
  473. },
  474. addUser(){
  475. if(this.vipUserList.length>=3){
  476. uni.showToast({
  477. title: "添加白名单用户已达到上限"
  478. })
  479. return
  480. }
  481. this.popupShow=true;
  482. this.vipUser={}
  483. var item=this.applyList[0]
  484. this.vipUser.stationId=item.stationId
  485. },
  486. bindingHomePile(){
  487. var item=this.applyList[0]
  488. uni.navigateTo({
  489. url:'/pages/searchPile/stationAndPile/chargingPileDetails?isback=1&id='+item.gunNo
  490. })
  491. },
  492. trafficCardMallList(){
  493. API.trafficCardMallList({
  494. }).then((res) => {
  495. this.mallProductList=res.data.mallProductList
  496. if(this.mallProductList.length){
  497. this.wlkid=this.mallProductList[0].id
  498. }
  499. }).catch(error => {
  500. uni.showToast({
  501. title: error
  502. })
  503. })
  504. },
  505. findDeviceByNo(){
  506. var item=this.applyList[0]
  507. API_apply.findDeviceByNoD({
  508. deviceNo:item.deviceNo
  509. }).then((res) => {
  510. this.obj = res.data.chargingDevice
  511. uni.hideLoading()
  512. }).catch(error => {
  513. uni.showToast({
  514. title: error
  515. })
  516. })
  517. },
  518. findVipUser(bl){
  519. if(bl){
  520. uni.showLoading({
  521. title: "加载中",
  522. mask: true,
  523. })
  524. }
  525. var item=this.applyList[0]
  526. this.vipUserList=[]
  527. API_apply.findVipUser({
  528. stationId:item.stationId
  529. }).then((res) => {
  530. if(bl){
  531. uni.hideLoading()
  532. uni.showToast({
  533. title: "操作成功"
  534. })
  535. }
  536. this.vipUserList=res.data.vipUserList
  537. }).catch(error => {
  538. uni.showToast({
  539. title: error
  540. })
  541. })
  542. },
  543. myApplyList(){
  544. uni.showLoading({
  545. title: "加载中",
  546. mask: true,
  547. })
  548. API_apply.myApplyList({
  549. }).then((res) => {
  550. //this.obj = res.data
  551. this.applyList=res.data.applyList;
  552. this.findVipUser()
  553. this.findDeviceByNo()
  554. }).catch(error => {
  555. uni.showToast({
  556. title: error
  557. })
  558. })
  559. },
  560. confirmPhone() {
  561. this.show = false;
  562. uni.makePhoneCall({
  563. phoneNumber: this.consumerPhone //仅为示例
  564. });
  565. },
  566. openModal() {
  567. this.show = true;
  568. },
  569. },
  570. }
  571. </script>
  572. <style lang="scss">
  573. // 支付方式
  574. .payment {
  575. margin: 24rpx;
  576. padding: 32rpx 0rpx;
  577. background-color: #fff;
  578. .title {
  579. color: rgba(51, 51, 51, 1);
  580. font-size: 32rpx;
  581. margin-bottom: 32rpx;
  582. font-weight: bold;
  583. }
  584. .way {
  585. display: flex;
  586. justify-content: space-between;
  587. align-items: center;
  588. margin-top: 24rpx;
  589. .way-name {
  590. display: flex;
  591. align-items: center;
  592. text {
  593. margin-right: 16rpx;
  594. img {
  595. width: 48rpx;
  596. height: 48rpx;
  597. vertical-align: middle;
  598. }
  599. }
  600. }
  601. ::v-deep.uni-radio-input-checked {
  602. background-color: #00b962 !important;
  603. }
  604. ::v-deep.uni-radio-input {
  605. width: 40rpx !important;
  606. height: 40rpx !important;
  607. }
  608. }
  609. }
  610. page {
  611. background-color: #F6F8F8;
  612. padding-bottom: 100px;
  613. }
  614. .service {
  615. font-size: 24px;
  616. color: #101010;
  617. position: absolute;
  618. right: 16px;
  619. }
  620. .main {
  621. position: absolute;
  622. top: 80rpx;
  623. padding: 32rpx ;
  624. padding-bottom: 140rpx;
  625. //background-image: linear-gradient(#D6EEDC, #F6F8F8);
  626. .text-1 {
  627. color: rgba(255, 255, 255, 0.8);
  628. font-size:36rpx;
  629. margin-top: 20rpx;
  630. }
  631. .text-2 {
  632. color: rgba(255, 255, 255, 1);
  633. font-size: 40rpx;
  634. margin-top: 10rpx;
  635. }
  636. .charging-info {
  637. position: relative;
  638. background-color: #fff;
  639. margin: 20rpx auto;
  640. border-radius: 12px;
  641. padding: 20rpx 32rpx;
  642. .info-title{
  643. display: flex;
  644. justify-content: space-between;
  645. padding-bottom: 24rpx ;
  646. .name{
  647. font-size: 36rpx;
  648. color: rgba(51, 51, 51, 1);
  649. font-weight: bold;
  650. .span{
  651. font-weight: 400;
  652. font-size: 28rpx;
  653. color: rgba(119, 119, 119, 1);
  654. }
  655. }
  656. .value{
  657. font-size: 28rpx;
  658. color: rgba(119, 119, 119, 1);
  659. }
  660. }
  661. .pack-up {
  662. color: rgba(119, 119, 119, 100);
  663. }
  664. .tips{
  665. margin-top: 12rpx;
  666. display: flex;
  667. align-items: flex-start;
  668. font-size: 24rpx;
  669. }
  670. }
  671. }
  672. .main-head {
  673. display: flex;
  674. justify-content: space-between;
  675. }
  676. .main-back{
  677. background: linear-gradient(180deg, rgba(0,185,98,1) 18%,rgba(137,218,182,1) 70%,rgba(242,244,246,1) 100%);
  678. height: 360rpx;
  679. }
  680. .charge-img {
  681. //overflow: hidden;
  682. height: 160rpx;
  683. margin-right: 40rpx;
  684. // margin-right: 16rpx;
  685. img {
  686. //width: 65%;
  687. width: 100rpx;
  688. }
  689. }
  690. // 尾部
  691. .botton {
  692. border: 1px solid rgba(242, 242, 242, 1);
  693. background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  694. position: fixed;
  695. //background: #fff;
  696. width: 100%;
  697. padding: 24rpx 40rpx;
  698. line-height: 88rpx;
  699. bottom: 0;
  700. left: 0;
  701. z-index: 999;
  702. //padding: 0px 32rpx 32rpx;
  703. padding-bottom: 12px;
  704. button {
  705. margin-left: 40rpx;
  706. display: flex;
  707. align-items: center;
  708. justify-content: center;
  709. //width: 45.8%;
  710. // background-color: black;
  711. // color: #fff;
  712. // background-color: rgba(255, 255, 255, 1);
  713. // color: rgba(0, 185, 98, 1);
  714. background-color: rgba(0, 185, 98, 100);
  715. color: rgba(255, 255, 255, 100);
  716. height: 88rpx;
  717. border-radius: 50px;
  718. font-size: 32rpx;
  719. }
  720. }
  721. .table{
  722. table{
  723. width: 100%;
  724. }
  725. .row{
  726. display: flex;
  727. align-items: center;
  728. height: 72rpx;
  729. font-size: 28rpx;
  730. padding: 0 24rpx;
  731. .name{
  732. width: 240rpx;
  733. }
  734. }
  735. td{
  736. height: 72rpx;
  737. font-size: 28rpx;
  738. padding: 0 24rpx;
  739. }
  740. /* 隔行变色: 偶数行设置背景色 */
  741. .row:nth-child(odd) {
  742. background-color: #f9f9f9; /* 偶数行 */
  743. }
  744. tr:nth-child(odd) {
  745. background-color: #f9f9f9; /* 偶数行 */
  746. }
  747. .row:nth-child(even) {
  748. background-color: #ffffff; /* 奇数行 */
  749. }
  750. tr:nth-child(even) {
  751. background-color: #ffffff; /* 奇数行 */
  752. }
  753. }
  754. .popup-screen{
  755. padding: 40rpx;
  756. .popup-title{
  757. font-size: 36rpx;
  758. color: rgba(51, 51, 51, 1);
  759. font-weight: bold;
  760. padding-bottom: 10px;
  761. }
  762. .cardList{
  763. display: flex;
  764. justify-content: space-evenly;
  765. .cardInfo{
  766. display: flex;
  767. flex-direction: column;
  768. justify-content: center;
  769. width: 160rpx;
  770. height: 160rpx;
  771. border-radius: 8px;
  772. background-color: rgba(255, 255, 255, 1);
  773. text-align: center;
  774. border: 1px solid rgba(187, 187, 187, 1);
  775. .name{
  776. color: rgba(16, 16, 16, 1);
  777. font-size: 28rpx;
  778. }
  779. .price{
  780. color: rgba(16, 16, 16, 1);
  781. font-size: 48rpx;
  782. font-weight: bold;
  783. }
  784. }
  785. .cardInfoCk{
  786. background-color: rgba(225, 247, 237, 1);
  787. border: 1px solid rgba(0, 185, 98, 1);
  788. .price{
  789. color: rgba(0, 161, 85, 1);
  790. }
  791. }
  792. }
  793. }
  794. </style>