123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- const app = getApp();
- const api = app.api;
- Page({
-
- data: {
- agree:true,
- settleInfo:{
- artistCaStatus: 0,
- companyCaStatus: 0,
- curatorCaStatus: 0,
- isArtist: 0,
- isArtistAgree: 0,
- isArtistInvoiceAgree: 0,
- isCompany: 0,
- isCompanyAgree: 0,
- isCurator: 0,
- isCuratorAgree: 0,
- isVerification: null,
- isWeChatLogin: null
- }
- },
-
- onLoad: function (options) {
- console.log(options)
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- this.getData()
- },
- getData(){
-
- },
- goService(){
- app.post(api.getUserSettleInfo).then(res=>{
- console.log(res);
-
-
-
- const data = res.data
- if(data.isArtistInvoiceAgree==0){
- wx.navigateTo({
- url: '/pages/invoice/agreement/agreement'
- })
- }else if(data.isArtistInvoiceAgree!=0&&!data.isVerification){
- wx.navigateTo({
- url: '/pages/invoice/authentication/authentication'
- })
- }else if(data.isArtistInvoiceAgree!=0&&data.isVerification){
- wx.navigateTo({
- url: '/pages/invoice/contract/contract'
- })
- }else{
- wx.navigateTo({
- url: '/pages/invoice/myInvoice/myInvoice'
- })
- }
- })
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- }
- })
|