@@ -66,7 +66,27 @@ Page({ | |||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
delete(e){ | |||||
var that = this; | |||||
UTIL.httpRequest(API.URL_GET_DEPOSITDELETE + e.currentTarget.dataset.id, {method:'GET'},{ | |||||
success: (res) => { | |||||
if (res.code == API.SUCCESS_CODE) { | |||||
that.data.depositList.splice(e.currentTarget.dataset.index, 1); | |||||
wx.showToast({ | |||||
title: '删除成功!', | |||||
icon: 'success', | |||||
duration: 2000 | |||||
}) | |||||
that.setData({ | |||||
depositList : that.data.depositList, | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
}, | |||||
goUpdate(){ | |||||
}, | |||||
/** | /** | ||||
* 生命周期函数--监听页面隐藏 | * 生命周期函数--监听页面隐藏 | ||||
*/ | */ | ||||
@@ -17,7 +17,7 @@ | |||||
</view> | </view> | ||||
<van-swipe-cell right-width="{{ 65 }}" class="workflow" wx:for="{{depositList}}" wx:key="index"> | <van-swipe-cell right-width="{{ 65 }}" class="workflow" wx:for="{{depositList}}" wx:key="index"> | ||||
<view class="li" bindtap="goUpdate"> | |||||
<view class="li" bindtap="goUpdate" data-id="{{item.id}}"> | |||||
<view class="tit_box"> | <view class="tit_box"> | ||||
<image src="/image/apply/{{iOf.indexOf(item.bankTypeText,'中国银行') > -1 ? 'ICBC':iOf.indexOf(item.bankTypeText,'农商行') > -1 ? 'RCB':iOf.indexOf(item.bankTypeText,'农业银行') > -1 ? 'ABC':iOf.indexOf(item.bankTypeText,'建设银行') > -1 ? 'CCB':'QT'}}.png" style="width: 25px;height: 25px;"></image> | <image src="/image/apply/{{iOf.indexOf(item.bankTypeText,'中国银行') > -1 ? 'ICBC':iOf.indexOf(item.bankTypeText,'农商行') > -1 ? 'RCB':iOf.indexOf(item.bankTypeText,'农业银行') > -1 ? 'ABC':iOf.indexOf(item.bankTypeText,'建设银行') > -1 ? 'CCB':'QT'}}.png" style="width: 25px;height: 25px;"></image> | ||||
<text class="tit">{{item.bankDeposit}}</text> | <text class="tit">{{item.bankDeposit}}</text> | ||||
@@ -260,9 +260,15 @@ const URL_POST_PERMANENTUPDATE = `${URL_PREFIX}/asset/permanent/edit/`; | |||||
//财务公开 | //财务公开 | ||||
const URL_GET_FINANCIALLIST = `${URL_PREFIX}/finance/open/financialAmountPublicMonthList/`; | const URL_GET_FINANCIALLIST = `${URL_PREFIX}/finance/open/financialAmountPublicMonthList/`; | ||||
//删除开户行 | |||||
const URL_GET_DEPOSITDELETE = `${URL_PREFIX}/yinnong/deposit/remove/`; | |||||
/****************接口地址end****************/ | /****************接口地址end****************/ | ||||
export { | export { | ||||
URL_GET_DEPOSITDELETE, | |||||
USER_LOGIN_PAGE_PATH, | USER_LOGIN_PAGE_PATH, | ||||
SUCCESS_CODE, | SUCCESS_CODE, | ||||
INVALID_USER_TOKEN_CODE, | INVALID_USER_TOKEN_CODE, | ||||
@@ -359,6 +365,5 @@ export { | |||||
URL_POST_PERMANENTADD, | URL_POST_PERMANENTADD, | ||||
URL_POST_PERMANENTUPDATE, | URL_POST_PERMANENTUPDATE, | ||||
URL_GET_FINANCIALLIST, | URL_GET_FINANCIALLIST, | ||||
URL_GET_PROJECTADD, | |||||
URL_GET_SUBJECTLIST | URL_GET_SUBJECTLIST | ||||
} | } |