prescribe.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  1. <template>
  2. <view class="content">
  3. <view class="fixed-top-box">
  4. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  5. <view class="back-box" @click="back">
  6. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/back_white.png" mode=""></image>
  7. <text class="title">填写处方信息</text>
  8. <text></text>
  9. </view>
  10. </view>
  11. <view class="inner">
  12. <view :style="{height: statusBarHeight}"></view>
  13. <!-- 步骤 -->
  14. <view class="steps-box">
  15. <view class="item active">填写信息</view>
  16. <image class="arrow" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png" mode=""></image>
  17. <view class="item">医生开方</view>
  18. <image class="arrow" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png" mode=""></image>
  19. <view class="item">支付订单</view>
  20. <image class="arrow" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png" mode=""></image>
  21. <view class="item">厂家发货</view>
  22. </view>
  23. <!-- 提示 -->
  24. <view class="tip-box">
  25. <view class="top">
  26. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/safe2.png" mode=""></image>
  27. <text class="text">依据国家规定、处方药需凭处方购买</text>
  28. </view>
  29. <view class="time-tip">填写问诊人信息、处方信息</view>
  30. </view>
  31. <view class="info-box">
  32. <!-- 选择问诊人 -->
  33. <view class="chose-people">
  34. <view class="title-box">
  35. <text class="title">选择问诊人</text>
  36. <view class="add-box" @click="addPeople()">
  37. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/add26.png" mode=""></image>
  38. <text >添加</text>
  39. </view>
  40. </view>
  41. <view class="peop-list" v-if="patient.length>0">
  42. <view v-for="(item,index) in patient" :key="index" :class="patientId == item.patientId?'item active':'item'" @click="chosePatient(item)">
  43. <view class="name">{{ item.patientName }}</view>
  44. <view class="info">
  45. <text class="sex" v-if="item.gender==1">男</text>
  46. <text class="sex" v-if="item.gender==2">女</text>
  47. <text class="ege">{{$getAge(item.birthday)}}岁</text>
  48. </view>
  49. <!-- 选中的对号角标 -->
  50. <image v-if="patientId == item.patientId" class="active-img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/sel_right50.png" mode=""></image>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- <view class="text-content">
  55. <view class="title">
  56. <text class="black">主诉</text>
  57. <text class="gray">(选填)</text>
  58. </view>
  59. <textarea class="textArea" maxlength="200" @input="chiefComplaintInput" placeholder="请填写主诉内容"></textarea>
  60. </view>
  61. <view class="text-content">
  62. <view class="title">
  63. <text class="black">既往病史</text>
  64. <text class="gray">(选填)</text>
  65. </view>
  66. <textarea class="textArea" maxlength="200" @input="historyIllnessInput" placeholder="请填写既往病史内容"></textarea>
  67. </view> -->
  68. <view class="img-content">
  69. <view class="title">
  70. <text class="black">复诊凭证</text>
  71. <text class="gray">(选填) {{imgList.length}}/4</text>
  72. </view>
  73. <view class="upload-img">
  74. <view class="img" v-for="(item,index) in imgList" :key="index" >
  75. <image :src="item" mode="aspectFill" @click="previewImage(index)"></image>
  76. <view class="del" @click="delImg(index)" >
  77. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/del2.png"></image>
  78. </view>
  79. </view>
  80. <view class="chose-img" @tap="chooseImage(1)" v-if="imgList.length<4">
  81. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/adds.png"></image>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 疾病选择 -->
  86. <view class="disease-select">
  87. <view class="x-bc" @click="show=true">
  88. <view class="title">
  89. <text class="black">本次用药的确诊疾病</text>
  90. <text class="gray">(可多选)</text>
  91. </view>
  92. <u-icon name="arrow-right" color="#222" size="18" ></u-icon>
  93. </view>
  94. <view class="dise-list">
  95. <view
  96. v-for="(item,index) in activeDise"
  97. :key="index"
  98. class="item active x-bc"
  99. >
  100. {{ item }}
  101. <u-icon name="close" color="#fff" size="16" @click="choseDise(item,1)" style="margin-left: 10rpx;"></u-icon>
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 是否使用过此药 -->
  106. <view class="check-box" v-for="(que,index) in quesList" :key="index">
  107. <view class="left">
  108. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/yao.png" mode=""></image>
  109. <text class="text">{{que.title}}</text>
  110. </view>
  111. <radio-group style="display: flex;align-items: center;" @change="changeRadio($event,index,1)">
  112. <label class="label" v-for="(option,index) in que.options" :key="index">
  113. <radio :value="option" :checked="option==que.answer" style="margin-right: 16upx;" />
  114. <text class="my-radio-text">{{option}}</text>
  115. </label>
  116. </radio-group>
  117. </view>
  118. <view class="check-box">
  119. <view class="left">
  120. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/yao.png" mode=""></image>
  121. <text class="text">是否是备孕/怀孕</text>
  122. </view>
  123. <radio-group style="display: flex;align-items: center;" @change="changeRadio($event,'isLactation',0)">
  124. <label style="margin-right: 50upx;">
  125. <radio value="1" :checked="isLactation==1" style="margin-right: 16upx;" />
  126. <text class="my-radio-text">是</text>
  127. </label>
  128. <label>
  129. <radio value="0" :checked="isLactation==0" style="margin-right: 16upx;" />
  130. <text class="my-radio-text">否</text>
  131. </label>
  132. </radio-group>
  133. </view>
  134. <view class="check-box">
  135. <view class="left">
  136. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/yao.png" mode=""></image>
  137. <text class="text">是否是哺乳期</text>
  138. </view>
  139. <radio-group style="display: flex;align-items: center;" @change="changeRadio($event,'isPregnantWoman',0)">
  140. <label style="margin-right: 50upx;">
  141. <radio value="1" :checked="isPregnantWoman==1" style="margin-right: 16upx;" />
  142. <text class="my-radio-text">是</text>
  143. </label>
  144. <label>
  145. <radio value="0" :checked="isPregnantWoman==0" style="margin-right: 16upx;" />
  146. <text class="my-radio-text">否</text>
  147. </label>
  148. </radio-group>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="agreement">
  153. <label @click="handleAgreement()">
  154. <checkbox :checked="isAgreement" color="#2583EB" style="transform:scale(0.7)" />我确认已确诊此疾病并使用过该药,且无过敏史、无相关禁忌症和不良反应
  155. </label>
  156. </view>
  157. <view class="btn-box">
  158. <view class="btn" @click="submit()">去开处方</view>
  159. </view>
  160. <u-popup :show="show" :round="10" mode="bottom" closeable :closeOnClickOverlay="false" @close="close">
  161. <view class="popbox-title">
  162. <view>选择本次用药的确诊疾病</view>
  163. </view>
  164. <view class="search-cont">
  165. <view class="inner" style="margin-top:0">
  166. <image class="icon-search" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/icon_search.png" mode=""></image>
  167. <input type="text" v-model="diagnosisName" placeholder="输入疾病搜索" confirm-type="search" @confirm="doSearchUser" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" />
  168. </view>
  169. </view>
  170. <scroll-view :scroll-y="true" class="popbox" style="height: 60vh;" @scrolltolower="scrolltolower">
  171. <view v-for="(item, i) in diseaseList" :key="i" @click="choseDise(item.diagnosisName)">
  172. <view class="popbox-item x-bc">
  173. <view class="name">{{item.diagnosisName}}</view>
  174. <view v-show="activeDise.includes(item.diagnosisName)">
  175. <u-icon name="checkmark" color="#2979ff" size="22"></u-icon>
  176. </view>
  177. </view>
  178. </view>
  179. <view class="empty" v-if="diseaseList&&diseaseList.length==0">
  180. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/global_search_empty.png" mode="widthFix"></image>
  181. <view>{{msg}}</view>
  182. </view>
  183. </scroll-view>
  184. </u-popup>
  185. </view>
  186. </template>
  187. <script>
  188. import {getStoreOrderById} from '@/api/myStoreOrder.js'
  189. import {getWeixinPrescribeTemps} from '@/api/common'
  190. import {doPrescribe,diseaseQueryList} from './api/prescribe'
  191. import {getPatientList,delPatient} from '@/api/patient'
  192. export default {
  193. data() {
  194. return {
  195. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  196. order:null,
  197. temps:[],
  198. imgList: [],
  199. orderId:null,
  200. patient:[],
  201. patientId:null,
  202. patientInfo: {},
  203. // 疾病列表
  204. diseaseList: [],
  205. // 选中的疾病
  206. activeDise: [],
  207. isLactation: 0,
  208. isPregnantWoman: 0,
  209. chiefComplaint:null,
  210. historyIllness:null,
  211. diagnosisName: '',
  212. pageNum: 1,
  213. pageSize: 10,
  214. quesList:[
  215. // {
  216. // answer: "是",
  217. // subjectId: 3,
  218. // title: "是否使用过此类药物",
  219. // options: ['是','否']
  220. // },
  221. {
  222. answer: "否",
  223. subjectId: 4,
  224. title: "是否有药物过敏史",
  225. options: ['是','否']
  226. },
  227. {
  228. answer: "否",
  229. subjectId: 5,
  230. title: "肝肾功能是否有异常",
  231. options: ['是','否']
  232. }
  233. ],
  234. show: false,
  235. msg: '暂无数据',
  236. isAgreement: false,
  237. hasMore: true
  238. }
  239. },
  240. onLoad(option) {
  241. this.orderId=option.orderId
  242. this.getPatientList();
  243. uni.$on('refreshPatient', () => {
  244. this.getPatientList()
  245. })
  246. this.getWeixinPrescribeTemps();
  247. this.getStoreOrderById();
  248. this.diseaseQueryList()
  249. },
  250. onShow() {
  251. this.getPatientList();
  252. },
  253. methods: {
  254. handleAgreement() {
  255. this.isAgreement = !this.isAgreement;
  256. },
  257. back(){
  258. // uni.showToast({
  259. // icon:'none',
  260. // title: "请填写资料提交处方,否则将无法发货"
  261. // });
  262. uni.showModal({
  263. title: '提示',
  264. content: '请填写资料提交处方,否则将无法发货,确定要返回吗?',
  265. cancelColor: '#2583EB',
  266. confirmColor: '#000000',
  267. success: function (res) {
  268. if (res.confirm) {
  269. uni.navigateBack()
  270. } else if (res.cancel) {
  271. console.log('用户点击取消');
  272. }
  273. }
  274. });
  275. },
  276. close() {
  277. this.show = false
  278. },
  279. diseaseQueryList(){
  280. var that = this;
  281. const param = {
  282. orderId: this.orderId,
  283. diagnosisName: this.diagnosisName,
  284. pageNum: this.pageNum,
  285. pageSize: this.pageSize,
  286. }
  287. diseaseQueryList(param).then(
  288. res => {
  289. if(res.code==200){
  290. if (that.pageNum == 1) {
  291. that.diseaseList = res.datas;
  292. } else {
  293. that.diseaseList = that.diseaseList.concat(res.datas);
  294. }
  295. if(that.diseaseList.length>=res.total) {
  296. that.hasMore = false
  297. } else {
  298. that.hasMore = true
  299. }
  300. }else{
  301. uni.showToast({
  302. icon:'none',
  303. title: "请求失败",
  304. });
  305. that.diseaseList = [];
  306. }
  307. },
  308. rej => {}
  309. );
  310. },
  311. scrolltolower() {
  312. if(!this.hasMore) return
  313. this.pageNum++;
  314. this.diseaseQueryList()
  315. },
  316. doSearchUser() {
  317. this.hasMore = true
  318. this.pageNum = 1;
  319. this.diseaseQueryList()
  320. },
  321. changeRadio(e,name,type) {
  322. if(type==1) {
  323. this.quesList[name].answer = e.detail.value
  324. } else {
  325. this[name] = e.detail.value
  326. }
  327. },
  328. getStoreOrderById(){
  329. var data={orderId:this.orderId}
  330. getStoreOrderById(data).then(
  331. res => {
  332. if(res.code==200){
  333. this.order=res.order
  334. }else{
  335. }
  336. },
  337. rej => {}
  338. );
  339. },
  340. getWeixinPrescribeTemps(){
  341. getWeixinPrescribeTemps().then(
  342. res => {
  343. if(res.code==200){
  344. this.temps=res.temp
  345. console.log(this.temps)
  346. }else{
  347. }
  348. },
  349. rej => {}
  350. );
  351. },
  352. chiefComplaintInput(e) {
  353. this.chiefComplaint = e.detail.value
  354. },
  355. historyIllnessInput(e) {
  356. this.historyIllness = e.detail.value
  357. },
  358. // 选择图片
  359. chooseImage(type) {
  360. var that=this;
  361. uni.chooseImage({
  362. count: 4, //默认9
  363. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  364. sourceType: ['album', 'camera'], //从相册选择
  365. success: (res) => {
  366. uni.uploadFile({
  367. url: uni.getStorageSync('requestPath')+'/app/common/uploadOSS', //仅为示例,非真实的接口地址
  368. filePath: res.tempFilePaths[0],
  369. name: 'file',
  370. success: (res) => {
  371. that.imgList.push(JSON.parse( res.data).url)
  372. }
  373. });
  374. }
  375. });
  376. },
  377. //图片预览
  378. previewImage(index){
  379. //预览图片
  380. uni.previewImage({
  381. urls: this.imgList,
  382. current: this.imgList[index]
  383. });
  384. },
  385. delImg(index) {
  386. uni.showModal({
  387. title: '提示',
  388. content: '确定要删除这张图片吗?',
  389. cancelText: '取消',
  390. confirmText: '确定',
  391. success: res => {
  392. if (res.confirm) {
  393. this.imgList.splice(index, 1);
  394. }
  395. }
  396. })
  397. },
  398. submit(){
  399. console.log('this.isAgreement==',this.isAgreement)
  400. if (!this.isAgreement) {
  401. uni.showToast({
  402. icon: 'none',
  403. title: '请先勾选确认'
  404. });
  405. return false;
  406. }
  407. var that=this;
  408. if(this.patientId==null){
  409. uni.showToast({
  410. icon:'none',
  411. title: "请选择患者"
  412. });
  413. return;
  414. }
  415. uni.showLoading({
  416. title:"正在处理中"
  417. })
  418. // var data={
  419. // patientId:this.patientId,
  420. // orderId:this.orderId,
  421. // isAllergic:this.isAllergic,
  422. // isLiver:this.isLiver,
  423. // isRenal:this.isRenal,
  424. // isLactation:this.isLactation,
  425. // chiefComplaint:this.chiefComplaint,
  426. // historyIllness:this.historyIllness,
  427. // recordPic:this.imgList.toString()
  428. // }
  429. // const products = JSON.parse(this.order.itemJson)
  430. // console.log("products=",products)
  431. // let answerMedicine = this.order
  432. if(this.activeDise.length==0) {
  433. uni.showToast({
  434. icon:'none',
  435. title: "请选择本次用药的确诊疾病"
  436. });
  437. return
  438. }
  439. let products = JSON.parse(this.order.itemJson)
  440. let answerMedicine = products.map(it=>({
  441. medicineId:it.productId,
  442. number: it.num
  443. }))
  444. if(!answerMedicine||answerMedicine.length==0) {
  445. uni.showToast({
  446. icon:'none',
  447. title: "用药信息选择不正确"
  448. });
  449. return
  450. }
  451. const beforeAiDataList = [
  452. { answer: this.activeDise.join(','), subjectId: 1, title: '症状' },
  453. {
  454. answerMedicine: JSON.stringify(answerMedicine),
  455. subjectId: 2,
  456. title: '居民用药信息选择'
  457. },
  458. {
  459. answer: "是",
  460. subjectId: 3,
  461. title: "是否使用过此类药物"
  462. },
  463. ...this.quesList.map(({ answer, subjectId, title }) => ({ answer, subjectId, title }))
  464. ];
  465. const relationMap = { '本人': 1, '父母': 2,'配偶': 3, '子女': 4 };
  466. const relationship = relationMap[this.patientInfo.relation] ?? 5;
  467. const data={
  468. souceFrom: 0,//0-微信小程序,1-APP,2-H5,3-支付宝小程序
  469. storeOrderId: this.orderId,
  470. imgList:this.imgList.toString(),
  471. isLactation: this.isLactation,
  472. isPregnantWoman: this.isPregnantWoman,
  473. patientId:this.patientId,
  474. userId: uni.getStorageSync('userId'),
  475. relationship, // 1-本人,2-父母,3-配偶,4-子女,5-其他
  476. beforeAiDataList
  477. }
  478. doPrescribe(data).then(
  479. res => {
  480. uni.hideLoading()
  481. if(res.code==200){
  482. uni.redirectTo({
  483. url: '/pages/index/webview?type=prescribe&url='+encodeURIComponent(res.data)
  484. })
  485. // uni.showToast({
  486. // icon:'success',
  487. // title:res.msg,
  488. // });
  489. // var order =res.order;
  490. // uni.requestSubscribeMessage({
  491. // tmplIds: this.temps,
  492. // success(res) {
  493. // setTimeout(function(){
  494. // if(order.paid!=1){
  495. // uni.redirectTo({
  496. // url: './paymentOrder?orderId='+that.order.id
  497. // })
  498. // }
  499. // else{
  500. // uni.navigateBack({
  501. // delta: 1
  502. // });
  503. // }
  504. // },500);
  505. // },
  506. // fail(res) {
  507. // setTimeout(function(){
  508. // if(order.paid!=1){
  509. // uni.redirectTo({
  510. // url: './paymentOrder?orderId='+that.order.id
  511. // })
  512. // }
  513. // else{
  514. // uni.navigateBack({
  515. // delta: 1
  516. // });
  517. // }
  518. // },500);
  519. // }
  520. // })
  521. }else{
  522. uni.showToast({
  523. icon:'none',
  524. title: res.msg,
  525. });
  526. }
  527. },
  528. rej => {}
  529. );
  530. },
  531. getPatientList(){
  532. uni.showLoading({
  533. title:"正在加载中"
  534. })
  535. getPatientList().then(
  536. res => {
  537. uni.hideLoading()
  538. if(res.code==200){
  539. this.patient=res.data;
  540. }else{
  541. uni.showToast({
  542. icon:'none',
  543. title: "请求失败",
  544. });
  545. }
  546. },
  547. rej => {}
  548. );
  549. },
  550. // 选中问诊人
  551. chosePatient(item) {
  552. this.patientInfo = item
  553. this.patientId = item.patientId
  554. },
  555. // 添加问诊人
  556. addPeople() {
  557. uni.navigateTo({
  558. url:"/pages_user/patient"
  559. })
  560. },
  561. // 疾病选择
  562. choseDise(item) {
  563. this.activeDise.includes(item) ? this.activeDise.splice(this.activeDise.indexOf(item), 1) : this.activeDise.push(item); // 不在就加上
  564. }
  565. }
  566. }
  567. </script>
  568. <style lang="scss" scoped>
  569. .label {
  570. margin-right: 50upx;
  571. &:last-child {
  572. margin-right: 0;
  573. }
  574. }
  575. .popbox-item {
  576. padding: 24rpx;
  577. border-bottom: 1rpx solid #eee;
  578. }
  579. .agreement {
  580. padding: 40rpx 30rpx 0 30rpx;
  581. font-size: 28rpx;
  582. font-family: PingFang SC;
  583. font-weight: 500;
  584. color: #666666;
  585. }
  586. .popbox {
  587. background-color: #fff;
  588. &-title {
  589. width: 100%;
  590. display: flex;
  591. align-items: center;
  592. justify-content: center;
  593. padding: 24rpx;
  594. background-color: #fff;
  595. border-bottom: 1rpx solid #EDEEEF;
  596. box-sizing: border-box;
  597. }
  598. }
  599. .search-cont{
  600. padding: 16upx 30upx;
  601. background-color: #FFFFFF;
  602. .inner{
  603. box-sizing: border-box;
  604. width: 100%;
  605. height: 72upx;
  606. background: #F7F7F7;
  607. border-radius: 36upx;
  608. display: flex;
  609. align-items: center;
  610. padding: 0 30upx;
  611. .icon-search{
  612. width: 28upx;
  613. height: 28upx;
  614. margin-right: 20upx;
  615. }
  616. input{
  617. height: 60upx;
  618. line-height: 60upx;
  619. flex: 1;
  620. }
  621. }
  622. }
  623. .content{
  624. height: 100%;
  625. display: flex;
  626. flex-direction: column;
  627. justify-content: space-between;
  628. .fixed-top-box{
  629. width: 100%;
  630. background: linear-gradient(135deg, #2583EB 0%, #60CDC3 100%);
  631. position: fixed;
  632. top: 0;
  633. left: 0;
  634. z-index: 1000;
  635. .back-box{
  636. height: 88upx;
  637. padding-left: 22upx;
  638. display: flex;
  639. align-items: center;
  640. justify-content: space-between;
  641. padding: 0 20upx;
  642. image{
  643. width: 40upx;
  644. height: 40upx;
  645. }
  646. .title{
  647. font-size: 36upx;
  648. font-family: PingFang SC;
  649. font-weight: 500;
  650. color: #FFFFFF;
  651. }
  652. }
  653. }
  654. .inner{
  655. margin-top: 88rpx;
  656. .steps-box{
  657. height: 88upx;
  658. background: #FFFFFF;
  659. padding: 0 48upx;
  660. display: flex;
  661. align-items: center;
  662. justify-content: space-between;
  663. .item{
  664. font-size: 28upx;
  665. font-family: PingFang SC;
  666. font-weight: 500;
  667. color: #666666;
  668. &.active{
  669. font-weight: bold;
  670. color: #2583EB;
  671. }
  672. }
  673. .arrow{
  674. width: 12upx;
  675. height: 22upx;
  676. }
  677. }
  678. .tip-box{
  679. box-sizing: border-box;
  680. height: 130upx;
  681. background: #FFF4E6;
  682. padding: 26upx 0 30upx 50upx;
  683. display: flex;
  684. flex-direction: column;
  685. justify-content: space-between;
  686. .top{
  687. display: flex;
  688. align-items: center;
  689. image{
  690. width: 26upx;
  691. height: 31upx;
  692. margin-right: 10upx;
  693. }
  694. .text{
  695. font-size: 28upx;
  696. font-family: PingFang SC;
  697. font-weight: 500;
  698. color: #EF8A07;
  699. line-height: 1;
  700. }
  701. }
  702. .time-tip{
  703. padding-left: 40upx;
  704. font-size: 24upx;
  705. font-family: PingFang SC;
  706. font-weight: 500;
  707. color: #999999;
  708. line-height: 1;
  709. }
  710. }
  711. .info-box{
  712. padding: 20upx;
  713. .chose-people{
  714. box-sizing: border-box;
  715. background: #FFFFFF;
  716. border-radius: 16upx;
  717. padding: 40upx 30upx 30upx;
  718. .title-box{
  719. display: flex;
  720. align-items: center;
  721. justify-content: space-between;
  722. .title{
  723. font-size: 32upx;
  724. font-family: PingFang SC;
  725. font-weight: bold;
  726. color: #111111;
  727. }
  728. .add-box{
  729. display: flex;
  730. align-items: center;
  731. image{
  732. width: 26upx;
  733. height: 26upx;
  734. margin-right: 11upx;
  735. }
  736. text{
  737. font-size: 28upx;
  738. font-family: PingFang SC;
  739. font-weight: 500;
  740. color: #111111;
  741. }
  742. }
  743. }
  744. .peop-list{
  745. display: flex;
  746. flex-wrap: wrap;
  747. margin-top: 30upx;
  748. .item{
  749. box-sizing: border-box;
  750. padding: 18upx 30upx;
  751. width: 31.28%;
  752. height: 110upx;
  753. background: #F7F7F7;
  754. border-radius: 16upx;
  755. margin: 0 20upx 10upx 0;
  756. border: 2upx solid #F7F7F7;
  757. display: flex;
  758. flex-direction: column;
  759. justify-content: space-between;
  760. &:nth-child(3n){
  761. margin-right: 0;
  762. }
  763. &.active{
  764. background: rgba(230, 250, 247, 0);
  765. border: 2upx solid #2583EB;
  766. position: relative;
  767. }
  768. .active-img{
  769. width: 50upx;
  770. height: 50upx;
  771. position: absolute;
  772. right: -2upx;
  773. bottom: -2upx;
  774. }
  775. .name{
  776. font-size: 30upx;
  777. line-height: 1;
  778. font-family: PingFang SC;
  779. font-weight: bold;
  780. color: #111111;
  781. }
  782. .info{
  783. display: flex;
  784. align-items: center;
  785. .sex,
  786. .ege{
  787. font-size: 26upx;
  788. font-family: PingFang SC;
  789. line-height: 1;
  790. font-weight: 500;
  791. color: #666666;
  792. }
  793. .ege{
  794. margin-left: 19upx;
  795. }
  796. }
  797. }
  798. }
  799. }
  800. .disease-select{
  801. box-sizing: border-box;
  802. min-height: 286upx;
  803. background: #FFFFFF;
  804. border-radius: 16upx;
  805. padding: 40upx 30upx 22upx;
  806. margin-top: 20upx;
  807. margin-bottom: 20upx;
  808. .title{
  809. display: flex;
  810. align-items: center;
  811. align-items: flex-end;
  812. .black{
  813. font-size: 32upx;
  814. font-family: PingFang SC;
  815. font-weight: bold;
  816. color: #111111;
  817. line-height: 1;
  818. margin-left: 10upx;
  819. }
  820. .gray{
  821. font-size: 28upx;
  822. font-family: PingFang SC;
  823. color: #999999;
  824. line-height: 1;
  825. margin-left: 10upx;
  826. }
  827. }
  828. .dise-list{
  829. display: flex;
  830. flex-wrap: wrap;
  831. margin-top: 26upx;
  832. .item{
  833. box-sizing: border-box;
  834. height: 64upx;
  835. line-height: 64upx;
  836. font-size: 28upx;
  837. font-family: PingFang SC;
  838. font-weight: 500;
  839. color: #2583EB;
  840. background: #eef5fd;
  841. border: 1px solid #2583EB;
  842. padding: 0 20upx;
  843. border-radius: 32upx;
  844. margin: 0 20upx 20upx 0;
  845. &.active{
  846. background: #2583EB;
  847. border: 1px solid #2583EB;
  848. color: #FFFFFF;
  849. }
  850. }
  851. }
  852. }
  853. .text-content{
  854. box-sizing: border-box;
  855. min-height: 286upx;
  856. background: #FFFFFF;
  857. border-radius: 16upx;
  858. padding: 40upx 30upx 22upx;
  859. margin-top: 20upx;
  860. .title{
  861. display: flex;
  862. align-items: center;
  863. align-items: flex-end;
  864. .black{
  865. font-size: 32upx;
  866. font-family: PingFang SC;
  867. font-weight: bold;
  868. color: #111111;
  869. line-height: 1;
  870. margin-left: 10upx;
  871. }
  872. .gray{
  873. font-size: 28upx;
  874. font-family: PingFang SC;
  875. color: #999999;
  876. line-height: 1;
  877. margin-left: 10upx;
  878. }
  879. }
  880. .textArea{
  881. margin: 30rpx 0rpx 0rpx 0rpx;
  882. width: 100%;
  883. }
  884. }
  885. .img-content{
  886. box-sizing: border-box;
  887. min-height: 286upx;
  888. background: #FFFFFF;
  889. border-radius: 16upx;
  890. padding: 40upx 30upx 22upx;
  891. margin-top: 20upx;
  892. margin-bottom: 20upx;
  893. .title{
  894. display: flex;
  895. align-items: center;
  896. align-items: flex-end;
  897. .black{
  898. font-size: 32upx;
  899. font-family: PingFang SC;
  900. font-weight: bold;
  901. color: #111111;
  902. line-height: 1;
  903. margin-left: 10upx;
  904. }
  905. .gray{
  906. font-size: 28upx;
  907. font-family: PingFang SC;
  908. color: #999999;
  909. line-height: 1;
  910. margin-left: 10upx;
  911. }
  912. }
  913. .textArea{
  914. margin: 30rpx 0rpx 0rpx 0rpx;
  915. width: 100%;
  916. }
  917. .upload-img{
  918. margin: 30rpx 0rpx 0rpx 0rpx;
  919. width: 100%;
  920. display: flex;
  921. align-items: flex-start;
  922. .img{
  923. margin-right: 10rpx;
  924. width: 100rpx;
  925. height: 100rpx;
  926. position: relative;
  927. image{
  928. width: 100%;
  929. height: 100%;
  930. }
  931. .del{
  932. right:0rpx;
  933. top:0rpx;
  934. position: absolute;
  935. image{
  936. width: 30rpx;
  937. height:30rpx;
  938. }
  939. }
  940. }
  941. .chose-img{
  942. border-radius: 5rpx;
  943. border: 1px solid #eee;
  944. padding: 5rpx;
  945. display: flex;
  946. align-items: center;
  947. justify-content: center;
  948. width: 100rpx;
  949. height: 100rpx;
  950. image{
  951. width: 50rpx;
  952. height: 50rpx;
  953. }
  954. }
  955. }
  956. }
  957. .check-box{
  958. height: 88upx;
  959. background: #FFFFFF;
  960. border-radius: 16upx;
  961. padding: 0 30upx;
  962. display: flex;
  963. align-items: center;
  964. justify-content: space-between;
  965. .left{
  966. display: flex;
  967. align-items: center;
  968. image{
  969. width: 21upx;
  970. height: 27upx;
  971. margin-right: 20upx;
  972. }
  973. .text{
  974. font-size: 32upx;
  975. font-family: PingFang SC;
  976. font-weight: 500;
  977. color: #666666;
  978. }
  979. }
  980. .my-radio-text{
  981. font-size: 30upx;
  982. font-family: PingFang SC;
  983. font-weight: 500;
  984. color: #111111;
  985. line-height: 30upx;
  986. }
  987. }
  988. }
  989. }
  990. .btn-box{
  991. height: 120upx;
  992. padding: 30upx;
  993. // background: #FFFFFF;
  994. display: flex;
  995. align-items: center;
  996. justify-content: center;
  997. .btn{
  998. width: 100%;
  999. height: 88upx;
  1000. line-height: 88upx;
  1001. font-size: 30upx;
  1002. font-family: PingFang SC;
  1003. font-weight: bold;
  1004. color: #FFFFFF;
  1005. text-align: center;
  1006. background: #2583EB;
  1007. border-radius: 44upx;
  1008. }
  1009. }
  1010. }
  1011. </style>