Commit ba6f24356e25da13ab2c1a7e3cde289029317bd1

Authored by shaoshuai
1 parent c2c9a6fd18
Exists in master

联系医院

Showing 8 changed files with 176 additions and 37 deletions

woman/app.wxss View file @ ba6f243
... ... @@ -1549,4 +1549,7 @@
1549 1549 .font-weight-600{
1550 1550 font-weight: 600;
1551 1551 }
  1552 +.font-weight-400{
  1553 + font-weight: 400;
  1554 +}
woman/pages/hospitalDetail/hospitalDetail.js View file @ ba6f243
... ... @@ -7,37 +7,65 @@
7 7 //获取应用实例
8 8 var hosipitalImgs = []
9 9 Page({
10   - data: {
11   - hosiptalInfo: {},
12   - },
13   - onLoad: function (option) {
14   - console.log(option.hosipitalId)
15   - this.requestDataWithId("216")
16   - },
17   - // 预览图片
18   - previewImage: function (e) {
19   - var current = e.target.dataset.src
20   - wx.previewImage({
21   - current: current,
22   - urls: hosipitalImgs
23   - })
24   - },
25   - /*---------自定义函数--------*/
26   - // 获取信息
27   - requestDataWithId(hosipitalId){
28   - var self = this
29   - networkUtil._get(api.hospitalDetail + hosipitalId,{},function(res){
30   - console.log(res)
31   - res.data.images.map(function(item){
32   - hosipitalImgs.push(item.real)
33   - return item
34   - })
35   - self.setData({
36   - hosiptalInfo : res.data
37   - })
38   - },function(res){
39   - console.log(res)
40   - })
41   - }
  10 + data: {
  11 + hosiptalInfo: {
  12 +
  13 + "account": "zcf",
  14 + "areaId": "13",
  15 + "chartroomId": "212756700659718",
  16 + "cityId": "14",
  17 + "dept": "产科",
  18 + "description": "医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍医院介绍。。",
  19 + "hospitalId": "216",
  20 + "hospitalName": "秦皇岛市妇幼保健院",
  21 + "hxName": "mommydoctorwx20004",
  22 + "id": 20004,
  23 + "lastLoginTime": "2020-10-11 17:25:06",
  24 + "name": "张春芳",
  25 + "openId": "",
  26 + "parentId": 1000,
  27 + "phone": "",
  28 + "positional": "副主任医师",
  29 + "price": 20,
  30 + "provinceId": "1",
  31 + "pwd": "E10ADC3949BA59ABBE56E057F20F883E",
  32 + "status": 0,
  33 + "type": 1,
  34 + "username": "张春芳",
  35 + "goodAt": "医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能",
  36 + "expertCase": "医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能医生技能"
  37 +
  38 +
  39 + },
  40 + },
  41 + onLoad: function(option) {
  42 + console.log(option.hosipitalId)
  43 + // this.requestDataWithId("216")
  44 + },
  45 + // 预览图片
  46 + previewImage: function(e) {
  47 + var current = e.target.dataset.src
  48 + wx.previewImage({
  49 + current: current,
  50 + urls: hosipitalImgs
  51 + })
  52 + },
  53 + /*---------自定义函数--------*/
  54 + // 获取信息
  55 + requestDataWithId(hosipitalId) {
  56 + var self = this
  57 + networkUtil._get(api.hospitalDetail + hosipitalId, {}, function(res) {
  58 + console.log(res)
  59 + res.data.images.map(function(item) {
  60 + hosipitalImgs.push(item.real)
  61 + return item
  62 + })
  63 + self.setData({
  64 + hosiptalInfo: res.data
  65 + })
  66 + }, function(res) {
  67 + console.log(res)
  68 + })
  69 + }
42 70 })
woman/pages/hospitalDetail/hospitalDetail.json View file @ ba6f243
1 1 {
2   - "navigationBarBackgroundColor": "#ffffff",
  2 +
3 3 "navigationBarTitleText": "联系医院",
4 4 "navigationBarTextStyle": "black"
5 5 }
woman/pages/hospitalDetail/hospitalDetail.wxml View file @ ba6f243
1 1 <!--pages/hospitalDetail/hospitalDetail.wxml-->
2   -<text>pages/hospitalDetail/hospitalDetail.wxml</text>
  2 +
  3 +<scroll-view scroll-y="true" style="height: 100%;">
  4 + <view class="">
  5 + <image class="bg_hospital margin-lr40 margin-t20 " src="../../source/hos.png" mode="aspectFill"></image>
  6 + </view>
  7 +
  8 + <view class="">
  9 + <view class="below_title">医院概况</view>
  10 + <view class="font-333-34 margin-l40 font-weight-500 ">
  11 + 某地市妇幼保健院
  12 + </view>
  13 + <view class='below_text'>{{hosiptalInfo.description}}</view>
  14 + <view class="below_title">联系方式</view>
  15 + <view class="i-row i-align-center font-4F4F4F-28 margin-l40" style="height: 36rpx;">
  16 + <view class="font-weight-500">地址 </view>
  17 + <view class="margin-l16">某某省某某市某某区某某号</view>
  18 + <view class="btn_item margin-l16">导航</view>
  19 + </view>
  20 + <view class="i-row i-align-center font-4F4F4F-28 margin-l40 margin-t10" style="height: 36rpx;">
  21 + <view class="font-weight-500">电话 </view>
  22 + <view class="margin-l16">0357-1231234</view>
  23 + <view class="btn_item margin-l16">拨号</view>
  24 + </view>
  25 +
  26 + </view>
  27 +</scroll-view>
