头像1
This commit is contained in:
parent
e50f5ff3a3
commit
fe5648367b
2
app.js
2
app.js
@ -3,7 +3,7 @@ var restAjax = require('utils/restAjax.js');
|
||||
var dialog = require('utils/dialog.js');
|
||||
App({
|
||||
loginUrl: 'http://192.168.0.113:7001/usercenter',
|
||||
usercenterUrl: 'http://192.168.0.113:7001/usesrcenter',
|
||||
usercenterUrl: 'http://192.168.0.113:7001/usercenter',
|
||||
newsUrl: 'http://192.168.0.113:8082/news',
|
||||
libraryUrl: 'http://192.168.0.113:8081/library',
|
||||
activityUrl: 'http://192.168.0.111:8080/culturalactivity/',
|
||||
|
@ -33,9 +33,7 @@ Page({
|
||||
success: function (res) {
|
||||
var avatar = res.tempFilePaths[0];
|
||||
console.log(avatar)
|
||||
app.restAjax.post(app.restAjax.path('{usercenterUrl}/app/file/uploadimage', [app.usercenterUrl]), {
|
||||
image: avatar
|
||||
}, {
|
||||
app.restAjax.post(app.restAjax.path('{usercenterUrl}/app/file/uploadimage', [app.usercenterUrl]), avatar, 'image', {
|
||||
headers: {
|
||||
token: self.data.token
|
||||
}
|
||||
@ -62,8 +60,6 @@ Page({
|
||||
},
|
||||
})
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
/**
|
||||
* 跳转到我的志愿团队页面
|
||||
*/
|
||||
@ -81,7 +77,6 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
>>>>>>> 8efd16995df21586c7ff79678f34b0547afeb3e4
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user