homeInfo.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  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" v-if="0" @click="popupShowWL=true" v-if="obj.expirationTime"
  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 cardList" :key="i"
  165. @click="wlkid=item.id"
  166. :class="{
  167. cardInfoCk:item.id==wlkid
  168. }" >
  169. <view class="name">{{item.name}}</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="vipUser.id">
  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 * as API_apply from '@/apis/apply.js'
  257. import {
  258. convertCanvasToImage
  259. } from '@/utils'
  260. import {
  261. wxPayJs
  262. } from '@/utils/wxpay'
  263. export default {
  264. components: {
  265. },
  266. data() {
  267. return {
  268. pageTitle:"充电枪详情",
  269. show:false,
  270. consumerPhone:"",
  271. title: '联系客服',
  272. confirmText: '拨打电话',
  273. listShow:true,
  274. popupShow:false,
  275. popupShowWL:false,
  276. customStyle:{
  277. "border-radius": "50px",
  278. "background-color": 'rgba(242, 244, 246, 1)',
  279. padding:"5px 20px",
  280. margin:"5px 0 "
  281. },
  282. applyList:[],
  283. vipUserList:[],
  284. vipUser:{},
  285. delShow:false,
  286. obj:{},
  287. showModelzfb:false,
  288. qrCodeImg: "",
  289. submitForm:{},
  290. submitType:"0",
  291. wlkid:"c4474038-2921-4cd1-8cf9-93755de7ec2c",
  292. cardList:[
  293. {
  294. name:"包年",
  295. price:60,
  296. id:"c4474038-2921-4cd1-8cf9-93755de7ec2c"
  297. },
  298. {
  299. id:"9c247fb3-097e-46be-9317-d2ae2075e6eb",
  300. name:"1个月",
  301. price:5
  302. },
  303. {
  304. name:"3个月",
  305. price:15
  306. }
  307. ]
  308. }
  309. },
  310. computed: {
  311. },
  312. onShow() {
  313. },
  314. onReady() {
  315. var consumerPhone = "400-8899-619"
  316. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  317. if (consumerPhone) {
  318. this.consumerPhone = consumerPhone
  319. }
  320. },
  321. onLoad(op) {
  322. this.myApplyList()
  323. },
  324. methods: {
  325. submitWLK(){
  326. var type=this.submitType
  327. if (type == 0) {
  328. this.wxpy()
  329. }
  330. if (type == 1) {
  331. this.alpy()
  332. }
  333. },
  334. alpy() {
  335. uni.showLoading({
  336. title: "加载中",
  337. mask: true,
  338. })
  339. var listcanvas = document.getElementsByTagName('canvas')
  340. if (listcanvas.length > 0) {
  341. document.getElementById("qrcode").removeChild(document.getElementsByTagName('canvas')[0]);
  342. }
  343. API.tradePrecreatePay({
  344. productId: this.id,
  345. opinions:this.opinions,
  346. buyNum:1,
  347. receiver:this.receiver,
  348. contactPhone:this.contactPhone,
  349. deliveryAddress:this.deliveryAddress,
  350. }).then((response) => {
  351. let qrcode = new QRCode('qrcode', {
  352. width: 200,
  353. height: 200,
  354. text: response.data.qr_code,
  355. correctLevel: QRCode.CorrectLevel.M,
  356. })
  357. this.outOrderNo = response.data.outOrderNo;
  358. var canvas = document.getElementsByTagName('canvas')[0];
  359. this.qrCodeImg = convertCanvasToImage(canvas);
  360. uni.hideLoading()
  361. this.showModel = true
  362. }).catch(error => {
  363. uni.showToast({
  364. title: error
  365. })
  366. })
  367. },
  368. wxpy() {
  369. API.wxJsapiPay({
  370. productId: this.wlkid,
  371. opinions:"",
  372. buyNum:1,
  373. receiver:"x",
  374. contactPhone:"x",
  375. deliveryAddress:"x",
  376. }).then((response) => {
  377. this.submitForm = response.data
  378. wxPayJs(this.submitForm);
  379. }).catch(error => {
  380. uni.showToast({
  381. title: error
  382. })
  383. })
  384. },
  385. radioChange: function(evt) {
  386. this.submitType=evt.detail.value
  387. },
  388. submitUser(){
  389. if(!this.vipUser.name){
  390. uni.showToast({
  391. title: "请填写白名单车主姓名"
  392. })
  393. return
  394. }
  395. if(!this.vipUser.phone){
  396. uni.showToast({
  397. title: "请填写白名单车主手机号码"
  398. })
  399. return
  400. }
  401. uni.showLoading({
  402. title: "加载中",
  403. mask: true,
  404. })
  405. API_apply.saveVipUser(this.vipUser).then((res) => {
  406. //this.obj = res.data
  407. uni.hideLoading()
  408. this.delShow=false
  409. this.popupShow=false
  410. this.findVipUser(1)
  411. }).catch(error => {
  412. uni.showToast({
  413. title: error
  414. })
  415. })
  416. },
  417. confirmDelete(){
  418. uni.showLoading({
  419. title: "加载中",
  420. mask: true,
  421. })
  422. API_apply.deleteVipUser({
  423. id:this.vipUser.id
  424. }).then((res) => {
  425. //this.obj = res.data
  426. uni.hideLoading()
  427. this.delShow=false
  428. this.popupShow=false
  429. uni.showToast({
  430. title: "操作成功"
  431. })
  432. this.findVipUser(1)
  433. }).catch(error => {
  434. uni.showToast({
  435. title: error
  436. })
  437. })
  438. },
  439. delUser(){
  440. this.delShow=true;
  441. },
  442. editUser(item){
  443. this.popupShow=true;
  444. this.vipUser=item;
  445. this.vipUser.name=item.userName
  446. var item=this.applyList[0]
  447. this.vipUser.stationId=item.stationId
  448. if(this.vipUser.carNum==0){
  449. this.vipUser.carNum=''
  450. }
  451. },
  452. addUser(){
  453. if(this.vipUserList.length>=3){
  454. uni.showToast({
  455. title: "添加白名单用户已达到上限"
  456. })
  457. return
  458. }
  459. this.popupShow=true;
  460. this.vipUser={}
  461. var item=this.applyList[0]
  462. this.vipUser.stationId=item.stationId
  463. },
  464. bindingHomePile(){
  465. var item=this.applyList[0]
  466. uni.navigateTo({
  467. url:'/pages/searchPile/stationAndPile/chargingPileDetails?isback=1&id='+item.gunNo
  468. })
  469. },
  470. findDeviceByNo(){
  471. var item=this.applyList[0]
  472. API_apply.findDeviceByNoD({
  473. deviceNo:item.deviceNo
  474. }).then((res) => {
  475. this.obj = res.data.chargingDevice
  476. uni.hideLoading()
  477. }).catch(error => {
  478. uni.showToast({
  479. title: error
  480. })
  481. })
  482. },
  483. findVipUser(bl){
  484. if(bl){
  485. uni.showLoading({
  486. title: "加载中",
  487. mask: true,
  488. })
  489. }
  490. var item=this.applyList[0]
  491. this.vipUserList=[]
  492. API_apply.findVipUser({
  493. stationId:item.stationId
  494. }).then((res) => {
  495. if(bl){
  496. uni.hideLoading()
  497. uni.showToast({
  498. title: "操作成功"
  499. })
  500. }
  501. this.vipUserList=res.data.vipUserList
  502. }).catch(error => {
  503. uni.showToast({
  504. title: error
  505. })
  506. })
  507. },
  508. myApplyList(){
  509. uni.showLoading({
  510. title: "加载中",
  511. mask: true,
  512. })
  513. API_apply.myApplyList({
  514. }).then((res) => {
  515. //this.obj = res.data
  516. this.applyList=res.data.applyList;
  517. this.findVipUser()
  518. this.findDeviceByNo()
  519. }).catch(error => {
  520. uni.showToast({
  521. title: error
  522. })
  523. })
  524. },
  525. confirmPhone() {
  526. this.show = false;
  527. uni.makePhoneCall({
  528. phoneNumber: this.consumerPhone //仅为示例
  529. });
  530. },
  531. openModal() {
  532. this.show = true;
  533. },
  534. },
  535. }
  536. </script>
  537. <style lang="scss">
  538. // 支付方式
  539. .payment {
  540. margin: 24rpx;
  541. padding: 32rpx 0rpx;
  542. background-color: #fff;
  543. .title {
  544. color: rgba(51, 51, 51, 1);
  545. font-size: 32rpx;
  546. margin-bottom: 32rpx;
  547. font-weight: bold;
  548. }
  549. .way {
  550. display: flex;
  551. justify-content: space-between;
  552. align-items: center;
  553. margin-top: 24rpx;
  554. .way-name {
  555. display: flex;
  556. align-items: center;
  557. text {
  558. margin-right: 16rpx;
  559. img {
  560. width: 48rpx;
  561. height: 48rpx;
  562. vertical-align: middle;
  563. }
  564. }
  565. }
  566. /deep/.uni-radio-input-checked {
  567. background-color: #00b962 !important;
  568. }
  569. /deep/.uni-radio-input {
  570. width: 40rpx !important;
  571. height: 40rpx !important;
  572. }
  573. }
  574. }
  575. page {
  576. background-color: #F6F8F8;
  577. padding-bottom: 100px;
  578. }
  579. .service {
  580. font-size: 24px;
  581. color: #101010;
  582. position: absolute;
  583. right: 16px;
  584. }
  585. .main {
  586. position: absolute;
  587. top: 80rpx;
  588. padding: 32rpx ;
  589. padding-bottom: 140rpx;
  590. //background-image: linear-gradient(#D6EEDC, #F6F8F8);
  591. .text-1 {
  592. color: rgba(255, 255, 255, 0.8);
  593. font-size:36rpx;
  594. margin-top: 20rpx;
  595. }
  596. .text-2 {
  597. color: rgba(255, 255, 255, 1);
  598. font-size: 40rpx;
  599. margin-top: 10rpx;
  600. }
  601. .charging-info {
  602. position: relative;
  603. background-color: #fff;
  604. margin: 20rpx auto;
  605. border-radius: 12px;
  606. padding: 20rpx 32rpx;
  607. .info-title{
  608. display: flex;
  609. justify-content: space-between;
  610. padding-bottom: 24rpx ;
  611. .name{
  612. font-size: 36rpx;
  613. color: rgba(51, 51, 51, 1);
  614. font-weight: bold;
  615. .span{
  616. font-weight: 400;
  617. font-size: 28rpx;
  618. color: rgba(119, 119, 119, 1);
  619. }
  620. }
  621. .value{
  622. font-size: 28rpx;
  623. color: rgba(119, 119, 119, 1);
  624. }
  625. }
  626. .pack-up {
  627. color: rgba(119, 119, 119, 100);
  628. }
  629. .tips{
  630. margin-top: 12rpx;
  631. display: flex;
  632. align-items: flex-start;
  633. font-size: 24rpx;
  634. }
  635. }
  636. }
  637. .main-head {
  638. display: flex;
  639. justify-content: space-between;
  640. }
  641. .main-back{
  642. background: linear-gradient(180deg, rgba(0,185,98,1) 18%,rgba(137,218,182,1) 70%,rgba(242,244,246,1) 100%);
  643. height: 360rpx;
  644. }
  645. .charge-img {
  646. //overflow: hidden;
  647. height: 160rpx;
  648. margin-right: 40rpx;
  649. // margin-right: 16rpx;
  650. img {
  651. //width: 65%;
  652. width: 100rpx;
  653. }
  654. }
  655. // 尾部
  656. .botton {
  657. border: 1px solid rgba(242, 242, 242, 1);
  658. background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  659. position: fixed;
  660. //background: #fff;
  661. width: 100%;
  662. padding: 24rpx 40rpx;
  663. line-height: 88rpx;
  664. bottom: 0;
  665. left: 0;
  666. z-index: 999;
  667. //padding: 0px 32rpx 32rpx;
  668. padding-bottom: 12px;
  669. button {
  670. margin-left: 40rpx;
  671. display: flex;
  672. align-items: center;
  673. justify-content: center;
  674. //width: 45.8%;
  675. // background-color: black;
  676. // color: #fff;
  677. // background-color: rgba(255, 255, 255, 1);
  678. // color: rgba(0, 185, 98, 1);
  679. background-color: rgba(0, 185, 98, 100);
  680. color: rgba(255, 255, 255, 100);
  681. height: 88rpx;
  682. border-radius: 50px;
  683. font-size: 32rpx;
  684. }
  685. }
  686. .table{
  687. table{
  688. width: 100%;
  689. }
  690. .row{
  691. display: flex;
  692. align-items: center;
  693. height: 72rpx;
  694. font-size: 28rpx;
  695. padding: 0 24rpx;
  696. .name{
  697. width: 240rpx;
  698. }
  699. }
  700. td{
  701. height: 72rpx;
  702. font-size: 28rpx;
  703. padding: 0 24rpx;
  704. }
  705. /* 隔行变色: 偶数行设置背景色 */
  706. .row:nth-child(odd) {
  707. background-color: #f9f9f9; /* 偶数行 */
  708. }
  709. tr:nth-child(odd) {
  710. background-color: #f9f9f9; /* 偶数行 */
  711. }
  712. .row:nth-child(even) {
  713. background-color: #ffffff; /* 奇数行 */
  714. }
  715. tr:nth-child(even) {
  716. background-color: #ffffff; /* 奇数行 */
  717. }
  718. }
  719. .popup-screen{
  720. padding: 40rpx;
  721. .popup-title{
  722. font-size: 36rpx;
  723. color: rgba(51, 51, 51, 1);
  724. font-weight: bold;
  725. padding-bottom: 10px;
  726. }
  727. .cardList{
  728. display: flex;
  729. justify-content: space-evenly;
  730. .cardInfo{
  731. display: flex;
  732. flex-direction: column;
  733. justify-content: center;
  734. width: 80px;
  735. height: 80px;
  736. border-radius: 8px;
  737. background-color: rgba(255, 255, 255, 1);
  738. text-align: center;
  739. border: 1px solid rgba(187, 187, 187, 1);
  740. .name{
  741. color: rgba(16, 16, 16, 1);
  742. font-size: 14px;
  743. }
  744. .price{
  745. color: rgba(16, 16, 16, 1);
  746. font-size: 24px;
  747. font-weight: bold;
  748. }
  749. }
  750. .cardInfoCk{
  751. background-color: rgba(225, 247, 237, 1);
  752. border: 1px solid rgba(0, 185, 98, 1);
  753. .price{
  754. color: rgba(0, 161, 85, 1);
  755. }
  756. }
  757. }
  758. }
  759. </style>