woman/pages/hospitalDetail/hospitalDetail.wxss View file @ ba6f243
1 1 /**hospitalDetail.wxss 医院详情介绍**/
  2 +
  3 +/* 上部分 */
  4 +.specialty_text {
  5 + font-size: 28rpx;
  6 + font-weight: 500;
  7 + line-height: 22rpx;
  8 + background: linear-gradient(135deg, #FFB4B4 0%, #FF8EA9 100%);
  9 + -webkit-background-clip: text;
  10 + -webkit-text-fill-color: transparent;
  11 + display: flex;
  12 + flex-direction: row;
  13 +}
  14 +
  15 +.specialty_tip {
  16 + width: 94rpx;
  17 + height: 32rpx;
  18 + border-radius: 10rpx 10rpx 10rpx 10rpx;
  19 + opacity: 1;
  20 + border: 2rpx solid #ff8ea9;
  21 + font-weight: 500;
  22 + line-height: 32rpx;
  23 + color: #ff8ea9;
  24 + text-align: center;
  25 + font-size: 18rpx;
  26 +}
  27 +
  28 +.doctor_avatar {
  29 + width: 70px;
  30 + height: 70px;
  31 + margin-top: 15px;
  32 + background-color: lightgray;
  33 + border-radius: 50%;
  34 +}
  35 +
  36 +
  37 +
  38 +/*下部分*/
  39 +
  40 +
  41 +
  42 +.below_title {
  43 + font: mediuml;
  44 + width: 128rpx;
  45 + height: 45rpx;
  46 + font-size: 28rpx;
  47 + font-weight: 500;
  48 + line-height: 38rpx;
  49 + background: linear-gradient(135deg, #FFB4B4 0%, #FF8EA9 100%);
  50 + -webkit-background-clip: text;
  51 + -webkit-text-fill-color: transparent;
  52 + margin: 20rpx 40rpx;
  53 +}
  54 +
  55 +.below_text {
  56 + width: 670rpx;
  57 + font-size: 26rpx;
  58 + font-weight: 400;
  59 + color: #828282;
  60 + line-height: 30rpx;
  61 + margin: 40rpx;
  62 +
  63 +}
  64 +
  65 +.bg_hospital{
  66 + width: 670rpx;
  67 + height: 282rpx;
  68 + border-radius: 0rpx 0rpx 0rpx 0rpx;
  69 + opacity: 1;
  70 +}
  71 +.btn_item{
  72 + width: 68rpx;
  73 + height: 30rpx;
  74 + border-radius: 30rpx;
  75 + opacity: 1;
  76 + border: 2rpx solid rgba(255, 142, 169, 1);
  77 + color: #FF8EA9;
  78 + text-align: center;
  79 + line-height: 30upx;
  80 + font-size: 20rpx;
  81 +
  82 +}
2 83 .hospitalDetail{
3 84 background: #f3f3f3;
4 85 }
woman/pages/mine/mine.js View file @ ba6f243
... ... @@ -7,7 +7,11 @@
7 7 data: {
8 8  
9 9 },
10   -
  10 + goHospitalDetail() {
  11 + wx.navigateTo({
  12 + url: '../hospitalDetail/hospitalDetail'
  13 + })
  14 + },
11 15 /**
12 16 * 生命周期函数--监听页面加载
13 17 */
woman/pages/mine/mine.wxml View file @ ba6f243
... ... @@ -25,7 +25,7 @@
25 25  
26 26 </view>
27 27  
28   - <view class="i-row i-between i-align-center margin-lr42 margin-t40 ">
  28 + <view class="i-row i-between i-align-center margin-lr42 margin-t40 " bindtap="goHospitalDetail">
29 29 <view class="i-row i-align-center">
30 30 <view class="mine_icon"> </view>
31 31 <view class="font-4F4F4F-34 margin-l20">医院介绍</view>
woman/source/hos.png View file @ ba6f243

298 KB