diff --git a/Utils/Api.js b/Utils/Api.js index 63b247a..7378839 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -129,6 +129,23 @@ export const getAuditDetail = params => { } +//申请分期 +export const apply = params => { + return POST('POST', `${base}/merPlatformPeriod/apply`, params).then(res => res.data); +} +//查询分期详情 +export const getMerPlatformPeriodDetail = params => { + return POST('GET', `${base}/merPlatformPeriod/getMerPlatformPeriodDetail`, params).then(res => res.data); +} +//查询贴息列表 +export const getFeePaidList = params => { + return POST('GET', `${base}/merPlatformPeriod/getFeePaidList`, params).then(res => res.data); +} +//修改支付贴息方式 +export const updateFeePaid = params => { + return POST('POST', `${base}/merPlatformPeriod/updateFeePaid`, params).then(res => res.data); +} + diff --git a/pages.json b/pages.json index 6b380a8..7ae8a85 100644 --- a/pages.json +++ b/pages.json @@ -725,6 +725,23 @@ "style": { "navigationBarTitleText": "点餐订单" } + },{ + "path":"applyPeriod/applyPeriod", + "style": { + "navigationBarTitleText": "申请分期" + } + },{ + "path":"applyPeriod/applyHome", + "style": { + "navigationBarTitleText": "申请分期" + } + + },{ + "path":"applyPeriod/feePaidList", + "style": { + "navigationBarTitleText": "贴息列表" + } + } ] diff --git a/pages/index/normal-Merchant/normal-Merchant.vue b/pages/index/normal-Merchant/normal-Merchant.vue index 0ff0117..3528f0e 100644 --- a/pages/index/normal-Merchant/normal-Merchant.vue +++ b/pages/index/normal-Merchant/normal-Merchant.vue @@ -35,6 +35,7 @@ + @@ -65,6 +66,7 @@ this.getMerListBySalesman() }, methods: { + //查询商户列表 getMerListBySalesman() { if(this.isLoadMore){ @@ -117,7 +119,12 @@ uni.navigateTo({ url: '/pages/index/equity-activities/equity-activities?id=' + item }) - } + }, + applyPeriod(item){ + uni.navigateTo({ + url: '/subpackages/applyPeriod/applyHome?merNo=' + item.merNo + }) + }, } } diff --git a/pages/welcome/welcome.vue b/pages/welcome/welcome.vue index 7d565b3..edb0907 100644 --- a/pages/welcome/welcome.vue +++ b/pages/welcome/welcome.vue @@ -17,10 +17,10 @@ }, onLoad(options) { - // uni.reLaunch({ - // url: '/pages/login/login' - // }) - // return + uni.reLaunch({ + url: '/pages/login/login' + }) + return let that = this; diff --git a/subpackages/applyPeriod/applyHome.vue b/subpackages/applyPeriod/applyHome.vue new file mode 100644 index 0000000..357dd26 --- /dev/null +++ b/subpackages/applyPeriod/applyHome.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file diff --git a/subpackages/applyPeriod/applyPeriod.vue b/subpackages/applyPeriod/applyPeriod.vue new file mode 100644 index 0000000..a76aff7 --- /dev/null +++ b/subpackages/applyPeriod/applyPeriod.vue @@ -0,0 +1,554 @@ + + + + + \ No newline at end of file diff --git a/subpackages/applyPeriod/feePaidList.vue b/subpackages/applyPeriod/feePaidList.vue new file mode 100644 index 0000000..18dddd6 --- /dev/null +++ b/subpackages/applyPeriod/feePaidList.vue @@ -0,0 +1,267 @@ + + + + + \ No newline at end of file