feedback.js 1.04 KB
  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
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
//hospitalList.js 医院列表 联系医院

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

// 页码
var page = 0
// 地理位置信息
var latitude = 0
var longitude = 0
// 是否有更多
var hasMore = true

Page({
data: {
chooseOne: 0,
chooseTwo: 0,
chooseThree: 0,
content: ""

},
chooseOne: function () {
this.setData({
chooseOne: 1,
chooseTwo: 0,
chooseThree: 0,
})
},
chooseTwo: function () {
this.setData({
chooseOne: 0,
chooseTwo: 1,
chooseThree: 0,
})
},
chooseThree: function () {
this.setData({
chooseOne: 0,
chooseTwo: 0,
chooseThree: 1,
})
},
inputOver: function (e) {

var value = e.detail.value
this.setData({
content: value
})
},
submit: function () {
console.log(this.data.content)
}
})