hospitalDetail.js 1005 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
//hospitalDetail.js 医院详情介绍

// 网络请求工具类
var networkUtil = require('../../utils/network_util.js')
var api = require('../../utils/apiFile.js')

Page({
data: {
hosiptalInfo: {},
isShowOne: false,
isShowTwo: false,
isShowThree: false,
},
onLoad: function (option) {
},
isShowMore:function(e){
var self=this
console.log(e)
var index =e.currentTarget.dataset.index
console.log(index)
if(index==1){
self.setData({
isShowOne: !self.data.isShowOne,
isShowTwo: false,
isShowThree: false,
})
} if (index == 2) {
self.setData({
isShowOne: false ,
isShowTwo: !self.data.isShowTwo,
isShowThree: false,
})
} if (index == 3) {
self.setData({
isShowOne: false,
isShowTwo: false,
isShowThree: !self.data.isShowThree,
})
}
}

})