doctor_info.vue 20 KB

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