mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
状态嘛判断错误问题
This commit is contained in:
parent
a727f90eaf
commit
f40568c73f
@ -222,6 +222,23 @@ Page({
|
|||||||
},
|
},
|
||||||
removePhoto:function(e){
|
removePhoto:function(e){
|
||||||
console.log(e.detail.index);
|
console.log(e.detail.index);
|
||||||
|
let _photoList = [];
|
||||||
|
this.data.photoList.forEach(function(item,index){
|
||||||
|
if (index != e.detail.index){
|
||||||
|
_photoList.push(item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
let _photos = [];
|
||||||
|
this.data.photos.forEach(function (item, index) {
|
||||||
|
if (index != e.detail.index) {
|
||||||
|
_photos.push(item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
this.setData({
|
||||||
|
photos: _photos,
|
||||||
|
photoList: _photoList
|
||||||
|
});
|
||||||
},
|
},
|
||||||
saveApplicationKey:function(){
|
saveApplicationKey:function(){
|
||||||
//保存钥匙信息
|
//保存钥匙信息
|
||||||
@ -308,7 +325,7 @@ Page({
|
|||||||
data: _objData, //动态数据
|
data: _objData, //动态数据
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if(res.resultCode == 200){
|
if(res.statusCode == 200){
|
||||||
//成功情况下跳转
|
//成功情况下跳转
|
||||||
wx.redirectTo({
|
wx.redirectTo({
|
||||||
url: "/pages/viewApplicationKeyUser/viewApplicationKeyUser?idCard=" + _objData.idCard
|
url: "/pages/viewApplicationKeyUser/viewApplicationKeyUser?idCard=" + _objData.idCard
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user