pharmacyDetails.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. <template>
  2. <view class="pharmacyDetails">
  3. <view class="pharmacyDetails_title">
  4. <view class="pharmacyDetails_tab" :class="{ 'active': selectedLabelSlots === item.id }" v-for="item in tabs"
  5. :key="item.id" @click="clickHandler(item.id)">
  6. <view class="pharmacyDetails_label">
  7. {{ item.label }}
  8. </view>
  9. </view>
  10. </view>
  11. <view class="page_item_wrap">
  12. <view class="page_item">
  13. <view class="page_item_top">
  14. <view class="page_item_top-inner" v-show="selectedLabelSlots == 1">
  15. <view class="page_item_top_L">
  16. <text class="L_text">请领单:{{ infoDATA.packid }}</text>
  17. </view>
  18. <view class="page_item_top_R">
  19. <text class="L_iocn">{{
  20. infoDATA.drugsState && infoDATA.drugsState.name
  21. }}</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="page_item_cont" v-show="selectedLabelSlots == 1">
  26. <view class="page_item_cont_B">
  27. <view class="page_item_cont_title">
  28. <text>记账时间</text>
  29. <text class="text_big">
  30. <text>{{ infoDATA.creatTime }}</text>
  31. </text>
  32. </view>
  33. </view>
  34. <view class="page_item_cont_C">
  35. <view class="page_item_cont_title_C">
  36. <text>请领科室</text>
  37. <text class="text_big">
  38. <text>{{ infoDATA.target && infoDATA.target.dept }}</text>
  39. </text>
  40. </view>
  41. </view>
  42. </view>
  43. <scroll-view scroll-y class="page_item_cont" v-show="selectedLabelSlots == 2">
  44. <view class="page_item_cont_C" v-for="(item,i) in queryProcessList" :key="i">
  45. <view class="page_item_cont_title_C">
  46. <text style="flex: 1;">{{item.operationTime}}</text>
  47. <text style="flex: 1;">{{item.operationType?item.operationType.name:''}}</text>
  48. <text class="text_big" style="width: 3em;">
  49. <text>{{ item.username || '暂无' }}</text>
  50. </text>
  51. </view>
  52. </view>
  53. </scroll-view>
  54. <view class="L"></view>
  55. <view class="R"></view>
  56. </view>
  57. <view class="L-l"></view>
  58. <view class="R-l"></view>
  59. </view>
  60. <view v-if="infoDATA.drugsState && infoDATA.drugsState.value == 4&&infoDATA.launch.id==loginUser.dept.id"
  61. class="btn-wrap">
  62. <button class="cube-toolbar-item1" :loading="isLoading" :disabled="isLoading" @click="dispensing(4)"
  63. v-if="infoDATA.drugsState && infoDATA.drugsState.value == 4&&infoDATA.launch.id==loginUser.dept.id">
  64. 核对完成
  65. </button>
  66. <button class="cube-toolbar-item1" :loading="isOLoading" :disabled="isOLoading" @click="nursetake()">
  67. 护士自取
  68. </button>
  69. </view>
  70. <button class="cube-toolbar-item" :loading="isOLoading" :disabled="isOLoading" @click="nursetake()"
  71. v-if="infoDATA.drugsState && infoDATA.drugsState.value == 8&&infoDATA.launch.id==loginUser.dept.id">
  72. 护士自取
  73. </button>
  74. <button class="cube-toolbar-item" :loading="isLoading" :disabled="isLoading" @click="dispensing(1)"
  75. v-if="infoDATA.drugsState && infoDATA.drugsState.value == 1&&infoDATA.launch.id==loginUser.dept.id">
  76. 开始配药
  77. </button>
  78. <view v-if="infoDATA.drugsState && infoDATA.drugsState.value == 2&&infoDATA.launch.id==loginUser.dept.id"
  79. class="btn-wrap">
  80. <button class="cube-toolbar-item1" :loading="isLoading" :disabled="isLoading" @click="dispensing(2)">
  81. 进行核对
  82. </button>
  83. <button class="cube-toolbar-item1" :loading="isTLoading" :disabled="isTLoading" @click="replaceOperator()">
  84. 替换配药人
  85. </button>
  86. </view>
  87. <!-- 护士自取账号弹窗 -->
  88. <selectAccount v-if="hosModels.disjunctor" :title="hosModels.title" :disjunctor="hosModels.disjunctor" @ok="hosOk"
  89. @cancel="hosCancel">
  90. </selectAccount>
  91. </view>
  92. </template>
  93. <script>
  94. import selectAccount from "@/components/selectAccount/selectAccount.vue";
  95. import {
  96. get,
  97. post,
  98. SM,
  99. webHandle
  100. } from "../../http/http.js";
  101. export default {
  102. data() {
  103. return {
  104. selectedLabelSlots: 1,
  105. tabs: [{
  106. id: 1,
  107. label: "基础信息",
  108. },
  109. {
  110. id: 2,
  111. label: "流程信息",
  112. }
  113. ],
  114. infoDATA: [],
  115. isLoading: false,
  116. isTLoading: false,
  117. isOLoading: false,
  118. loginUser: {}, //当前登录用户
  119. // 护士自取弹窗model
  120. hosModels: {
  121. disjunctor: false,
  122. },
  123. queryProcessList: [],
  124. };
  125. },
  126. components: {
  127. selectAccount
  128. },
  129. methods: {
  130. // tab切换
  131. clickHandler(id) {
  132. this.selectedLabelSlots = id;
  133. if (id == 1) {
  134. this.queryBase(this.queryObj);
  135. } else if (id == 2) {
  136. this.queryProcess(this.queryObj);
  137. }
  138. },
  139. // 确认
  140. hosOk(data) {
  141. console.log(data);
  142. const {
  143. accountName,
  144. account,
  145. accountId
  146. } = data;
  147. if (!accountName && !account) {
  148. //没有填写交接人
  149. uni.showModal({
  150. title: '提示',
  151. content: "请填写账号!",
  152. showCancel: false,
  153. success: function(res) {
  154. if (res.confirm) {
  155. console.log('用户点击确定');
  156. } else if (res.cancel) {
  157. console.log('用户点击取消');
  158. }
  159. }
  160. });
  161. return;
  162. } else if (!accountName && account || accountName && !account) {
  163. //没有填写
  164. uni.showModal({
  165. title: '提示',
  166. content: "请填写正确的账号!",
  167. showCancel: false,
  168. success: function(res) {
  169. if (res.confirm) {
  170. console.log('用户点击确定');
  171. } else if (res.cancel) {
  172. console.log('用户点击取消');
  173. }
  174. }
  175. });
  176. return;
  177. }
  178. this.hosModels.disjunctor = false;
  179. //请求接口
  180. uni.showLoading({
  181. title: "加载中",
  182. mask: true,
  183. });
  184. let postData = {
  185. id: this.infoDATA.id,
  186. packId: this.infoDATA.packid,
  187. recipient: accountId,
  188. recipientName: accountName
  189. };
  190. if (this.infoDATA.gdId) {
  191. postData.gdId = this.infoDATA.gdId;
  192. }
  193. post('/drugsBag/nurseByHerself', postData).then(result => {
  194. uni.hideLoading();
  195. if (result.state == 200) {
  196. uni.showModal({
  197. title: '提示',
  198. content: result.info || "护士自取成功!",
  199. showCancel: false,
  200. success: function(res) {
  201. if (res.confirm) {
  202. uni.navigateTo({
  203. url: "../pharmacy/pharmacy",
  204. });
  205. } else if (res.cancel) {
  206. console.log('用户点击取消');
  207. }
  208. }
  209. });
  210. } else {
  211. uni.showModal({
  212. title: '提示',
  213. content: "请求失败!",
  214. showCancel: false,
  215. success: function(res) {
  216. if (res.confirm) {
  217. console.log('用户点击确定');
  218. } else if (res.cancel) {
  219. console.log('用户点击取消');
  220. }
  221. }
  222. });
  223. }
  224. })
  225. },
  226. // 取消
  227. hosCancel() {
  228. this.hosModels.disjunctor = false;
  229. },
  230. // 护士自取
  231. nursetake() {
  232. this.hosModels = {
  233. title: '填写账号',
  234. disjunctor: true,
  235. }
  236. },
  237. // 替换配药人
  238. replaceOperator() {
  239. this.isTLoading = true;
  240. uni.showLoading({
  241. title: "加载中",
  242. mask: true,
  243. });
  244. post("/drugsBag/replaceOperator", {
  245. packId: this.infoDATA.packid,
  246. }).then((result) => {
  247. this.isTLoading = false;
  248. uni.hideLoading();
  249. if (result.state == 200) {
  250. uni.showModal({
  251. title: '提示',
  252. content: result.info,
  253. showCancel: false,
  254. success: function(res) {
  255. if (res.confirm) {
  256. console.log('用户点击确定');
  257. } else if (res.cancel) {
  258. console.log('用户点击取消');
  259. }
  260. }
  261. });
  262. } else {
  263. uni.showModal({
  264. title: '提示',
  265. content: "请求失败!",
  266. showCancel: false,
  267. success: function(res) {
  268. if (res.confirm) {
  269. console.log('用户点击确定');
  270. } else if (res.cancel) {
  271. console.log('用户点击取消');
  272. }
  273. }
  274. });
  275. }
  276. })
  277. },
  278. // 开始配药,进行核对,1是待配药,2是配药中,4是核对中
  279. dispensing(type) {
  280. let msg = '';
  281. if (type == 1) {
  282. msg = '是否开始配药?'
  283. } else if (type == 2) {
  284. msg = '是否进行核对?'
  285. } else if (type == 4) {
  286. msg = '是否核对完成?'
  287. }
  288. uni.showModal({
  289. title: '提示',
  290. content: msg,
  291. success: res => {
  292. if (res.confirm) {
  293. console.log('用户点击确定');
  294. this.isLoading = true;
  295. uni.showLoading({
  296. title: "加载中",
  297. mask: true,
  298. });
  299. if (type == 1) {
  300. post("/drugsBag/changeToIng", {
  301. id: this.infoDATA.id,
  302. }).then((result) => {
  303. this.isLoading = false;
  304. uni.hideLoading();
  305. if (result.state == 200) {
  306. uni.showModal({
  307. title: '提示',
  308. content: result.info || "开始配药成功!",
  309. showCancel: false,
  310. success: function(res) {
  311. if (res.confirm) {
  312. uni.navigateTo({
  313. url: "../pharmacy/pharmacy",
  314. });
  315. } else if (res.cancel) {
  316. console.log('用户点击取消');
  317. }
  318. }
  319. });
  320. // let data = {
  321. // launchId: this.infoDATA.launch.id,
  322. // drugsBagId: this.infoDATA.id,
  323. // };
  324. // post("/drugsBag/autoDrugsBags", data).then((result1) => {
  325. // this.isLoading = false;
  326. // if (result1.status == 200) {
  327. // uni.showToast({
  328. // title: "操作成功!",
  329. // success() {
  330. // uni.navigateTo({
  331. // url: "../pharmacy/pharmacy",
  332. // });
  333. // },
  334. // });
  335. // }else if(result1.status == 501){
  336. // uni.showToast({
  337. // icon: "none",
  338. // title: result1.error,
  339. // });
  340. // }else {
  341. // uni.showToast({
  342. // icon: "none",
  343. // title: "请求失败!",
  344. // });
  345. // }
  346. // });
  347. // } else if(result.state == 503){//未建单
  348. // uni.showToast({
  349. // icon: "none",
  350. // title: result.error,
  351. // });
  352. } else {
  353. // this.isLoading = false;
  354. uni.showModal({
  355. title: '提示',
  356. content: "请求失败!",
  357. showCancel: false,
  358. success: function(res) {
  359. if (res.confirm) {
  360. console.log('用户点击确定');
  361. } else if (res.cancel) {
  362. console.log('用户点击取消');
  363. }
  364. }
  365. });
  366. }
  367. });
  368. } else if (type == 2) {
  369. post("/drugsBag/changeToCheck", {
  370. id: this.infoDATA.id,
  371. }).then((result) => {
  372. this.isLoading = false;
  373. uni.hideLoading();
  374. if (result.state == 200) {
  375. uni.showModal({
  376. title: '提示',
  377. content: result.info || "进行核对成功!",
  378. showCancel: false,
  379. success: function(res) {
  380. if (res.confirm) {
  381. uni.navigateTo({
  382. url: "../pharmacy/pharmacy",
  383. });
  384. } else if (res.cancel) {
  385. console.log('用户点击取消');
  386. }
  387. }
  388. });
  389. } else {
  390. uni.showModal({
  391. title: '提示',
  392. content: "请求失败!",
  393. showCancel: false,
  394. success: function(res) {
  395. if (res.confirm) {
  396. console.log('用户点击确定');
  397. } else if (res.cancel) {
  398. console.log('用户点击取消');
  399. }
  400. }
  401. });
  402. }
  403. });
  404. } else if (type == 4) {
  405. post("/drugsBag/checkComplete", {
  406. id: this.infoDATA.id,
  407. packId: this.infoDATA.packid
  408. }).then((result) => {
  409. this.isLoading = false;
  410. uni.hideLoading();
  411. if (result.state == 200) {
  412. uni.showModal({
  413. title: '提示',
  414. content: result.info || "核对完成成功!",
  415. showCancel: false,
  416. success: function(res) {
  417. if (res.confirm) {
  418. uni.navigateTo({
  419. url: "../pharmacy/pharmacy",
  420. });
  421. } else if (res.cancel) {
  422. console.log('用户点击取消');
  423. }
  424. }
  425. });
  426. } else {
  427. uni.showModal({
  428. title: '提示',
  429. content: "请求失败!",
  430. showCancel: false,
  431. success: function(res) {
  432. if (res.confirm) {
  433. console.log('用户点击确定');
  434. } else if (res.cancel) {
  435. console.log('用户点击取消');
  436. }
  437. }
  438. });
  439. }
  440. });
  441. }
  442. } else if (res.cancel) {
  443. console.log('用户点击取消');
  444. }
  445. }
  446. });
  447. },
  448. //基础信息查询
  449. queryBase(options) {
  450. //扫码进入详情
  451. let qrcode = options.qrcode;
  452. if (qrcode) {
  453. uni.showLoading({
  454. title: "加载中",
  455. mask: true,
  456. });
  457. post("/drugsBag/getDrugsBagByQr", {
  458. qrcode,
  459. }).then((result) => {
  460. uni.hideLoading();
  461. if (result.state == 200) {
  462. this.infoDATA = result.result;
  463. if (this.loginUser.dept.id != this.infoDATA.launch.id) {
  464. uni.showModal({
  465. title: '提示',
  466. content: "您现在所在的科室是【" + this.loginUser.dept.dept + "】,药包所在的科室是【" + this.infoDATA.launch.dept +
  467. "】,您不能进行操作",
  468. showCancel: false,
  469. success: function(res) {
  470. if (res.confirm) {
  471. console.log('用户点击确定');
  472. } else if (res.cancel) {
  473. console.log('用户点击取消');
  474. }
  475. }
  476. });
  477. }
  478. } else {
  479. uni.showToast({
  480. icon: "none",
  481. title: "请求失败!",
  482. });
  483. }
  484. });
  485. }
  486. // 点击列表进入详情
  487. let id = options.id;
  488. if (id) {
  489. uni.showLoading({
  490. title: "加载中",
  491. mask: true,
  492. });
  493. get("/api/fetchData/drugsBag/" + id).then((res) => {
  494. uni.hideLoading();
  495. if (res.status == 200) {
  496. this.infoDATA = res.data;
  497. if (this.loginUser.dept.id != this.infoDATA.launch.id) {
  498. uni.showModal({
  499. title: '提示',
  500. content: "您现在所在的科室是【" + this.loginUser.dept.dept + "】,药包所在的科室是【" + this.infoDATA.launch.dept +
  501. "】,您不能进行操作",
  502. showCancel: false,
  503. success: function(res) {
  504. if (res.confirm) {
  505. console.log('用户点击确定');
  506. } else if (res.cancel) {
  507. console.log('用户点击取消');
  508. }
  509. }
  510. });
  511. }
  512. } else {
  513. uni.showToast({
  514. icon: "none",
  515. title: "请求失败!",
  516. });
  517. }
  518. });
  519. }
  520. },
  521. // 流程信息查询
  522. queryProcess(options) {
  523. //扫码进入详情
  524. let qrcode = options.qrcode;
  525. if (qrcode) {
  526. uni.showLoading({
  527. title: "加载中",
  528. mask: true,
  529. });
  530. let postData = {
  531. idx: 0,
  532. sum: 9999,
  533. drugsBagOperationLog: {
  534. qrcode,
  535. hosId: this.loginUser.currentHospital.id
  536. }
  537. }
  538. post("/simple/data/fetchDataList/drugsBagOperationLog", postData).then((result) => {
  539. uni.hideLoading();
  540. if (result.status == 200) {
  541. result.list.forEach(v => {
  542. if (v.operationTime) {
  543. v.operationTime = (new Date(v.operationTime)).Format("MM-dd hh:mm");
  544. }
  545. });
  546. this.queryProcessList = result.list;
  547. } else {
  548. uni.showToast({
  549. icon: "none",
  550. title: "请求失败!",
  551. });
  552. }
  553. });
  554. }
  555. // 点击列表进入详情
  556. let packid = options.packid;
  557. if (packid) {
  558. uni.showLoading({
  559. title: "加载中",
  560. mask: true,
  561. });
  562. let postData = {
  563. idx: 0,
  564. sum: 9999,
  565. drugsBagOperationLog: {
  566. packid: options.packid,
  567. hosId: this.loginUser.currentHospital.id
  568. }
  569. }
  570. post("/simple/data/fetchDataList/drugsBagOperationLog", postData).then((res) => {
  571. uni.hideLoading();
  572. if (res.status == 200) {
  573. res.list.forEach(v => {
  574. if (v.operationTime) {
  575. v.operationTime = (new Date(v.operationTime)).Format("MM-dd hh:mm");
  576. }
  577. });
  578. this.queryProcessList = res.list;
  579. } else {
  580. uni.showToast({
  581. icon: "none",
  582. title: "请求失败!",
  583. });
  584. }
  585. });
  586. }
  587. }
  588. },
  589. onLoad(options) {
  590. this.loginUser = uni.getStorageSync("userData").user;
  591. console.log(this.loginUser, 'loginUserloginUser')
  592. // #ifdef APP-PLUS
  593. webHandle("no", "app");
  594. // #endif
  595. // #ifdef H5
  596. webHandle("no", "wx");
  597. // #endif
  598. this.queryObj = options;
  599. this.queryBase(this.queryObj);
  600. },
  601. };
  602. </script>
  603. <style lang="less">
  604. .pharmacyDetails {
  605. background-color: rgb(249, 250, 251);
  606. padding-top: 32rpx;
  607. .pharmacyDetails_title {
  608. height: 100rpx;
  609. display: flex;
  610. align-items: center;
  611. background-color: #fff;
  612. .pharmacyDetails_tab {
  613. flex: 1;
  614. display: flex;
  615. align-items: center;
  616. .pharmacyDetails_label {
  617. display: flex;
  618. justify-content: center;
  619. align-items: center;
  620. font-size: 40rpx;
  621. width: 100%;
  622. height: 66rpx;
  623. border-radius: 32rpx;
  624. color: #666;
  625. }
  626. &.active {
  627. .pharmacyDetails_label {
  628. color: #333;
  629. background-color: #e5e9ed;
  630. }
  631. }
  632. }
  633. }
  634. .page_item_wrap {
  635. position: relative;
  636. margin-top: 32rpx;
  637. .page_item {
  638. margin-top: 16rpx;
  639. margin-bottom: 124rpx;
  640. background: #fff;
  641. border-radius: 8rpx;
  642. margin: 0 20rpx;
  643. border: 2rpx solid #e5e9ed;
  644. position: relative;
  645. overflow: hidden;
  646. padding: 0 16rpx;
  647. .L {
  648. width: 40rpx;
  649. height: 40rpx;
  650. border-radius: 50%;
  651. background: #f9fafb;
  652. position: absolute;
  653. left: -20rpx;
  654. top: 68rpx;
  655. border: 2rpx solid #e5e9ed;
  656. }
  657. .R {
  658. width: 40rpx;
  659. height: 40rpx;
  660. border-radius: 50%;
  661. background: #f9fafb;
  662. position: absolute;
  663. float: right;
  664. right: -20rpx;
  665. top: 68rpx;
  666. border: 2rpx solid #e5e9ed;
  667. }
  668. .page_item_top {
  669. height: 88rpx;
  670. border-bottom: 2rpx dashed #e5e9ed;
  671. padding: 0 16rpx;
  672. .page_item_top-inner {
  673. display: flex;
  674. justify-content: space-between;
  675. align-items: center;
  676. height: 100%;
  677. .page_item_top_L {
  678. .L_text {
  679. font-size: 32rpx;
  680. font-weight: 700;
  681. }
  682. }
  683. .page_item_top_R {
  684. font-size: 32rpx;
  685. .L_iocn {
  686. color: rgb(7, 134, 60);
  687. font-size: 36rpx;
  688. font-weight: 700;
  689. }
  690. }
  691. }
  692. }
  693. .page_item_cont {
  694. box-sizing: border-box;
  695. min-height: 180rpx;
  696. max-height: calc(100vh - 534rpx);
  697. padding: 0 16rpx;
  698. text-align: left;
  699. position: relative;
  700. .text_big {
  701. font-size: 32rpx;
  702. font-weight: 700;
  703. text {
  704. font-weight: 700;
  705. line-height: 1.5;
  706. }
  707. }
  708. .line {
  709. height: 20rpx;
  710. width: 2rpx;
  711. border-left: 2rpx solid #e5e9ed;
  712. position: absolute;
  713. top: 82rpx;
  714. left: 40rpx;
  715. }
  716. .page_item_cont_T {
  717. padding-top: 28rpx;
  718. font-size: 28rpx;
  719. .page_item_cont_title {
  720. height: 100%;
  721. font-size: 32rpx;
  722. display: flex;
  723. justify-content: space-between;
  724. }
  725. }
  726. .page_item_cont_B {
  727. padding-top: 28rpx;
  728. margin-bottom: 28rpx;
  729. .page_item_cont_title {
  730. font-size: 32rpx;
  731. display: flex;
  732. justify-content: space-between;
  733. align-items: center;
  734. }
  735. }
  736. .page_item_cont_C {
  737. margin-top: 28rpx;
  738. .page_item_cont_title_C {
  739. font-size: 32rpx;
  740. display: flex;
  741. justify-content: space-between;
  742. align-items: center;
  743. }
  744. }
  745. #infos {
  746. display: none;
  747. }
  748. }
  749. }
  750. .L-l {
  751. width: 2rpx;
  752. height: 40rpx;
  753. background: #f9fafb;
  754. position: absolute;
  755. left: 20rpx;
  756. top: 72rpx;
  757. }
  758. .R-l {
  759. width: 2rpx;
  760. height: 40rpx;
  761. background: #f9fafb;
  762. position: absolute;
  763. right: 20rpx;
  764. top: 72rpx;
  765. }
  766. }
  767. .cube-toolbar-item {
  768. width: 710rpx;
  769. height: 68rpx;
  770. line-height: 68rpx;
  771. position: fixed;
  772. left: 20rpx;
  773. bottom: 160rpx;
  774. border-radius: 8rpx;
  775. background: linear-gradient(to right, #72c172, #3bb197);
  776. font-size: 36rpx;
  777. color: #fff;
  778. text-align: center;
  779. }
  780. .btn-wrap {
  781. width: 100%;
  782. display: flex;
  783. justify-content: space-between;
  784. position: fixed;
  785. left: 0;
  786. bottom: 160rpx;
  787. }
  788. .cube-toolbar-item1 {
  789. flex: 1;
  790. height: 68rpx;
  791. line-height: 68rpx;
  792. border-radius: 8rpx;
  793. margin: 0 1%;
  794. background: linear-gradient(to right, #72c172, #3bb197);
  795. font-size: 36rpx;
  796. color: #fff;
  797. text-align: center;
  798. }
  799. }
  800. </style>