packs_details.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <template>
  2. <view style="width: 100%;height: 100%;background-color: #ececec;">
  3. <!-- 卡券 -->
  4. <view class="card">
  5. <view class="card_view">
  6. <!-- 放图片 标题 -->
  7. <view class="title">
  8. <image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/横占位图.png" class="img"></image>
  9. </view>
  10. <!-- 放描述 -->
  11. <view class="describe">
  12. <view style="font-size: 40rpx;font-weight: bold;">{{tcID}}</view>
  13. <view style="font-size: 28rpx;font-weight: bold;padding-top: 60rpx;">有效期</view>
  14. <view style="font-size: 26rpx;color: #999999;padding-top: 30rpx;">自购买服务起{{tcTime}}</view>
  15. <view style="font-size: 28rpx;font-weight: bold;padding-top: 50rpx;">服务包内容介绍</view>
  16. <view style="font-size: 26rpx;color: #999999;">
  17. <view style="padding: 27rpx 0 12rpx 0;">{{tcContent.content}}</view>
  18. <view style="padding: 12rpx 0;">{{tcContent.scope}}</view>
  19. <view style="padding: 12rpx 0;">{{tcContent.giving}}</view>
  20. </view>
  21. <view style="font-size: 28rpx;font-weight: bold;padding-top: 48rpx;">家属团队</view>
  22. <view class="list" v-for="item,index in tcTeam" :key='index'>
  23. <!-- 头像 -->
  24. <view class="portrait">
  25. <view style="padding-top: 20rpx;">
  26. <image class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/头像.png"></image>
  27. <view class="bun" @click="follow">关注</view>
  28. </view>
  29. </view>
  30. <!-- 文字 -->
  31. <view class="text">
  32. <!-- 名字+标签 -->
  33. <view class="name">
  34. <view style="margin-right: 15rpx;">{{item.name}}</view>
  35. <view class="label">{{item.label1}}</view>
  36. <view class="label">{{item.label2}}</view>
  37. </view>
  38. <!-- 科室 -->
  39. <view class="department">
  40. <text>科室:</text>
  41. <text style="color: #333333;">{{item.department1}}</text>
  42. <text style="color: #333333;">{{item.department2}}</text>
  43. </view>
  44. <!-- 选项 -->
  45. <view class="option">
  46. <view>图文</view>
  47. <view>电话</view>
  48. <view>门诊</view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 协议 -->
  56. <view style="height: 200rpx;width: 100%;display: flex;justify-content: flex-end;">
  57. <view style="height: 35rpx;width: auto;font-size: 24rpx;margin-right: 30rpx;display: flex;align-items: center;">
  58. <image @click="isqueren" :src="imgitem.name" mode="" style="width: 30rpx;height: 30rpx;margin-right: 10rpx;"></image>
  59. <text style="color: #999999;">已阅读并同意</text>
  60. <text style="color: #0B73B9;">《超级宝妈宝》</text>
  61. <text style="color: #999999;">服务协议</text>
  62. </view>
  63. </view>
  64. <!-- 两个半圆 -->
  65. <view class="round" style="position:absolute;top: 25vh;right:0;"></view>
  66. <view class="round" style="position:absolute;top: 25vh;"></view>
  67. <!-- 底部按钮 -->
  68. <view class="footer">
  69. <view class="cu-bar bg-white tabbar border shop" style="width: 100%;">
  70. <button class="action" open-type="contact" style="width: 33%;">
  71. <view class="cuIcon-service text-green">
  72. </view>
  73. 客服
  74. </button>
  75. <view class="submit" @click="next" style="background-color: #0B73B9; color: #FFFFFF;">下一步</view>
  76. </view>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. export default {
  82. name: 'productdetailspage',
  83. data() {
  84. return {
  85. //协议
  86. num: 1,
  87. imgitem: {
  88. istrue: false,
  89. name: "https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyi.png"
  90. },
  91. tcID: '套餐一', //ID
  92. tcTime: '一年', //套餐有效期
  93. tcContent: { //套餐内容
  94. content: '套餐一包含包含疫苗接种、门诊预约、儿保预约三项服务', //内容
  95. scope: '使用范围:家医团队可用,有效期内无限次、300元额度以内门诊预约与儿保预约无限制', //范围
  96. giving: '赠送XXXX保险:保险介绍' //赠送
  97. },
  98. tcTeam: [{
  99. id: '1',
  100. name: '熊大',
  101. label1: '熊',
  102. label2: '主角',
  103. department1: '外科',
  104. department2: '主任医师'
  105. }, {
  106. id: '1',
  107. name: '熊二',
  108. label1: '熊',
  109. label2: '主角',
  110. department1: '外科',
  111. department2: '主任医师'
  112. }, {
  113. id: '1',
  114. name: '光头强',
  115. label1: '人',
  116. label2: '主角',
  117. department1: '外科',
  118. department2: '主任医师'
  119. }, {
  120. id: '1',
  121. name: '李老板',
  122. label1: '人',
  123. label2: '配角',
  124. department1: '外科',
  125. department2: '主任医师'
  126. }, {
  127. id: '1',
  128. name: '吉吉国王',
  129. label1: '猴子',
  130. label2: '配角',
  131. department1: '外科',
  132. department2: '主任医师'
  133. }, {
  134. id: '1',
  135. name: '毛毛',
  136. label1: '猴子',
  137. label2: '配角',
  138. department1: '外科',
  139. department2: '主任医师'
  140. }, {
  141. id: '1',
  142. name: '蹦蹦',
  143. label1: '猴子',
  144. label2: '配角',
  145. department1: '外科',
  146. department2: '主任医师'
  147. }],
  148. packs: {
  149. id: '', //ID
  150. name: '', //名称
  151. intro: '', //简介
  152. desc: '', //详细介绍
  153. price: '', //价格(单位分)
  154. team_id: '', //医生团队ID
  155. phone_minutes: '', //电话分钟数
  156. chat_num: '', //图文咨询次数
  157. appoint_num: '', //门诊预约次数
  158. vaccine_limit_amount: '', //疫苗总金额限制
  159. nurses_limit_amount: '', //儿保总金额限制
  160. effective_days: '', //有效天数
  161. created_at: '', //创建时间
  162. updated_at: '' //更新时间
  163. }
  164. }
  165. },
  166. methods: {
  167. //关注
  168. follow(e) {
  169. },
  170. isqueren() {
  171. this.num++
  172. if (this.num % 2 == 0) {
  173. this.imgitem.name = "https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyixuan.png"
  174. this.imgitem.istrue = true
  175. } else {
  176. this.imgitem.name = "https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/xieyi.png"
  177. this.imgitem.istrue = false
  178. }
  179. },
  180. next(e) {
  181. if (this.imgitem.istrue == false) {
  182. uni.showToast({
  183. icon: 'none',
  184. position: 'bottom',
  185. title: '请先同意《协议》'
  186. });
  187. }else{
  188. uni.navigateTo({
  189. url:'/pages/service_packs/packs_information'
  190. })
  191. }
  192. }
  193. }
  194. }
  195. </script>
  196. <style lang="scss">
  197. .footer {
  198. width: 100%;
  199. height: auto;
  200. display: flex;
  201. position: fixed;
  202. bottom: 0;
  203. }
  204. .round {
  205. height: 45rpx;
  206. width: 50rpx;
  207. border-radius: 50%;
  208. background-color: #ececec;
  209. }
  210. .card {
  211. padding: 30rpx 30rpx;
  212. box-sizing: border-box;
  213. .card_view {
  214. width: 100%;
  215. background-color: #ffffff;
  216. border-radius: 15rpx;
  217. .title {
  218. width: 100%;
  219. height: 20vh;
  220. display: flex;
  221. justify-content: center;
  222. align-items: flex-end;
  223. .img {
  224. width: 90%;
  225. height: 90%;
  226. }
  227. }
  228. .describe {
  229. width: 100%;
  230. height: 1;
  231. padding: 100rpx 40rpx 20rpx 40rpx;
  232. }
  233. }
  234. }
  235. .list {
  236. margin: 20rpx 0 10rpx 0;
  237. display: flex;
  238. width: 100%;
  239. height: 200rpx;
  240. border-radius: 15rpx;
  241. background-color: #FFFFFF;
  242. box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
  243. .portrait {
  244. width: 30%;
  245. height: 100%;
  246. display: flex;
  247. justify-content: center;
  248. align-items: center;
  249. .img {
  250. width: 100rpx;
  251. height: 100rpx;
  252. border-radius: 50%;
  253. }
  254. .bun {
  255. text-align: center;
  256. width: 80rpx;
  257. height: 36rpx;
  258. background-color: #D92975;
  259. margin: 0 10rpx;
  260. border-radius: 60rpx;
  261. position: relative;
  262. top: -20rpx;
  263. font-size: 20rpx;
  264. color: #FFFFFF;
  265. padding: 3rpx 0;
  266. }
  267. }
  268. //文字
  269. .text {
  270. width: 70%;
  271. height: 100%;
  272. padding: 20rpx 0;
  273. //名字+标签
  274. .name {
  275. font-size: 30rpx;
  276. font-weight: bold;
  277. display: flex;
  278. align-items: center;
  279. .label {
  280. font-weight: 400;
  281. margin-right: 15rpx;
  282. background-color: #E5F5FF;
  283. color: #0B73B9;
  284. width: 100rpx;
  285. height: 28rpx;
  286. font-size: 20rpx;
  287. border-radius: 10rpx;
  288. text-align: center;
  289. }
  290. }
  291. //科室
  292. .department {
  293. padding: 20rpx 0;
  294. color: #666666;
  295. text {
  296. margin-right: 15rpx;
  297. }
  298. }
  299. // 选项
  300. .option {
  301. display: flex;
  302. view {
  303. background-color: #E4E4E4;
  304. width: 100rpx;
  305. height: 48rpx;
  306. border-radius: 12px;
  307. margin-right: 15rpx;
  308. display: flex;
  309. justify-content: center;
  310. align-items: center;
  311. }
  312. }
  313. }
  314. }
  315. </style>