editUserOrderPrescribe.vue 28 KB

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