mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
952a604f0e
commit
154ef170c6
@ -59,6 +59,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-else class="flex flex-direction padding">
|
||||||
|
<button class="cu-btn bg-blue margin-tb-sm lg" @click="_toSettings()">设置发票抬头</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -156,10 +159,10 @@
|
|||||||
},
|
},
|
||||||
_submitInvoice: function() {
|
_submitInvoice: function() {
|
||||||
let _that = this;
|
let _that = this;
|
||||||
if(!_that.detailIds || _that.detailIds.length < 1){
|
if (!_that.detailIds || _that.detailIds.length < 1) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon:'none',
|
icon: 'none',
|
||||||
title:'未选择缴费记录'
|
title: '未选择缴费记录'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -174,17 +177,22 @@
|
|||||||
oiId: _that.oiId,
|
oiId: _that.oiId,
|
||||||
detailIds: _that.detailIds,
|
detailIds: _that.detailIds,
|
||||||
communityId: getCommunityId(),
|
communityId: getCommunityId(),
|
||||||
}).then(_data =>{
|
}).then(_data => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon:'none',
|
icon: 'none',
|
||||||
title:_data.msg
|
title: _data.msg
|
||||||
})
|
})
|
||||||
if (_data.code == 0) {
|
if (_data.code == 0) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/invoice/invoiceApply'
|
url: '/pages/invoice/invoiceApply'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
_toSettings:function(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/invoice/invoice'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user