|
|
@@ -9,6 +9,7 @@ Page({
|
|
|
data: {
|
|
|
text:'发送验证码',
|
|
|
info: {},
|
|
|
+ id:'',
|
|
|
uid: '',
|
|
|
show1:1,
|
|
|
show2: 1,
|
|
|
@@ -23,7 +24,7 @@ Page({
|
|
|
index:[0,0,0],
|
|
|
page:1,
|
|
|
proof_img:'',
|
|
|
- user_id:'', //用户id
|
|
|
+ user_id:0, //用户id
|
|
|
apply_id:'', //报名ID
|
|
|
phone:''
|
|
|
},
|
|
|
@@ -40,7 +41,9 @@ Page({
|
|
|
apply_id: options.apply_id
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+ this.setData({
|
|
|
+ id: options.id
|
|
|
+ })
|
|
|
var that = this;
|
|
|
wx.showNavigationBarLoading()
|
|
|
var that = this;
|
|
|
@@ -51,52 +54,14 @@ Page({
|
|
|
this.setData({
|
|
|
user_id: res.data
|
|
|
})
|
|
|
- wx.request({
|
|
|
- url: host + '/api/detail',
|
|
|
- method: 'GET',
|
|
|
- data: {
|
|
|
- type: 'conference',
|
|
|
- id: options.id,
|
|
|
- uid: res.data
|
|
|
- },
|
|
|
- success: function (res) {
|
|
|
- wx.hideNavigationBarLoading();
|
|
|
- const info = res.data.data
|
|
|
- if (info.sign_note) { info.sign_note = info.sign_note.replace(/\\n/, '\n') }
|
|
|
- that.setData({
|
|
|
- info: info
|
|
|
- })
|
|
|
- setTimeout(()=>{
|
|
|
- const query = wx.createSelectorQuery()
|
|
|
- query.select('#content').boundingClientRect(rect => {
|
|
|
- let height = rect.height;
|
|
|
- console.log(height)
|
|
|
- if(height<60){
|
|
|
- that.setData({
|
|
|
- show1:0
|
|
|
- })
|
|
|
- }
|
|
|
- }).exec()
|
|
|
- query.select('#content1').boundingClientRect(rect => {
|
|
|
- let height = rect.height;
|
|
|
- if (height < 60) {
|
|
|
- that.setData({
|
|
|
- show2: 0
|
|
|
- })
|
|
|
- }
|
|
|
- }).exec()
|
|
|
- },100)
|
|
|
- },
|
|
|
- fail: function () {
|
|
|
- wx.hideLoading();
|
|
|
- wx.showToast({
|
|
|
- title: '服务器开小差啦!',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ this.getData()
|
|
|
}
|
|
|
},
|
|
|
+ fail:err=>{
|
|
|
+ wx.switchTab({
|
|
|
+ url: '../mine/mine',
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
//中科院单位
|
|
|
@@ -116,6 +81,53 @@ Page({
|
|
|
},
|
|
|
})
|
|
|
},
|
|
|
+ getData(){
|
|
|
+ var that = this;
|
|
|
+ wx.request({
|
|
|
+ url: host + '/api/detail',
|
|
|
+ method: 'GET',
|
|
|
+ data: {
|
|
|
+ type: 'conference',
|
|
|
+ id: this.data.id,
|
|
|
+ uid: this.data.user_id
|
|
|
+ },
|
|
|
+ success: function (res) {
|
|
|
+ wx.hideNavigationBarLoading();
|
|
|
+ const info = res.data.data
|
|
|
+ if (info.sign_note) { info.sign_note = info.sign_note.replace(/\\n/, '\n') }
|
|
|
+ that.setData({
|
|
|
+ info: info
|
|
|
+ })
|
|
|
+ setTimeout(() => {
|
|
|
+ const query = wx.createSelectorQuery()
|
|
|
+ query.select('#content').boundingClientRect(rect => {
|
|
|
+ let height = rect.height;
|
|
|
+ console.log(height)
|
|
|
+ if (height < 60) {
|
|
|
+ that.setData({
|
|
|
+ show1: 0
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).exec()
|
|
|
+ query.select('#content1').boundingClientRect(rect => {
|
|
|
+ let height = rect.height;
|
|
|
+ if (height < 60) {
|
|
|
+ that.setData({
|
|
|
+ show2: 0
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).exec()
|
|
|
+ }, 100)
|
|
|
+ },
|
|
|
+ fail: function () {
|
|
|
+ wx.hideLoading();
|
|
|
+ wx.showToast({
|
|
|
+ title: '服务器开小差啦!',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
map:function(){
|
|
|
const latitude = Number(this.data.info.hotel.latitude);
|
|
|
const longitude = Number(this.data.info.hotel.longitude);
|