...
|
...
|
@@ -657,15 +657,17 @@ |
|
|
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
|
|
success: function (res) {
|
|
|
var localIda = res.localIds; // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
|
|
|
console.log('22222222222');
|
|
|
console.log(res);
|
|
|
alert(localIda);
|
|
|
// 上传图片接口
|
|
|
wx.uploadImage({
|
|
|
localId: localIda.toString(), // 需要上传的图片的本地ID,由chooseImage接口获得
|
|
|
isShowProgressTips: 1, // 默认为1,显示进度提示
|
|
|
success: function (res) {
|
|
|
var serverId = res.serverId;
|
|
|
success: function (res2) {
|
|
|
var serverId = res2.serverId;
|
|
|
console.log('1111111');
|
|
|
console.log(serverId);
|
|
|
console.log(res2);
|
|
|
$.ajax({
|
|
|
url: "{:url('Member/upload_wx_pic')}",
|
|
|
type: "POST",
|
...
|
...
|
|