doctor_info.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. <template>
  2. <view class="main">
  3. <view class="u-skeleton">
  4. <view class="pr det-body">
  5. <image class="det-bg-img" mode="scaleToFill" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/doctorbanner.png"></image>
  6. <view class="det-head pr plr15 bdr8 m-bg-white mlr15 pt25 u-skeleton-fillet">
  7. <view class="m-xstart pr m-bottom-line pb25 margin-bottom-sm">
  8. <view class="m-flex overflow mr10">
  9. <view class="flex align-center">
  10. <text class="dpb fb f16">{{doctor.name||''}}</text>
  11. <text class="dpb f14 m-gray-small ml5" v-for="(itm,index) in doctor.label_texts" :key="index">{{itm.label_name||''}}</text>
  12. </view>
  13. <view class="dpb m-flex margin-top-sm">科室:{{doctor.office.name||'暂无'}} {{doctor.qualification.name||'暂无'}}</view>
  14. <view class="m-xend mt12">
  15. <view class="f12 m-gray-big">评分:<text class="m-theme">{{doctor.score}}</text>
  16. <text class="f11 margin-left-xs">分</text>
  17. </view>
  18. <view class="f12 ml15 m-gray-big">服务:<text class="m-theme">{{doctor.service_persons}}</text>
  19. <text class="f11">人</text>
  20. </view>
  21. <view class="m-flex ml15 text-sm">距离:<text class="text-sm">{{doctor.distance!='未知'?parseInt(doctor.distance/1000)+'km':'未知'}}</text></view>
  22. </view>
  23. </view>
  24. <view class="pr pt5">
  25. <view class="follow_style" @click="submitCollect" :data-index="index" :data-id="doctor.id" v-if="doctor.is_collect==0">
  26. 关注
  27. </view>
  28. <view class="follow_style" @click="submitCollect" :data-index="index" :data-id="doctor.id" style="background-color: #fff;color: rgb(208, 105, 150);border:2rpx solid rgb(208, 105, 150);"
  29. v-else>
  30. 已关注
  31. </view>
  32. <u-image shape="circle" width="120rpx" height="120rpx" :src="doctor.avatar"></u-image>
  33. </view>
  34. </view>
  35. <u-read-more :toggle="true" show-height="0" :shadow-style="shadowStyle" close-text=" " open-text=" ">
  36. <rich-text :nodes="doctor.intro"></rich-text>
  37. </u-read-more>
  38. </view>
  39. </view>
  40. <view class="gridstyle padding-sm margin-lr-sm u-skeleton-fillet">
  41. <u-grid :col="3" :border="false">
  42. <view @click="gotoxuanze" data-index="1" data-name="电话咨询" :data-istrue="doctor.is_phone">
  43. <u-grid-item :bg-color="barindex==1&&doctor.is_phone==1?'#efefef':'#fff'">
  44. <u-image width="120rpx" height="120rpx" :src="doctor.is_phone==1&&doctor.is_can_phone==1?'https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indexphone.png':'/static/img/phone_gray.png'"
  45. shape="circle"></u-image>
  46. <view class="grid-text margin-top-sm" :style="doctor.is_phone==1&&doctor.is_can_phone==1?'color:black;':'color:rgb(219,219,219)'">电话咨询</view>
  47. </u-grid-item>
  48. </view>
  49. <view class="" @click="gotoxuanze" data-index="2" data-name="图文咨询" :data-istrue="doctor.is_chat">
  50. <u-grid-item :bg-color="barindex==2&&doctor.is_chat==1?'#efefef':'#fff'">
  51. <u-image width="120rpx" height="120rpx" :src="doctor.is_chat==1&&doctor.is_can_chat==1?'https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indextu.png':'/static/img/chat_gray.png'"
  52. shape="circle"></u-image>
  53. <view class="grid-text margin-top-sm" :style="doctor.is_chat==1&&doctor.is_can_chat==1?'color:black;':'color:rgb(219,219,219)'">图文咨询</view>
  54. </u-grid-item>
  55. </view>
  56. <view class="" @click="gotoxuanze" data-index="3" data-name="门诊预约" :data-istrue="doctor.is_appoint">
  57. <u-grid-item :bg-color="barindex==3&&doctor.is_appoint==1?'#efefef':'#fff'">
  58. <u-image width="120rpx" height="120rpx" :src="doctor.is_appoint==1?'https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/toolimg/indexmen.png':'/static/img/yuyue_gray.png'"
  59. shape="circle"></u-image>
  60. <view class="grid-text margin-top-sm" :style="doctor.is_appoint==1?'color:black;':'color:rgb(219,219,219)'">门诊预约</view>
  61. </u-grid-item>
  62. </view>
  63. </u-grid>
  64. <u-line color="#efefef" :hair-line="true" />
  65. <view v-if="!isjigou" class="text-lg text-center margin-top-sm" style="color: rgb(238, 170, 63);">
  66. 平均回复低至1分钟
  67. </view>
  68. <view v-else class="text-lg margin-top-sm" style="color: rgb(238, 170, 63);border-bottom: 3rpx solid rgb(238, 170, 63); width: 530rpx;"
  69. @click="xuantime">
  70. 已选时间:{{daytime||'该医生暂未排班'}}
  71. <!-- <u-picker mode="multiSelector" @confirm="callbacktime" v-model="show" range-key="start_time_period"
  72. :range="multiSelector"></u-picker> -->
  73. </view>
  74. </view>
  75. <view class="" v-if="isjigou">
  76. <view @click="goAdrPostion(itm)" v-for="(itm,idx) in doctor.organization" :key="idx" class="pr pt10 pb10 margin-lr-sm margin-top-sm m-bg-white"
  77. style="border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
  78. <view class="pr">
  79. <view class="f18 fb plr15">机构地址</view>
  80. <view class="pr m-xcenter plr15 mt15">
  81. <image class="dpb" mode="scaleToFill" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAABx0lEQVQoU2WSP2gTcRTHv+/dH4IdmkVcFAvSgihNLi1SRKE4uNhek4I6iNLY5AQnB93dpHNBMEltIbgUc5pUF0F0cDBIk2twKiJBBAWHVgOl5u5+TxrINeCbvnz5Pnh8vo8wMBPOE8NXx6YIcpKJfu74Ox/aa9n9foT6IrFYtVjjMkHOHO7TV6Ww6JVm3x94vXBy4fkombGPUMEwEW+oMPRY44QAs0TcDfzwUms1Xe+FrXztJURsIdz0inPPkgsv4t5aZjd5u3qDGGUiqjeK9nmauLo+rOLmDyJuNQr2VMrZWBJR90DacrMwc9/K1+qAmvQDjNB4rnJcg/aN2Kg2ClcyqTuvP0nYnWQ2vM3CjGU5tQpE5gPfP03T0+/036OdLwBinT19bCjmn2JCPoBa6SreHtJpWwTdzvf2WO/mRM7NaqQ/BeFN92949/Oe3z57xBgxTe0xgMuhCm9trWTKfXSUcmquKJUGUQBgF0AcIroQvfKKtg2QRJyt7PpRMmKbosITEWfW2vD3zzVXr/2KOEfFOO4FFu0tRJnE+h8odbFRmmv912DfSObcB8zGI5HgerOYqQy+Q3TGofmQE7nx9FZp3h0MHuh/o0mz0Kcr4U0AAAAASUVORK5CYII="
  82. style="width: 10px; height: 12px;"></image>
  83. <view class="m-flex tl ml5">{{itm.name||'无'}}</view>
  84. </view>
  85. <view class="pr m-xcenter plr15 mt10">
  86. <view class="m-flex tl m-gray-small f12 pl15 mr5">地址:{{itm.address||'无'}}</view>
  87. <view class="pt2 pb2 plr10 f12 m-gray-small br-gray-letter bdr30" v-if="itm.distance!='0'">
  88. {{itm.distance/1000||'暂无距离'}}km
  89. </view>
  90. <view class="pt2 pb2 plr10 f12 m-gray-small br-gray-letter bdr30" wx:else>暂无距离</view>
  91. <text class="dpb iconfont icon-arrow-right m-gray-letter f20"></text>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="margin-lr-sm mt15 bg-white u-skeleton-fillet" style="border-radius: 16rpx; box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);"
  97. v-if="doctor.evaluate.length!=0">
  98. <view class="f18 fb flex align-center plr15 pt15">患者评价 <text class="f12 m-gray-letter margin-left-xs">({{doctor.evaluate.length}})</text>
  99. </view>
  100. <view class="cu-list menu-avatar card-menu">
  101. <view class="cu-item" v-for="(item,index) in doctor.evaluate" :key="index">
  102. <view class="cu-avatar round lg" :style="'background-image:url('+item.user.avatar+');'"></view>
  103. <view class="content">
  104. <view class="text-grey margin-right-sm">
  105. {{item.user.nickname}}
  106. <u-rate :count="5" v-model="item.score" :disabled="true"></u-rate>
  107. </view>
  108. <view class="text-gray text-sm flex">
  109. <text class="text-cut">
  110. {{item.content}}
  111. </text>
  112. </view>
  113. </view>
  114. <view class="action" style="width: 124rpx;">
  115. <view class="text-grey text-xs">{{item.created_at}}</view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="cu-tabbar-height"></view>
  121. <view class="cu-tabbar-height"></view>
  122. </view>
  123. <view class="cu-bar bg-white tabbar border shop" style="position: fixed; bottom: 0; z-index: 99;width: 100%;">
  124. <button class="action text-orange" open-type="share" style="width: 200rpx;">
  125. <view class="cuIcon-share text-orange">
  126. </view>
  127. 分享
  128. </button>
  129. <button v-if="barindex==1" class="submit text-white" :disabled="isphone||doctor.is_can_phone!=1" @click="phonezixun"
  130. :style="!isphone&&doctor.is_can_phone==1?'background-color: rgb(11,115,186);font-size: 26rpx;':'font-size: 26rpx;color:gray'">电话咨询</button>
  131. <button v-else-if="barindex==2" class="submit text-white" :disabled="istuwen||doctor.is_can_chat!=1" @click="phonezixun"
  132. :style="!istuwen&&doctor.is_can_chat==1?'background-color: rgb(11,115,186);font-size: 26rpx;':'font-size: 26rpx;color:gray'">图文咨询</button>
  133. <button v-else class="submit text-white" @click="phonezixun" :disabled="ismenzhen||daytime==''||is_can_appoint==0"
  134. :style="!ismenzhen&&daytime!=''&&is_can_appoint!=0?'background-color: rgb(11,115,186);font-size: 26rpx;':'font-size: 26rpx;color:gray'">门诊预约</button>
  135. </view>
  136. <u-no-network></u-no-network>
  137. <u-skeleton :loading="loading" el-color="#ddd" :animation="true" bgColor="#FFF"></u-skeleton>
  138. <u-popup v-model="dateshow" :safe-area-inset-bottom="true" mode="bottom" border-radius="14" length="50%" height="700rpx">
  139. <datepicker :date="multiSelector" @callbacktime="callbacktime" type="3" ref="date"></datepicker>
  140. </u-popup>
  141. </view>
  142. </template>
  143. <script>
  144. import datepicker from '../../components/datepicker/datepicker'
  145. var user = require('../../common/user.js');
  146. export default {
  147. components: {
  148. datepicker
  149. },
  150. onLoad(options) {
  151. this.doctorid = options.id
  152. if (options.time != undefined) {
  153. this.daytime = options.time
  154. }
  155. this.barindex = options.index
  156. if (this.barindex == 3) {
  157. this.isjigou = true
  158. } else {
  159. this.isjigou = false
  160. }
  161. console.log(this.daytime)
  162. },
  163. onShow() {
  164. this.gettime()
  165. this.getdoctorInfo()
  166. },
  167. mounted() {
  168. },
  169. data() {
  170. return {
  171. doctorid: "",
  172. doctor: {},
  173. shadowStyle: {
  174. backgroundImage: "none"
  175. },
  176. isjigou: false,
  177. barindex: 1, //显示按钮
  178. daytime: "",
  179. multiSelector: [],
  180. show: false,
  181. istime: false,
  182. hospital: "",
  183. address: "",
  184. distance: "",
  185. jigouid: "",
  186. year: "",
  187. yearid: "",
  188. isphone: false,
  189. istuwen: false,
  190. ismenzhen: false,
  191. loading: false,
  192. is_can_appoint: "",
  193. dateshow: false,
  194. is_date_obsolete: "",
  195. location: {}
  196. }
  197. },
  198. onShareAppMessage() {
  199. },
  200. methods: {
  201. getdoctorInfo: async function() {
  202. this.loading = true
  203. let res = await this.$request.post("/api/v1/docter/docterDetail", {
  204. docter_id: this.doctorid,
  205. latitude: uni.getStorageSync("latitude"),
  206. longitude: uni.getStorageSync("longitude")
  207. })
  208. console.log(res)
  209. if (res) {
  210. this.loading = false
  211. }
  212. this.doctor = res
  213. this.doctor.is_chat != 0 ? this.istuwen = false : this.istuwen = true
  214. this.doctor.is_phone != 0 ? this.isphone = false : this.isphone = true
  215. this.doctor.is_appoint != 0 || this.multiSelector.length != 0 ? this.ismenzhen = false : this.ismenzhen = true
  216. console.log(this.ismenzhen)
  217. },
  218. submitCollect: async function(e) {
  219. let res = await this.$request.post("/api/v1/collection/submitCollect", {
  220. type: 1,
  221. relation_id: e.currentTarget.dataset.id
  222. })
  223. let status = user.islogin(res)
  224. if (status) {
  225. if (res.data.is_collect == 0) {
  226. uni.showToast({
  227. title: "取消成功",
  228. icon: "none"
  229. })
  230. this.doctor.is_collect = res.data.is_collect
  231. } else {
  232. uni.showToast({
  233. title: "关注成功",
  234. icon: "none"
  235. })
  236. this.doctor.is_collect = res.data.is_collect
  237. }
  238. }
  239. },
  240. gettime: async function() {
  241. this.multiSelector = []
  242. let res = await this.$request.post("/api/v1/docter/schedulePeriodList", {
  243. docter_id: this.doctorid,
  244. latitude: uni.getStorageSync('latitude'),
  245. longitude: uni.getStorageSync('longitude')
  246. })
  247. if (res.status == 0) {
  248. if (res.data.data.length != 0) {
  249. // let nian = res.data.data.map(item => {
  250. // return item.schedule_date
  251. // })
  252. // let time = res.data.data.map(item => {
  253. // return item.schedule_period.map(itm => {
  254. // itm.organization.org_id = itm.organization['id']
  255. // return {
  256. // can_appoint_num: itm.can_appoint_num,
  257. // ...itm.organization,
  258. // ...itm.time_period
  259. // }
  260. // })
  261. // })
  262. // time[0].forEach(item => {
  263. // item.start_time_period = item.start_time_period + '-' + item.end_time_period
  264. // })
  265. // this.multiSelector.push(nian)
  266. // time[0].sort((a,b)=> {return a.end_time_period>b.end_time_period?1:-1})
  267. // this.multiSelector.push(time[0])
  268. // console.log(this.multiSelector)
  269. // this.daytime = this.multiSelector[0][0] + " " + this.multiSelector[1][0].start_time_period
  270. // this.hospital = this.multiSelector[1][0].name
  271. // this.address = this.multiSelector[1][0].address
  272. // this.jigouid = this.multiSelector[1][0].org_id
  273. // this.is_can_appoint = this.multiSelector[1][0].can_appoint_num
  274. // this.year = this.multiSelector[0][0]
  275. // console.log(this.jigouid)
  276. // this.yearid = this.multiSelector[1][0].id
  277. // console.log(this.yearid)
  278. // this.distance = parseInt(this.multiSelector[1][0].distance) / 1000
  279. let times = []
  280. let nian = res.data.data.map(item => {
  281. if (item.schedule_period.length != 0) {
  282. return {
  283. date: item.schedule_date,
  284. id: item.id,
  285. week: item.week
  286. }
  287. }
  288. })
  289. res.data.data.forEach(item => {
  290. if (item.schedule_period.length != 0) {
  291. let time = item.schedule_period.map(itm => {
  292. if (item.id == itm.schedule_id) {
  293. if (itm.time_period != null) {
  294. itm.organization.org_id = itm.organization['id']
  295. return {
  296. yeardate: itm.schedule_date,
  297. schedule_id: itm.schedule_id,
  298. can_appoint_num: itm.can_appoint_num,
  299. ...itm.organization,
  300. ...itm.time_period
  301. }
  302. }
  303. }
  304. })
  305. time = time.filter(item => item !== undefined)
  306. times.push(time)
  307. }
  308. })
  309. nian = nian.filter(item => item !== undefined)
  310. this.multiSelector.push(nian)
  311. times.forEach((item, index) => {
  312. item.sort((a, b) => {
  313. return a.end_time_period > b.end_time_period ? 1 : -1
  314. })
  315. // for (let i = item.length - 1; i >= 0; i--) {
  316. // let arr = item[i].yeardate + " " + item[i].end_time_period;
  317. // arr = arr.split(/[- :]/)
  318. // let nndate = Date.parse(new Date(arr[0], arr[1] - 1, arr[2], arr[3], arr[4]));
  319. // let currentTime = Date.parse(new Date())
  320. // // console.log(nndate<currentTime,index)
  321. // if (nndate < currentTime) {
  322. // item.splice(i, 1)
  323. // }
  324. // }
  325. })
  326. this.multiSelector.push(times)
  327. this.daytime = this.multiSelector[0][0].date + " " + this.multiSelector[1][0][0].start_time_period + "-" + this.multiSelector[
  328. 1][0][0].end_time_period
  329. this.is_date_obsolete = this.multiSelector[0][0].date + " " + this.multiSelector[
  330. 1][0][0].end_time_period
  331. this.hospital = this.multiSelector[1][0][0].name
  332. this.address = this.multiSelector[1][0][0].address
  333. this.jigouid = this.multiSelector[1][0][0].org_id
  334. this.is_can_appoint = this.multiSelector[1][0][0].can_appoint_num
  335. this.year = this.multiSelector[0][0].date
  336. this.yearid = this.multiSelector[1][0][0].id
  337. this.distance = parseInt(this.multiSelector[1][0][0].distance) / 1000
  338. this.location = {
  339. latitude: this.multiSelector[1][0][0].latitude - 0,
  340. longitude: this.multiSelector[1][0][0].longitude - 0,
  341. name: this.multiSelector[1][0][0].name,
  342. address: this.multiSelector[1][0][0].address,
  343. }
  344. let arr = this.multiSelector[1][0]
  345. arr.forEach(item => {
  346. item.year = nian[0].date
  347. })
  348. this.$refs.date.rightday = arr
  349. console.log(this.multiSelector)
  350. }
  351. }
  352. },
  353. goAdrPostion(itm) {
  354. uni.openLocation({
  355. latitude: Number(itm.latitude),
  356. longitude: Number(itm.longitude),
  357. name: itm.name,
  358. address: itm.address,
  359. success: (res) => {
  360. console.log(res)
  361. },
  362. fail: (err) => {
  363. console.log(err)
  364. }
  365. })
  366. },
  367. gotoxuanze(e) {
  368. if (e.currentTarget.dataset.istrue == 0) {
  369. uni.showToast({
  370. title: "该医生暂未开通服务",
  371. icon: "none",
  372. duration: 1500
  373. })
  374. return false
  375. }
  376. this.barindex = e.currentTarget.dataset.index
  377. if (this.barindex == 3) {
  378. this.isjigou = true
  379. } else {
  380. this.isjigou = false
  381. }
  382. },
  383. phonezixun() {
  384. let arr = this.is_date_obsolete.split(/[- :]/)
  385. let nndate = new Date(arr[0], arr[1] - 1, arr[2], arr[3], arr[4]);
  386. nndate = Date.parse(nndate)
  387. let currentTime = Date.parse(new Date())
  388. if (this.barindex == 3) {
  389. if (nndate < currentTime) {
  390. uni.showToast({
  391. title: "不可预约已过时间",
  392. icon: "none"
  393. })
  394. return false
  395. }
  396. }
  397. uni.navigateTo({
  398. url: "info_write?doctor=" + JSON.stringify(this.doctor) + "&type=" + this.barindex + "&time=" + this.daytime +
  399. "&hospital=" + this.hospital + "&jigou=" + this.jigouid + "&year=" + this.year + "&yearid=" + this.yearid
  400. })
  401. },
  402. xuantime() {
  403. if (this.multiSelector.length != 0) {
  404. this.dateshow = !this.dateshow
  405. } else {
  406. uni.showToast({
  407. title: "该医生暂未排班",
  408. icon: "none"
  409. })
  410. }
  411. },
  412. callbacktime(item) {
  413. console.log(item)
  414. // this.daytime = this.multiSelector[0][arr[0]] + " " + this.multiSelector[1][arr[1]].start_time_period
  415. // this.hospital = this.multiSelector[1][arr[1]].name
  416. // this.address = this.multiSelector[1][arr[1]].address
  417. // this.jigouid = this.multiSelector[1][arr[1]].org_id
  418. // this.is_can_appoint = this.multiSelector[1][arr[1]].can_appoint_num
  419. // this.year = this.multiSelector[0][arr[0]]
  420. // console.log(this.multiSelector[1][arr[1]])
  421. // this.yearid = this.multiSelector[1][arr[1]].id
  422. // console.log(this.yearid)
  423. // this.distance = parseInt(this.multiSelector[1][arr[1]].distance) / 1000
  424. this.is_date_obsolete = item.year + " " + item.end_time_period
  425. this.daytime = item.year + " " + item.start_time_period + "-" + item.end_time_period
  426. this.hospital = item.name
  427. this.address = item.address
  428. this.jigouid = item.org_id
  429. this.is_can_appoint = item.can_appoint_num
  430. this.year = item.year
  431. this.yearid = item.id
  432. this.distance = parseInt(item.distance) / 1000
  433. this.dateshow = false
  434. this.location = item
  435. }
  436. }
  437. };
  438. </script>
  439. <style scoped>
  440. @import url("../index/mine.css");
  441. .gridstyle {
  442. height: 340rpx;
  443. background-color: #fff;
  444. border-radius: 16rpx;
  445. margin-top: 30rpx;
  446. box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);
  447. }
  448. .det-body {
  449. z-index: 1;
  450. padding-top: 80rpx;
  451. }
  452. .det-bg-img {
  453. position: absolute;
  454. top: 0;
  455. left: 0;
  456. right: 0;
  457. z-index: 1;
  458. display: block;
  459. width: 100%;
  460. height: 267rpx;
  461. }
  462. .det-head {
  463. z-index: 2;
  464. box-shadow: 0 0 50rpx 0 rgba(248, 151, 164, 0.13);
  465. }
  466. .det-attention {
  467. position: absolute;
  468. display: block;
  469. bottom: -22rpx;
  470. right: 50%;
  471. z-index: 1;
  472. width: 128rpx;
  473. height: auto;
  474. margin-right: -64rpx;
  475. padding: 4rpx 0;
  476. background-color: #F897A1;
  477. box-sizing: border-box;
  478. }
  479. .det-attention.active {
  480. background-color: #E6E6E6;
  481. }
  482. .det-item {
  483. width: calc((100% - 120rpx) / 4);
  484. }
  485. .det-item.active {
  486. background-color: rgba(255, 123, 114, 0.24);
  487. }
  488. .det-item .text {
  489. color: rgba(0, 0, 0, 0.54);
  490. }
  491. .det-item .price {
  492. color: rgba(0, 0, 0, 0.40);
  493. }
  494. .det-item.active .text,
  495. .det-item.active .price {
  496. color: #FF979C;
  497. }
  498. .det-item.disabled .text,
  499. .det-item.disabled .price {
  500. color: rgba(0, 0, 0, 0.3);
  501. }
  502. .button-reset {
  503. height: 102rpx;
  504. background: none !important;
  505. color: rgba(0, 0, 0, 0.54) !important;
  506. }
  507. button::after {
  508. border: none;
  509. }
  510. .button-reset::after {
  511. border: none;
  512. }
  513. .package-list {
  514. width: 100%;
  515. height: 178rpx;
  516. overflow: hidden;
  517. }
  518. .package-list .warp {
  519. white-space: nowrap;
  520. overflow: scroll;
  521. }
  522. .package-list .warp .list {
  523. background: red;
  524. display: inline-block;
  525. font-size: 14px;
  526. width: 266rpx;
  527. height: 178rpx;
  528. background: linear-gradient(270deg, rgba(255, 100, 101, 1) 0%, rgba(255, 148, 133, 1) 100%);
  529. box-shadow: 0px 3px 5px 0px rgba(255, 110, 110, 0.5);
  530. border-radius: 8rpx;
  531. margin-right: 18rpx;
  532. padding: 30rpx 20rpx 24rpx 20rpx;
  533. overflow: hidden;
  534. }
  535. .package-list .warp .list:nth-child(3) {
  536. margin-right: 0;
  537. }
  538. .package-list .warp .list .name {
  539. font-size: 30rpx;
  540. font-weight: 500;
  541. color: rgba(255, 255, 255, 1);
  542. line-height: 30rpx;
  543. }
  544. .package-list .warp .list .desc {
  545. font-size: 24rpx;
  546. font-weight: 400;
  547. color: rgba(255, 255, 255, .87);
  548. margin-top: 16rpx;
  549. line-height: 24rpx;
  550. }
  551. .package-list .warp .list .price {
  552. font-size: 24rpx;
  553. font-weight: 500;
  554. color: rgba(255, 255, 255, 1);
  555. margin-top: 30rpx;
  556. line-height: 24rpx;
  557. }
  558. .det-desc {
  559. height: 40px;
  560. overflow: hidden;
  561. }
  562. .det-desc.active {
  563. height: auto;
  564. }
  565. .follow_style {
  566. position: absolute;
  567. bottom: -12rpx;
  568. left: 8rpx;
  569. z-index: 1;
  570. width: 106rpx;
  571. height: 40rpx;
  572. padding: 4rpx 0;
  573. background-color: rgb(208, 105, 150);
  574. box-sizing: border-box;
  575. color: #fff;
  576. text-align: center;
  577. border-radius: 60rpx;
  578. font-size: 24rpx;
  579. display: flex;
  580. justify-content: center;
  581. align-items: center;
  582. }
  583. </style>