index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814
  1. <template>
  2. <view class="">
  3. <view class="chooseTap">
  4. <view class="tap-btn" @click="chooseServer(1)">
  5. <view :class="[tar === 1?'line':'noline']">
  6. 平台服务
  7. </view>
  8. </view>
  9. <view style="width: 1px;height: 40rpx;background-color: #E4E4E4;"></view>
  10. <view class="tap-btn" @click="chooseServer(2)">
  11. <view :class="[tar === 2?'line':'noline']">
  12. 个人套餐
  13. </view>
  14. </view>
  15. </view>
  16. <view style="height: 80rpx;"></view>
  17. <view class="search">
  18. <view class="searchCard">
  19. <view class="input">
  20. <view style="display: flex;align-items: center;">
  21. <text class="iconfont icon-sousuo2"></text>
  22. <input style="margin-left: 20rpx;" type="text" placeholder="输入关键字搜索" v-model="search"
  23. placeholder-class="co" />
  24. </view>
  25. <view class="bnt" @click="submit">搜索</view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="body" v-if="tar === 1">
  30. <view class="menuLeft" :style="{height:swiperHeight+'px'}">
  31. <view v-for="(item, index) in dataList" :key="index" :class="menu==index?'chooseMenu':'menu'"
  32. @click="chooseMenu(index)">
  33. <view style="width: 100%;">
  34. <image v-if="menu==index" :src="require('../../../static/chooseMenu.png')">
  35. {{item.serviceName}}
  36. </view>
  37. <view v-if="item.num!=0" class="span">{{item.num}}</view>
  38. </view>
  39. <view style="height: 200rpx;"></view>
  40. </view>
  41. <view class="bodyRight" :style="{height:swiperHeight+'px'}">
  42. <view class="card" v-for="(item, index) in dataList[menu].serviceTwoList" :key="index">
  43. <view class="content">
  44. <view class="title">
  45. {{item.name}}
  46. </view>
  47. <view class="price">
  48. <span>参考价</span>¥{{item.price}}
  49. </view>
  50. </view>
  51. <view class="radios">
  52. <radio-group>
  53. <radio style="transform:scale(0.7)" color="#0078FF" :checked="item.isSelected == 1"
  54. @tap="radioChange(item,index)" />
  55. </radio-group>
  56. </view>
  57. </view>
  58. <view style="height: 200rpx;"></view>
  59. </view>
  60. </view>
  61. <view class="body02" v-else>
  62. <view class="mainView" v-for="(item,index) in datasList" :key="index">
  63. <view class="viewBlock">
  64. <view class="goodsInfo">
  65. <image :src="imgPath+item.imgUrl" class="goodsImg"></image>
  66. <view class="infoBlock">
  67. <view style="font-size: 32rpx;font-weight: bold;">{{item.packageName}}</view>
  68. <view>
  69. <view style="color: #005BFF;font-size: 24rpx;font-weight: 500;">{{item.invalidTime}}前有效
  70. </view>
  71. <view style="font-size: 24rpx;font-weight: bold;">
  72. {{item.num + '/'+item.allNum}}
  73. <text style="color: #999999;font-size: 24rpx;font-weight: 500;">个项目可用</text>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view v-for="(datas,count) in item.userPackageSerVOS" :key="count"
  79. style="display: flex;align-items: center;justify-content: space-between;margin: 40rpx 0;">
  80. <view style="font-size: 26rpx;color: #666666;">{{datas.sstName}}</view>
  81. <view style="width: 180rpx;height: 1px;border-top: 1px dashed #CCCCCC;"></view>
  82. <view style="font-size: 26rpx;font-weight: 500;color: #666666;">×{{datas.buyNum}}</view>
  83. <view style="font-size: 24rpx;font-weight: 500;color: #666666">余
  84. <text style="color:#005BFF">{{datas.surplusSum}}</text>
  85. </view>
  86. <view class="radios">
  87. <radio-group>
  88. <radio style="transform:scale(0.7)" color="#0078FF" :checked="datas.isSelected == 1"
  89. @tap="radioChanges(datas,count,index)" />
  90. </radio-group>
  91. </view>
  92. </view>
  93. </view>
  94. <view style="width:100%;height:20rpx;margin-top:10rpx;background-color:#F5F5F5"></view>
  95. </view>
  96. </view>
  97. <view class="bottomBtn">
  98. <view class="leftView" @click="showAction()">
  99. <image class="carImg" :src="require('../../../static/car.png')">
  100. <view class="chooseNum">
  101. 已选<span>{{chooseNum}}</span>项
  102. </view>
  103. <image class="upImg" :src="require('../../../static/up.png')">
  104. </view>
  105. <view class="rightView" @tap="goBack(chooseNum)">
  106. 确定
  107. </view>
  108. </view>
  109. <ActionSheet :show="show" :mask-closable="maskClosable" :list="chooseList" @showAction="showAction"
  110. @deleted="deleted"></ActionSheet>
  111. </view>
  112. </template>
  113. <script>
  114. import ActionSheet from '@/components/ActionSheet/index.vue'
  115. import {
  116. getShopServiceOne
  117. } from "@/api/maintain.js"
  118. export default {
  119. components: {
  120. ActionSheet
  121. },
  122. data() {
  123. return {
  124. // 打开底部弹窗
  125. show: false,
  126. // 遮罩层是否可以关闭弹窗
  127. maskClosable: true,
  128. chooseList: [],
  129. chooseNum: 0,
  130. menu: 0,
  131. swiperHeight: "",
  132. menuWidth: "",
  133. foodWidth: "",
  134. dataList: [{
  135. serviceTwoList: []
  136. }],
  137. projectList: {},
  138. search: "",
  139. tar: 1,
  140. item: null,
  141. myProjectList: null,
  142. imgPath: this.baseImagePath,
  143. shopId: '',
  144. datasList: [],
  145. type: ''
  146. }
  147. },
  148. watch: {
  149. chooseList(val) {
  150. console.log(val, 'val=========================');
  151. console.log(this.chooseList.length);
  152. this.chooseNum = this.chooseList.length
  153. }
  154. },
  155. onLoad(options) {
  156. console.log(options);
  157. let that = this;
  158. let datas = {};
  159. let item = {};
  160. this.item = options.item
  161. this.projectList = options.projectList
  162. this.shopId = options.shopId
  163. this.type = options.type
  164. if (options.item != undefined) {
  165. datas = {};
  166. item = JSON.parse(decodeURIComponent(options.item))
  167. } else {
  168. if (JSON.parse(options.projectList).chooseList != undefined) {
  169. this.chooseList = JSON.parse(options.projectList).chooseList;
  170. }
  171. datas = {
  172. shopId: options.shopId
  173. }
  174. }
  175. datas = Object.assign({
  176. type: this.tar
  177. }, datas)
  178. console.log(datas, '传参');
  179. getShopServiceOne(
  180. datas
  181. ).then((res) => {
  182. that.dataList = res.data;
  183. for (let listIndex in that.dataList) {
  184. if (item != "") {
  185. if (item.id == that.dataList[listIndex].id) {
  186. that.menu = listIndex;
  187. }
  188. }
  189. if (this.chooseList.length == 0) {
  190. that.$set(that.dataList[listIndex], 'num', 0);
  191. for (let subListIndex in that.dataList[listIndex].serviceTwoList) {
  192. that.dataList[listIndex].serviceTwoList[subListIndex].isSelected = 0;
  193. }
  194. } else {
  195. let num = 0;
  196. let executeNum = 0;
  197. console.log(this.chooseList);
  198. for (let index in this.chooseList) {
  199. if (this.chooseList[index].menuId == that.dataList[listIndex].id) {
  200. for (let subListIndex in that.dataList[listIndex].serviceTwoList) {
  201. if (that.dataList[listIndex].serviceTwoList[subListIndex].id == this
  202. .chooseList[index]
  203. .id) {
  204. executeNum++
  205. num++
  206. that.dataList[listIndex].serviceTwoList[subListIndex].isSelected = 1;
  207. } else if (executeNum == 0) {
  208. that.dataList[listIndex].serviceTwoList[subListIndex].isSelected = 0;
  209. }
  210. }
  211. }
  212. }
  213. that.$set(that.dataList[listIndex], 'num', num);
  214. }
  215. that.chooseNum = that.chooseNum + that.dataList[listIndex].num;
  216. }
  217. })
  218. //初始化页面的组件大小
  219. uni.getSystemInfo({
  220. success: (res) => {
  221. // - uni.upx2px(100) 减去头部的列表
  222. let height = res.windowHeight
  223. let windowWidth = res.windowWidth
  224. this.swiperHeight = height
  225. this.menuWidth = windowWidth / 5
  226. this.foodWidth = windowWidth * 4 / 5
  227. }
  228. });
  229. // this.chooseData();
  230. },
  231. methods: {
  232. chooseServer(type) {
  233. this.tar = type
  234. if (this.tar === 2) {
  235. getShopServiceOne({
  236. type: this.tar,
  237. }).then((res) => {
  238. this.datasList = res.data
  239. console.log(this.datasList);
  240. for (let index in this.datasList) {
  241. if (this.chooseList.length !== 0) {
  242. for (let itemList in this.chooseList) {
  243. if (this.chooseList[itemList].oneId === this.datasList[index].id) {
  244. console.log(this.chooseList[itemList].oneId);
  245. for (let listData in this.datasList[index].userPackageSerVOS) {
  246. if (this.chooseList[itemList].id === this.datasList[index]
  247. .userPackageSerVOS[listData].sstId) {
  248. this.datasList[index].userPackageSerVOS[listData].isSelected = 1
  249. }
  250. }
  251. }
  252. }
  253. }
  254. }
  255. console.log(res, 'res');
  256. })
  257. } else {
  258. let that = this
  259. let datas = {};
  260. let item = {};
  261. if (this.item != undefined) {
  262. datas = {};
  263. item = JSON.parse(decodeURIComponent(this.item))
  264. } else {
  265. if (JSON.parse(this.projectList).chooseList != undefined) {
  266. this.chooseList = JSON.parse(this.projectList).chooseList;
  267. }
  268. datas = {
  269. shopId: this.shopId
  270. }
  271. }
  272. datas = Object.assign({
  273. type: this.tar
  274. }, datas)
  275. console.log(datas, '传参');
  276. getShopServiceOne(
  277. datas
  278. ).then((res) => {
  279. that.dataList = res.data;
  280. console.log(that.dataList);
  281. for (let listIndex in that.dataList) {
  282. if (item != "") {
  283. if (item.id == that.dataList[listIndex].id) {
  284. that.menu = listIndex;
  285. }
  286. }
  287. if (this.chooseList.length == 0) {
  288. that.$set(that.dataList[listIndex], 'num', 0);
  289. for (let subListIndex in that.dataList[listIndex].serviceTwoList) {
  290. that.dataList[listIndex].serviceTwoList[subListIndex].isSelected = 0;
  291. }
  292. } else {
  293. let num = 0;
  294. let executeNum = 0;
  295. for (let index in this.chooseList) {
  296. console.log(that.dataList[listIndex], 'that.dataList[listIndex].id');
  297. if (this.chooseList[index].menuId == that.dataList[listIndex].id) {
  298. for (let subListIndex in that.dataList[listIndex].serviceTwoList) {
  299. if (that.dataList[listIndex].serviceTwoList[subListIndex].id == this
  300. .chooseList[index].id) {
  301. executeNum++
  302. num++
  303. that.dataList[listIndex].serviceTwoList[subListIndex].isSelected =
  304. 1;
  305. } else if (executeNum == 0) {
  306. that.dataList[listIndex].serviceTwoList[subListIndex].isSelected =
  307. 0;
  308. }
  309. }
  310. }
  311. }
  312. that.$set(that.dataList[listIndex], 'num', num);
  313. }
  314. // that.chooseNum = that.chooseNum +that.dataList[listIndex].num;
  315. }
  316. })
  317. }
  318. },
  319. submit() {
  320. getShopServiceOne({
  321. serviceOneId: this.dataList[this.menu].id,
  322. keyword: this.search,
  323. type: this.tar,
  324. shopId: this.shopId
  325. }).then((res) => {
  326. console.log(this.chooseList);
  327. if (this.chooseList.length == 0) {
  328. for (let subListIndex in res.data.serviceTwoList) {
  329. res.data.serviceTwoList[subListIndex].isSelected = 0;
  330. }
  331. } else {
  332. let num = 0;
  333. let executeNum = 0;
  334. for (let index in this.chooseList) {
  335. if (this.chooseList[index].menuId == this.dataList[this.menu].id) {
  336. for (let subListIndex in res.data.serviceTwoList) {
  337. if (res.data.serviceTwoList[subListIndex].id == this.chooseList[index].id) {
  338. executeNum++
  339. num++
  340. res.data.serviceTwoList[subListIndex].isSelected = 1;
  341. } else if (executeNum == 0) {
  342. res.data.serviceTwoList[subListIndex].isSelected = 0;
  343. }
  344. }
  345. }
  346. }
  347. }
  348. console.log('data=====================================》', res.data)
  349. this.dataList[this.menu].serviceTwoList = res.data[this.menu].serviceTwoList;
  350. })
  351. },
  352. goBack(datas) {
  353. console.log(datas);
  354. if (datas === 0) {
  355. uni.showToast({
  356. icon: 'none',
  357. title: '选择的服务不可以为空'
  358. })
  359. return
  360. }
  361. let data = {
  362. num: datas,
  363. chooseList: this.chooseList,
  364. }
  365. console.log(this.chooseList);
  366. console.log('choose==========', data);
  367. uni.navigateTo({
  368. url: "/pages/maintenance/onlineReservation/index?data=" + JSON.stringify(data) + "&page=index"
  369. })
  370. // uni.$emit('chooseNum', data);
  371. // uni.navigateBack({
  372. // delta: 1
  373. // })
  374. },
  375. deleted(data) {
  376. if (data.upsId) {
  377. console.log(data, '删除');
  378. for (let listIndex in this.datasList) {
  379. if (this.datasList[listIndex].id === data.oneId) {
  380. for (let twoList in this.datasList[listIndex].userPackageSerVOS) {
  381. if (data.id === this.datasList[listIndex].userPackageSerVOS[twoList].sstId) {
  382. this.datasList[listIndex].userPackageSerVOS[twoList].isSelected = 0
  383. for (let index in this.chooseList) {
  384. if (this.chooseList[index].id === data.id) {
  385. this.chooseList.splice(index, 1)
  386. this.chooseNum = this.chooseList.length
  387. }
  388. }
  389. }
  390. }
  391. }
  392. }
  393. } else {
  394. for (let listIndex in this.dataList) {
  395. if (this.dataList[listIndex].serviceName == data.menu) {
  396. for (let subListIndex in this.dataList[listIndex].serviceTwoList) {
  397. if (this.dataList[listIndex].serviceTwoList[subListIndex].id == data.id) {
  398. this.dataList[listIndex].serviceTwoList[subListIndex].isSelected = 0;
  399. this.dataList[listIndex].num--
  400. }
  401. }
  402. }
  403. }
  404. for (let index in this.chooseList) {
  405. if (data.id == this.chooseList[index].id && data.chooseName == this.chooseList[index].chooseName) {
  406. this.chooseList.splice(index, 1)
  407. }
  408. }
  409. // this.chooseData();
  410. }
  411. },
  412. showAction() {
  413. this.show = !this.show;
  414. console.log(this.show, 'show');
  415. },
  416. chooseData() {
  417. let chooseItem = {};
  418. this.chooseList = [];
  419. // this.chooseNum = 0;
  420. for (let listIndex in this.dataList) {
  421. // this.chooseNum = this.chooseNum + this.dataList[listIndex].num;
  422. for (let subListIndex in this.dataList[listIndex].serviceTwoList) {
  423. chooseItem = {};
  424. console.log(this.dataList[listIndex].serviceTwoList);
  425. if (this.dataList[listIndex].serviceTwoList[subListIndex].isSelected == 1) {
  426. chooseItem.id = this.dataList[listIndex].serviceTwoList[subListIndex].id;
  427. chooseItem.chooseName = this.dataList[listIndex].serviceTwoList[subListIndex].serviceName;
  428. chooseItem.menu = this.dataList[listIndex].serviceName;
  429. chooseItem.menuId = this.dataList[listIndex].id;
  430. this.chooseList.push(chooseItem);
  431. this.chooseNum = this.chooseList.length
  432. }
  433. }
  434. }
  435. },
  436. radioChanges(item, index, val) {
  437. this.chooseNum = 0;
  438. console.log(item);
  439. if (item.isSelected == 0 || item.isSelected == undefined) {
  440. this.datasList[val].userPackageSerVOS[index].isSelected = 1;
  441. let datasObj = {}
  442. datasObj.typeId = this.datasList[val].userPackageSerVOS[index].typeId
  443. datasObj.type = this.datasList[val].userPackageSerVOS[index].type
  444. // if (this.datasList[val].userPackageSerVOS[index].sstId == null) {
  445. // datasObj.id = this.datasList[val].userPackageSerVOS[index].goodsId
  446. // datasObj.type = this.datasList[val].userPackageSerVOS[index].type
  447. // } else {
  448. // datasObj.id = this.datasList[val].userPackageSerVOS[index].sstId
  449. // datasObj.type = this.datasList[val].userPackageSerVOS[index].type
  450. // }
  451. // console.log(datasObj.id);
  452. datasObj.chooseName = this.datasList[val].userPackageSerVOS[index].sstName
  453. datasObj.upsId = this.datasList[val].userPackageSerVOS[index].id,
  454. datasObj.oneId = this.datasList[val].id
  455. this.chooseList.push(datasObj);
  456. } else {
  457. for (let count in this.chooseList) {
  458. console.log(item.sstId, this.chooseList[count].id, '123456789');
  459. if (item.sstId == this.chooseList[count].id) {
  460. this.chooseList.splice(index, 1)
  461. }
  462. }
  463. this.datasList[val].userPackageSerVOS[index].isSelected = 0;
  464. }
  465. console.log('this.chooseList===========>', this.chooseList);
  466. this.chooseNum = this.chooseList.length
  467. },
  468. radioChange(item, index) {
  469. this.chooseNum = 0;
  470. console.log(item, 'item1111111111111');
  471. if (item.isSelected == 0 || item.isSelected == undefined) {
  472. this.dataList[this.menu].num++;
  473. this.dataList[this.menu].serviceTwoList[index].isSelected = 1;
  474. let chooseItem = {};
  475. chooseItem.id = item.id;
  476. chooseItem.type = item.type;
  477. chooseItem.typeId = item.typeId;
  478. chooseItem.chooseName = item.serviceName;
  479. chooseItem.menu = item.serviceName;
  480. chooseItem.menuId = this.dataList[this.menu].id;
  481. this.chooseList.push(chooseItem);
  482. console.log(chooseItem);
  483. console.log(this.chooseList);
  484. } else {
  485. for (let count in this.chooseList) {
  486. console.log(item.id, this.chooseList[count].id, 'this.chooseList[count].id');
  487. if (item.id == this.chooseList[count].id) {
  488. this.chooseList.splice(count, 1)
  489. }
  490. }
  491. this.dataList[this.menu].num--;
  492. this.dataList[this.menu].serviceTwoList[index].isSelected = 0;
  493. }
  494. },
  495. chooseMenu(data) {
  496. this.menu = data;
  497. },
  498. },
  499. }
  500. </script>
  501. <style lang="less">
  502. .chooseTap {
  503. width: 100%;
  504. height: 80rpx;
  505. background-color: #FFFFFF;
  506. display: flex;
  507. justify-content: space-between;
  508. align-items: center;
  509. margin-bottom: 20rpx;
  510. position: fixed;
  511. top: 0;
  512. z-index: 999;
  513. border-bottom: 1px solid #EEEEEE;
  514. .tap-btn {
  515. flex: 1;
  516. text-align: center;
  517. line-height: 80rpx;
  518. background-color: #FFFFFF;
  519. .line {
  520. height: 77rpx;
  521. color: #0060FF;
  522. display: inline-block;
  523. border-bottom: 3px solid #0060FF;
  524. }
  525. .noLine {
  526. color: #333333;
  527. }
  528. }
  529. }
  530. .bottomBtn {
  531. width: 690rpx;
  532. height: 110rpx;
  533. background: #FFFFFF;
  534. border: 1px solid #EEEEEE;
  535. box-shadow: 0px 8rpx 17rpx 0px rgba(168, 165, 165, 0.26);
  536. border-radius: 55rpx;
  537. margin-left: 30rpx;
  538. position: fixed;
  539. bottom: 67rpx;
  540. z-index: 9998;
  541. .leftView {
  542. float: left;
  543. height: 100%;
  544. display: flex;
  545. align-items: center;
  546. .carImg {
  547. width: 64rpx;
  548. height: 51rpx;
  549. margin-left: 41rpx;
  550. }
  551. .chooseNum {
  552. margin-left: 25rpx;
  553. font-size: 30rpx;
  554. font-family: PingFang SC;
  555. font-weight: 500;
  556. color: #333333;
  557. line-height: 31rpx;
  558. span {
  559. font-size: 36rpx;
  560. color: #0060FF;
  561. }
  562. }
  563. .upImg {
  564. width: 21rpx;
  565. height: 17rpx;
  566. margin-left: 12rpx;
  567. }
  568. }
  569. .rightView {
  570. float: right;
  571. width: 210rpx;
  572. height: 108rpx;
  573. background: linear-gradient(0deg, #005AFF 0%, #0078FF 100%);
  574. border-radius: 0 55rpx 55rpx 0;
  575. font-size: 34rpx;
  576. font-family: PingFang SC;
  577. font-weight: 500;
  578. color: #FEFEFE;
  579. line-height: 108rpx;
  580. text-align: center;
  581. }
  582. }
  583. .body02 {
  584. padding-bottom: 200rpx;
  585. .mainView {
  586. width: 100%;
  587. background-color: #FFFFFF;
  588. .viewBlock {
  589. padding: 30rpx;
  590. .goodsInfo {
  591. display: flex;
  592. .infoBlock {
  593. display: flex;
  594. flex-direction: column;
  595. justify-content: space-between;
  596. margin-left: 20rpx;
  597. }
  598. .goodsImg {
  599. width: 163rpx;
  600. height: 163rpx;
  601. }
  602. }
  603. }
  604. }
  605. }
  606. .body {
  607. display: flex;
  608. .menuLeft {
  609. width: 190rpx;
  610. background: #F5F5F5;
  611. border-radius: 0px 14rpx 0px 0px;
  612. overflow-y: auto;
  613. .menu {
  614. width: 190rpx;
  615. height: 90rpx;
  616. background: #F5F5F5;
  617. font-size: 26rpx;
  618. font-family: PingFang SC;
  619. font-weight: 500;
  620. color: #666666;
  621. line-height: 98rpx;
  622. text-align: center;
  623. .span {
  624. width: 34rpx;
  625. height: 34rpx;
  626. background: #FF3C00;
  627. border-radius: 50%;
  628. font-size: 24rpx;
  629. font-family: PingFang SC;
  630. font-weight: bold;
  631. color: #FFFFFF;
  632. line-height: 36rpx;
  633. position: relative;
  634. top: -84rpx;
  635. left: 74%;
  636. }
  637. }
  638. .chooseMenu {
  639. width: 190rpx;
  640. height: 95rpx;
  641. background: #FFFFFF;
  642. font-size: 28rpx;
  643. font-family: PingFang SC;
  644. font-weight: bold;
  645. color: #333333;
  646. line-height: 98rpx;
  647. text-align: center;
  648. .span {
  649. width: 34rpx;
  650. height: 34rpx;
  651. background: #FF3C00;
  652. border-radius: 50%;
  653. font-size: 24rpx;
  654. font-family: PingFang SC;
  655. font-weight: bold;
  656. color: #FFFFFF;
  657. line-height: 36rpx;
  658. position: relative;
  659. top: -84rpx;
  660. left: 74%;
  661. }
  662. image {
  663. width: 12rpx;
  664. height: 38rpx;
  665. position: relative;
  666. left: -36rpx;
  667. top: 10rpx;
  668. }
  669. }
  670. }
  671. .bodyRight {
  672. width: 560rpx;
  673. height: 878rpx;
  674. background: #FFFFFF;
  675. overflow-y: auto;
  676. .card {
  677. width: 500rpx;
  678. border-bottom: 1px solid #E6E6E6;
  679. display: flex;
  680. justify-content: space-between;
  681. align-items: center;
  682. .content {
  683. float: left;
  684. .title {
  685. font-size: 32rpx;
  686. font-family: PingFang SC;
  687. font-weight: bold;
  688. color: #333333;
  689. line-height: 36rpx;
  690. padding-top: 41rpx;
  691. padding-left: 29rpx;
  692. }
  693. .price {
  694. font-size: 26rpx;
  695. font-family: PingFang SC;
  696. font-weight: 500;
  697. color: #005BFF;
  698. padding-top: 29rpx;
  699. padding-left: 29rpx;
  700. padding-bottom: 37rpx;
  701. span {
  702. color: #666666;
  703. font-size: 22rpx;
  704. font-family: PingFang SC;
  705. font-weight: 500;
  706. }
  707. }
  708. }
  709. .radios {
  710. float: right;
  711. }
  712. }
  713. }
  714. }
  715. .search {
  716. width: 100%;
  717. height: 90rpx;
  718. background: #FFFFFF;
  719. box-shadow: 0px 1px 0px 0px rgba(55, 55, 55, 0.1);
  720. }
  721. .searchCard {
  722. width: 710rpx;
  723. height: 70rpx;
  724. background: #ECECEC;
  725. border: 1px solid #FFFFFF;
  726. border-radius: 34rpx;
  727. margin-left: 20rpx;
  728. margin-top: 21rpx;
  729. }
  730. .iconfont {
  731. font-family: "iconfont" !important;
  732. font-size: 35rpx;
  733. font-style: normal;
  734. -webkit-font-smoothing: antialiased;
  735. -moz-osx-font-smoothing: grayscale;
  736. background: #ECECEC;
  737. padding-left: 37rpx;
  738. line-height: 70rpx;
  739. border-radius: 34rpx;
  740. }
  741. .co {
  742. background: #ECECEC;
  743. font-size: 26rpx;
  744. font-family: PingFang SC;
  745. font-weight: 500;
  746. color: #999999;
  747. }
  748. .input {
  749. display: flex;
  750. align-items: center;
  751. justify-content: space-between;
  752. }
  753. .bnt {
  754. width: 130rpx;
  755. height: 58rpx;
  756. background: linear-gradient(0deg, #005AFF 0%, #0078FF 100%);
  757. border-radius: 29rpx;
  758. line-height: 58rpx;
  759. text-align: center;
  760. font-size: 26rpx;
  761. font-family: PingFang SC;
  762. font-weight: 500;
  763. color: #FFFFFF;
  764. position: relative;
  765. right: 8rpx;
  766. }
  767. </style>