首页代办事项
This commit is contained in:
Vendored
+23
-7
File diff suppressed because one or more lines are too long
+18
-1
@@ -3,6 +3,8 @@ const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
imgUrl:_.config.imgUrl,
|
||||
userCal:'',
|
||||
deallist:'',
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
@@ -33,8 +35,23 @@ Page({
|
||||
getAppUserCal(){
|
||||
_.apiQuery.getAppUserCal().then(res => {
|
||||
this.setData({
|
||||
userCal:res.data
|
||||
userCal:res.data,
|
||||
})
|
||||
|
||||
if(res.data.deallist.length>0){
|
||||
let deallist = res.data.deallist
|
||||
if(res.data.deallist.length%3==1){
|
||||
deallist.push({})
|
||||
deallist.push({})
|
||||
}
|
||||
if(res.data.deallist.length%3==2){
|
||||
deallist.push({})
|
||||
}
|
||||
this.setData({
|
||||
deallist:deallist,
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
+9
-14
@@ -41,21 +41,16 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt20 font-36">订单代办事项</view>
|
||||
<view class="fn-flex pt20 pb20">
|
||||
<view class="fn-flex-item relative pl120" bindtap="pushLink" data-url="/pages/order/filterList/index?key=0&title=需签订合同">
|
||||
<i class="absolute left-0 box-middle ml50 iconfont icon-qianhetong font-50"></i>
|
||||
<view>
|
||||
<view class="font-40">{{userCal.sign_count}}</view>
|
||||
<view class="font-22 color-666">需签订合同</view>
|
||||
<view class="fn-flex fn-flex-wrap pt30 pb10">
|
||||
<block wx:for="{{deallist}}" wx:key='index'>
|
||||
<view class="wp33 relative pl80 pt20 pb20 {{index>2?'bts-1-eb':''}} {{index%3==2?'':'brs-1-eb'}}" bindtap="pushLink" data-url="{{item.page}}">
|
||||
<i class="absolute left-0 box-middle ml20 iconfont font-50 {{item.icon}}"></i>
|
||||
<view>
|
||||
<view class="font-40">{{item.total}}</view>
|
||||
<view class="font-22 color-666">{{item.title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fn-flex-item relative pl120" bindtap="pushLink" data-url="/pages/order/filterList/index?key=1&title=需办理分期">
|
||||
<i class="absolute left-0 box-middle ml50 iconfont icon-banfenqi font-50"></i>
|
||||
<view>
|
||||
<view class="font-40">{{userCal.loan_count}}</view>
|
||||
<view class="font-22 color-666">需办理分期</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user