Showing
42 changed files
with
4684 additions
and
0 deletions
Too many changes to show.
To preserve performance only 42 of 290 files are displayed.
app.js
0 → 100644
| 1 | + | |
| 2 | +App({ | |
| 3 | + url: 'https://nature.docroot.drupalagile.com', | |
| 4 | + onLaunch: function () { | |
| 5 | + | |
| 6 | + this.getUserInfo() | |
| 7 | + | |
| 8 | + }, | |
| 9 | + | |
| 10 | + getUserInfo: function (cb) { | |
| 11 | + | |
| 12 | + if (this.globalData.userInfo) { | |
| 13 | + typeof cb == "function" && cb(this.globalData.userInfo) | |
| 14 | + } else { | |
| 15 | + //调用登录接口 | |
| 16 | + wx.login({ | |
| 17 | + success: function (res) { | |
| 18 | + | |
| 19 | + if (res.code) { | |
| 20 | + //获取用户信息 | |
| 21 | + wx.getUserInfo({ | |
| 22 | + success: function (infores) { | |
| 23 | + console.info('iv', infores.iv); | |
| 24 | + console.info('encryptedData', infores.encryptedData); | |
| 25 | + typeof cb == "function" && cb(that.globalData.userInfo); | |
| 26 | + //插入修改会员表返回openid | |
| 27 | + wx.request({ | |
| 28 | + url: 'https://nature.docroot.drupalagile.com/mpapi/1.0.0/user/login', | |
| 29 | + method: 'POST', | |
| 30 | + header: { | |
| 31 | + 'content-type': 'application/json', | |
| 32 | + 'x-wx-encrypted-data': infores.encryptedData, | |
| 33 | + 'x-wx-iv': infores.iv, | |
| 34 | + 'x-wx-code': res.code | |
| 35 | + }, | |
| 36 | + | |
| 37 | + success: function (inforesres) { | |
| 38 | + console.info('返回-skey', inforesres.data.data); | |
| 39 | + wx.setStorage({ | |
| 40 | + key: "key", | |
| 41 | + data: inforesres.data.data.skey | |
| 42 | + }) | |
| 43 | + console.info('WO去登录了e获得skey', inforesres.data.data.skey) | |
| 44 | + wx.setStorage({ | |
| 45 | + key: "timexx", | |
| 46 | + data: new Date | |
| 47 | + }) | |
| 48 | + wx.setStorage({ | |
| 49 | + key: "user", | |
| 50 | + data: inforesres.data.data.wxUserinfo | |
| 51 | + }) | |
| 52 | + wx.setStorage({ | |
| 53 | + key: "information", | |
| 54 | + data: inforesres.data.data.userProfile | |
| 55 | + }) | |
| 56 | + var data = inforesres.data; | |
| 57 | + console.info('打印状态403需重新登陆', inforesres.statusCode); | |
| 58 | + if (data.error == 0) { | |
| 59 | + //wx.setStorageSync('openId', 'sns_wa_' + data.openId);//存储到本地缓存openid | |
| 60 | + | |
| 61 | + } | |
| 62 | + }, | |
| 63 | + fail: function (err) { | |
| 64 | + console.info('打印状态403需重新登陆', err.statusCode); | |
| 65 | + } | |
| 66 | + }) | |
| 67 | + | |
| 68 | + | |
| 69 | + }, | |
| 70 | + | |
| 71 | + fail: function (err) { | |
| 72 | + console.info('测试222222222222状态', err.statusCode); | |
| 73 | + wx.redirectTo({ | |
| 74 | + url: '../ceshi4/ceshi4', | |
| 75 | + | |
| 76 | + }) | |
| 77 | + } | |
| 78 | + | |
| 79 | + }) | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + } | |
| 86 | + | |
| 87 | + | |
| 88 | + } | |
| 89 | + | |
| 90 | + }) | |
| 91 | + | |
| 92 | + } | |
| 93 | + }, | |
| 94 | + | |
| 95 | + globalData: { | |
| 96 | + userInfo: null | |
| 97 | + } | |
| 98 | +}) | |
| \ No newline at end of file | ... | ... |
app.json
0 → 100644
| 1 | +{ | |
| 2 | + "pages": [ | |
| 3 | + "pages/index/index", | |
| 4 | + "pages/ceshi1/ceshi1", | |
| 5 | + | |
| 6 | + | |
| 7 | + "pages/jobfair/jobfair", | |
| 8 | + "pages/ceshi4/ceshi4", | |
| 9 | + "pages/member/member", | |
| 10 | + "pages/gzjh/gzjh", | |
| 11 | + "pages/xzpx/xzpx", | |
| 12 | + "pages/xzpxdetail/xzpxdetail", | |
| 13 | + "pages/lwrs/lwrs", | |
| 14 | + "pages/zyjy/zyjy", | |
| 15 | + "pages/academiclist/academiclist", | |
| 16 | + "pages/recruit/recruit", | |
| 17 | + "pages/jobfairdetail/jobfairdetail", | |
| 18 | + "pages/zyjydetail/zyjydetail", | |
| 19 | + "pages/academic/academic", | |
| 20 | + "pages/ceshi2/ceshi2", | |
| 21 | + "pages/activity/join/join", | |
| 22 | + "pages/activity/Interest/Interest", | |
| 23 | + "pages/contact/contact" | |
| 24 | + ], | |
| 25 | + "window": { | |
| 26 | + "backgroundTextStyle": "light", | |
| 27 | + "navigationBarBackgroundColor": "#fff", | |
| 28 | + "navigationBarTitleText": "WeChat", | |
| 29 | + "navigationBarTextStyle": "black" | |
| 30 | + } | |
| 31 | +} | |
| \ No newline at end of file | ... | ... |
app.wxss
0 → 100644
pages/academic/academic.js
0 → 100644
| 1 | +var app = getApp(); | |
| 2 | +var WxParse = require('../../wxParse/wxParse.js'); | |
| 3 | +Page({ | |
| 4 | + | |
| 5 | + data: { | |
| 6 | + id: '', | |
| 7 | + skey: '', | |
| 8 | + information: '', | |
| 9 | + tanchuang: false, | |
| 10 | + tanchuang1: false, | |
| 11 | + con: '', | |
| 12 | + disabled: false, | |
| 13 | + disabled1: false, | |
| 14 | + }, | |
| 15 | + scroll: function (e) { | |
| 16 | + console.log('eeeee', e) | |
| 17 | + console.log(e.detail.scrollTop) | |
| 18 | + var that = this | |
| 19 | + var scrollTop = e.detail.scrollTop | |
| 20 | + that.setData({ | |
| 21 | + scrollTop: e.detail.scrollTop | |
| 22 | + }) | |
| 23 | + | |
| 24 | + }, | |
| 25 | + /** | |
| 26 | + * 生命周期函数--监听页面加载 | |
| 27 | + */ | |
| 28 | + onLoad: function (options) { | |
| 29 | + var that = this | |
| 30 | + var id = options.id | |
| 31 | + that.setData({ | |
| 32 | + id: id | |
| 33 | + }) | |
| 34 | + | |
| 35 | + var con = that.data.con | |
| 36 | + var skey = wx.getStorageSync('key') | |
| 37 | + var information = that.data.information | |
| 38 | + wx.request({ | |
| 39 | + url: app.url + '/mpapi/1.0.0/user/profile', | |
| 40 | + method: 'GET', | |
| 41 | + header: { | |
| 42 | + 'content-type': 'application/json', | |
| 43 | + 'x-wx-skey': skey | |
| 44 | + }, | |
| 45 | + data: { | |
| 46 | + // type:'job_fair,academic_conference,writing_training', | |
| 47 | + // offset: 0, | |
| 48 | + // limit: 4 | |
| 49 | + // id:'1' | |
| 50 | + }, | |
| 51 | + success: function (res) { | |
| 52 | + | |
| 53 | + console.log('xinxi', res.data) | |
| 54 | + that.setData({ | |
| 55 | + information: res.data | |
| 56 | + }) | |
| 57 | + } | |
| 58 | + }) | |
| 59 | + console.log('id', id) | |
| 60 | + if (id == "") { | |
| 61 | + wx.showToast({ | |
| 62 | + title: '访问错误!', | |
| 63 | + icon: 'success', | |
| 64 | + duration: 2000 | |
| 65 | + }) | |
| 66 | + return false; | |
| 67 | + } | |
| 68 | + console.log('skey', skey) | |
| 69 | + that.setData({ | |
| 70 | + skey: skey | |
| 71 | + }) | |
| 72 | + | |
| 73 | + wx.getSystemInfo({ | |
| 74 | + success: function (res) { | |
| 75 | + that.setData({ | |
| 76 | + windowHeight: res.windowHeight | |
| 77 | + }) | |
| 78 | + }, | |
| 79 | + }) | |
| 80 | + console.log('idddddd', id) | |
| 81 | + wx.request({ | |
| 82 | + url: app.url + '/mpapi/1.0.0/academic-conference/' + id, | |
| 83 | + method: 'GET', | |
| 84 | + header: { | |
| 85 | + 'content-type': 'application/json', | |
| 86 | + 'x-wx-skey': skey | |
| 87 | + }, | |
| 88 | + data: { | |
| 89 | + // tag:'junior', | |
| 90 | + // offset:4, | |
| 91 | + // limit:4 | |
| 92 | + }, | |
| 93 | + success: function (res) { | |
| 94 | + wx.setNavigationBarTitle({ | |
| 95 | + title: res.data.data.title | |
| 96 | + }) | |
| 97 | + console.log('con', res.data.data) | |
| 98 | + that.setData({ | |
| 99 | + con: res.data.data | |
| 100 | + }) | |
| 101 | + var body = res.data.data.content; | |
| 102 | + WxParse.wxParse('body', 'html', body, that, 5); | |
| 103 | + var body1 = res.data.data.extendContent; | |
| 104 | + WxParse.wxParse('body1', 'html', body1, that, 5); | |
| 105 | + var time = Date.parse(new Date) | |
| 106 | + console.log('time', time) | |
| 107 | + var shijian = Date.parse(res.data.data.eventDateEnd) | |
| 108 | + var shijian1 = Date.parse(res.data.data.eventDateStart) | |
| 109 | + console.log('shijian', shijian) | |
| 110 | + | |
| 111 | + // if (shijian1 > time) { | |
| 112 | + // that.setData({ | |
| 113 | + // disabled1: false, | |
| 114 | + // }) | |
| 115 | + // return false | |
| 116 | + // } | |
| 117 | + // if (time >= shijian1 && time < shijian) { | |
| 118 | + // that.setData({ | |
| 119 | + // disabled1: false, | |
| 120 | + // }) | |
| 121 | + // return false | |
| 122 | + // } | |
| 123 | + | |
| 124 | + if (time > shijian) { | |
| 125 | + // console.log('disabled1', disabled1) | |
| 126 | + that.setData({ | |
| 127 | + disabled1: true, | |
| 128 | + }) | |
| 129 | + return false | |
| 130 | + } else { | |
| 131 | + wx.request({ | |
| 132 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 133 | + method: 'GET', | |
| 134 | + header: { | |
| 135 | + 'content-type': 'application/json', | |
| 136 | + 'x-wx-skey': skey | |
| 137 | + }, | |
| 138 | + data: { | |
| 139 | + // tag:'junior', | |
| 140 | + // offset:4, | |
| 141 | + // limit:4 | |
| 142 | + // tag: 'join', | |
| 143 | + // contentId: id, | |
| 144 | + // type: 'join' | |
| 145 | + type: 'academic_conference ', | |
| 146 | + offset: 0, | |
| 147 | + limit: 100000 | |
| 148 | + }, | |
| 149 | + success: function (res) { | |
| 150 | + console.log('res', res) | |
| 151 | + var res = res.data.data | |
| 152 | + var disabled = that.data.disabled | |
| 153 | + // var res = res.data.data | |
| 154 | + for (var x in res) { | |
| 155 | + console.log('res[x]', res[x]) | |
| 156 | + if (id == res[x].contentId) { | |
| 157 | + console.log('bbb', res[x].contentId) | |
| 158 | + that.setData({ | |
| 159 | + disabled: true | |
| 160 | + }) | |
| 161 | + } | |
| 162 | + } | |
| 163 | + } | |
| 164 | + }) | |
| 165 | + } | |
| 166 | + } | |
| 167 | + }) | |
| 168 | + // wx.request({ | |
| 169 | + // url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 170 | + // method: 'GET', | |
| 171 | + // header: { | |
| 172 | + // 'content-type': 'application/json', | |
| 173 | + // 'x-wx-skey': skey | |
| 174 | + // }, | |
| 175 | + // data: { | |
| 176 | + // // tag:'junior', | |
| 177 | + // // offset:4, | |
| 178 | + // // limit:4 | |
| 179 | + // // tag: 'join', | |
| 180 | + // // contentId: id, | |
| 181 | + // // type: 'join' | |
| 182 | + // type: 'job_fair ', | |
| 183 | + // offset: 0, | |
| 184 | + // limit: 100 | |
| 185 | + // }, | |
| 186 | + // success: function (res) { | |
| 187 | + // console.log('res', res) | |
| 188 | + // var res = res.data.data | |
| 189 | + // var disabled = that.data.disabled | |
| 190 | + // // var res = res.data.data | |
| 191 | + | |
| 192 | + // for (var x in res) { | |
| 193 | + // console.log('res[x]', res[x]) | |
| 194 | + // var time = Date.parse(new Date) | |
| 195 | + // console.log('time', time) | |
| 196 | + // var shijian = Date.parse(res[x].content.eventDateEnd) | |
| 197 | + // console.log('shijian', shijian) | |
| 198 | + // if (time >= shijian) { | |
| 199 | + // // console.log('disabled1', disabled1) | |
| 200 | + // that.setData({ | |
| 201 | + // disabled1: true, | |
| 202 | + // }) | |
| 203 | + // } else { | |
| 204 | + // if (id == res[x].contentId) { | |
| 205 | + // console.log('bbb', res[x].contentId) | |
| 206 | + // that.setData({ | |
| 207 | + // disabled: true | |
| 208 | + // }) | |
| 209 | + // } if (id == res[x].contentId) { | |
| 210 | + // console.log('bbb', res[x].contentId) | |
| 211 | + // that.setData({ | |
| 212 | + // disabled: true | |
| 213 | + // }) | |
| 214 | + // } | |
| 215 | + // } | |
| 216 | + // } | |
| 217 | + // } | |
| 218 | + // }) | |
| 219 | + }, | |
| 220 | + adduserfavorite: function () { | |
| 221 | + var that = this | |
| 222 | + var skey = that.data.skey | |
| 223 | + var tanchuang = that.data.tanchuang | |
| 224 | + var id = that.data.id | |
| 225 | + var disabled = that.data.disabled | |
| 226 | + var information = that.data.information | |
| 227 | + console.log('information1', information) | |
| 228 | + if (information.agency && information.major && information.mobile && information.name && information.email && information.position) { | |
| 229 | + console.log(1111) | |
| 230 | + wx.request({ | |
| 231 | + url: app.url + '/mpapi/1.0.0/user/favorite', | |
| 232 | + method: 'POST', | |
| 233 | + header: { | |
| 234 | + 'content-type': 'application/json', | |
| 235 | + 'x-wx-skey': skey | |
| 236 | + }, | |
| 237 | + data: { | |
| 238 | + // tag:'junior', | |
| 239 | + // offset:4, | |
| 240 | + // limit:4 | |
| 241 | + tag: 'join', | |
| 242 | + contentId: id, | |
| 243 | + type: 'academic_conference' | |
| 244 | + }, | |
| 245 | + success: function (res) { | |
| 246 | + console.log(res) | |
| 247 | + that.setData({ | |
| 248 | + tanchuang: true, | |
| 249 | + disabled: true | |
| 250 | + }) | |
| 251 | + } | |
| 252 | + }) | |
| 253 | + } else { | |
| 254 | + console.log(222) | |
| 255 | + that.setData({ | |
| 256 | + tanchuang1: true | |
| 257 | + }) | |
| 258 | + } | |
| 259 | + }, | |
| 260 | + yincang: function () { | |
| 261 | + var that = this | |
| 262 | + var tanchuang = that.data.tanchuang | |
| 263 | + that.setData({ | |
| 264 | + tanchuang: false | |
| 265 | + }) | |
| 266 | + }, | |
| 267 | + yincang1: function () { | |
| 268 | + var that = this | |
| 269 | + var tanchuang1 = that.data.tanchuang1 | |
| 270 | + that.setData({ | |
| 271 | + tanchuang1: false | |
| 272 | + }) | |
| 273 | + }, | |
| 274 | + /** | |
| 275 | + * 生命周期函数--监听页面初次渲染完成 | |
| 276 | + */ | |
| 277 | + onReady: function () { | |
| 278 | + | |
| 279 | + }, | |
| 280 | + | |
| 281 | + /** | |
| 282 | + * 生命周期函数--监听页面显示 | |
| 283 | + */ | |
| 284 | + onShow: function () { | |
| 285 | + console.log('onshow') | |
| 286 | + var that = this | |
| 287 | + var skey = wx.getStorageSync('key') | |
| 288 | + var tanchuang1 = that.data.tanchuang1 | |
| 289 | + that.setData({ | |
| 290 | + tanchuang1: false | |
| 291 | + }) | |
| 292 | + wx.request({ | |
| 293 | + url: app.url + '/mpapi/1.0.0/user/profile', | |
| 294 | + method: 'GET', | |
| 295 | + header: { | |
| 296 | + 'content-type': 'application/json', | |
| 297 | + 'x-wx-skey': skey | |
| 298 | + }, | |
| 299 | + data: { | |
| 300 | + // type:'job_fair,academic_conference,writing_training', | |
| 301 | + // offset: 0, | |
| 302 | + // limit: 4 | |
| 303 | + // id:'1' | |
| 304 | + }, | |
| 305 | + success: function (res) { | |
| 306 | + console.log('xinxi', res.data) | |
| 307 | + that.setData({ | |
| 308 | + information: res.data | |
| 309 | + }) | |
| 310 | + } | |
| 311 | + }) | |
| 312 | + | |
| 313 | + }, | |
| 314 | + | |
| 315 | + /** | |
| 316 | + * 生命周期函数--监听页面隐藏 | |
| 317 | + */ | |
| 318 | + onHide: function () { | |
| 319 | + | |
| 320 | + }, | |
| 321 | + | |
| 322 | + /** | |
| 323 | + * 生命周期函数--监听页面卸载 | |
| 324 | + */ | |
| 325 | + onUnload: function () { | |
| 326 | + | |
| 327 | + }, | |
| 328 | + | |
| 329 | + /** | |
| 330 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 331 | + */ | |
| 332 | + onPullDownRefresh: function () { | |
| 333 | + | |
| 334 | + }, | |
| 335 | + | |
| 336 | + /** | |
| 337 | + * 页面上拉触底事件的处理函数 | |
| 338 | + */ | |
| 339 | + onReachBottom: function () { | |
| 340 | + | |
| 341 | + }, | |
| 342 | + | |
| 343 | + /** | |
| 344 | + * 用户点击右上角分享 | |
| 345 | + */ | |
| 346 | + onShareAppMessage: function () { | |
| 347 | + | |
| 348 | + } | |
| 349 | +}) | |
| \ No newline at end of file | ... | ... |
pages/academic/academic.json
0 → 100644
pages/academic/academic.wxml
0 → 100644
| 1 | +<scroll-view scroll-y="true" scroll-top="{{scrollTop}}" style="height:{{windowHeight}}px;" upper-threshold="20px" lower-threshold="20px" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="{{scrollY}}"> | |
| 2 | + | |
| 3 | +<view style="font-size:28rpx;"> | |
| 4 | + <view class="head"> | |
| 5 | + <view class="con1"> | |
| 6 | + <image src='{{con.detailImage[0].url}}' mode='widthFix'></image> | |
| 7 | + </view> | |
| 8 | + <view class="con2"> | |
| 9 | + <view class="top"> | |
| 10 | + <view style='color:#a8a8a8;'>{{con.eventDate}}</view> | |
| 11 | + <text>{{con.title}}</text> | |
| 12 | + </view> | |
| 13 | + <!-- <import src="../../wxParse/wxParse.wxml" /> | |
| 14 | + <view class="wxParse"> | |
| 15 | + <view class="bot"> | |
| 16 | + <template is="wxParse" data="{{wxParseData:body.nodes}}" /> | |
| 17 | + </view> | |
| 18 | + </view> --> | |
| 19 | + </view> | |
| 20 | + </view> | |
| 21 | + <view class="content1"> | |
| 22 | + <view class="con1"> | |
| 23 | + <view class="top">培训时间:</view> | |
| 24 | + <view class="bot">{{con.dateDetail}}</view> | |
| 25 | + </view> | |
| 26 | + <view class="con1"> | |
| 27 | + <view class="top">培训地点:</view> | |
| 28 | + <view class="bot">{{con.local}}</view> | |
| 29 | + </view> | |
| 30 | + </view> | |
| 31 | + <view class="content2"> | |
| 32 | + <view class="con1"> | |
| 33 | + <!-- <view class="title">由两位来自自然出版集团的编辑担任主讲人</view> | |
| 34 | + <view class="con"> | |
| 35 | + <view class="top">Myles Axton</view> | |
| 36 | + <view class="mind">我爱北京天安门</view> | |
| 37 | + <view class="bot"> | |
| 38 | + 我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门 | |
| 39 | + </view> | |
| 40 | + </view> | |
| 41 | + <view class="con"> | |
| 42 | + <view class="top">Myles Axton</view> | |
| 43 | + <view class="mind">我爱北京天安门</view> | |
| 44 | + <view class="bot"> | |
| 45 | + 我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门我爱北京天安门 | |
| 46 | + </view> | |
| 47 | + </view> --> | |
| 48 | + <import src="../../wxParse/wxParse.wxml" /> | |
| 49 | + <view class="wxParse"> | |
| 50 | + <template is="wxParse" data="{{wxParseData:body.nodes}}" /> | |
| 51 | + </view> | |
| 52 | + </view> | |
| 53 | + <view class="con2"> | |
| 54 | + <import src="../../wxParse/wxParse.wxml" /> | |
| 55 | + <view class="wxParse"> | |
| 56 | + <template is="wxParse" data="{{wxParseData:body1.nodes}}" /> | |
| 57 | + </view> | |
| 58 | + </view> | |
| 59 | + </view> | |
| 60 | + <view class="button {{disabled ? 'block' : 'hide'}}"> | |
| 61 | + <!-- disabled="true" --> | |
| 62 | + <button disabled="true">已报名</button> | |
| 63 | + </view> | |
| 64 | + <view class="button {{disabled ? 'hide' : 'block'}}"> | |
| 65 | + <!-- disabled="true" --> | |
| 66 | + <button bindtap='adduserfavorite'>我想参加</button> | |
| 67 | + </view> | |
| 68 | + <view class="button {{disabled1 ? 'block' : 'hide'}}"> | |
| 69 | + <!-- disabled="true" --> | |
| 70 | + <button disabled="true">活动已结束</button> | |
| 71 | +</view> | |
| 72 | + <view style='height:100rpx; width:100%;'></view> | |
| 73 | + <view class="bgbg {{tanchuang ? 'block' : 'hide'}}" bindtap='yincang'></view> | |
| 74 | + <view class="bgbg1 {{tanchuang1 ? 'block' : 'hide'}}" bindtap='yincang'></view> | |
| 75 | + <view class="tanchuang {{tanchuang ? 'block' : 'hide'}}"> | |
| 76 | + <view class="top"> | |
| 77 | + <image src='/static/images/duihao.png'></image> | |
| 78 | + </view> | |
| 79 | + <view class="mind">已报名</view> | |
| 80 | + <view class="center">稍后会发送注册链接</view> | |
| 81 | + <view class="bot">请查收邮箱</view> | |
| 82 | + <view class='subbtn' bindtap='yincang'>关闭</view> | |
| 83 | + </view> | |
| 84 | + <view class="tanchuang1 {{tanchuang1 ? 'block' : 'hide'}}"> | |
| 85 | + <view class="top"> | |
| 86 | + </view> | |
| 87 | + <view class="mind">你还没有完善档案</view> | |
| 88 | + <view class="center">无法完成报名</view> | |
| 89 | + <view style='margin-top:35rpx;'> | |
| 90 | + <navigator bindtap='yincang1'>取消</navigator> | |
| 91 | + <navigator url='../member/member?id={{id}}'>去完善</navigator> | |
| 92 | + <view class="cl"></view> | |
| 93 | + </view> | |
| 94 | + </view> | |
| 95 | +</view> | |
| 96 | +<view class="{{scrollTop>309 ? 'block' : 'hide'}} content4"> | |
| 97 | + <view class="top"><text>{{con.city}}</text> | {{con.eventDate}}</view> | |
| 98 | + <view class="bot">{{con.title}}</view> | |
| 99 | + </view> | |
| 100 | +</scroll-view> | |
| \ No newline at end of file | ... | ... |
pages/academic/academic.wxss
0 → 100644
| 1 | +/* pages/recruit/recruit.wxss */ | |
| 2 | +@import "../../wxParse/wxParse.wxss"; | |
| 3 | +page{ | |
| 4 | + height: 100%; | |
| 5 | +} | |
| 6 | +.fl { | |
| 7 | + float: left; | |
| 8 | +} | |
| 9 | + | |
| 10 | +.fr { | |
| 11 | + float: right; | |
| 12 | +} | |
| 13 | + | |
| 14 | +.cl { | |
| 15 | + clear: both; | |
| 16 | +} | |
| 17 | +.display{ | |
| 18 | + display: block; | |
| 19 | +} | |
| 20 | +.hide{ | |
| 21 | + display: none; | |
| 22 | +} | |
| 23 | +.head { | |
| 24 | + position: relative; | |
| 25 | + width: 100%; | |
| 26 | +} | |
| 27 | + | |
| 28 | +.head .con1 image { | |
| 29 | + width: 100%; | |
| 30 | +} | |
| 31 | + | |
| 32 | +.head .con2 { | |
| 33 | + position: absolute; | |
| 34 | + left: 7.5%; | |
| 35 | + bottom: 70rpx; | |
| 36 | + width: 85%; | |
| 37 | + color: #e9eeea; | |
| 38 | +} | |
| 39 | +.head .con2 .top text{ | |
| 40 | + display: block; | |
| 41 | + margin-top: 15rpx; | |
| 42 | + font-weight: bold; | |
| 43 | + font-size: 34rpx; | |
| 44 | +} | |
| 45 | +.head .con2 .top{ | |
| 46 | + color: #ececec; | |
| 47 | +} | |
| 48 | +.head .con2 .bot{ | |
| 49 | + line-height: 45rpx; | |
| 50 | + margin-top: 15rpx; | |
| 51 | +} | |
| 52 | +.content1{ | |
| 53 | + background: #f2f2f2; | |
| 54 | + padding: 30rpx 0 15rpx 0; | |
| 55 | +} | |
| 56 | +.content1 .con1{ | |
| 57 | + margin-bottom: 30rpx; | |
| 58 | + line-height: 45rpx; | |
| 59 | + border-left: #d81f25 solid 6rpx; | |
| 60 | + width: 85%; | |
| 61 | + padding-left: 7.5%; | |
| 62 | +} | |
| 63 | +.content1 .con1 .top{ | |
| 64 | + font-weight: bold; | |
| 65 | +} | |
| 66 | +.content2{ | |
| 67 | + width: 85%; | |
| 68 | + margin-left: 7.5%; | |
| 69 | + margin-top: 30rpx; | |
| 70 | +} | |
| 71 | +.content2 .con1 .title{ | |
| 72 | + width: 100%; | |
| 73 | + text-align: center; | |
| 74 | + margin-top: 40rpx; | |
| 75 | +} | |
| 76 | +.content2 .con1 .con{ | |
| 77 | + margin-bottom: 50rpx; | |
| 78 | + margin-top: 40rpx; | |
| 79 | +} | |
| 80 | +.content2 .con1 .con .top{ | |
| 81 | + font-weight: bold; | |
| 82 | + font-size: 30rpx; | |
| 83 | +} | |
| 84 | +.content2 .con1 .con .mind{ | |
| 85 | + font-size: 28rpx; | |
| 86 | + margin-top: 10rpx; | |
| 87 | +} | |
| 88 | +.content2 .con1 .con .bot{ | |
| 89 | + color: #4a4a4a; | |
| 90 | + margin-top: 10rpx; | |
| 91 | +} | |
| 92 | +.content2 .con2{ | |
| 93 | + padding-top: 30rpx; | |
| 94 | + padding-bottom: 30rpx; | |
| 95 | + margin-top: 30rpx; | |
| 96 | + border-top:#0c0c0c solid 3rpx; | |
| 97 | +} | |
| 98 | +.content2 .con2 .con{ | |
| 99 | + margin-bottom: 45rpx; | |
| 100 | +} | |
| 101 | + | |
| 102 | +.content2 .con2 .top{ | |
| 103 | + font-weight: bold; | |
| 104 | +} | |
| 105 | +.content2 .con2 .bot{ | |
| 106 | + line-height: 45rpx; | |
| 107 | + margin-top: 15rpx; | |
| 108 | + width: 85%; | |
| 109 | + font-size: 26rpx; | |
| 110 | +} | |
| 111 | +.content3{ | |
| 112 | + border-bottom: #bd2a2f solid 4rpx; | |
| 113 | + padding: 30rpx 0; | |
| 114 | + position: fixed; | |
| 115 | + background: rgba(0,0,0,0.7); | |
| 116 | + color: #fff; | |
| 117 | + top: 0; | |
| 118 | + left: 0; | |
| 119 | + width: 100%; | |
| 120 | +} | |
| 121 | +.content3 .top text{ | |
| 122 | + font-weight: bold; | |
| 123 | + font-size: 26rpx; | |
| 124 | +} | |
| 125 | +.content3 .top{ | |
| 126 | + width: 85%; | |
| 127 | + margin-left: 7.5%; | |
| 128 | + color: #fff; | |
| 129 | + font-size: 26rpx; | |
| 130 | +} | |
| 131 | +.content3 .bot{ | |
| 132 | + width: 85%; | |
| 133 | + margin-left: 7.5%; | |
| 134 | + line-height: 45rpx; | |
| 135 | + margin-top: 15rpx; | |
| 136 | + font-weight: bold; | |
| 137 | + color: #fff; | |
| 138 | +} | |
| 139 | +.button{ | |
| 140 | + padding-top: 10rpx; | |
| 141 | + background: #fff; | |
| 142 | + width: 100%; | |
| 143 | + position: fixed; | |
| 144 | + bottom: 0; | |
| 145 | + left: 0; | |
| 146 | + border-radius: none; | |
| 147 | +} | |
| 148 | +.tanchuang .subbtn { | |
| 149 | + background: #fff; | |
| 150 | + border-top: #f2f2f2 solid 2rpx; | |
| 151 | + margin-top: 25rpx; | |
| 152 | + padding-top: 15rpx; | |
| 153 | + padding-bottom: 15rpx; | |
| 154 | + border-top: #f2f2f2 solid 2rpx; | |
| 155 | + display: block; | |
| 156 | + width: 100%; | |
| 157 | + font-size: 30rpx; | |
| 158 | +} | |
| 159 | +.button button{ | |
| 160 | + margin-bottom: 10rpx; | |
| 161 | + width: 96%; | |
| 162 | + margin-left: 2%; | |
| 163 | + background: #d81f25; | |
| 164 | + color: #fff; | |
| 165 | +} | |
| 166 | +button[disabled][type="default"], wx-button[disabled]:not([type]) { | |
| 167 | + color:#fff; | |
| 168 | + background-color:#7a838c; | |
| 169 | +} | |
| 170 | +.con2 .bot { | |
| 171 | + overflow: hidden; | |
| 172 | + text-overflow: ellipsis; | |
| 173 | + display: -webkit-box; | |
| 174 | + -webkit-line-clamp: 3; | |
| 175 | + -webkit-box-orient: vertical; | |
| 176 | +} | |
| 177 | +.tanchuang{ | |
| 178 | + border-radius: 15rpx; | |
| 179 | + width: 70%; | |
| 180 | + background: #fff; | |
| 181 | + text-align: center; | |
| 182 | + position: fixed; | |
| 183 | + z-index: 10; | |
| 184 | + left: 15%; | |
| 185 | + top: 25%; | |
| 186 | +} | |
| 187 | +.tanchuang .top{ | |
| 188 | + padding-top: 25rpx; | |
| 189 | +} | |
| 190 | +.tanchuang image{ | |
| 191 | + width: 60rpx; | |
| 192 | + height: 60rpx; | |
| 193 | +} | |
| 194 | +.tanchuang .mind{ | |
| 195 | + color: #d81f25; | |
| 196 | + margin-top: 15rpx; | |
| 197 | + font-size: 30rpx; | |
| 198 | +} | |
| 199 | +.tanchuang .center{ | |
| 200 | + margin-top: 25rpx; | |
| 201 | +} | |
| 202 | +.tanchuang button{ | |
| 203 | + background: #fff; | |
| 204 | + border-top: #f2f2f2 solid 2rpx; | |
| 205 | + margin-top: 25rpx; | |
| 206 | + display: block; | |
| 207 | + width: 100%; | |
| 208 | + font-size: 30rpx; | |
| 209 | +} | |
| 210 | +.bgbg{ | |
| 211 | + width: 100%; | |
| 212 | + height: 100%; | |
| 213 | + background: rgba(0,0,0,0.5); | |
| 214 | + position: fixed; | |
| 215 | + left: 0; | |
| 216 | + top: 0; | |
| 217 | + z-index: 9; | |
| 218 | +} | |
| 219 | +.tanchuang1{ | |
| 220 | + border-radius: 15rpx; | |
| 221 | + width: 70%; | |
| 222 | + background: #fff; | |
| 223 | + text-align: center; | |
| 224 | + position: fixed; | |
| 225 | + z-index: 10; | |
| 226 | + left: 15%; | |
| 227 | + top: 25%; | |
| 228 | +} | |
| 229 | +.tanchuang1 .top{ | |
| 230 | + padding-top: 25rpx; | |
| 231 | +} | |
| 232 | +.tanchuang1 image{ | |
| 233 | + width: 60rpx; | |
| 234 | + height: 60rpx; | |
| 235 | +} | |
| 236 | +.tanchuang1 .mind{ | |
| 237 | + margin-top: 25rpx; | |
| 238 | + font-size: 30rpx; | |
| 239 | +} | |
| 240 | +.tanchuang1 .center{ | |
| 241 | + margin-top: 25rpx; | |
| 242 | +} | |
| 243 | +.tanchuang1 button{ | |
| 244 | + height: 80rpx; | |
| 245 | + line-height: 80rpx; | |
| 246 | + float: left; | |
| 247 | + width: 50%; | |
| 248 | + background: #fff; | |
| 249 | + border-top: #f2f2f2 solid 2rpx; | |
| 250 | + margin-top: 25rpx; | |
| 251 | + display: block; | |
| 252 | + font-size: 30rpx; | |
| 253 | +} | |
| 254 | +.tanchuang1 navigator{ | |
| 255 | + border-bottom-right-radius:15rpx; | |
| 256 | + height: 80rpx; | |
| 257 | + line-height: 80rpx; | |
| 258 | + float: left; | |
| 259 | + width: 50%; | |
| 260 | + background: #fff; | |
| 261 | + border-top: #f2f2f2 solid 2rpx; | |
| 262 | + margin-top: 25rpx; | |
| 263 | + display: block; | |
| 264 | + font-size: 30rpx; | |
| 265 | +} | |
| 266 | +.tanchuang1 navigator:nth-child(1) { | |
| 267 | + border-bottom-left-radius:15rpx; | |
| 268 | + border-bottom-right-radius:none; | |
| 269 | + color: #d81f25; | |
| 270 | +} | |
| 271 | +.bgbg1{ | |
| 272 | + width: 100%; | |
| 273 | + height: 100%; | |
| 274 | + background: rgba(0,0,0,0.5); | |
| 275 | + position: fixed; | |
| 276 | + left: 0; | |
| 277 | + top: 0; | |
| 278 | + z-index: 9; | |
| 279 | +} | |
| 280 | + | |
| 281 | +.content4{ | |
| 282 | + border-bottom: #bd2a2f solid 4rpx; | |
| 283 | + padding: 30rpx 0; | |
| 284 | + position: fixed; | |
| 285 | + background: rgba(0,0,0,0.7); | |
| 286 | + color: #fff; | |
| 287 | + top: 0; | |
| 288 | + left: 0; | |
| 289 | + width: 100%; | |
| 290 | +} | |
| 291 | +.content4 .top text{ | |
| 292 | + font-weight: bold; | |
| 293 | + font-size: 26rpx; | |
| 294 | +} | |
| 295 | +.content4 .top{ | |
| 296 | + width: 85%; | |
| 297 | + margin-left: 7.5%; | |
| 298 | + color: #fff; | |
| 299 | + font-size: 24rpx; | |
| 300 | + font-family: Helvetica-Bold; | |
| 301 | +} | |
| 302 | +.content4 .bot{ | |
| 303 | + width: 85%; | |
| 304 | + margin-left: 7.5%; | |
| 305 | + line-height: 45rpx; | |
| 306 | + margin-top: 15rpx; | |
| 307 | + font-weight: bold; | |
| 308 | + font-family: Helvetica-Bold; | |
| 309 | + color: #fff; | |
| 310 | + font-size: 40rpx; | |
| 311 | +} | |
| \ No newline at end of file | ... | ... |
pages/academiclist/academiclist.js
0 → 100644
| 1 | +// pages/activity/join/join.js | |
| 2 | +var app = getApp(); | |
| 3 | +Page({ | |
| 4 | + | |
| 5 | + /** | |
| 6 | + * 页面的初始数据 | |
| 7 | + */ | |
| 8 | + data: { | |
| 9 | + xiala: true, | |
| 10 | + currentTab: 0, | |
| 11 | + toubu: true, | |
| 12 | + skey: '', | |
| 13 | + meng: true, | |
| 14 | + index1: '', | |
| 15 | + num: '', | |
| 16 | + list: [], | |
| 17 | + con: [ | |
| 18 | + { | |
| 19 | + name: '按时间', | |
| 20 | + num: "3", | |
| 21 | + list1: [] | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + name: '按热门', | |
| 25 | + num: "3", | |
| 26 | + list1: [] | |
| 27 | + }, | |
| 28 | + ] | |
| 29 | + }, | |
| 30 | + onReachBottom: function () { | |
| 31 | + var that = this | |
| 32 | + var num = that.data.num | |
| 33 | + console.log('num', num) | |
| 34 | + var skey = that.data.skey | |
| 35 | + var index1 = that.data.index1 | |
| 36 | + console.log('index1', index1) | |
| 37 | + if (index1 == 0) { | |
| 38 | + wx.request({ | |
| 39 | + url: app.url + '/mpapi/1.0.0/academic-conference?tag=&offset=&limit=', | |
| 40 | + method: 'GET', | |
| 41 | + header: { | |
| 42 | + 'content-type': 'application/json', | |
| 43 | + 'x-wx-skey': skey | |
| 44 | + }, | |
| 45 | + // ,job_opportunities | |
| 46 | + data: { | |
| 47 | + tag: 'date', | |
| 48 | + offset: num, | |
| 49 | + limit: 8 | |
| 50 | + }, | |
| 51 | + success: function (res) { | |
| 52 | + if (res.data.data.length < 8) { | |
| 53 | + console.log(res.data.data) | |
| 54 | + var num1 = that.data.num + res.data.data.length | |
| 55 | + that.setData({ | |
| 56 | + list: that.data.list.concat(res.data.data), | |
| 57 | + num: num1, | |
| 58 | + xiala: false, | |
| 59 | + }) | |
| 60 | + } | |
| 61 | + else { | |
| 62 | + console.log(5555555555555555555) | |
| 63 | + var num1 = that.data.num + 8 | |
| 64 | + console.log('num1', num1) | |
| 65 | + that.setData({ | |
| 66 | + num: num1, | |
| 67 | + list: that.data.list.concat(res.data.data), | |
| 68 | + }) | |
| 69 | + setTimeout(function () { | |
| 70 | + console.log(1111111111111111111111111111111111111111) | |
| 71 | + }, 3500); | |
| 72 | + } | |
| 73 | + } | |
| 74 | + }) | |
| 75 | + } | |
| 76 | + if (index1 == 1) { | |
| 77 | + wx.request({ | |
| 78 | + url: app.url + '/mpapi/1.0.0/academic-conference?tag=&offset=&limit=', | |
| 79 | + method: 'GET', | |
| 80 | + header: { | |
| 81 | + 'content-type': 'application/json', | |
| 82 | + 'x-wx-skey': skey | |
| 83 | + }, | |
| 84 | + // ,job_opportunities | |
| 85 | + data: { | |
| 86 | + tag: 'top', | |
| 87 | + offset: num, | |
| 88 | + limit: 8 | |
| 89 | + }, | |
| 90 | + success: function (res) { | |
| 91 | + if (res.data.data.length < 8) { | |
| 92 | + console.log(res.data.data) | |
| 93 | + var num1 = that.data.num + res.data.data.length | |
| 94 | + that.setData({ | |
| 95 | + list: that.data.list.concat(res.data.data), | |
| 96 | + num: num1, | |
| 97 | + xiala: false, | |
| 98 | + }) | |
| 99 | + } | |
| 100 | + else { | |
| 101 | + console.log(5555555555555555555) | |
| 102 | + var num1 = that.data.num + 8 | |
| 103 | + console.log('num1', num1) | |
| 104 | + that.setData({ | |
| 105 | + num: num1, | |
| 106 | + list: that.data.list.concat(res.data.data), | |
| 107 | + }) | |
| 108 | + setTimeout(function () { | |
| 109 | + console.log(1111111111111111111111111111111111111111) | |
| 110 | + }, 3500); | |
| 111 | + } | |
| 112 | + } | |
| 113 | + }) | |
| 114 | + } | |
| 115 | + }, | |
| 116 | + /** | |
| 117 | + * 生命周期函数--监听页面加载 | |
| 118 | + */ | |
| 119 | + onLoad: function (options) { | |
| 120 | + var that = this | |
| 121 | + console.log(999999) | |
| 122 | + var skey = wx.getStorageSync('key') | |
| 123 | + console.log('skey', skey) | |
| 124 | + that.setData({ | |
| 125 | + skey: skey | |
| 126 | + }) | |
| 127 | + wx.request({ | |
| 128 | + url: app.url + '/mpapi/1.0.0/academic-conference?tag=&offset=&limit=', | |
| 129 | + method: 'GET', | |
| 130 | + header: { | |
| 131 | + 'content-type': 'application/json', | |
| 132 | + 'x-wx-skey': skey | |
| 133 | + }, | |
| 134 | + data: { | |
| 135 | + tag: 'date', | |
| 136 | + offset: 0, | |
| 137 | + limit: 8 | |
| 138 | + // id:'1' | |
| 139 | + }, | |
| 140 | + success: function (res) { | |
| 141 | + console.log('con', res.data) | |
| 142 | + if (res.data.countTotal > 100) { | |
| 143 | + that.setData({ | |
| 144 | + toubu: false | |
| 145 | + }) | |
| 146 | + } | |
| 147 | + that.setData({ | |
| 148 | + list: res.data.data, | |
| 149 | + num: res.data.data.length | |
| 150 | + }) | |
| 151 | + } | |
| 152 | + }) | |
| 153 | + | |
| 154 | + }, | |
| 155 | + | |
| 156 | + /** | |
| 157 | + * 生命周期函数--监听页面初次渲染完成 | |
| 158 | + */ | |
| 159 | + onReady: function () { | |
| 160 | + | |
| 161 | + }, | |
| 162 | + | |
| 163 | + getmenu: function () { | |
| 164 | + var that = this | |
| 165 | + var block = that.data.block | |
| 166 | + var block1 = that.data.block1 | |
| 167 | + var meng = that.data.meng | |
| 168 | + | |
| 169 | + if (block == false) { | |
| 170 | + that.setData({ | |
| 171 | + block: true, | |
| 172 | + meng: false, | |
| 173 | + block1: false | |
| 174 | + }); | |
| 175 | + } else { | |
| 176 | + that.setData({ | |
| 177 | + block: false, | |
| 178 | + meng: true | |
| 179 | + }); | |
| 180 | + } | |
| 181 | + }, | |
| 182 | + getmenu1: function () { | |
| 183 | + var that = this | |
| 184 | + var block = that.data.block | |
| 185 | + var block1 = that.data.block1 | |
| 186 | + var meng = that.data.meng | |
| 187 | + | |
| 188 | + if (block1 == false) { | |
| 189 | + that.setData({ | |
| 190 | + block1: true, | |
| 191 | + meng: false, | |
| 192 | + block: false | |
| 193 | + }); | |
| 194 | + } else { | |
| 195 | + that.setData({ | |
| 196 | + block1: false, | |
| 197 | + meng: true | |
| 198 | + }); | |
| 199 | + } | |
| 200 | + }, | |
| 201 | + meng: function () { | |
| 202 | + var that = this | |
| 203 | + var block = that.data.block | |
| 204 | + var block1 = that.data.block1 | |
| 205 | + var meng = that.data.meng | |
| 206 | + that.setData({ | |
| 207 | + block1: false, | |
| 208 | + meng: true, | |
| 209 | + block: false | |
| 210 | + }); | |
| 211 | + }, | |
| 212 | + | |
| 213 | + getlist: function (e) { | |
| 214 | + var that = this | |
| 215 | + var list = that.data.list | |
| 216 | + var con = that.data.con | |
| 217 | + var index = e.currentTarget.dataset.index | |
| 218 | + that.setData({ | |
| 219 | + index1: index | |
| 220 | + }) | |
| 221 | + console.log('this', this) | |
| 222 | + if (this.data.currentTab === e.target.dataset.index) { | |
| 223 | + return false; | |
| 224 | + } else { | |
| 225 | + that.setData({ | |
| 226 | + currentTab: e.target.dataset.current | |
| 227 | + }) | |
| 228 | + } | |
| 229 | + if (index == 0) { | |
| 230 | + var skey = wx.getStorageSync('key') | |
| 231 | + console.log('skey', skey) | |
| 232 | + that.setData({ | |
| 233 | + skey: skey, | |
| 234 | + }) | |
| 235 | + wx.request({ | |
| 236 | + url: app.url + '/mpapi/1.0.0/academic-conference?tag=&offset=&limit=', | |
| 237 | + method: 'GET', | |
| 238 | + header: { | |
| 239 | + 'content-type': 'application/json', | |
| 240 | + 'x-wx-skey': skey | |
| 241 | + }, | |
| 242 | + data: { | |
| 243 | + tag: 'date', | |
| 244 | + offset: 0, | |
| 245 | + limit: 8 | |
| 246 | + // id:'1' | |
| 247 | + }, | |
| 248 | + success: function (res) { | |
| 249 | + console.log('con', res.data) | |
| 250 | + that.setData({ | |
| 251 | + // con: res.data.data | |
| 252 | + list: res.data.data, | |
| 253 | + num: res.data.data.length | |
| 254 | + }) | |
| 255 | + } | |
| 256 | + }) | |
| 257 | + } | |
| 258 | + if (index == 1) { | |
| 259 | + var skey = wx.getStorageSync('key') | |
| 260 | + console.log('skey', skey) | |
| 261 | + that.setData({ | |
| 262 | + skey: skey, | |
| 263 | + }) | |
| 264 | + wx.request({ | |
| 265 | + url: app.url + '/mpapi/1.0.0/academic-conference?tag=&offset=&limit=', | |
| 266 | + method: 'GET', | |
| 267 | + header: { | |
| 268 | + 'content-type': 'application/json', | |
| 269 | + 'x-wx-skey': skey | |
| 270 | + }, | |
| 271 | + data: { | |
| 272 | + tag: 'top', | |
| 273 | + offset: 0, | |
| 274 | + limit:8 | |
| 275 | + // id:'1' | |
| 276 | + }, | |
| 277 | + success: function (res) { | |
| 278 | + console.log('con', res.data) | |
| 279 | + that.setData({ | |
| 280 | + // con: res.data.data | |
| 281 | + list: res.data.data, | |
| 282 | + num: res.data.data.length | |
| 283 | + }) | |
| 284 | + } | |
| 285 | + }) | |
| 286 | + } | |
| 287 | + | |
| 288 | + }, | |
| 289 | + /** | |
| 290 | + * 生命周期函数--监听页面显示 | |
| 291 | + */ | |
| 292 | + onShow: function () { | |
| 293 | + | |
| 294 | + }, | |
| 295 | + | |
| 296 | + /** | |
| 297 | + * 生命周期函数--监听页面隐藏 | |
| 298 | + */ | |
| 299 | + onHide: function () { | |
| 300 | + | |
| 301 | + }, | |
| 302 | + | |
| 303 | + /** | |
| 304 | + * 生命周期函数--监听页面卸载 | |
| 305 | + */ | |
| 306 | + onUnload: function () { | |
| 307 | + | |
| 308 | + }, | |
| 309 | + | |
| 310 | + /** | |
| 311 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 312 | + */ | |
| 313 | + onPullDownRefresh: function () { | |
| 314 | + var that = this | |
| 315 | + var xiala = that.data.xiala | |
| 316 | + // wx.showToast({ | |
| 317 | + // title: 'loading...', | |
| 318 | + // icon: 'loading' | |
| 319 | + // }) | |
| 320 | + setTimeout(function () { | |
| 321 | + wx.stopPullDownRefresh() | |
| 322 | + }, 1500) | |
| 323 | + if(that.data.index1 == 1){ | |
| 324 | + var skey = wx.getStorageSync('key') | |
| 325 | + console.log('skey', skey) | |
| 326 | + that.setData({ | |
| 327 | + skey: skey, | |
| 328 | + }) | |
| 329 | + wx.request({ | |
| 330 | + url: app.url + '/mpapi/1.0.0/academic-conference?tag=&offset=&limit=', | |
| 331 | + method: 'GET', | |
| 332 | + header: { | |
| 333 | + 'content-type': 'application/json', | |
| 334 | + 'x-wx-skey': skey | |
| 335 | + }, | |
| 336 | + data: { | |
| 337 | + tag: 'top', | |
| 338 | + offset: 0, | |
| 339 | + limit: 8 | |
| 340 | + // id:'1' | |
| 341 | + }, | |
| 342 | + success: function (res) { | |
| 343 | + console.log('con', res.data) | |
| 344 | + that.setData({ | |
| 345 | + // con: res.data.data | |
| 346 | + list: res.data.data, | |
| 347 | + num: res.data.data.length, | |
| 348 | + }) | |
| 349 | + } | |
| 350 | + }) | |
| 351 | + }else{ | |
| 352 | + that.onLoad() | |
| 353 | + } | |
| 354 | + | |
| 355 | + }, | |
| 356 | + | |
| 357 | + /** | |
| 358 | + * 页面上拉触底事件的处理函数 | |
| 359 | + */ | |
| 360 | + | |
| 361 | + /** | |
| 362 | + * 用户点击右上角分享 | |
| 363 | + */ | |
| 364 | + onShareAppMessage: function () { | |
| 365 | + | |
| 366 | + } | |
| 367 | +}) | |
| \ No newline at end of file | ... | ... |
pages/academiclist/academiclist.json
0 → 100644
pages/academiclist/academiclist.wxml
0 → 100644
| 1 | +<view style="font-size:28rpx;"> | |
| 2 | + <view wx:if="{{toubu}}" style="height:94rpx;"></view> | |
| 3 | + <view wx:if="{{list}}"> | |
| 4 | + <view class="content2"> | |
| 5 | + <block wx:for="{{list}}"> | |
| 6 | + <view class="li"> | |
| 7 | + <navigator url='../academic/academic?id={{item.id}}'> | |
| 8 | + <view class="bg"> | |
| 9 | + <image src='{{item.listImage[0].url}}' mode='widthFix'></image> | |
| 10 | + </view> | |
| 11 | + <view class="con"> | |
| 12 | + <view class="con1"> | |
| 13 | + <!-- <view class="top">{{item.title}}</view> | |
| 14 | + <view class="bot" style='overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;'>{{item.content}}</view> --> | |
| 15 | + <view class="top"> | |
| 16 | + <span style="font-weight: bold; color:#d9d9d8;">{{item.city}}</span> | | |
| 17 | + <text style='color:#d9d9d8;'>{{item.eventDate}}</text> | |
| 18 | + </view> | |
| 19 | + <view class="bot">{{item.title}}</view> | |
| 20 | + </view> | |
| 21 | + </view> | |
| 22 | + </navigator> | |
| 23 | + </view> | |
| 24 | + </block> | |
| 25 | + <view class="xiala">{{xiala?'正在加载...':'没有更多信息了'}}</view> | |
| 26 | + </view> | |
| 27 | + </view> | |
| 28 | + <view wx:else> | |
| 29 | + <image src='/static/images/kongliebiao.png' mode='aspectFit' class="konglie"></image> | |
| 30 | + </view> | |
| 31 | + <view class="content3" wx:if="{{toubu}}"> | |
| 32 | + <block wx:for="{{con}}"> | |
| 33 | + <view class="{{currentTab==index ? 'on' : ''}} li" bindtap='getlist' data-index="{{index}}" data-current="{{index}}"> | |
| 34 | + {{item.name}} | |
| 35 | + </view> | |
| 36 | + </block> | |
| 37 | + <view class='cl'></view> | |
| 38 | + </view> | |
| 39 | + <view style=" height:120rpx; "></view> | |
| 40 | + <view class="{{scrollTop>120 ? 'hide' : 'block'}} bott"> | |
| 41 | + <view class="{{block ? 'block' : 'hide'}} menu"> | |
| 42 | + <view class='tanbg'> | |
| 43 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 44 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 45 | + </view> | |
| 46 | + <view class="ol"> | |
| 47 | + <navigator url='../jobfair/jobfair' open-type="redirect">招聘会</navigator> | |
| 48 | + </view> | |
| 49 | + <view class="ol"> | |
| 50 | + <navigator url='' open-type="redirect">学术会议</navigator> | |
| 51 | + </view> | |
| 52 | + <view class="ol"> | |
| 53 | + <navigator url='../xzpx/xzpx' open-type="redirect">写作培训</navigator> | |
| 54 | + </view> | |
| 55 | + </view> | |
| 56 | + <view class="{{block1 ? 'block' : 'hide'}} menu1"> | |
| 57 | + <view class='tanbg'> | |
| 58 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 59 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 60 | + </view> | |
| 61 | + <view class="ol"> | |
| 62 | + <navigator url='../zyjy/zyjy' open-type="redirect">职业建议</navigator> | |
| 63 | + </view> | |
| 64 | + <view class="ol"> | |
| 65 | + <navigator url='../gzjh/gzjh' open-type="redirect">工作机会</navigator> | |
| 66 | + </view> | |
| 67 | + <view class="ol"> | |
| 68 | + <navigator url='../lwrs/lwrs' open-type="redirect">论文润色</navigator> | |
| 69 | + </view> | |
| 70 | + </view> | |
| 71 | + <view class="foot"> | |
| 72 | + <view class="li"> | |
| 73 | + <navigator url='../index/index' open-type="redirect"> | |
| 74 | + <image src='/static/images/0001.png' class="top"></image> | |
| 75 | + <text>首页</text> | |
| 76 | + </navigator> | |
| 77 | + </view> | |
| 78 | + <view class="li"> | |
| 79 | + <view bindtap='getmenu' class='huodong'> | |
| 80 | + <image src='/static/images/0002.png' class="top"></image> | |
| 81 | + <text>活动</text> | |
| 82 | + </view> | |
| 83 | + </view> | |
| 84 | + <view class="li"> | |
| 85 | + <view bindtap='getmenu1' class='huodong'> | |
| 86 | + <image src='/static/images/0003.png' class="top"></image> | |
| 87 | + <text>资讯</text> | |
| 88 | + </view> | |
| 89 | + </view> | |
| 90 | + <view class="li"> | |
| 91 | + <navigator url='../contact/contact' open-type="redirect"> | |
| 92 | + <image src='/static/images/0004.png' class="top"></image> | |
| 93 | + <text>联系</text> | |
| 94 | + </navigator> | |
| 95 | + </view> | |
| 96 | + <view class="li"> | |
| 97 | + <navigator url='../member/member' open-type="redirect"> | |
| 98 | + <image src='/static/images/005.png' class="top"></image> | |
| 99 | + <text>我的</text> | |
| 100 | + </navigator> | |
| 101 | + </view> | |
| 102 | + <view class="cl"></view> | |
| 103 | + </view> | |
| 104 | + </view> | |
| 105 | + <view class="{{meng ? 'hide' : 'block'}} meng" bindtap='meng'></view> | |
| 106 | +</view> | |
| \ No newline at end of file | ... | ... |
pages/academiclist/academiclist.wxss
0 → 100644
| 1 | +page { | |
| 2 | + width: 100%; | |
| 3 | + height: 100%; | |
| 4 | +} | |
| 5 | + | |
| 6 | +.meng { | |
| 7 | + width: 100%; | |
| 8 | + height: 100%; | |
| 9 | + background: rgba(76, 74, 75, 0.5); | |
| 10 | + z-index: 998; | |
| 11 | + position: fixed; | |
| 12 | + left: 0; | |
| 13 | + top: 0; | |
| 14 | +} | |
| 15 | + | |
| 16 | +.fl { | |
| 17 | + float: left; | |
| 18 | +} | |
| 19 | + | |
| 20 | +.fr { | |
| 21 | + float: right; | |
| 22 | +} | |
| 23 | + | |
| 24 | +.cl { | |
| 25 | + clear: both; | |
| 26 | +} | |
| 27 | + | |
| 28 | +.display { | |
| 29 | + display: block; | |
| 30 | +} | |
| 31 | + | |
| 32 | +.hide { | |
| 33 | + display: none; | |
| 34 | +} | |
| 35 | + | |
| 36 | +.foot .li .huodong { | |
| 37 | + display: block; | |
| 38 | + padding: 10rpx 0 5rpx 0; | |
| 39 | +} | |
| 40 | + | |
| 41 | +.bg image { | |
| 42 | + display: block; | |
| 43 | +} | |
| 44 | + | |
| 45 | +.content2 .li { | |
| 46 | + position: relative; | |
| 47 | + margin-top: 6rpx; | |
| 48 | +} | |
| 49 | + | |
| 50 | +.content2 .li image { | |
| 51 | + width: 750rpx; | |
| 52 | + height: 235rpx; | |
| 53 | +} | |
| 54 | + | |
| 55 | +.content2 .li .con { | |
| 56 | + position: absolute; | |
| 57 | + color: #fff; | |
| 58 | + width: 100%; | |
| 59 | + height: 100%; | |
| 60 | + background: rgba(76, 74, 75, 0.5); | |
| 61 | + top: 0; | |
| 62 | + left: 0; | |
| 63 | +} | |
| 64 | + | |
| 65 | +.content2 .li .con .bot { | |
| 66 | + overflow: hidden; | |
| 67 | + text-overflow: ellipsis; | |
| 68 | + display: -webkit-box; | |
| 69 | + -webkit-line-clamp: 3; | |
| 70 | + -webkit-box-orient: vertical; | |
| 71 | +} | |
| 72 | + | |
| 73 | +.content2 .li .con .con1 { | |
| 74 | + margin-left: 40rpx; | |
| 75 | + margin-top: 40rpx; | |
| 76 | +} | |
| 77 | + | |
| 78 | +.content2 .li .con .con1 .top { | |
| 79 | + font-size: 26rpx; | |
| 80 | + margin-bottom: 5rpx; | |
| 81 | + color:#d8dbd9; | |
| 82 | +} | |
| 83 | + | |
| 84 | +.content2 .li .con .con1 .bot { | |
| 85 | + margin-top: 15rpx; | |
| 86 | + font-size: 32rpx; | |
| 87 | + font-weight: bold; | |
| 88 | +} | |
| 89 | + | |
| 90 | +.content2 .li .con .con1 .right { | |
| 91 | + position: absolute; | |
| 92 | + right: 40rpx; | |
| 93 | + top: 0; | |
| 94 | + padding: 1rpx 20rpx; | |
| 95 | + font-size: 26rpx; | |
| 96 | + background: #c30d23; | |
| 97 | + color: #fff; | |
| 98 | +} | |
| 99 | + | |
| 100 | +.content3 { | |
| 101 | + color: #adadad; | |
| 102 | + position: fixed; | |
| 103 | + top: 0; | |
| 104 | + left: 0; | |
| 105 | + width: 100%; | |
| 106 | + z-index: 99; | |
| 107 | + background: #5c5c5c; | |
| 108 | +} | |
| 109 | + | |
| 110 | +.content3 .li { | |
| 111 | + float: left; | |
| 112 | + padding: 30rpx 0; | |
| 113 | + font-size: 28rpx; | |
| 114 | + width: 50%; | |
| 115 | + text-align: center; | |
| 116 | +} | |
| 117 | + | |
| 118 | +.content3 .li:nth-child(1) { | |
| 119 | + width: 50%; | |
| 120 | +} | |
| 121 | + | |
| 122 | +.content3 .li text { | |
| 123 | + margin: 0 auto; | |
| 124 | + padding: 30rpx 10rpx 22rpx 10rpx; | |
| 125 | +} | |
| 126 | + | |
| 127 | +.on { | |
| 128 | + color: #fff; | |
| 129 | + background: #bc272d; | |
| 130 | + border-bottom: 8rpx solid #bc272b; | |
| 131 | +} | |
| 132 | + | |
| 133 | +.konglie { | |
| 134 | + position: absolute; | |
| 135 | + left: 50%; | |
| 136 | + margin-left: -100rpx; | |
| 137 | + top: 50%; | |
| 138 | + margin-top: -75rpx; | |
| 139 | + width: 200rpx; | |
| 140 | + height: 150rpx; | |
| 141 | +} | |
| 142 | + | |
| 143 | +.bott { | |
| 144 | + position: fixed; | |
| 145 | + left: 0; | |
| 146 | + bottom: 0; | |
| 147 | + z-index: 999; | |
| 148 | + width: 100%; | |
| 149 | +} | |
| 150 | + | |
| 151 | +.bott { | |
| 152 | + position: fixed; | |
| 153 | + left: 0; | |
| 154 | + bottom: 0; | |
| 155 | + z-index: 999; | |
| 156 | + width: 100%; | |
| 157 | +} | |
| 158 | + | |
| 159 | +.foot { | |
| 160 | + width: 100%; | |
| 161 | + background: #d81f25; | |
| 162 | +} | |
| 163 | + | |
| 164 | +.foot .li navigator { | |
| 165 | + display: block; | |
| 166 | + padding: 10rpx 0 5rpx 0; | |
| 167 | +} | |
| 168 | + | |
| 169 | +.foot .li { | |
| 170 | + text-align: center; | |
| 171 | + color: #fff; | |
| 172 | + width: 20%; | |
| 173 | + float: left; | |
| 174 | +} | |
| 175 | + | |
| 176 | +.foot .li .top { | |
| 177 | + width: 48rpx; | |
| 178 | + height: 48rpx; | |
| 179 | + margin: 0 auto; | |
| 180 | + display: block; | |
| 181 | +} | |
| 182 | + | |
| 183 | +.foot .li text { | |
| 184 | + font-size: 24rpx; | |
| 185 | +} | |
| 186 | + | |
| 187 | +.menu { | |
| 188 | + margin-left: 10%; | |
| 189 | + background: #fff; | |
| 190 | + width: 40%; | |
| 191 | +} | |
| 192 | + | |
| 193 | +.menu .ol { | |
| 194 | + padding-top: 10rpx; | |
| 195 | + padding-bottom: 10rpx; | |
| 196 | + border-top: #ececec solid 2rpx; | |
| 197 | + width: 94%; | |
| 198 | + margin-left: 3%; | |
| 199 | + text-align: center; | |
| 200 | +} | |
| 201 | + | |
| 202 | +.menu .ol:nth-child(1) { | |
| 203 | + border-top: none; | |
| 204 | +} | |
| 205 | + | |
| 206 | +.menu .ol navigator { | |
| 207 | + padding: 25rpx 0; | |
| 208 | + color: #787878; | |
| 209 | +} | |
| 210 | + | |
| 211 | +.menu1 { | |
| 212 | + margin-left: 30%; | |
| 213 | + background: #fff; | |
| 214 | + width: 40%; | |
| 215 | +} | |
| 216 | + | |
| 217 | +.menu1 .ol { | |
| 218 | + padding-top: 10rpx; | |
| 219 | + padding-bottom: 10rpx; | |
| 220 | + border-top: #ececec solid 2rpx; | |
| 221 | + width: 94%; | |
| 222 | + margin-left: 3%; | |
| 223 | + text-align: center; | |
| 224 | +} | |
| 225 | + | |
| 226 | +.menu1 .ol:nth-child(1) { | |
| 227 | + border-top: none; | |
| 228 | +} | |
| 229 | + | |
| 230 | +.menu1 .ol navigator { | |
| 231 | + padding: 25rpx 0; | |
| 232 | + color: #787878; | |
| 233 | + | |
| 234 | +} | |
| 235 | +.tanbg image{ | |
| 236 | + position: absolute; | |
| 237 | + bottom: 0; | |
| 238 | +} | |
| 239 | +.aa{ | |
| 240 | + z-index: 2; | |
| 241 | + width: 20%; | |
| 242 | + margin-left: 40%; | |
| 243 | + height: 16rpx; | |
| 244 | +} | |
| 245 | +.bb{ | |
| 246 | + height: 25rpx; | |
| 247 | + z-index: 1; | |
| 248 | + width: 100%; | |
| 249 | +} | |
| 250 | +.menu{ | |
| 251 | + position: relative; | |
| 252 | +} | |
| 253 | +.menu1{ | |
| 254 | + position: relative; | |
| 255 | +} | |
| 256 | +.li .con1 .bot{ | |
| 257 | + | |
| 258 | +} | |
| 259 | +.xiala{ | |
| 260 | + height: 100rpx; | |
| 261 | +} | |
| 262 | +.xiala{ | |
| 263 | + text-align: center; | |
| 264 | + color: #7a838c; | |
| 265 | + margin-top: 25rpx; | |
| 266 | +} | |
| \ No newline at end of file | ... | ... |
pages/activity/Interest/Interest.js
0 → 100644
| 1 | +// pages/activity/join/join.js | |
| 2 | +var app = getApp(); | |
| 3 | +Page({ | |
| 4 | + | |
| 5 | + /** | |
| 6 | + * 页面的初始数据 | |
| 7 | + */ | |
| 8 | + data: { | |
| 9 | + skey: '', | |
| 10 | + meng: true, | |
| 11 | + xiala: false, | |
| 12 | + index1: '', | |
| 13 | + num: '', | |
| 14 | + list: [ | |
| 15 | + { | |
| 16 | + name: '学术会议', | |
| 17 | + title: 'Naturejobs Career Expo|', | |
| 18 | + title1: 'Jobs in China', | |
| 19 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 20 | + }, | |
| 21 | + { | |
| 22 | + name: '招聘会', | |
| 23 | + title: 'Naturejobs Career Expo|', | |
| 24 | + title1: 'Jobs in China', | |
| 25 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 26 | + }, | |
| 27 | + { | |
| 28 | + name: '学术会议', | |
| 29 | + title: 'Naturejobs Career Expo|', | |
| 30 | + title1: 'Jobs in China', | |
| 31 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 32 | + }, | |
| 33 | + { | |
| 34 | + name: '招聘会', | |
| 35 | + title: 'Naturejobs Career Expo|', | |
| 36 | + title1: 'Jobs in China', | |
| 37 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 38 | + }, | |
| 39 | + ] | |
| 40 | + }, | |
| 41 | + onReachBottom: function () { | |
| 42 | + var that = this | |
| 43 | + var num = that.data.num | |
| 44 | + console.log('num', num) | |
| 45 | + var skey = that.data.skey | |
| 46 | + var index1 = that.data.index1 | |
| 47 | + console.log('index1', index1) | |
| 48 | + wx.request({ | |
| 49 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 50 | + method: 'GET', | |
| 51 | + header: { | |
| 52 | + 'content-type': 'application/json', | |
| 53 | + 'x-wx-skey': skey | |
| 54 | + }, | |
| 55 | + // ,job_opportunities | |
| 56 | + data: { | |
| 57 | + type: 'writing_training', | |
| 58 | + offset: num, | |
| 59 | + limit: 6 | |
| 60 | + }, | |
| 61 | + success: function (res) { | |
| 62 | + if (res.data.data.length < 8) { | |
| 63 | + console.log(res.data.data) | |
| 64 | + var num1 = that.data.num + res.data.data.length | |
| 65 | + that.setData({ | |
| 66 | + list: that.data.list.concat(res.data.data), | |
| 67 | + num: num1, | |
| 68 | + xiala: false, | |
| 69 | + }) | |
| 70 | + } | |
| 71 | + else { | |
| 72 | + console.log(5555555555555555555) | |
| 73 | + var num1 = that.data.num + 8 | |
| 74 | + console.log('num1', num1) | |
| 75 | + that.setData({ | |
| 76 | + num: num1, | |
| 77 | + list: that.data.list.concat(res.data.data), | |
| 78 | + }) | |
| 79 | + setTimeout(function () { | |
| 80 | + console.log(1111111111111111111111111111111111111111) | |
| 81 | + }, 3500); | |
| 82 | + } | |
| 83 | + } | |
| 84 | + }) | |
| 85 | + }, | |
| 86 | + /** | |
| 87 | + * 生命周期函数--监听页面加载 | |
| 88 | + */ | |
| 89 | + onLoad: function (options) { | |
| 90 | + var that = this | |
| 91 | + var list = that.data.list | |
| 92 | + var skey = wx.getStorageSync('key') | |
| 93 | + that.setData({ | |
| 94 | + skey: skey, | |
| 95 | + }) | |
| 96 | + wx.request({ | |
| 97 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 98 | + method: 'GET', | |
| 99 | + header: { | |
| 100 | + 'content-type': 'application/json', | |
| 101 | + 'x-wx-skey': skey | |
| 102 | + }, | |
| 103 | + data: { | |
| 104 | + type: 'writing_training', | |
| 105 | + offset: 0, | |
| 106 | + limit: 6 | |
| 107 | + }, | |
| 108 | + success: function (res) { | |
| 109 | + console.log('res',res.data) | |
| 110 | + that.setData({ | |
| 111 | + list:res.data.data, | |
| 112 | + num: res.data.data.length | |
| 113 | + }) | |
| 114 | + } | |
| 115 | + }) | |
| 116 | + }, | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * 生命周期函数--监听页面初次渲染完成 | |
| 120 | + */ | |
| 121 | + onReady: function () { | |
| 122 | + | |
| 123 | + }, | |
| 124 | + getlist: function (e) { | |
| 125 | + var that = this | |
| 126 | + var list = that.data.list | |
| 127 | + var con = that.data.con | |
| 128 | + console.log('this', this) | |
| 129 | + var index = e.currentTarget.dataset.index | |
| 130 | + that.setData({ | |
| 131 | + list: con[index].list1 | |
| 132 | + }); | |
| 133 | + }, | |
| 134 | + getmenu: function () { | |
| 135 | + var that = this | |
| 136 | + var block = that.data.block | |
| 137 | + var block1 = that.data.block1 | |
| 138 | + var meng = that.data.meng | |
| 139 | + if (block == false) { | |
| 140 | + that.setData({ | |
| 141 | + block: true, | |
| 142 | + meng: false, | |
| 143 | + block1: false | |
| 144 | + }); | |
| 145 | + } else { | |
| 146 | + that.setData({ | |
| 147 | + block: false, | |
| 148 | + meng: true | |
| 149 | + }); | |
| 150 | + } | |
| 151 | + }, | |
| 152 | + getmenu1: function () { | |
| 153 | + var that = this | |
| 154 | + var block = that.data.block | |
| 155 | + var block1 = that.data.block1 | |
| 156 | + var meng = that.data.meng | |
| 157 | + if (block1 == false) { | |
| 158 | + that.setData({ | |
| 159 | + block1: true, | |
| 160 | + meng: false, | |
| 161 | + block: false | |
| 162 | + }); | |
| 163 | + } else { | |
| 164 | + that.setData({ | |
| 165 | + block1: false, | |
| 166 | + meng: true | |
| 167 | + }); | |
| 168 | + } | |
| 169 | + }, | |
| 170 | + meng: function () { | |
| 171 | + console.log(111) | |
| 172 | + var that = this | |
| 173 | + var block = that.data.block | |
| 174 | + var block1 = that.data.block1 | |
| 175 | + var meng = that.data.meng | |
| 176 | + that.setData({ | |
| 177 | + block1: false, | |
| 178 | + meng: true, | |
| 179 | + block: false | |
| 180 | + }); | |
| 181 | + }, | |
| 182 | + /** | |
| 183 | + * 生命周期函数--监听页面显示 | |
| 184 | + */ | |
| 185 | + onShow: function () { | |
| 186 | + | |
| 187 | + }, | |
| 188 | + | |
| 189 | + /** | |
| 190 | + * 生命周期函数--监听页面隐藏 | |
| 191 | + */ | |
| 192 | + onHide: function () { | |
| 193 | + | |
| 194 | + }, | |
| 195 | + | |
| 196 | + /** | |
| 197 | + * 生命周期函数--监听页面卸载 | |
| 198 | + */ | |
| 199 | + onUnload: function () { | |
| 200 | + | |
| 201 | + }, | |
| 202 | + | |
| 203 | + /** | |
| 204 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 205 | + */ | |
| 206 | + onPullDownRefresh: function () { | |
| 207 | + var that = this | |
| 208 | + // wx.showToast({ | |
| 209 | + // title: 'loading...', | |
| 210 | + // icon: 'loading' | |
| 211 | + // }) | |
| 212 | + setTimeout(function () { | |
| 213 | + wx.stopPullDownRefresh() | |
| 214 | + }, 1500) | |
| 215 | + var skey = wx.getStorageSync('key') | |
| 216 | + console.log('skey', skey) | |
| 217 | + that.setData({ | |
| 218 | + skey: skey, | |
| 219 | + }) | |
| 220 | + wx.request({ | |
| 221 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 222 | + method: 'GET', | |
| 223 | + header: { | |
| 224 | + 'content-type': 'application/json', | |
| 225 | + 'x-wx-skey': skey | |
| 226 | + }, | |
| 227 | + data: { | |
| 228 | + type: 'writing_training', | |
| 229 | + offset: 0, | |
| 230 | + limit: 6 | |
| 231 | + }, | |
| 232 | + success: function (res) { | |
| 233 | + console.log('res', res.data) | |
| 234 | + that.setData({ | |
| 235 | + list: res.data.data, | |
| 236 | + num: res.data.data.length | |
| 237 | + }) | |
| 238 | + } | |
| 239 | + }) | |
| 240 | + }, | |
| 241 | + | |
| 242 | + /** | |
| 243 | + * 页面上拉触底事件的处理函数 | |
| 244 | + */ | |
| 245 | + | |
| 246 | + /** | |
| 247 | + * 用户点击右上角分享 | |
| 248 | + */ | |
| 249 | + onShareAppMessage: function () { | |
| 250 | + | |
| 251 | + } | |
| 252 | +}) | |
| \ No newline at end of file | ... | ... |
pages/activity/Interest/Interest.json
0 → 100644
pages/activity/Interest/Interest.wxml
0 → 100644
| 1 | +<view style="font-size:28rpx;"> | |
| 2 | + <view wx:if="{{list}}"> | |
| 3 | + <view class="content2"> | |
| 4 | + <block wx:for="{{list}}"> | |
| 5 | + <view class="li"> | |
| 6 | + <navigator url="../../xzpxdetail/xzpxdetail?id={{item.content.id}}"> | |
| 7 | + <view class="bg"> | |
| 8 | + <image src='{{item.content.listImage[0].url}}' mode='widthFix'></image> | |
| 9 | + </view> | |
| 10 | + <view class="con"> | |
| 11 | + <view class="con1"> | |
| 12 | + <view class="top">{{item.content.title}}</view> | |
| 13 | + <view class="bot">{{item.content.description}}</view> | |
| 14 | + <view class="right">{{item.content.tag}}</view> | |
| 15 | + </view> | |
| 16 | + </view> | |
| 17 | + </navigator> | |
| 18 | + </view> | |
| 19 | + </block> | |
| 20 | + <view class="xiala">{{xiala?'正在加载...':'没有更多信息了'}}</view> | |
| 21 | + </view> | |
| 22 | + </view> | |
| 23 | + <view wx:else> | |
| 24 | + <image src='/static/images/kongliebiao.png' mode='aspectFit' class="konglie"></image> | |
| 25 | + </view> | |
| 26 | + <view style="height:120rpx;"></view> | |
| 27 | + <view class="{{scrollTop>120 ? 'hide' : 'block'}} bott"> | |
| 28 | + <view class="{{block ? 'block' : 'hide'}} menu"> | |
| 29 | + <view class='tanbg'> | |
| 30 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 31 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 32 | + </view> | |
| 33 | + <view class="ol"> | |
| 34 | + <navigator url='../../jobfair/jobfair' open-type="redirect">招聘会</navigator> | |
| 35 | + </view> | |
| 36 | + <view class="ol"> | |
| 37 | + <navigator url='../../academiclist/academiclist' open-type="redirect">学术会议</navigator> | |
| 38 | + </view> | |
| 39 | + <view class="ol"> | |
| 40 | + <navigator url='../../xzpx/xzpx' open-type="redirect">写作培训</navigator> | |
| 41 | + </view> | |
| 42 | + </view> | |
| 43 | + <view class="{{block1 ? 'block' : 'hide'}} menu1"> | |
| 44 | + <view class='tanbg'> | |
| 45 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 46 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 47 | + </view> | |
| 48 | + <view class="ol"> | |
| 49 | + <navigator url='../../zyjy/zyjy' open-type="redirect">职业建议</navigator> | |
| 50 | + </view> | |
| 51 | + <view class="ol"> | |
| 52 | + <navigator url='../../gzjh/gzjh' open-type="redirect">工作机会</navigator> | |
| 53 | + </view> | |
| 54 | + <view class="ol"> | |
| 55 | + <navigator url='../../lwrs/lwrs' open-type="redirect">论文润色</navigator> | |
| 56 | + </view> | |
| 57 | + </view> | |
| 58 | + <view class="foot"> | |
| 59 | + <view class="li"> | |
| 60 | + <navigator url='../../index/index' open-type="redirect"> | |
| 61 | + <image src='/static/images/0001.png' class="top"></image> | |
| 62 | + <text>首页</text> | |
| 63 | + </navigator> | |
| 64 | + </view> | |
| 65 | + <view class="li"> | |
| 66 | + <view bindtap='getmenu' class='huodong'> | |
| 67 | + <image src='/static/images/0002.png' class="top"></image> | |
| 68 | + <text>活动</text> | |
| 69 | + </view> | |
| 70 | + </view> | |
| 71 | + <view class="li"> | |
| 72 | + <view bindtap='getmenu1' class='huodong'> | |
| 73 | + <image src='/static/images/0003.png' class="top"></image> | |
| 74 | + <text>资讯</text> | |
| 75 | + </view> | |
| 76 | + </view> | |
| 77 | + <view class="li"> | |
| 78 | + <navigator url='../../contact/contact' open-type="redirect"> | |
| 79 | + <image src='/static/images/0004.png' class="top"></image> | |
| 80 | + <text>联系</text> | |
| 81 | + </navigator> | |
| 82 | + </view> | |
| 83 | + <view class="li"> | |
| 84 | + <navigator url='../../member/member' open-type="redirect"> | |
| 85 | + <image src='/static/images/005.png' class="top"></image> | |
| 86 | + <text>我的</text> | |
| 87 | + </navigator> | |
| 88 | + </view> | |
| 89 | + <view class="cl"></view> | |
| 90 | + </view> | |
| 91 | + </view> | |
| 92 | + <view class="{{meng ? 'hide' : 'block'}} meng" bindtap='meng'></view> | |
| 93 | +</view> | |
| \ No newline at end of file | ... | ... |
pages/activity/Interest/Interest.wxss
0 → 100644
| 1 | +page{ | |
| 2 | + width: 100%; | |
| 3 | + height: 100% | |
| 4 | +} | |
| 5 | +.meng{ | |
| 6 | + width: 100%; | |
| 7 | + height: 100%; | |
| 8 | + background: rgba(76, 74, 75, 0.5); | |
| 9 | + z-index: 998; | |
| 10 | + position: fixed; | |
| 11 | + left: 0; | |
| 12 | + top: 0; | |
| 13 | +} | |
| 14 | +.fl { | |
| 15 | + float: left; | |
| 16 | +} | |
| 17 | + | |
| 18 | +.fr { | |
| 19 | + float: right; | |
| 20 | +} | |
| 21 | + | |
| 22 | +.cl { | |
| 23 | + clear: both; | |
| 24 | +} | |
| 25 | + | |
| 26 | +.foot .li .huodong { | |
| 27 | + display: block; | |
| 28 | + padding: 10rpx 0 5rpx 0; | |
| 29 | +} | |
| 30 | + | |
| 31 | +.display { | |
| 32 | + display: block; | |
| 33 | +} | |
| 34 | + | |
| 35 | +.hide { | |
| 36 | + display: none; | |
| 37 | +} | |
| 38 | + | |
| 39 | +.bg image { | |
| 40 | + display: block; | |
| 41 | +} | |
| 42 | + | |
| 43 | +.content2 .li { | |
| 44 | + position: relative; | |
| 45 | + margin-top: 6rpx; | |
| 46 | +} | |
| 47 | + | |
| 48 | +.content2 .li image { | |
| 49 | + width: 750rpx; | |
| 50 | + height: 235rpx; | |
| 51 | +} | |
| 52 | + | |
| 53 | +.content2 .li .con { | |
| 54 | + position: absolute; | |
| 55 | + color: #fff; | |
| 56 | + width: 100%; | |
| 57 | + height: 100%; | |
| 58 | + background: rgba(76, 74, 75, 0.5); | |
| 59 | + top: 0; | |
| 60 | + left: 0; | |
| 61 | +} | |
| 62 | + | |
| 63 | +.content2 .li .con .con1 { | |
| 64 | + margin-left: 40rpx; | |
| 65 | + margin-top: 40rpx; | |
| 66 | +} | |
| 67 | + | |
| 68 | +.content2 .li .con .con1 .top { | |
| 69 | + font-size: 32rpx; | |
| 70 | + margin-bottom: 5rpx; | |
| 71 | + font-weight: bold; | |
| 72 | +} | |
| 73 | + | |
| 74 | +.content2 .li .con .con1 .bot { | |
| 75 | + margin-top: 15rpx; | |
| 76 | + font-size: 26rpx; | |
| 77 | +} | |
| 78 | + | |
| 79 | +.content2 .li .con .con1 .right { | |
| 80 | + position: absolute; | |
| 81 | + right: 15rpx; | |
| 82 | + top: 0; | |
| 83 | + font-size: 26rpx; | |
| 84 | + background: #c30d23; | |
| 85 | + color: #fff; | |
| 86 | + width: 166rpx; | |
| 87 | + height: 46rpx; | |
| 88 | + line-height: 46rpx; | |
| 89 | + text-align: center; | |
| 90 | +} | |
| 91 | + | |
| 92 | +.content3 { | |
| 93 | + color: #adadad; | |
| 94 | + position: fixed; | |
| 95 | + top: 0; | |
| 96 | + left: 0; | |
| 97 | + width: 100%; | |
| 98 | + z-index: 99; | |
| 99 | + background: #5c5c5c; | |
| 100 | +} | |
| 101 | + | |
| 102 | +.content3 .li { | |
| 103 | + float: left; | |
| 104 | + padding: 10rpx 0; | |
| 105 | + margin-top: 20rpx; | |
| 106 | + margin-bottom: 20rpx; | |
| 107 | + font-size: 28rpx; | |
| 108 | + width: 49%; | |
| 109 | + text-align: center; | |
| 110 | +} | |
| 111 | + | |
| 112 | +.content3 .li:nth-child(1) { | |
| 113 | + width: 50%; | |
| 114 | + border-right: #fff solid 2rpx; | |
| 115 | +} | |
| 116 | + | |
| 117 | +.content3 .li text { | |
| 118 | + margin: 0 auto; | |
| 119 | + padding: 30rpx 10rpx 22rpx 10rpx; | |
| 120 | +} | |
| 121 | + | |
| 122 | +.on { | |
| 123 | + color: #fff; | |
| 124 | + border-bottom: 8rpx solid #bc272b; | |
| 125 | +} | |
| 126 | + | |
| 127 | +.konglie { | |
| 128 | + position: absolute; | |
| 129 | + left: 50%; | |
| 130 | + margin-left: -100rpx; | |
| 131 | + top: 50%; | |
| 132 | + margin-top: -75rpx; | |
| 133 | + width: 200rpx; | |
| 134 | + height: 150rpx; | |
| 135 | +} | |
| 136 | + | |
| 137 | +.bott { | |
| 138 | + position: fixed; | |
| 139 | + left: 0; | |
| 140 | + bottom: 0; | |
| 141 | + z-index: 999; | |
| 142 | + width: 100%; | |
| 143 | +} | |
| 144 | + | |
| 145 | +.foot { | |
| 146 | + width: 100%; | |
| 147 | + background: #d81f25; | |
| 148 | +} | |
| 149 | + | |
| 150 | +.foot .li navigator { | |
| 151 | + display: block; | |
| 152 | + padding: 10rpx 0 5rpx 0; | |
| 153 | +} | |
| 154 | + | |
| 155 | +.foot .li { | |
| 156 | + text-align: center; | |
| 157 | + color: #fff; | |
| 158 | + width: 20%; | |
| 159 | + float: left; | |
| 160 | +} | |
| 161 | + | |
| 162 | +.foot .li .top { | |
| 163 | + width: 48rpx; | |
| 164 | + height: 48rpx; | |
| 165 | + margin: 0 auto; | |
| 166 | + display: block; | |
| 167 | +} | |
| 168 | + | |
| 169 | +.foot .li text { | |
| 170 | + font-size: 24rpx; | |
| 171 | +} | |
| 172 | + | |
| 173 | +.menu { | |
| 174 | + margin-left: 10%; | |
| 175 | + background: #fff; | |
| 176 | + width: 40%; | |
| 177 | +} | |
| 178 | + | |
| 179 | +.menu .ol { | |
| 180 | + padding-top: 5rpx; | |
| 181 | + padding-bottom: 15rpx; | |
| 182 | + border-top: #ececec solid 2rpx; | |
| 183 | + width: 94%; | |
| 184 | + margin-left: 3%; | |
| 185 | + text-align: center; | |
| 186 | +} | |
| 187 | + | |
| 188 | +.menu .ol:nth-child(1) { | |
| 189 | + border-top: none; | |
| 190 | +} | |
| 191 | + | |
| 192 | +.menu .ol navigator { | |
| 193 | + padding: 25rpx 0; | |
| 194 | + color: #787878; | |
| 195 | +} | |
| 196 | + | |
| 197 | +.menu1 { | |
| 198 | + margin-left: 30%; | |
| 199 | + background: #fff; | |
| 200 | + width: 40%; | |
| 201 | +} | |
| 202 | + | |
| 203 | +.menu1 .ol { | |
| 204 | + padding-top: 5rpx; | |
| 205 | + padding-bottom: 15rpx; | |
| 206 | + border-top: #ececec solid 2rpx; | |
| 207 | + width: 94%; | |
| 208 | + margin-left: 3%; | |
| 209 | + text-align: center; | |
| 210 | +} | |
| 211 | + | |
| 212 | +.menu1 .ol:nth-child(1) { | |
| 213 | + border-top: none; | |
| 214 | +} | |
| 215 | + | |
| 216 | +.menu1 .ol navigator { | |
| 217 | + padding: 25rpx 0; | |
| 218 | + color: #787878; | |
| 219 | +} | |
| 220 | + | |
| 221 | +.tanbg image{ | |
| 222 | + position: absolute; | |
| 223 | + bottom: 0; | |
| 224 | +} | |
| 225 | +.aa{ | |
| 226 | + z-index: 2; | |
| 227 | + width: 20%; | |
| 228 | + margin-left: 40%; | |
| 229 | + height: 16rpx; | |
| 230 | +} | |
| 231 | +.bb{ | |
| 232 | + height: 25rpx; | |
| 233 | + z-index: 1; | |
| 234 | + width: 100%; | |
| 235 | +} | |
| 236 | + | |
| 237 | +.menu { | |
| 238 | + position: relative; | |
| 239 | +} | |
| 240 | + | |
| 241 | +.menu1 { | |
| 242 | + position: relative; | |
| 243 | +} | |
| 244 | + | |
| 245 | +.con .con1 .bot { | |
| 246 | + overflow: hidden; | |
| 247 | + text-overflow: ellipsis; | |
| 248 | + display: -webkit-box; | |
| 249 | + -webkit-line-clamp: 1; | |
| 250 | + -webkit-box-orient: vertical; | |
| 251 | +} | |
| 252 | +.xiala{ | |
| 253 | + height: 100rpx; | |
| 254 | +} | |
| 255 | +.xiala{ | |
| 256 | + text-align: center; | |
| 257 | + color: #7a838c; | |
| 258 | + margin-top: 25rpx; | |
| 259 | +} | |
| \ No newline at end of file | ... | ... |
pages/activity/join/join.js
0 → 100644
| 1 | +// pages/activity/join/join.js | |
| 2 | +var app = getApp(); | |
| 3 | +Page({ | |
| 4 | + | |
| 5 | + /** | |
| 6 | + * 页面的初始数据 | |
| 7 | + */ | |
| 8 | + data: { | |
| 9 | + currentTab: 0, | |
| 10 | + meng: true, | |
| 11 | + countTotal:'', | |
| 12 | + countTotal1:'', | |
| 13 | + index1: '', | |
| 14 | + num: '', | |
| 15 | + // qqq:true, | |
| 16 | + list: [ | |
| 17 | + { | |
| 18 | + name: '学术会议', | |
| 19 | + title: 'Naturejobs Career Expo|', | |
| 20 | + title1: 'Jobs in China', | |
| 21 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + name: '招聘会', | |
| 25 | + title: 'Naturejobs Career Expo|', | |
| 26 | + title1: 'Jobs in China', | |
| 27 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 28 | + }, | |
| 29 | + { | |
| 30 | + name: '学术会议', | |
| 31 | + title: 'Naturejobs Career Expo|', | |
| 32 | + title1: 'Jobs in China', | |
| 33 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 34 | + }, | |
| 35 | + { | |
| 36 | + name: '招聘会', | |
| 37 | + title: 'Naturejobs Career Expo|', | |
| 38 | + title1: 'Jobs in China', | |
| 39 | + mode: 'aturejobs Career Expo | aturejobs Career Expo' | |
| 40 | + }, | |
| 41 | + ], | |
| 42 | + con: [ | |
| 43 | + { | |
| 44 | + name: '招聘会', | |
| 45 | + countTotal: '1', | |
| 46 | + list1: '' | |
| 47 | + }, | |
| 48 | + { | |
| 49 | + name: '学术会议', | |
| 50 | + countTotal: "2", | |
| 51 | + list1: '' | |
| 52 | + } | |
| 53 | + ] | |
| 54 | + }, | |
| 55 | + onReachBottom: function () { | |
| 56 | + var that = this | |
| 57 | + var num = that.data.num | |
| 58 | + console.log('num', num) | |
| 59 | + var skey = that.data.skey | |
| 60 | + var index1 = that.data.index1 | |
| 61 | + console.log('index1', index1) | |
| 62 | + if (index1 == 0) { | |
| 63 | + wx.request({ | |
| 64 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 65 | + method: 'GET', | |
| 66 | + header: { | |
| 67 | + 'content-type': 'application/json', | |
| 68 | + 'x-wx-skey': skey | |
| 69 | + }, | |
| 70 | + // ,job_opportunities | |
| 71 | + data: { | |
| 72 | + type: 'job_fair', | |
| 73 | + offset: num, | |
| 74 | + limit: 8 | |
| 75 | + }, | |
| 76 | + success: function (res) { | |
| 77 | + if (res.data.data.length < 8) { | |
| 78 | + console.log(res.data.data) | |
| 79 | + var num1 = that.data.num + res.data.data.length | |
| 80 | + that.setData({ | |
| 81 | + list: that.data.list.concat(res.data.data), | |
| 82 | + num: num1, | |
| 83 | + xiala: false, | |
| 84 | + }) | |
| 85 | + } | |
| 86 | + else { | |
| 87 | + console.log(5555555555555555555) | |
| 88 | + var num1 = that.data.num + 8 | |
| 89 | + console.log('num1', num1) | |
| 90 | + that.setData({ | |
| 91 | + num: num1, | |
| 92 | + list: that.data.list.concat(res.data.data), | |
| 93 | + }) | |
| 94 | + setTimeout(function () { | |
| 95 | + console.log(1111111111111111111111111111111111111111) | |
| 96 | + }, 3500); | |
| 97 | + } | |
| 98 | + } | |
| 99 | + }) | |
| 100 | + } | |
| 101 | + if (index1 == 1) { | |
| 102 | + wx.request({ | |
| 103 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 104 | + method: 'GET', | |
| 105 | + header: { | |
| 106 | + 'content-type': 'application/json', | |
| 107 | + 'x-wx-skey': skey | |
| 108 | + }, | |
| 109 | + // ,job_opportunities | |
| 110 | + data: { | |
| 111 | + type: 'academic_conference', | |
| 112 | + offset: num, | |
| 113 | + limit: 8 | |
| 114 | + }, | |
| 115 | + success: function (res) { | |
| 116 | + if (res.data.data.length < 8) { | |
| 117 | + console.log(res.data.data) | |
| 118 | + var num1 = that.data.num + res.data.data.length | |
| 119 | + that.setData({ | |
| 120 | + list: that.data.list.concat(res.data.data), | |
| 121 | + num: num1, | |
| 122 | + xiala: false, | |
| 123 | + }) | |
| 124 | + } | |
| 125 | + else { | |
| 126 | + console.log(5555555555555555555) | |
| 127 | + var num1 = that.data.num + 8 | |
| 128 | + console.log('num1', num1) | |
| 129 | + that.setData({ | |
| 130 | + num: num1, | |
| 131 | + list: that.data.list.concat(res.data.data), | |
| 132 | + }) | |
| 133 | + setTimeout(function () { | |
| 134 | + console.log(1111111111111111111111111111111111111111) | |
| 135 | + }, 3500); | |
| 136 | + } | |
| 137 | + } | |
| 138 | + }) | |
| 139 | + } | |
| 140 | + }, | |
| 141 | + /** | |
| 142 | + * 生命周期函数--监听页面加载 | |
| 143 | + */ | |
| 144 | + onLoad: function (options) { | |
| 145 | + var that = this | |
| 146 | + var list = that.data.list | |
| 147 | + | |
| 148 | + var skey = wx.getStorageSync('key') | |
| 149 | + that.setData({ | |
| 150 | + skey: skey, | |
| 151 | + }) | |
| 152 | + var con = that.data.con | |
| 153 | + var countTotal = con[0].countTotal | |
| 154 | + var countTotal1 = con[1].countTotal | |
| 155 | + | |
| 156 | + console.log('countTotal', countTotal) | |
| 157 | + | |
| 158 | + wx.request({ | |
| 159 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 160 | + method: 'GET', | |
| 161 | + header: { | |
| 162 | + 'content-type': 'application/json', | |
| 163 | + 'x-wx-skey': skey | |
| 164 | + }, | |
| 165 | + data: { | |
| 166 | + type: 'job_fair', | |
| 167 | + offset: 0, | |
| 168 | + limit: 8 | |
| 169 | + }, | |
| 170 | + success: function (res) { | |
| 171 | + // for(var x in res.data.data){ | |
| 172 | + // if(x<9){ | |
| 173 | + // var qqq = that.data.qqq | |
| 174 | + // that.setData({ | |
| 175 | + // qqq: false | |
| 176 | + // }) | |
| 177 | + // } | |
| 178 | + // } | |
| 179 | + console.log('res', res.data.countTotal) | |
| 180 | + that.setData({ | |
| 181 | + list: res.data.data, | |
| 182 | + num: res.data.data.length, | |
| 183 | + countTotal: res.data.countTotal | |
| 184 | + }) | |
| 185 | + } | |
| 186 | + }) | |
| 187 | + wx.request({ | |
| 188 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 189 | + method: 'GET', | |
| 190 | + header: { | |
| 191 | + 'content-type': 'application/json', | |
| 192 | + 'x-wx-skey': skey | |
| 193 | + }, | |
| 194 | + data: { | |
| 195 | + type: 'academic_conference', | |
| 196 | + offset: 0, | |
| 197 | + limit: 8 | |
| 198 | + }, | |
| 199 | + success: function (res) { | |
| 200 | + // for(var x in res.data.data){ | |
| 201 | + // if(x<9){ | |
| 202 | + // var qqq = that.data.qqq | |
| 203 | + // that.setData({ | |
| 204 | + // qqq: false | |
| 205 | + // }) | |
| 206 | + // } | |
| 207 | + // } | |
| 208 | + console.log('res', res.data.countTotal) | |
| 209 | + that.setData({ | |
| 210 | + countTotal1: res.data.countTotal | |
| 211 | + }) | |
| 212 | + } | |
| 213 | + }) | |
| 214 | + }, | |
| 215 | + | |
| 216 | + /** | |
| 217 | + * 生命周期函数--监听页面初次渲染完成 | |
| 218 | + */ | |
| 219 | + onReady: function () { | |
| 220 | + | |
| 221 | + }, | |
| 222 | + getmenu: function () { | |
| 223 | + var that = this | |
| 224 | + var block = that.data.block | |
| 225 | + var block1 = that.data.block1 | |
| 226 | + var meng = that.data.meng | |
| 227 | + if (block == false) { | |
| 228 | + that.setData({ | |
| 229 | + block: true, | |
| 230 | + meng: false, | |
| 231 | + block1: false | |
| 232 | + }); | |
| 233 | + } else { | |
| 234 | + that.setData({ | |
| 235 | + block: false, | |
| 236 | + meng: true | |
| 237 | + }); | |
| 238 | + } | |
| 239 | + }, | |
| 240 | + getmenu1: function () { | |
| 241 | + var that = this | |
| 242 | + var block = that.data.block | |
| 243 | + var block1 = that.data.block1 | |
| 244 | + var meng = that.data.meng | |
| 245 | + if (block1 == false) { | |
| 246 | + that.setData({ | |
| 247 | + block1: true, | |
| 248 | + meng: false, | |
| 249 | + block: false | |
| 250 | + }); | |
| 251 | + } else { | |
| 252 | + that.setData({ | |
| 253 | + block1: false, | |
| 254 | + meng: true | |
| 255 | + }); | |
| 256 | + } | |
| 257 | + }, | |
| 258 | + meng: function () { | |
| 259 | + var that = this | |
| 260 | + var block = that.data.block | |
| 261 | + var block1 = that.data.block1 | |
| 262 | + var meng = that.data.meng | |
| 263 | + that.setData({ | |
| 264 | + block1: false, | |
| 265 | + meng: true, | |
| 266 | + block: false | |
| 267 | + }); | |
| 268 | + }, | |
| 269 | + getlist: function (e) { | |
| 270 | + var that = this | |
| 271 | + var list = that.data.list | |
| 272 | + var index = e.currentTarget.dataset.index | |
| 273 | + that.setData({ | |
| 274 | + index1: index, | |
| 275 | + }) | |
| 276 | + var con = that.data.con | |
| 277 | + console.log('this', this) | |
| 278 | + | |
| 279 | + if (index == 0) { | |
| 280 | + var skey = wx.getStorageSync('key') | |
| 281 | + that.setData({ | |
| 282 | + skey: skey, | |
| 283 | + }) | |
| 284 | + wx.request({ | |
| 285 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 286 | + method: 'GET', | |
| 287 | + header: { | |
| 288 | + 'content-type': 'application/json', | |
| 289 | + 'x-wx-skey': skey | |
| 290 | + }, | |
| 291 | + data: { | |
| 292 | + type: 'job_fair', | |
| 293 | + offset: 0, | |
| 294 | + limit: 8 | |
| 295 | + }, | |
| 296 | + success: function (res) { | |
| 297 | + console.log('res', res.data) | |
| 298 | + that.setData({ | |
| 299 | + list: res.data.data, | |
| 300 | + num: res.data.data.length | |
| 301 | + }) | |
| 302 | + } | |
| 303 | + }) | |
| 304 | + } | |
| 305 | + if (index == 1) { | |
| 306 | + var skey = wx.getStorageSync('key') | |
| 307 | + that.setData({ | |
| 308 | + skey: skey, | |
| 309 | + }) | |
| 310 | + wx.request({ | |
| 311 | + url: app.url + '/mpapi/1.0.0/user/favorite?type=&offset=&limit=', | |
| 312 | + method: 'GET', | |
| 313 | + header: { | |
| 314 | + 'content-type': 'application/json', | |
| 315 | + 'x-wx-skey': skey | |
| 316 | + }, | |
| 317 | + data: { | |
| 318 | + type: 'academic_conference', | |
| 319 | + offset: 0, | |
| 320 | + limit: 8 | |
| 321 | + }, | |
| 322 | + success: function (res) { | |
| 323 | + console.log('res', res.data) | |
| 324 | + that.setData({ | |
| 325 | + list: res.data.data, | |
| 326 | + num: res.data.data.length | |
| 327 | + }) | |
| 328 | + } | |
| 329 | + }) | |
| 330 | + } | |
| 331 | + if (this.data.currentTab === e.target.dataset.index) { | |
| 332 | + return false; | |
| 333 | + } else { | |
| 334 | + that.setData({ | |
| 335 | + currentTab: e.target.dataset.current | |
| 336 | + }) | |
| 337 | + } | |
| 338 | + }, | |
| 339 | + /** | |
| 340 | + * 生命周期函数--监听页面显示 | |
| 341 | + */ | |
| 342 | + onShow: function () { | |
| 343 | + | |
| 344 | + }, | |
| 345 | + | |
| 346 | + /** | |
| 347 | + * 生命周期函数--监听页面隐藏 | |
| 348 | + */ | |
| 349 | + onHide: function () { | |
| 350 | + | |
| 351 | + }, | |
| 352 | + | |
| 353 | + /** | |
| 354 | + * 生命周期函数--监听页面卸载 | |
| 355 | + */ | |
| 356 | + onUnload: function () { | |
| 357 | + | |
| 358 | + }, | |
| 359 | + | |
| 360 | + /** | |
| 361 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 362 | + */ | |
| 363 | + onPullDownRefresh: function () { | |
| 364 | + var that = this | |
| 365 | + // wx.showToast({ | |
| 366 | + // title: 'loading...', | |
| 367 | + // icon: 'loading' | |
| 368 | + // }) | |
| 369 | + that.setData({ | |
| 370 | + currentTab: 0 | |
| 371 | + }) | |
| 372 | + setTimeout(function () { | |
| 373 | + wx.stopPullDownRefresh() | |
| 374 | + }, 1500) | |
| 375 | + that.onLoad() | |
| 376 | + }, | |
| 377 | + | |
| 378 | + /** | |
| 379 | + * 页面上拉触底事件的处理函数 | |
| 380 | + /** | |
| 381 | + * 用户点击右上角分享 | |
| 382 | + */ | |
| 383 | + onShareAppMessage: function () { | |
| 384 | + | |
| 385 | + } | |
| 386 | +}) | |
| \ No newline at end of file | ... | ... |
pages/activity/join/join.json
0 → 100644
pages/activity/join/join.wxml
0 → 100644
| 1 | +<view style="font-size:28rpx;"> | |
| 2 | + <view style='height:86rpx;'></view> | |
| 3 | + <view wx:if="{{list}}"> | |
| 4 | + <view class="content2"> | |
| 5 | + <block wx:for="{{list}}"> | |
| 6 | + <view class="li"> | |
| 7 | + <view wx:if="{{item.type == 'job_fair'}}"> | |
| 8 | + <navigator url="../../jobfairdetail/jobfairdetail?id={{item.content.id}}"> | |
| 9 | + <view class="bg"> | |
| 10 | + <image src='{{item.content.listImage[0].url}}' mode='widthFix'></image> | |
| 11 | + </view> | |
| 12 | + <view class="con"> | |
| 13 | + <view class="con1"> | |
| 14 | + <view class="top" style='color:#d9d9d8; font-size:26rpx;'> | |
| 15 | + {{item.content.eventDateStart }} | |
| 16 | + </view> | |
| 17 | + <view class="bot">{{item.content.title}}</view> | |
| 18 | + <view class='bot'> | |
| 19 | + <text>{{item.content.teaser}}</text> | |
| 20 | + </view> | |
| 21 | + <text class="right">{{item.type=="job_fair"?'招聘会':''}}</text> | |
| 22 | + </view> | |
| 23 | + </view> | |
| 24 | + </navigator> | |
| 25 | + </view> | |
| 26 | + <view wx:if="{{item.type == 'academic_conference'}}"> | |
| 27 | + <navigator url="../../academic/academic?id={{item.content.id}}"> | |
| 28 | + <view class="bg"> | |
| 29 | + <image src='{{item.content.listImage[0].url}}' mode='widthFix'></image> | |
| 30 | + </view> | |
| 31 | + <view class="con"> | |
| 32 | + <view class="con1"> | |
| 33 | + <view class="top" style='color:#d9d9d8; font-size:26rpx;'> | |
| 34 | + <text>{{item.content.city}}</text> | {{item.content.eventDateStart }} | |
| 35 | + </view> | |
| 36 | + <!-- <view class="bot">{{item.content.description}}</view> --> | |
| 37 | + <view class="bot">{{item.content.title}} </view> | |
| 38 | + <text class="right">{{item.type=="academic_conference"?'学术会议':''}}</text> | |
| 39 | + </view> | |
| 40 | + </view> | |
| 41 | + </navigator> | |
| 42 | + </view> | |
| 43 | + </view> | |
| 44 | + </block> | |
| 45 | + <view class="xiala">{{xiala?'正在加载...':'没有更多信息了'}}</view> | |
| 46 | + </view> | |
| 47 | + </view> | |
| 48 | + <view wx:else> | |
| 49 | + <image src='/static/images/kongliebiao.png' mode='aspectFit' class="konglie"></image> | |
| 50 | + </view> | |
| 51 | + <view class="content3"> | |
| 52 | + <view class="li"> | |
| 53 | + <view bindtap='getlist' data-index="0" data-current="0" class="{{currentTab==0 ? 'on' : ''}} aaa">招聘会</view> | |
| 54 | + <view class="{{countTotal==0?'hide':''}} connum">{{countTotal}}</view> | |
| 55 | + </view> | |
| 56 | + <view class="li"> | |
| 57 | + <view bindtap='getlist' data-index="1" data-current="1" class="{{currentTab==1 ? 'on' : ''}} aaa">学术会议</view> | |
| 58 | + <view class="{{countTotal1==0?'hide':''}} connum">{{countTotal1}}</view> | |
| 59 | + </view> | |
| 60 | + <view class='cl'></view> | |
| 61 | + </view> | |
| 62 | + <view style="height:120rpx;"></view> | |
| 63 | + <view class="{{scrollTop>120 ? 'hide' : 'block'}} bott"> | |
| 64 | + <view class="{{block ? 'block' : 'hide'}} menu"> | |
| 65 | + <view class='tanbg'> | |
| 66 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 67 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 68 | + </view> | |
| 69 | + <view class="ol"> | |
| 70 | + <navigator url='../../jobfair/jobfair' open-type="redirect">招聘会</navigator> | |
| 71 | + </view> | |
| 72 | + <view class="ol"> | |
| 73 | + <navigator url='../../academiclist/academiclist' open-type="redirect">学术会议</navigator> | |
| 74 | + </view> | |
| 75 | + <view class="ol"> | |
| 76 | + <navigator url='../../xzpx/xzpx' open-type="redirect">写作培训</navigator> | |
| 77 | + </view> | |
| 78 | + </view> | |
| 79 | + <view class="{{block1 ? 'block' : 'hide'}} menu1"> | |
| 80 | + <view class='tanbg'> | |
| 81 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 82 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 83 | + </view> | |
| 84 | + <view class="ol"> | |
| 85 | + <navigator url='../../zyjy/zyjy' open-type="redirect">职业建议</navigator> | |
| 86 | + </view> | |
| 87 | + <view class="ol"> | |
| 88 | + <navigator url='../../gzjh/gzjh' open-type="redirect">工作机会</navigator> | |
| 89 | + </view> | |
| 90 | + <view class="ol"> | |
| 91 | + <navigator url='../../lwrs/lwrs' open-type="redirect">论文润色</navigator> | |
| 92 | + </view> | |
| 93 | + </view> | |
| 94 | + <view class="foot"> | |
| 95 | + <view class="li"> | |
| 96 | + <navigator url='../../index/index' open-type="redirect"> | |
| 97 | + <image src='/static/images/0001.png' class="top"></image> | |
| 98 | + <text>首页</text> | |
| 99 | + </navigator> | |
| 100 | + </view> | |
| 101 | + <view class="li"> | |
| 102 | + <view bindtap='getmenu' class='huodong'> | |
| 103 | + <image src='/static/images/0002.png' class="top"></image> | |
| 104 | + <text>活动</text> | |
| 105 | + </view> | |
| 106 | + </view> | |
| 107 | + <view class="li"> | |
| 108 | + <view bindtap='getmenu1' class='huodong'> | |
| 109 | + <image src='/static/images/0003.png' class="top"></image> | |
| 110 | + <text>资讯</text> | |
| 111 | + </view> | |
| 112 | + </view> | |
| 113 | + <view class="li"> | |
| 114 | + <navigator url='../../contact/contact' open-type="redirect"> | |
| 115 | + <image src='/static/images/0004.png' class="top"></image> | |
| 116 | + <text>联系</text> | |
| 117 | + </navigator> | |
| 118 | + </view> | |
| 119 | + <view class="li"> | |
| 120 | + <navigator url='../../member/member' open-type="redirect"> | |
| 121 | + <image src='/static/images/005.png' class="top"></image> | |
| 122 | + <text>我的</text> | |
| 123 | + </navigator> | |
| 124 | + </view> | |
| 125 | + <view class="cl"></view> | |
| 126 | + </view> | |
| 127 | + </view> | |
| 128 | + <view class="{{meng ? 'hide' : 'block'}} meng" bindtap='meng'></view> | |
| 129 | +</view> | |
| \ No newline at end of file | ... | ... |
pages/activity/join/join.wxss
0 → 100644
| 1 | +page { | |
| 2 | + width: 100%; | |
| 3 | + height: 100%; | |
| 4 | +} | |
| 5 | + | |
| 6 | +.meng { | |
| 7 | + width: 100%; | |
| 8 | + height: 100%; | |
| 9 | + background: rgba(76, 74, 75, 0.5); | |
| 10 | + z-index: 998; | |
| 11 | + position: fixed; | |
| 12 | + left: 0; | |
| 13 | + top: 0; | |
| 14 | +} | |
| 15 | + | |
| 16 | +.fl { | |
| 17 | + float: left; | |
| 18 | +} | |
| 19 | + | |
| 20 | +.fr { | |
| 21 | + float: right; | |
| 22 | +} | |
| 23 | + | |
| 24 | +.cl { | |
| 25 | + clear: both; | |
| 26 | +} | |
| 27 | + | |
| 28 | +.display { | |
| 29 | + display: block; | |
| 30 | +} | |
| 31 | + | |
| 32 | +.hide { | |
| 33 | + display: none; | |
| 34 | +} | |
| 35 | + | |
| 36 | +.foot .li .huodong { | |
| 37 | + display: block; | |
| 38 | + padding: 10rpx 0 5rpx 0; | |
| 39 | +} | |
| 40 | + | |
| 41 | +.bg image { | |
| 42 | + display: block; | |
| 43 | +} | |
| 44 | + | |
| 45 | +.content2 .li { | |
| 46 | + position: relative; | |
| 47 | + margin-bottom: 6rpx; | |
| 48 | +} | |
| 49 | + | |
| 50 | +.content2 .li image { | |
| 51 | + width: 750rpx; | |
| 52 | + height: 235rpx; | |
| 53 | +} | |
| 54 | + | |
| 55 | +.content2 .li .con { | |
| 56 | + position: absolute; | |
| 57 | + color: #fff; | |
| 58 | + width: 100%; | |
| 59 | + height: 100%; | |
| 60 | + background: rgba(76, 74, 75, 0.5); | |
| 61 | + top: 0; | |
| 62 | + left: 0; | |
| 63 | +} | |
| 64 | + | |
| 65 | +.content2 .li .con .con1 { | |
| 66 | + margin-left: 40rpx; | |
| 67 | + margin-top: 40rpx; | |
| 68 | +} | |
| 69 | + | |
| 70 | +.content2 .li .con .con1 .top { | |
| 71 | + font-size: 24rpx; | |
| 72 | + margin-bottom: 5rpx; | |
| 73 | +} | |
| 74 | + | |
| 75 | +.content2 .li .con .con1 .bot { | |
| 76 | + margin-top: 15rpx; | |
| 77 | + font-size: 35rpx; | |
| 78 | + font-weight: bold; | |
| 79 | +} | |
| 80 | + | |
| 81 | +.content2 .li .con .con1 .right { | |
| 82 | + position: absolute; | |
| 83 | + right: 15rpx; | |
| 84 | + top: 0; | |
| 85 | + font-size: 26rpx; | |
| 86 | + background: #c30d23; | |
| 87 | + color: #fff; | |
| 88 | + width: 166rpx; | |
| 89 | + height: 46rpx; | |
| 90 | + line-height: 46rpx; | |
| 91 | + text-align: center; | |
| 92 | +} | |
| 93 | + | |
| 94 | +.content3 { | |
| 95 | + color: #adadad; | |
| 96 | + position: fixed; | |
| 97 | + top: 0; | |
| 98 | + left: 0; | |
| 99 | + width: 100%; | |
| 100 | + z-index: 99; | |
| 101 | + background: #5c5c5c; | |
| 102 | +} | |
| 103 | + | |
| 104 | +.aaa { | |
| 105 | + float: left; | |
| 106 | + margin-left: 30%; | |
| 107 | +} | |
| 108 | + | |
| 109 | +.content3 .li:nth-child(1) .aaa { | |
| 110 | + margin-left: 35%; | |
| 111 | +} | |
| 112 | + | |
| 113 | +.content3 .connum { | |
| 114 | + color: #5c5c5c; | |
| 115 | + margin-left: 15rpx; | |
| 116 | + float: left; | |
| 117 | + background:#fff; | |
| 118 | + border-radius: 50%; | |
| 119 | + width: 30rpx; | |
| 120 | + line-height: 30rpx; | |
| 121 | + text-align: center; | |
| 122 | + height: 30rpx; | |
| 123 | + margin-top: 18rpx; | |
| 124 | + font-size: 24rpx; | |
| 125 | +} | |
| 126 | + | |
| 127 | +.content3 .li { | |
| 128 | + float: left; | |
| 129 | + margin-top: 10rpx; | |
| 130 | + line-height: 70rpx; | |
| 131 | + font-size: 28rpx; | |
| 132 | + width: 49%; | |
| 133 | + text-align: center; | |
| 134 | +} | |
| 135 | + | |
| 136 | +.content3 .li:nth-child(1) { | |
| 137 | + width: 50%; | |
| 138 | + border-right: #fff solid 2rpx; | |
| 139 | +} | |
| 140 | + | |
| 141 | +.content3 .li text { | |
| 142 | + margin: 0 auto; | |
| 143 | + padding: 30rpx 10rpx 22rpx 10rpx; | |
| 144 | +} | |
| 145 | + | |
| 146 | +.on { | |
| 147 | + color: #fff; | |
| 148 | + border-bottom: 8rpx solid #bc272b; | |
| 149 | +} | |
| 150 | + | |
| 151 | +.konglie { | |
| 152 | + position: absolute; | |
| 153 | + left: 50%; | |
| 154 | + margin-left: -100rpx; | |
| 155 | + top: 50%; | |
| 156 | + margin-top: -75rpx; | |
| 157 | + width: 200rpx; | |
| 158 | + height: 150rpx; | |
| 159 | +} | |
| 160 | + | |
| 161 | +.bott { | |
| 162 | + position: fixed; | |
| 163 | + left: 0; | |
| 164 | + bottom: 0; | |
| 165 | + z-index: 999; | |
| 166 | + width: 100%; | |
| 167 | +} | |
| 168 | + | |
| 169 | +.bott { | |
| 170 | + position: fixed; | |
| 171 | + left: 0; | |
| 172 | + bottom: 0; | |
| 173 | + z-index: 999; | |
| 174 | + width: 100%; | |
| 175 | +} | |
| 176 | + | |
| 177 | +.foot { | |
| 178 | + width: 100%; | |
| 179 | + background: #d81f25; | |
| 180 | +} | |
| 181 | + | |
| 182 | +.foot .li navigator { | |
| 183 | + display: block; | |
| 184 | + padding: 10rpx 0 5rpx 0; | |
| 185 | +} | |
| 186 | + | |
| 187 | +.foot .li { | |
| 188 | + text-align: center; | |
| 189 | + color: #fff; | |
| 190 | + width: 20%; | |
| 191 | + float: left; | |
| 192 | +} | |
| 193 | + | |
| 194 | +.foot .li .top { | |
| 195 | + width: 48rpx; | |
| 196 | + height: 48rpx; | |
| 197 | + margin: 0 auto; | |
| 198 | + display: block; | |
| 199 | +} | |
| 200 | + | |
| 201 | +.foot .li text { | |
| 202 | + font-size: 24rpx; | |
| 203 | +} | |
| 204 | + | |
| 205 | +.menu { | |
| 206 | + margin-left: 10%; | |
| 207 | + background: #fff; | |
| 208 | + width: 40%; | |
| 209 | +} | |
| 210 | + | |
| 211 | +.menu .ol { | |
| 212 | + padding-top: 5rpx; | |
| 213 | + padding-bottom: 15rpx; | |
| 214 | + border-top: #ececec solid 2rpx; | |
| 215 | + width: 94%; | |
| 216 | + margin-left: 3%; | |
| 217 | + text-align: center; | |
| 218 | +} | |
| 219 | + | |
| 220 | +.menu .ol:nth-child(1) { | |
| 221 | + border-top: none; | |
| 222 | +} | |
| 223 | + | |
| 224 | +.menu .ol navigator { | |
| 225 | + padding: 25rpx 0; | |
| 226 | + color: #787878; | |
| 227 | +} | |
| 228 | + | |
| 229 | +.menu1 { | |
| 230 | + margin-left: 30%; | |
| 231 | + background: #fff; | |
| 232 | + width: 40%; | |
| 233 | +} | |
| 234 | + | |
| 235 | +.menu1 .ol { | |
| 236 | + padding-top: 5rpx; | |
| 237 | + padding-bottom: 15rpx; | |
| 238 | + border-top: #ececec solid 2rpx; | |
| 239 | + width: 94%; | |
| 240 | + margin-left: 3%; | |
| 241 | + text-align: center; | |
| 242 | +} | |
| 243 | + | |
| 244 | +.menu1 .ol:nth-child(1) { | |
| 245 | + border-top: none; | |
| 246 | +} | |
| 247 | + | |
| 248 | +.menu1 .ol navigator { | |
| 249 | + padding: 25rpx 0; | |
| 250 | + color: #787878; | |
| 251 | +} | |
| 252 | + | |
| 253 | +.tanbg image{ | |
| 254 | + position: absolute; | |
| 255 | + bottom: 0; | |
| 256 | +} | |
| 257 | +.aa{ | |
| 258 | + z-index: 2; | |
| 259 | + width: 20%; | |
| 260 | + margin-left: 40%; | |
| 261 | + height: 16rpx; | |
| 262 | +} | |
| 263 | +.bb{ | |
| 264 | + height: 25rpx; | |
| 265 | + z-index: 1; | |
| 266 | + width: 100%; | |
| 267 | +} | |
| 268 | + | |
| 269 | +.menu { | |
| 270 | + position: relative; | |
| 271 | +} | |
| 272 | + | |
| 273 | +.menu1 { | |
| 274 | + position: relative; | |
| 275 | +} | |
| 276 | + | |
| 277 | +.con .con1 .bot { | |
| 278 | + overflow: hidden; | |
| 279 | + text-overflow: ellipsis; | |
| 280 | + display: -webkit-box; | |
| 281 | + -webkit-line-clamp: 1; | |
| 282 | + -webkit-box-orient: vertical; | |
| 283 | +} | |
| 284 | +.xiala{ | |
| 285 | + height: 100rpx; | |
| 286 | +} | |
| 287 | +.xiala{ | |
| 288 | + text-align: center; | |
| 289 | + color: #7a838c; | |
| 290 | + margin-top: 25rpx; | |
| 291 | +} | |
| \ No newline at end of file | ... | ... |
pages/ceshi1/ceshi1.js
0 → 100644
| 1 | +Page({ | |
| 2 | + data: { | |
| 3 | + url:'http://www.henkuai.com/thread-11714-1-1.html' | |
| 4 | + }, | |
| 5 | + show: function(){ | |
| 6 | + let that=this | |
| 7 | + wx.setClipboardData({ | |
| 8 | + data: that.data.url, | |
| 9 | + success(){ | |
| 10 | + that.setData({ | |
| 11 | + url:'http://www.henkuai.com/thread-11714-1-1.html' | |
| 12 | + }) | |
| 13 | + console.log('success') | |
| 14 | + } | |
| 15 | + }) | |
| 16 | + wx.getClipboardData({ | |
| 17 | + success(res){ | |
| 18 | + console.log(res.data) | |
| 19 | + } | |
| 20 | + }) | |
| 21 | + wx.showToast({ | |
| 22 | + title: '复制成功' | |
| 23 | + }) | |
| 24 | + } | |
| 25 | +}) | |
| \ No newline at end of file | ... | ... |
pages/ceshi1/ceshi1.json
0 → 100644
pages/ceshi1/ceshi1.wxml
0 → 100644
| 1 | +<view> | |
| 2 | +<view class='wangzhi'>http://www.henkuai.com/thread-11714-1-1.html</view> | |
| 3 | + <view style='display:none;'>{{url}}</view> | |
| 4 | + <view class="fuzhi"> | |
| 5 | + <button bindtap='show' class="dianji">复制链接</button> | |
| 6 | + <view class="jianyi">*建议传输到电脑山在打开链接</view> | |
| 7 | + <view style="clear:both;"></view> | |
| 8 | + </view> | |
| 9 | +</view> | |
| \ No newline at end of file | ... | ... |
pages/ceshi1/ceshi1.wxss
0 → 100644
| 1 | +.wangzhi{ | |
| 2 | + font-size: 28rpx; | |
| 3 | + color: #d72025; | |
| 4 | + width: 80%; | |
| 5 | + margin: 0 auto; | |
| 6 | +} | |
| 7 | +.fuzhi{ | |
| 8 | + width: 80%; | |
| 9 | + margin: 0 auto; | |
| 10 | + margin-top: 35rpx; | |
| 11 | +} | |
| 12 | +.dianji{ | |
| 13 | + display: block; | |
| 14 | + float: left; | |
| 15 | + background: #d72025; | |
| 16 | + color: #fff; | |
| 17 | + height: 80rpx; | |
| 18 | + line-height: 80rpx; | |
| 19 | + width: 50%; | |
| 20 | +} | |
| 21 | +.jianyi{ | |
| 22 | + float: left; | |
| 23 | + font-size: 22rpx; | |
| 24 | + margin-top: 10rpx; | |
| 25 | + color: #353535; | |
| 26 | + width: 45%; | |
| 27 | + margin-left: 5%; | |
| 28 | +} | |
| \ No newline at end of file | ... | ... |
pages/ceshi2/ceshi2.js
0 → 100644
| 1 | +// pages/ceshi2/ceshi2.js | |
| 2 | +Page({ | |
| 3 | + /** | |
| 4 | + * 页面的初始数据 | |
| 5 | + */ | |
| 6 | + data: { | |
| 7 | + top:'', | |
| 8 | + aaa:true | |
| 9 | + }, | |
| 10 | + | |
| 11 | + /** | |
| 12 | + * 生命周期函数--监听页面加载 | |
| 13 | + */ | |
| 14 | + onLoad: function (options) { | |
| 15 | + | |
| 16 | + }, | |
| 17 | + | |
| 18 | + /** | |
| 19 | + * 生命周期函数--监听页面初次渲染完成 | |
| 20 | + */ | |
| 21 | + onReady: function () { | |
| 22 | + | |
| 23 | + }, | |
| 24 | + //滚动监听 | |
| 25 | + handleTap1: function (e) { | |
| 26 | + var that = this | |
| 27 | + var top = that.data.top | |
| 28 | + var aaa = that.data.aaa | |
| 29 | + console.log(that) | |
| 30 | + var query = wx.createSelectorQuery() | |
| 31 | + query.select('#outer').boundingClientRect() | |
| 32 | + query.selectViewport().scrollOffset() | |
| 33 | + query.exec(function (res) { | |
| 34 | + console.log(res) | |
| 35 | + res[0].top // #the-id节点的上边界坐标 | |
| 36 | + res[1].scrollTop // 显示区域的竖直滚动位置 | |
| 37 | + that.setData({ | |
| 38 | + top: res[0].top | |
| 39 | + }) | |
| 40 | + }) | |
| 41 | + if (top <=-200){ | |
| 42 | + that.setData({ | |
| 43 | + aaa: false | |
| 44 | + }) | |
| 45 | + }else{ | |
| 46 | + that.setData({ | |
| 47 | + aaa: true | |
| 48 | + }) | |
| 49 | + } | |
| 50 | + // var top = res[0].top | |
| 51 | + }, | |
| 52 | + /** | |
| 53 | + * 生命周期函数--监听页面显示 | |
| 54 | + */ | |
| 55 | + onShow: function () { | |
| 56 | + | |
| 57 | + }, | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * 生命周期函数--监听页面隐藏 | |
| 61 | + */ | |
| 62 | + onHide: function () { | |
| 63 | + | |
| 64 | + }, | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 生命周期函数--监听页面卸载 | |
| 68 | + */ | |
| 69 | + onUnload: function () { | |
| 70 | + | |
| 71 | + }, | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 75 | + */ | |
| 76 | + onPullDownRefresh: function () { | |
| 77 | + wx.showToast({ | |
| 78 | + title: 'loading...', | |
| 79 | + icon: 'loading' | |
| 80 | + }) | |
| 81 | + setTimeout(function(){ | |
| 82 | + wx.stopPullDownRefresh() | |
| 83 | + },1500) | |
| 84 | + console.log('onPullDownRefresh', new Date()) | |
| 85 | + wx.stopPullDownRefresh(); | |
| 86 | + }, | |
| 87 | + stopPullDownRefresh: function () { | |
| 88 | + wx.stopPullDownRefresh({ | |
| 89 | + complete: function (res) { | |
| 90 | + wx.hideToast() | |
| 91 | + console.log(res, new Date()) | |
| 92 | + } | |
| 93 | + }) | |
| 94 | + }, | |
| 95 | + /** | |
| 96 | + * 页面上拉触底事件的处理函数 | |
| 97 | + */ | |
| 98 | + onReachBottom: function () { | |
| 99 | + | |
| 100 | + }, | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * 用户点击右上角分享 | |
| 104 | + */ | |
| 105 | + onShareAppMessage: function () { | |
| 106 | + | |
| 107 | + } | |
| 108 | +}) | |
| \ No newline at end of file | ... | ... |
pages/ceshi2/ceshi2.json
0 → 100644
pages/ceshi2/ceshi2.wxml
0 → 100644
| 1 | + <view id="outer" bind:touchmove="handleTap1" capture-bind:touchstart="handleTap2"> | |
| 2 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 3 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 4 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 5 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 6 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 7 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 8 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 9 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 10 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 11 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 12 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 13 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 14 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 15 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 16 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 17 | +<view class="{{aaa ? 'block' : 'hide'}}">pages/ceshi1321321/ceshi123123123.wxml</view> | |
| 18 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 19 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 20 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 21 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 22 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 23 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 24 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 25 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 26 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 27 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 28 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 29 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 30 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 31 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 32 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 33 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 34 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 35 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 36 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 37 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 38 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 39 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 40 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 41 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 42 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 43 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 44 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 45 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 46 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 47 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 48 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 49 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 50 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 51 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 52 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 53 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 54 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 55 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 56 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 57 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 58 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 59 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 60 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 61 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 62 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 63 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 64 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 65 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 66 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 67 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 68 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 69 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 70 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 71 | +<view>pages/ceshi2/ceshi2.wxml</view> | |
| 72 | +</view> | |
| 73 | + <!-- <view id="outer" bind:touchstart="handleTap1" capture-bind:touchstart="handleTap2"> | |
| 74 | + outer view | |
| 75 | + <view id="inner" bind:touchstart="handleTap3" capture-bind:touchstart="handleTap4"> | |
| 76 | + inner view | |
| 77 | + </view> | |
| 78 | +</view> --> | |
| \ No newline at end of file | ... | ... |
pages/ceshi2/ceshi2.wxss
0 → 100644
pages/ceshi3/ceshi3.js
0 → 100644
| 1 | +//index.js | |
| 2 | +//获取应用实例 | |
| 3 | +const app = getApp() | |
| 4 | +Page({ | |
| 5 | + data: { | |
| 6 | + limit: 0, | |
| 7 | + show: 0, | |
| 8 | + limitto: 5, | |
| 9 | + loadHidden: true, | |
| 10 | + datalaiy: '中国福利彩票官网', | |
| 11 | + newstitle: '彩经新闻', | |
| 12 | + lists: [ | |
| 13 | + { | |
| 14 | + 'id': '1', | |
| 15 | + 'image': 'http://img1.huiyijingling.cn/UploadImage/Meet/20161010/4ntia7d5/636117184529372567.png', | |
| 16 | + 'title': '双色球17102期开奖结果', | |
| 17 | + 'num': '304', | |
| 18 | + 'state': '进行中', | |
| 19 | + 'time': '2017-03-28', | |
| 20 | + 'keywords': '双色球17102期开奖结果' | |
| 21 | + } | |
| 22 | + ], | |
| 23 | + list: [ | |
| 24 | + { | |
| 25 | + 'id': '1', | |
| 26 | + 'image': 'http://img1.huiyijingling.cn/UploadImage/Meet/20161010/4ntia7d5/636117185105463337.png', | |
| 27 | + 'title': '福彩3D开奖结果', | |
| 28 | + 'num': '150', | |
| 29 | + 'state': '已结束', | |
| 30 | + 'time': '2017-03-28', | |
| 31 | + 'keywords': '福彩3D开奖结果' | |
| 32 | + } | |
| 33 | + ], | |
| 34 | + kjlist: [ | |
| 35 | + { | |
| 36 | + 'id': '1', 'name': '双色球', | |
| 37 | + 'bid': '0', 'caipiaoid': '13', | |
| 38 | + 'ball': [{ id: 1, num: '2', tp: 1 }, { id: 2, num: '3', tp: 1 }, { id: 3, num: '4', tp: 1 }, { id: 4, num: '8', tp: 1 }, | |
| 39 | + { id: 5, num: '12', tp: 1 }, | |
| 40 | + { id: 6, num: '17', tp: 1 }, | |
| 41 | + { id: 7, num: '7', tp: 2 } | |
| 42 | + ], | |
| 43 | + 'issueno': '17031', | |
| 44 | + 'opendate': '2017-03-28' | |
| 45 | + } | |
| 46 | + ], | |
| 47 | + imgUrls: [ | |
| 48 | + '/images/1.jpg', | |
| 49 | + '/images/2.jpg' | |
| 50 | + ], | |
| 51 | + //配置tabBar | |
| 52 | + tabBar: { | |
| 53 | + "color": "#9E9E9E", | |
| 54 | + "selectedColor": "#f00", | |
| 55 | + "backgroundColor": "#fff", | |
| 56 | + "borderStyle": "#ccc", | |
| 57 | + "num": 4, | |
| 58 | + "list": [ | |
| 59 | + { | |
| 60 | + "pagePath": "/page/index/index", | |
| 61 | + "text": "主页", | |
| 62 | + "iconPath": "../../images/1.png", | |
| 63 | + "selectedIconPath": "../../images/1-2.png", | |
| 64 | + //"selectedColor": "#4EDF80", | |
| 65 | + active: true | |
| 66 | + }, | |
| 67 | + { | |
| 68 | + "pagePath": "/page/kj/list", | |
| 69 | + "text": "开奖查询", | |
| 70 | + "iconPath": "../../images/2.png", | |
| 71 | + "selectedIconPath": "../../images/2-2.png", | |
| 72 | + active: false | |
| 73 | + }, | |
| 74 | + { | |
| 75 | + "pagePath": "/page/news/index", | |
| 76 | + "text": "彩经新闻", | |
| 77 | + "iconPath": "../../images/3.png", | |
| 78 | + "selectedIconPath": "../../images/3-2.png", | |
| 79 | + active: false | |
| 80 | + }, | |
| 81 | + { | |
| 82 | + "pagePath": "/page/line/index", | |
| 83 | + "text": "预测分析", | |
| 84 | + "iconPath": "../../images/4.png", | |
| 85 | + "selectedIconPath": "../../images/4-2.png", | |
| 86 | + active: false | |
| 87 | + } | |
| 88 | + ], | |
| 89 | + "position": "bottom" | |
| 90 | + } | |
| 91 | + }, | |
| 92 | + scrollR: function (e) { | |
| 93 | + var that = this; | |
| 94 | + that.setData({ loadHidden: false }) | |
| 95 | + wx.request({ | |
| 96 | + //主页信息 | |
| 97 | + url: app.url + '/apiArticleIndex.php', //首页接口地址 | |
| 98 | + data: { limit: that.data.limit, limitto: that.data.limitto }, | |
| 99 | + header: { 'Content-Type': 'application/json' }, | |
| 100 | + success: function (res) { | |
| 101 | + that.setData({ | |
| 102 | + list: res.data.aarr | |
| 103 | + }) | |
| 104 | + that.setData({ limit: that.data.limit + 3 }) | |
| 105 | + that.setData({ limitto: that.data.limitto + 3 }) | |
| 106 | + | |
| 107 | + that.setData({ | |
| 108 | + lists: that.data.lists.concat(that.data.list), | |
| 109 | + }); | |
| 110 | + }, | |
| 111 | + fail: function (res) { | |
| 112 | + console.log('失败') | |
| 113 | + }, | |
| 114 | + complete: function () { | |
| 115 | + //隐藏 加载中的提示 | |
| 116 | + that.setData({ loadHidden: true }) | |
| 117 | + }, | |
| 118 | + }) | |
| 119 | + }, | |
| 120 | + getDatas: function (e) { | |
| 121 | + var that = this; | |
| 122 | + wx.request({ | |
| 123 | + //主页信息 | |
| 124 | + url: app.url + '/apiIndex.php', //首页接口地址 | |
| 125 | + data: {}, | |
| 126 | + success: function (res) { | |
| 127 | + that.setData({ | |
| 128 | + kjlist: res.data.kjlist | |
| 129 | + }) | |
| 130 | + that.setData({ | |
| 131 | + datalaiy: res.data.datalaiy | |
| 132 | + }) | |
| 133 | + that.setData({ | |
| 134 | + newstitle: res.data.newstitle | |
| 135 | + }) | |
| 136 | + }, | |
| 137 | + fail: function (res) { | |
| 138 | + console.log('失败') | |
| 139 | + } | |
| 140 | + }) | |
| 141 | + }, | |
| 142 | + getArticleDatas: function (e) { | |
| 143 | + var that = this; | |
| 144 | + that.setData({ loadHidden: false }) | |
| 145 | + wx.request({ | |
| 146 | + //主页信息 | |
| 147 | + url: app.url + '/apiArticleIndex.php', //首页接口地址 | |
| 148 | + data: { limit: that.data.limit, limitto: that.data.limitto }, | |
| 149 | + header: { 'Content-Type': 'application/json' }, | |
| 150 | + success: function (res) { | |
| 151 | + that.setData({ | |
| 152 | + lists: res.data.aarr | |
| 153 | + }) | |
| 154 | + that.setData({ limit: that.data.limit + 3 }) | |
| 155 | + that.setData({ limitto: that.data.limitto + 3 }) | |
| 156 | + console.log('limit数据' + that.data.limit) | |
| 157 | + }, | |
| 158 | + fail: function (res) { | |
| 159 | + console.log('失败') | |
| 160 | + }, | |
| 161 | + complete: function () { | |
| 162 | + //隐藏 加载中的提示 | |
| 163 | + that.setData({ loadHidden: true }) | |
| 164 | + }, | |
| 165 | + }) | |
| 166 | + }, | |
| 167 | + onLoad: function (e) { | |
| 168 | + // this.scrollR(e); | |
| 169 | + this.getDatas(); | |
| 170 | + this.getArticleDatas(); | |
| 171 | + }, | |
| 172 | + //事件处理函数 | |
| 173 | + bindViewTap: function () { | |
| 174 | + wx.navigateTo({ | |
| 175 | + url: '../kjdetail/index', | |
| 176 | + success: function (res) { | |
| 177 | + console.log('跳转到news页面成功')// success | |
| 178 | + }, | |
| 179 | + fail: function () { | |
| 180 | + console.log('跳转到news页面失败') // fail | |
| 181 | + }, | |
| 182 | + complete: function () { | |
| 183 | + console.log('跳转到news页面完成') // complete | |
| 184 | + } | |
| 185 | + }) | |
| 186 | + }, | |
| 187 | + | |
| 188 | + scroll: function (e) { | |
| 189 | + console.log('首页加载了scroll') | |
| 190 | + this.scrollR(); | |
| 191 | + }, | |
| 192 | + onShareAppMessage: function () { | |
| 193 | + | |
| 194 | + } | |
| 195 | +}) | ... | ... |
pages/ceshi3/ceshi3.json
0 → 100644
pages/ceshi3/ceshi3.wxml
0 → 100644
pages/ceshi3/ceshi3.wxss
0 → 100644
pages/ceshi4/ceshi4.js
0 → 100644
| 1 | +// pages/shibai/shibai.js | |
| 2 | +Page({ | |
| 3 | + | |
| 4 | + /** | |
| 5 | + * 页面的初始数据 | |
| 6 | + */ | |
| 7 | + data: { | |
| 8 | + imgs1: '/static/images/sqsb.png', | |
| 9 | + imgs2: '/static/images/01.png', | |
| 10 | + imgs3: '/static/images/smt01.png', | |
| 11 | + imgs4: '/static/images/02.png', | |
| 12 | + imgs5: '/static/images/smt02.png', | |
| 13 | + }, | |
| 14 | + | |
| 15 | + /** | |
| 16 | + * 生命周期函数--监听页面加载 | |
| 17 | + */ | |
| 18 | + onLoad: function (options) { | |
| 19 | + | |
| 20 | + }, | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * 生命周期函数--监听页面初次渲染完成 | |
| 24 | + */ | |
| 25 | + onReady: function () { | |
| 26 | + | |
| 27 | + }, | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * 生命周期函数--监听页面显示 | |
| 31 | + */ | |
| 32 | + onShow: function () { | |
| 33 | + | |
| 34 | + }, | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 生命周期函数--监听页面隐藏 | |
| 38 | + */ | |
| 39 | + onHide: function () { | |
| 40 | + | |
| 41 | + }, | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * 生命周期函数--监听页面卸载 | |
| 45 | + */ | |
| 46 | + onUnload: function () { | |
| 47 | + | |
| 48 | + }, | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 52 | + */ | |
| 53 | + onPullDownRefresh: function () { | |
| 54 | + | |
| 55 | + }, | |
| 56 | + | |
| 57 | + /** | |
| 58 | + * 页面上拉触底事件的处理函数 | |
| 59 | + */ | |
| 60 | + onReachBottom: function () { | |
| 61 | + | |
| 62 | + }, | |
| 63 | + | |
| 64 | + /** | |
| 65 | + * 用户点击右上角分享 | |
| 66 | + */ | |
| 67 | + onShareAppMessage: function () { | |
| 68 | + | |
| 69 | + } | |
| 70 | +}) | |
| \ No newline at end of file | ... | ... |
pages/ceshi4/ceshi4.json
0 → 100644
| 1 | +{} | |
| \ No newline at end of file | ... | ... |
pages/ceshi4/ceshi4.wxml
0 → 100644
| 1 | +<!--pages/shibai/shibai.wxml--> | |
| 2 | +<!-- <text>pages/shibai/shibai.wxml</text> --> | |
| 3 | +<view class='top'> | |
| 4 | + <view class='top1'> | |
| 5 | + <image class='topimg' mode='aspectFit' src="{{imgs1}}"></image> | |
| 6 | + </view> | |
| 7 | + <view class='top2 topsb'>登录失败</view> | |
| 8 | + <view class='top2'>登录nature小程序需要授权</view> | |
| 9 | + <view class='top2 topsq'>请重新进入并允许授权</view> | |
| 10 | + <view></view> | |
| 11 | + <view class='top2 topjj'>拒绝授权将无法报名参加任何活动,也无法xxxxxx</view> | |
| 12 | +</view> | |
| 13 | +<view class='container'> | |
| 14 | + <view class='contop'>如何允许微信授权</view> | |
| 15 | + <view class='concenter'> | |
| 16 | + <view class='lfd'> | |
| 17 | + <image class='conimg1' mode='aspectFit' src="{{imgs2}}"></image> | |
| 18 | + </view> | |
| 19 | + <view class='centertxt lfd'> | |
| 20 | + 退出nature小程序,十分钟后重新进入;或在小程序列表中左滑删除小程序后, | |
| 21 | + 重新搜索“nature”进入。 | |
| 22 | + </view> | |
| 23 | + <!-- <view style='clear:both'></view> --> | |
| 24 | + <image class='confoot' mode='aspectFit' src="{{imgs3}}"></image> | |
| 25 | + </view> | |
| 26 | + | |
| 27 | + | |
| 28 | + <view class='concenter'> | |
| 29 | + <view class='lfd'> | |
| 30 | + <image class='conimg1' mode='aspectFit' src="{{imgs4}}"></image> | |
| 31 | + </view> | |
| 32 | + <view class='centertxt lfd'> | |
| 33 | + 点击进入nature小程序后,将出现以下微信授权页面,请点击“允许”。 | |
| 34 | + </view> | |
| 35 | + <!-- <view style='clear:both'></view> --> | |
| 36 | + <image class='confoot2' mode='aspectFit' src="{{imgs5}}"></image> | |
| 37 | + </view> | |
| 38 | +</view> | |
| \ No newline at end of file | ... | ... |
pages/ceshi4/ceshi4.wxss
0 → 100644
| 1 | +/* pages/shibai/shibai.wxss */ | |
| 2 | +page{ | |
| 3 | + font-size: 30rpx; | |
| 4 | + margin: 0; | |
| 5 | + padding: 0; | |
| 6 | +} | |
| 7 | +.lfd { | |
| 8 | + float: left; | |
| 9 | +} | |
| 10 | +.rfd { | |
| 11 | + float:right; | |
| 12 | +} | |
| 13 | +.top { | |
| 14 | + background: #5c5c5c; | |
| 15 | +} | |
| 16 | +.top1 { | |
| 17 | + | |
| 18 | +} | |
| 19 | +.topimg { | |
| 20 | + width: 20%; | |
| 21 | + height: 200rpx; | |
| 22 | + margin-left: 40%; | |
| 23 | + margin-top: 80rpx; | |
| 24 | +} | |
| 25 | +.top2 { | |
| 26 | + color: white; | |
| 27 | + text-align: center; | |
| 28 | +} | |
| 29 | +.topsb { | |
| 30 | + margin-top: 36rpx; | |
| 31 | + font-size: 40rpx; | |
| 32 | + margin-bottom: 36rpx; | |
| 33 | +} | |
| 34 | +.topsq { | |
| 35 | + padding-bottom: 40rpx; | |
| 36 | + border-bottom: 2rpx solid #ccc; | |
| 37 | +} | |
| 38 | +.topjj { | |
| 39 | + font-size: 26rpx; | |
| 40 | + margin-top: 22rpx; | |
| 41 | + padding-bottom: 50rpx; | |
| 42 | +} | |
| 43 | +.container { | |
| 44 | + /* padding-left: 10%; | |
| 45 | + padding-right: 10%; */ | |
| 46 | + padding-top: 0; | |
| 47 | +} | |
| 48 | +.contop { | |
| 49 | + text-align: center; | |
| 50 | + width: 90%; | |
| 51 | + font-size: 34rpx; | |
| 52 | + font-weight: bold; | |
| 53 | + margin-top: 52rpx; | |
| 54 | + padding-bottom: 40rpx; | |
| 55 | + border-bottom: 2rpx solid #ccc; | |
| 56 | +} | |
| 57 | +.concenter { | |
| 58 | + padding-top: 50rpx; | |
| 59 | + padding-left: 10%; | |
| 60 | + padding-right: 10%; | |
| 61 | +} | |
| 62 | +.conimg1 { | |
| 63 | + height: 50rpx; | |
| 64 | + width: 50rpx; | |
| 65 | +} | |
| 66 | +.centertxt { | |
| 67 | + margin-left: 10rpx; | |
| 68 | + width: 80%; | |
| 69 | + line-height: 56rpx; | |
| 70 | +} | |
| 71 | +.confoot { | |
| 72 | + width: 80%; | |
| 73 | + height: 210rpx; | |
| 74 | + margin-left: 10%; | |
| 75 | +} | |
| 76 | +.confoot2 { | |
| 77 | + margin-left: 10%; | |
| 78 | + width: 80%; | |
| 79 | + height: 450rpx; | |
| 80 | +} | |
| \ No newline at end of file | ... | ... |
pages/contact/contact.js
0 → 100644
| 1 | +// pages/contact/contact.js | |
| 2 | +Page({ | |
| 3 | + | |
| 4 | + /** | |
| 5 | + * 页面的初始数据 | |
| 6 | + */ | |
| 7 | + data: { | |
| 8 | + meng: true, | |
| 9 | + block: false, | |
| 10 | + block1: false | |
| 11 | + | |
| 12 | + }, | |
| 13 | + getmenu: function () { | |
| 14 | + var that = this | |
| 15 | + var block = that.data.block | |
| 16 | + var block1 = that.data.block1 | |
| 17 | + var meng = that.data.meng | |
| 18 | + if (block == false) { | |
| 19 | + that.setData({ | |
| 20 | + block: true, | |
| 21 | + meng: false, | |
| 22 | + block1: false | |
| 23 | + }); | |
| 24 | + } else { | |
| 25 | + that.setData({ | |
| 26 | + block: false, | |
| 27 | + meng: true | |
| 28 | + }); | |
| 29 | + } | |
| 30 | + }, | |
| 31 | + getmenu1: function () { | |
| 32 | + var that = this | |
| 33 | + var block = that.data.block | |
| 34 | + var block1 = that.data.block1 | |
| 35 | + var meng = that.data.meng | |
| 36 | + | |
| 37 | + if (block1 == false) { | |
| 38 | + that.setData({ | |
| 39 | + block1: true, | |
| 40 | + meng: false, | |
| 41 | + block: false | |
| 42 | + }); | |
| 43 | + } else { | |
| 44 | + that.setData({ | |
| 45 | + block1: false, | |
| 46 | + meng: true | |
| 47 | + | |
| 48 | + }); | |
| 49 | + } | |
| 50 | + }, | |
| 51 | + meng: function () { | |
| 52 | + var that = this | |
| 53 | + var block = that.data.block | |
| 54 | + var block1 = that.data.block1 | |
| 55 | + var meng = that.data.meng | |
| 56 | + that.setData({ | |
| 57 | + block1: false, | |
| 58 | + meng: true, | |
| 59 | + block: false | |
| 60 | + }); | |
| 61 | + }, | |
| 62 | + | |
| 63 | + callmex: function () { | |
| 64 | + var that = this | |
| 65 | + wx.makePhoneCall({ | |
| 66 | + phoneNumber:'02124225066' | |
| 67 | + }) | |
| 68 | + | |
| 69 | + }, | |
| 70 | + /** | |
| 71 | + * 生命周期函数--监听页面加载 | |
| 72 | + */ | |
| 73 | + onLoad: function (options) { | |
| 74 | + var that = this | |
| 75 | + wx.getSystemInfo({ | |
| 76 | + success: function (res) { | |
| 77 | + console.log(res.windowHeight) | |
| 78 | + var windowHeight = res.windowHeight | |
| 79 | + console.log('windowHeight', windowHeight) | |
| 80 | + that.setData({ | |
| 81 | + styleheight: windowHeight-77, | |
| 82 | + }); | |
| 83 | + | |
| 84 | + } | |
| 85 | + }) | |
| 86 | + | |
| 87 | + }, | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * 生命周期函数--监听页面初次渲染完成 | |
| 91 | + */ | |
| 92 | + onReady: function () { | |
| 93 | + | |
| 94 | + }, | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * 生命周期函数--监听页面显示 | |
| 98 | + */ | |
| 99 | + onShow: function () { | |
| 100 | + | |
| 101 | + }, | |
| 102 | + | |
| 103 | + /** | |
| 104 | + * 生命周期函数--监听页面隐藏 | |
| 105 | + */ | |
| 106 | + onHide: function () { | |
| 107 | + | |
| 108 | + }, | |
| 109 | + | |
| 110 | + /** | |
| 111 | + * 生命周期函数--监听页面卸载 | |
| 112 | + */ | |
| 113 | + onUnload: function () { | |
| 114 | + | |
| 115 | + }, | |
| 116 | + | |
| 117 | + /** | |
| 118 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 119 | + */ | |
| 120 | + onPullDownRefresh: function () { | |
| 121 | + | |
| 122 | + }, | |
| 123 | + | |
| 124 | + /** | |
| 125 | + * 页面上拉触底事件的处理函数 | |
| 126 | + */ | |
| 127 | + onReachBottom: function () { | |
| 128 | + | |
| 129 | + }, | |
| 130 | + | |
| 131 | + /** | |
| 132 | + * 用户点击右上角分享 | |
| 133 | + */ | |
| 134 | + onShareAppMessage: function () { | |
| 135 | + | |
| 136 | + } | |
| 137 | +}) | |
| \ No newline at end of file | ... | ... |
pages/contact/contact.json
0 → 100644
pages/contact/contact.wxml
0 → 100644
| 1 | +<!--pages/contact/contact.wxml--> | |
| 2 | +<view style='font-size:28rpx;'> | |
| 3 | + <view class='head'> | |
| 4 | + <image src='/static/images/red-branded.png' class='topppp'></image> | |
| 5 | + <view class="bgbgbg"> | |
| 6 | + <image style='height:{{styleheight}}px;' src='/static/images/315.jpg' mode='aspectFill'></image> | |
| 7 | + </view> | |
| 8 | + <!-- <view class="bgbgbg"> | |
| 9 | + <image src='/static/images/bg_image_2.png' mode='widthFix'></image> | |
| 10 | + </view> --> | |
| 11 | + </view> | |
| 12 | + <view class="video"> | |
| 13 | + <video src="https://www.natureresearch.cn/sites/default/files/videos/NatureResearch.mp4" | |
| 14 | + binderror="videoErrorCallback" poster="http://xcx.yiscio.com/app/shipin.png" controls></video> | |
| 15 | + </view> | |
| 16 | + <view class="content1"> | |
| 17 | + 自然科研拥有横跨科学和医学领域的最高质量的杂志和网站。不管您是推广产品和服务、宣传自己的机构或单位,还是招聘顶级科学人才,您都会发现,自然科研具有独特的优势,能提供量身定制的合作方案。 | |
| 18 | + </view> | |
| 19 | + <view class="content2"> | |
| 20 | + | |
| 21 | + <view class="con1">中国区机构合作联系方式</view> | |
| 22 | + <view class="con2" bindtap='callmex'> | |
| 23 | + <image src='/static/images/phone.png' mode='widthFix'></image> | |
| 24 | + <text>电话</text> | |
| 25 | + <span>+86 21 24225066</span> | |
| 26 | + <view class="cl"></view> | |
| 27 | + </view> | |
| 28 | + <view class="con2"> | |
| 29 | + <image src='/static/images/mess.png' mode='widthFix'></image> | |
| 30 | + <text>邮箱</text> | |
| 31 | + <span>naturecn@.nature.com</span> | |
| 32 | + <view class="cl"></view> | |
| 33 | + </view> | |
| 34 | + </view> | |
| 35 | + | |
| 36 | + <view class="{{scrollTop>120 ? 'hide' : 'block'}} bott"> | |
| 37 | + <view class="{{block ? 'block' : 'hide'}} menu"> | |
| 38 | + <view class='tanbg'> | |
| 39 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 40 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 41 | + </view> | |
| 42 | + <view class="ol"> | |
| 43 | + <navigator url='../jobfair/jobfair' open-type="redirect">招聘会</navigator> | |
| 44 | + </view> | |
| 45 | + <view class="ol"> | |
| 46 | + <navigator url='../academiclist/academiclist' open-type="redirect">学术会议</navigator> | |
| 47 | + </view> | |
| 48 | + <view class="ol"> | |
| 49 | + <navigator url='../xzpx/xzpx' open-type="redirect">写作培训</navigator> | |
| 50 | + </view> | |
| 51 | + </view> | |
| 52 | + <view class="{{block1 ? 'block' : 'hide'}} menu1"> | |
| 53 | + <view class='tanbg'> | |
| 54 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 55 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 56 | + </view> | |
| 57 | + <view class="ol"> | |
| 58 | + <navigator url='../zyjy/zyjy' open-type="redirect">职业建议</navigator> | |
| 59 | + </view> | |
| 60 | + <view class="ol"> | |
| 61 | + <navigator url='../gzjh/gzjh' open-type="redirect">工作机会</navigator> | |
| 62 | + </view> | |
| 63 | + <view class="ol"> | |
| 64 | + <navigator url='../lwrs/lwrs' open-type="redirect">论文润色</navigator> | |
| 65 | + </view> | |
| 66 | + </view> | |
| 67 | + <view class="foot"> | |
| 68 | + <view class="li"> | |
| 69 | + <navigator url='../index/index' open-type="redirect"> | |
| 70 | + <image src='/static/images/0001.png' class="top"></image> | |
| 71 | + <text>首页</text> | |
| 72 | + </navigator> | |
| 73 | + </view> | |
| 74 | + <view class="li"> | |
| 75 | + <view bindtap='getmenu' class='huodong'> | |
| 76 | + <image src='/static/images/0002.png' class="top"></image> | |
| 77 | + <text>活动</text> | |
| 78 | + </view> | |
| 79 | + </view> | |
| 80 | + <view class="li"> | |
| 81 | + <view bindtap='getmenu1' class='huodong'> | |
| 82 | + <image src='/static/images/0003.png' class="top"></image> | |
| 83 | + <text>资讯</text> | |
| 84 | + </view> | |
| 85 | + </view> | |
| 86 | + <view class="li"> | |
| 87 | + <navigator url='' open-type="redirect"> | |
| 88 | + <image src='/static/images/0004.png' class="top"></image> | |
| 89 | + <text>联系</text> | |
| 90 | + </navigator> | |
| 91 | + </view> | |
| 92 | + <view class="li"> | |
| 93 | + <navigator url='../member/member' open-type="redirect"> | |
| 94 | + <image src='/static/images/005.png' class="top"></image> | |
| 95 | + <text>我的</text> | |
| 96 | + </navigator> | |
| 97 | + </view> | |
| 98 | + <view class="cl"></view> | |
| 99 | + </view> | |
| 100 | + </view> | |
| 101 | + <view class="{{meng ? 'hide' : 'block'}} meng" bindtap='meng'></view> | |
| 102 | +</view> | |
| \ No newline at end of file | ... | ... |
pages/contact/contact.wxss
0 → 100644
| 1 | + | |
| 2 | + | |
| 3 | +page{ | |
| 4 | + width: 100%; | |
| 5 | + height: 100%; | |
| 6 | + /* overflow: hidden; */ | |
| 7 | +} | |
| 8 | +.bgbgbg image{ | |
| 9 | + display: block; | |
| 10 | +} | |
| 11 | +.meng{ | |
| 12 | + width: 100%; | |
| 13 | + height: 100%; | |
| 14 | + background: rgba(76, 74, 75, 0.5); | |
| 15 | + z-index: 998; | |
| 16 | + position: fixed; | |
| 17 | + left: 0; | |
| 18 | + top: 0; | |
| 19 | +} | |
| 20 | +.cl { | |
| 21 | + clear: both; | |
| 22 | +} | |
| 23 | + | |
| 24 | +.display { | |
| 25 | + display: block; | |
| 26 | +} | |
| 27 | + | |
| 28 | +.hide { | |
| 29 | + display: none; | |
| 30 | +} | |
| 31 | + | |
| 32 | +.foot .li .huodong { | |
| 33 | + display: block; | |
| 34 | + padding: 10rpx 0 5rpx 0; | |
| 35 | +} | |
| 36 | + | |
| 37 | +.head { | |
| 38 | + width: 100%; | |
| 39 | + position: absolute; | |
| 40 | + top: 0; | |
| 41 | + z-index: 1; | |
| 42 | +} | |
| 43 | + | |
| 44 | +.head image { | |
| 45 | + width: 100%; | |
| 46 | +} | |
| 47 | +.head .topppp{ | |
| 48 | + height: 300rpx; | |
| 49 | +} | |
| 50 | +.video { | |
| 51 | + /* position: fixed; */ | |
| 52 | + position: relative; | |
| 53 | + z-index: 2; | |
| 54 | + width: 84%; | |
| 55 | + margin-left: 8%; | |
| 56 | + margin-top: 90rpx; | |
| 57 | +} | |
| 58 | + | |
| 59 | +video { | |
| 60 | + width: 100%; | |
| 61 | +} | |
| 62 | + | |
| 63 | +.content1 { | |
| 64 | + /* position: fixed; */ | |
| 65 | + position: relative; | |
| 66 | + z-index: 2; | |
| 67 | + line-height: 45rpx; | |
| 68 | + /* margin-top: 500rpx; */ | |
| 69 | + margin-top: 40rpx; | |
| 70 | + width: 84%; | |
| 71 | + color: #595a5a; | |
| 72 | + font-size: 30rpx; | |
| 73 | + margin-left: 8%; | |
| 74 | +} | |
| 75 | + | |
| 76 | +.content2 { | |
| 77 | + /* position: fixed; */ | |
| 78 | + position: relative; | |
| 79 | + z-index: 2; | |
| 80 | + /* margin-top: 800rpx; */ | |
| 81 | + margin-top: 80rpx; | |
| 82 | + width: 84%; | |
| 83 | + margin-left: 8%; | |
| 84 | +} | |
| 85 | + | |
| 86 | +.content2 .con1 { | |
| 87 | + font-size: 30rpx; | |
| 88 | + color: #d81f26; | |
| 89 | + font-weight: bold; | |
| 90 | + padding-bottom: 15rpx; | |
| 91 | + border-bottom: #d81f26 solid 4rpx; | |
| 92 | +} | |
| 93 | + | |
| 94 | +.content2 .con2 { | |
| 95 | + margin-top: 25rpx; | |
| 96 | +} | |
| 97 | + | |
| 98 | +.content2 .con2 image { | |
| 99 | + width: 65rpx; | |
| 100 | + height: 65rpx; | |
| 101 | + display: block; | |
| 102 | + float: left; | |
| 103 | +} | |
| 104 | + | |
| 105 | +.content2 .con2 text { | |
| 106 | + margin-top: 12rpx; | |
| 107 | + font-size: 30rpx; | |
| 108 | + font-weight: bold; | |
| 109 | + color: #d81f26; | |
| 110 | + margin-left: 10rpx; | |
| 111 | + display: block; | |
| 112 | + padding: 0 10rpx; | |
| 113 | + border-right: #d81f26 solid 4rpx; | |
| 114 | + float: left; | |
| 115 | +} | |
| 116 | + | |
| 117 | +.content2 { | |
| 118 | + padding-bottom: 50rpx; | |
| 119 | +} | |
| 120 | + | |
| 121 | +.content2 .con2 span { | |
| 122 | + font-weight: bold; | |
| 123 | + font-size: 30rpx; | |
| 124 | + margin-top: 9rpx; | |
| 125 | + color: #4a4a4a; | |
| 126 | + display: block; | |
| 127 | + float: left; | |
| 128 | + margin-left: 15rpx; | |
| 129 | +} | |
| 130 | + | |
| 131 | +.bott { | |
| 132 | + position: fixed; | |
| 133 | + left: 0; | |
| 134 | + bottom: 0; | |
| 135 | + z-index: 999; | |
| 136 | + width: 100%; | |
| 137 | +} | |
| 138 | + | |
| 139 | +.foot { | |
| 140 | + width: 100%; | |
| 141 | + background: #d81f25; | |
| 142 | +} | |
| 143 | + | |
| 144 | +.foot .li navigator { | |
| 145 | + display: block; | |
| 146 | + padding: 10rpx 0 5rpx 0; | |
| 147 | +} | |
| 148 | + | |
| 149 | +.foot .li { | |
| 150 | + text-align: center; | |
| 151 | + color: #fff; | |
| 152 | + width: 20%; | |
| 153 | + float: left; | |
| 154 | +} | |
| 155 | + | |
| 156 | +.foot .li .top { | |
| 157 | + width: 48rpx; | |
| 158 | + height: 48rpx; | |
| 159 | + margin: 0 auto; | |
| 160 | + display: block; | |
| 161 | +} | |
| 162 | + | |
| 163 | +.foot .li text { | |
| 164 | + font-size: 24rpx; | |
| 165 | +} | |
| 166 | + | |
| 167 | +.menu { | |
| 168 | + margin-left: 10%; | |
| 169 | + background: #fff; | |
| 170 | + width: 40%; | |
| 171 | +} | |
| 172 | + | |
| 173 | +.menu .ol { | |
| 174 | + padding-top: 10rpx; | |
| 175 | + padding-bottom: 10rpx; | |
| 176 | + border-top: #ececec solid 2rpx; | |
| 177 | + width: 94%; | |
| 178 | + margin-left: 3%; | |
| 179 | + text-align: center; | |
| 180 | +} | |
| 181 | + | |
| 182 | +.menu .ol:nth-child(1) { | |
| 183 | + border-top: none; | |
| 184 | +} | |
| 185 | + | |
| 186 | +.menu .ol navigator { | |
| 187 | + padding: 25rpx 0; | |
| 188 | + color: #787878; | |
| 189 | +} | |
| 190 | + | |
| 191 | +.menu1 { | |
| 192 | + margin-left: 30%; | |
| 193 | + background: #fff; | |
| 194 | + width: 40%; | |
| 195 | +} | |
| 196 | + | |
| 197 | +.menu1 .ol { | |
| 198 | + padding-top: 10rpx; | |
| 199 | + padding-bottom: 10rpx; | |
| 200 | + border-top: #ececec solid 2rpx; | |
| 201 | + width: 94%; | |
| 202 | + margin-left: 3%; | |
| 203 | + text-align: center; | |
| 204 | +} | |
| 205 | + | |
| 206 | +.menu1 .ol:nth-child(1) { | |
| 207 | + border-top: none; | |
| 208 | +} | |
| 209 | + | |
| 210 | +.menu1 .ol navigator { | |
| 211 | + padding: 25rpx 0; | |
| 212 | + color: #787878; | |
| 213 | + | |
| 214 | +} | |
| 215 | +.tanbg image{ | |
| 216 | + position: absolute; | |
| 217 | + bottom: 0; | |
| 218 | +} | |
| 219 | +.aa{ | |
| 220 | + z-index: 2; | |
| 221 | + width: 20%; | |
| 222 | + margin-left: 40%; | |
| 223 | + height: 16rpx; | |
| 224 | +} | |
| 225 | +.bb{ | |
| 226 | + height: 25rpx; | |
| 227 | + z-index: 1; | |
| 228 | + width: 100%; | |
| 229 | +} | |
| 230 | +.menu{ | |
| 231 | + position: relative; | |
| 232 | +} | |
| 233 | +.menu1{ | |
| 234 | + position: relative; | |
| 235 | +} | |
| 236 | +.bgbgbg { | |
| 237 | + top: 350rpx; | |
| 238 | + width: 100%; | |
| 239 | + height: 100%; | |
| 240 | + z-index: 0; | |
| 241 | +} | |
| 242 | + | |
| 243 | +.bgbgbg image { | |
| 244 | + width: 100%; | |
| 245 | +} | |
| 246 | + | |
| 247 | +video { | |
| 248 | + width: 630rpx; | |
| 249 | + height: 358rpx; | |
| 250 | +} | ... | ... |
pages/gzjh/gzjh.js
0 → 100644
| 1 | +// pages/activity/join/join.js | |
| 2 | +var app = getApp(); | |
| 3 | +var WxParse = require('../../wxParse/wxParse.js'); | |
| 4 | +Page({ | |
| 5 | + | |
| 6 | + /** | |
| 7 | + * 页面的初始数据 | |
| 8 | + */ | |
| 9 | + data: { | |
| 10 | + meng: true, | |
| 11 | + skey: '', | |
| 12 | + getlist: '', | |
| 13 | + list:'', | |
| 14 | + con: [ | |
| 15 | + { | |
| 16 | + add: "按地区", | |
| 17 | + list: [ | |
| 18 | + ], | |
| 19 | + }, | |
| 20 | + { | |
| 21 | + add: "按领域", | |
| 22 | + list: [ | |
| 23 | + ] | |
| 24 | + } | |
| 25 | + ], | |
| 26 | + block: false, | |
| 27 | + block1: false, | |
| 28 | + block3: false | |
| 29 | + }, | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 生命周期函数--监听页面加载 | |
| 33 | + */ | |
| 34 | + onLoad: function (options) { | |
| 35 | + var that = this | |
| 36 | + var con = that.data.con | |
| 37 | + var list = that.data.list | |
| 38 | + | |
| 39 | + // var skey = wx.getStorageSync('skey') | |
| 40 | + var skey = wx.getStorageSync('key') | |
| 41 | + console.log('skey', skey) | |
| 42 | + that.setData({ | |
| 43 | + skey: skey | |
| 44 | + }) | |
| 45 | + | |
| 46 | + wx.request({ | |
| 47 | + url: app.url + '/mpapi/1.0.0/job-opportunities', | |
| 48 | + method: 'GET', | |
| 49 | + header: { | |
| 50 | + 'content-type': 'application/json', | |
| 51 | + 'x-wx-skey': skey | |
| 52 | + }, | |
| 53 | + data: { | |
| 54 | + // city: 56, | |
| 55 | + // area: 56, | |
| 56 | + // limit: 6 | |
| 57 | + // id:'1' | |
| 58 | + }, | |
| 59 | + success: function (res) { | |
| 60 | + console.log('res',res) | |
| 61 | + that.setData({ | |
| 62 | + list: that.data.list.concat(res.data.data), | |
| 63 | + | |
| 64 | + getlist: res.data.data, | |
| 65 | + // con: res.data.data[].content | |
| 66 | + }) | |
| 67 | + } | |
| 68 | + }) | |
| 69 | + | |
| 70 | + | |
| 71 | + }, | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * 生命周期函数--监听页面初次渲染完成 | |
| 75 | + */ | |
| 76 | + onReady: function () { | |
| 77 | + | |
| 78 | + }, | |
| 79 | + getmenu: function () { | |
| 80 | + var that = this | |
| 81 | + var block = that.data.block | |
| 82 | + var block1 = that.data.block1 | |
| 83 | + var meng = that.data.meng | |
| 84 | + | |
| 85 | + if (block == false) { | |
| 86 | + that.setData({ | |
| 87 | + block: true, | |
| 88 | + meng: false, | |
| 89 | + block1: false | |
| 90 | + }); | |
| 91 | + } else { | |
| 92 | + that.setData({ | |
| 93 | + block: false, | |
| 94 | + meng: true | |
| 95 | + }); | |
| 96 | + } | |
| 97 | + }, | |
| 98 | + getmenu1: function () { | |
| 99 | + var that = this | |
| 100 | + var block = that.data.block | |
| 101 | + var block1 = that.data.block1 | |
| 102 | + var meng = that.data.meng | |
| 103 | + | |
| 104 | + if (block1 == false) { | |
| 105 | + that.setData({ | |
| 106 | + block1: true, | |
| 107 | + meng: false, | |
| 108 | + block: false | |
| 109 | + }); | |
| 110 | + } else { | |
| 111 | + that.setData({ | |
| 112 | + block1: false, | |
| 113 | + meng: true | |
| 114 | + }); | |
| 115 | + } | |
| 116 | + }, | |
| 117 | + meng: function () { | |
| 118 | + var that = this | |
| 119 | + var block = that.data.block | |
| 120 | + var block1 = that.data.block1 | |
| 121 | + var meng = that.data.meng | |
| 122 | + that.setData({ | |
| 123 | + block1: false, | |
| 124 | + meng: true, | |
| 125 | + block: false | |
| 126 | + }); | |
| 127 | + }, | |
| 128 | + | |
| 129 | + | |
| 130 | + getlist: function (e) { | |
| 131 | + var that = this | |
| 132 | + var list = that.data.list | |
| 133 | + var con = that.data.con | |
| 134 | + console.log('this', this) | |
| 135 | + if (this.data.currentTab === e.target.dataset.index) { | |
| 136 | + return false; | |
| 137 | + } else { | |
| 138 | + that.setData({ | |
| 139 | + currentTab: e.target.dataset.current | |
| 140 | + }) | |
| 141 | + } | |
| 142 | + var index = e.currentTarget.dataset.index | |
| 143 | + that.setData({ | |
| 144 | + list: con[index].list1 | |
| 145 | + }); | |
| 146 | + }, | |
| 147 | + swichNav: function (e) { | |
| 148 | + var that = this | |
| 149 | + var block3 = that.data.block | |
| 150 | + var skey = that.data.skey | |
| 151 | + var index = e.currentTarget.dataset.index | |
| 152 | + var con = that.data.con | |
| 153 | + wx.request({ | |
| 154 | + url: app.url + '/mpapi/1.0.0/category?type=', | |
| 155 | + method: 'GET', | |
| 156 | + header: { | |
| 157 | + 'content-type': 'application/json', | |
| 158 | + 'x-wx-skey': skey | |
| 159 | + }, | |
| 160 | + data: { | |
| 161 | + // city: 56, | |
| 162 | + type: 'city' | |
| 163 | + // area: 56, | |
| 164 | + // limit: 6 | |
| 165 | + // id:'1' | |
| 166 | + }, | |
| 167 | + success: function (res) { | |
| 168 | + console.log('con', res.data) | |
| 169 | + if (index == 0) { | |
| 170 | + that.setData({ | |
| 171 | + list: res.data.data | |
| 172 | + // con: res.data.data | |
| 173 | + }) | |
| 174 | + } | |
| 175 | + } | |
| 176 | + }) | |
| 177 | + wx.request({ | |
| 178 | + url: app.url + '/mpapi/1.0.0/category?type=', | |
| 179 | + method: 'GET', | |
| 180 | + header: { | |
| 181 | + 'content-type': 'application/json', | |
| 182 | + 'x-wx-skey': skey | |
| 183 | + }, | |
| 184 | + data: { | |
| 185 | + // city: 56, | |
| 186 | + type: 'position_area' | |
| 187 | + // area: 56, | |
| 188 | + // limit: 6 | |
| 189 | + // id:'1' | |
| 190 | + }, | |
| 191 | + success: function (res) { | |
| 192 | + console.log('con111', res.data) | |
| 193 | + if (index == 1) { | |
| 194 | + that.setData({ | |
| 195 | + list: res.data.data | |
| 196 | + // con: res.data.data | |
| 197 | + }) | |
| 198 | + } | |
| 199 | + } | |
| 200 | + }) | |
| 201 | + if (block3 == true) { | |
| 202 | + that.setData({ | |
| 203 | + list: con[index].list | |
| 204 | + }); | |
| 205 | + } else { | |
| 206 | + that.setData({ | |
| 207 | + block3: true, | |
| 208 | + list: con[index].list, | |
| 209 | + | |
| 210 | + }); | |
| 211 | + } | |
| 212 | + | |
| 213 | + if (this.data.currentTab === e.target.dataset.index) { | |
| 214 | + return false; | |
| 215 | + } else { | |
| 216 | + that.setData({ | |
| 217 | + currentTab: e.target.dataset.current | |
| 218 | + }) | |
| 219 | + } | |
| 220 | + }, | |
| 221 | + gethide: function (e) { | |
| 222 | + var that = this | |
| 223 | + var block3 = that.data.block | |
| 224 | + if (block3 == true) { | |
| 225 | + that.setData({ | |
| 226 | + block3: false, | |
| 227 | + }); | |
| 228 | + } else { | |
| 229 | + that.setData({ | |
| 230 | + block3: false, | |
| 231 | + }); | |
| 232 | + } | |
| 233 | + | |
| 234 | + }, | |
| 235 | + getJobOpportunities: function (e) { | |
| 236 | + var that = this | |
| 237 | + var skey = that.data.skey | |
| 238 | + var index = e.target.dataset.current | |
| 239 | + var id = e.target.dataset.id | |
| 240 | + console.log("id", id) | |
| 241 | + wx.request({ | |
| 242 | + url: app.url + '/mpapi/1.0.0/job-opportunities?city=&offset=&limit=', | |
| 243 | + method: 'GET', | |
| 244 | + header: { | |
| 245 | + 'content-type': 'application/json', | |
| 246 | + 'x-wx-skey': skey | |
| 247 | + }, | |
| 248 | + data: { | |
| 249 | + city: id, | |
| 250 | + // type: 'position_area', | |
| 251 | + offset: 0, | |
| 252 | + limit: 99999 | |
| 253 | + // id:'1' | |
| 254 | + }, | |
| 255 | + success: function (res) { | |
| 256 | + console.log('con222222', res.data) | |
| 257 | + that.setData({ | |
| 258 | + getlist: res.data.data | |
| 259 | + // con: res.data.data | |
| 260 | + }) | |
| 261 | + } | |
| 262 | + | |
| 263 | + }) | |
| 264 | + wx.request({ | |
| 265 | + url: app.url + '/mpapi/1.0.0/job-opportunities?area=&offset=&limit=', | |
| 266 | + method: 'GET', | |
| 267 | + header: { | |
| 268 | + 'content-type': 'application/json', | |
| 269 | + 'x-wx-skey': skey | |
| 270 | + }, | |
| 271 | + data: { | |
| 272 | + area: id, | |
| 273 | + // type: 'position_area', | |
| 274 | + offset: 0, | |
| 275 | + limit: 99999 | |
| 276 | + // id:'1' | |
| 277 | + }, | |
| 278 | + success: function (res) { | |
| 279 | + console.log('con1111111', res.data) | |
| 280 | + that.setData({ | |
| 281 | + getlist: res.data.data | |
| 282 | + // con: res.data.data | |
| 283 | + }) | |
| 284 | + } | |
| 285 | + | |
| 286 | + }) | |
| 287 | + var block3 = that.data.block | |
| 288 | + that.setData({ | |
| 289 | + block3: false | |
| 290 | + // con: res.data.data | |
| 291 | + }) | |
| 292 | + | |
| 293 | + }, | |
| 294 | + /** | |
| 295 | + * 生命周期函数--监听页面显示 | |
| 296 | + */ | |
| 297 | + onShow: function () { | |
| 298 | + | |
| 299 | + }, | |
| 300 | + | |
| 301 | + /** | |
| 302 | + * 生命周期函数--监听页面隐藏 | |
| 303 | + */ | |
| 304 | + onHide: function () { | |
| 305 | + | |
| 306 | + }, | |
| 307 | + | |
| 308 | + /** | |
| 309 | + * 生命周期函数--监听页面卸载 | |
| 310 | + */ | |
| 311 | + onUnload: function () { | |
| 312 | + | |
| 313 | + }, | |
| 314 | + | |
| 315 | + /** | |
| 316 | + * 页面相关事件处理函数--监听用户下拉动作 | |
| 317 | + */ | |
| 318 | + onPullDownRefresh: function () { | |
| 319 | + var that = this | |
| 320 | + // wx.showToast({ | |
| 321 | + // title: 'loading...', | |
| 322 | + // icon: 'loading' | |
| 323 | + // }) | |
| 324 | + setTimeout(function(){ | |
| 325 | + wx.stopPullDownRefresh() | |
| 326 | + },1500) | |
| 327 | + that.setData({ | |
| 328 | + currentTab: 10 | |
| 329 | + // con: res.data.data | |
| 330 | + }) | |
| 331 | + that.onLoad() | |
| 332 | + }, | |
| 333 | + | |
| 334 | + /** | |
| 335 | + * 页面上拉触底事件的处理函数 | |
| 336 | + */ | |
| 337 | + onReachBottom: function () { | |
| 338 | + | |
| 339 | + }, | |
| 340 | + | |
| 341 | + /** | |
| 342 | + * 用户点击右上角分享 | |
| 343 | + */ | |
| 344 | + onShareAppMessage: function () { | |
| 345 | + | |
| 346 | + } | |
| 347 | +}) | |
| \ No newline at end of file | ... | ... |
pages/gzjh/gzjh.json
0 → 100644
pages/gzjh/gzjh.wxml
0 → 100644
| 1 | +<view style='font-size:28rpx;'> | |
| 2 | + <view class="head"> | |
| 3 | + <block wx:for="{{con}}"> | |
| 4 | + <view class="li {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" data-index="{{index}}" bindtap="swichNav"> | |
| 5 | + <!-- bindtap='getadd' data-index="{{index}}" data-current="{{index}}" class="{{currentTab==index ? 'on' : ''}}" --> | |
| 6 | + {{item.add}} | |
| 7 | + </view> | |
| 8 | + </block> | |
| 9 | + <view class="cl"></view> | |
| 10 | + </view> | |
| 11 | + <view class="{{block3 ? 'block' : 'hide'}} bottt" bindtap='gethide'></view> | |
| 12 | + <view class="getlist {{block3 ? 'block' : 'hide'}}"> | |
| 13 | + <block wx:for="{{list}}"> | |
| 14 | + <view class="ol "> | |
| 15 | + <navigator bindtap='getJobOpportunities' data-id='{{item.id}}'>{{item.name}}</navigator> | |
| 16 | + </view> | |
| 17 | + </block> | |
| 18 | + </view> | |
| 19 | + <view style="height:120rpx;"></view> | |
| 20 | + <view wx:if='{{list}}'> | |
| 21 | + <view class="content"> | |
| 22 | + <block wx:for="{{getlist}}"> | |
| 23 | + <view class="li"> | |
| 24 | + <navigator url="../recruit/recruit?id={{item.id}}"> | |
| 25 | + <view class="top"> | |
| 26 | + <view class="left"> | |
| 27 | + <image src='{{item.agencyLogo[0].url}}' mode='widthFix'></image> | |
| 28 | + </view> | |
| 29 | + <view class="right">{{item.date}}</view> | |
| 30 | + <view class='cl'></view> | |
| 31 | + </view> | |
| 32 | + <view class="bot"> | |
| 33 | + <view class="con1">{{item.title}}</view> | |
| 34 | + <text>{{item.agency}} | {{item.city}}</text> | |
| 35 | + <view class="con2">{{item.teaser}}</view> | |
| 36 | + <import src="../../wxParse/wxParse.wxml" /> | |
| 37 | + <view class="con3"> | |
| 38 | + <!-- <view class="wxParse"> | |
| 39 | + <view class="bot"> | |
| 40 | + <template is="wxParse" data="{{wxParseData:body.nodes}}" /> | |
| 41 | + </view> | |
| 42 | + </view> --> | |
| 43 | + </view> | |
| 44 | + <!-- <view class="con3">{{item.content}}</view> --> | |
| 45 | + </view> | |
| 46 | + </navigator> | |
| 47 | + </view> | |
| 48 | + </block> | |
| 49 | + <view class="xiala">{{xiala?'正在加载...':'没有更多信息了'}}</view> | |
| 50 | + </view> | |
| 51 | +</view> | |
| 52 | + <view wx:else class='xiala'> | |
| 53 | + <!-- <image src='/static/images/kongliebiao.png' mode='aspectFit' class="konglie"></image> --> | |
| 54 | + 正在加载... | |
| 55 | + </view> | |
| 56 | + | |
| 57 | + <view style="height:110rpx;"></view> | |
| 58 | + <view class="{{scrollTop>120 ? 'hide' : 'block'}} bott"> | |
| 59 | + <view class="{{block ? 'block' : 'hide'}} menu"> | |
| 60 | + <view class='tanbg'> | |
| 61 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 62 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 63 | + </view> | |
| 64 | + <view class="ol"> | |
| 65 | + <navigator url='../jobfair/jobfair' open-type="redirect">招聘会</navigator> | |
| 66 | + </view> | |
| 67 | + <view class="ol"> | |
| 68 | + <navigator url='../academiclist/academiclist' open-type="redirect">学术会议</navigator> | |
| 69 | + </view> | |
| 70 | + <view class="ol"> | |
| 71 | + <navigator url='../xzpx/xzpx' open-type="redirect">写作培训</navigator> | |
| 72 | + </view> | |
| 73 | + </view> | |
| 74 | + <view class="{{block1 ? 'block' : 'hide'}} menu1"> | |
| 75 | + <view class='tanbg'> | |
| 76 | + <image class='aa' src='/static/images/tanbg11.png'></image> | |
| 77 | + <image class='bb' src='/static/images/tanbg22.png'></image> | |
| 78 | + </view> | |
| 79 | + <view class="ol"> | |
| 80 | + <navigator url='../zyjy/zyjy' open-type="redirect">职业建议</navigator> | |
| 81 | + </view> | |
| 82 | + <view class="ol"> | |
| 83 | + <navigator url='' open-type="redirect">工作机会</navigator> | |
| 84 | + </view> | |
| 85 | + <view class="ol"> | |
| 86 | + <navigator url='../lwrs/lwrs' open-type="redirect">论文润色</navigator> | |
| 87 | + </view> | |
| 88 | + </view> | |
| 89 | + <view class="foot"> | |
| 90 | + <view class="li"> | |
| 91 | + <navigator url='../index/index' open-type="redirect"> | |
| 92 | + <image src='/static/images/0001.png' class="top"></image> | |
| 93 | + <text>首页</text> | |
| 94 | + </navigator> | |
| 95 | + </view> | |
| 96 | + <view class="li"> | |
| 97 | + <view bindtap='getmenu' class='huodong'> | |
| 98 | + <image src='/static/images/0002.png' class="top"></image> | |
| 99 | + <text>活动</text> | |
| 100 | + </view> | |
| 101 | + </view> | |
| 102 | + <view class="li"> | |
| 103 | + <view bindtap='getmenu1' class='huodong'> | |
| 104 | + <image src='/static/images/0003.png' class="top"></image> | |
| 105 | + <text>资讯</text> | |
| 106 | + </view> | |
| 107 | + </view> | |
| 108 | + <view class="li"> | |
| 109 | + <navigator url='../contact/contact' open-type="redirect"> | |
| 110 | + <image src='/static/images/0004.png' class="top"></image> | |
| 111 | + <text>联系</text> | |
| 112 | + </navigator> | |
| 113 | + </view> | |
| 114 | + <view class="li"> | |
| 115 | + <navigator url='../member/member' open-type="redirect"> | |
| 116 | + <image src='/static/images/005.png' class="top"></image> | |
| 117 | + <text>我的</text> | |
| 118 | + </navigator> | |
| 119 | + </view> | |
| 120 | + <view class="cl"></view> | |
| 121 | + </view> | |
| 122 | + </view> | |
| 123 | + <view class="{{meng ? 'hide' : 'block'}} meng" bindtap='meng'></view> | |
| 124 | +</view> | |
| \ No newline at end of file | ... | ... |
Please
register
or
login
to post a comment