Commit 0b590af1 authored by chicheng's avatar chicheng

积分管理页面

(cherry picked from commit 5bdb7ad4)
parent 2d4a848b
......@@ -1320,6 +1320,74 @@
"enablePullDownRefresh": true
}
},
{
"path": "pages/integral-manage/integral-manage",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "#fff",
"titleText": "积分管理",
"autoBackButton": true
}
}
}
},
{
"path": "pages/integral-detail/integral-detail",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "#fff",
"titleText": "积分明细查询",
"autoBackButton": true,
"buttons": [{
"type": "none",
"text": "积分申请",
"fontSize": "14px",
"color": "#FF1D32",
"fontWeight": "bold",
"width": "80px"
}]
}
}
}
},
{
"path": "pages/integral-use/integral-use",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "#fff",
"titleText": "积分使用记录查询",
"autoBackButton": true
}
}
}
},
{
"path": "pages/integral-apply/integral-apply",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "#fff",
"titleText": "积分申请查询",
"autoBackButton": true
}
}
}
},
{
"path": "pages/loan-query/loan-detail",
"style": {
......
This diff is collapsed.
This diff is collapsed.
<template>
<view class="order view">
<view class="status_bar" :style="navHeight"></view>
<view class="listview">
<view class="cell-list">
<view class="cell-list-block" @click="goPage('integral-detail')">
<image class="icon-address" src="@/static/image/order_quota@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content">
<text class="cell-list-block__title">积分明细查询</text>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view>
<view class="cell-list-block" @click="goPage('integral-use')">
<image class="icon-address" src="@/static/image/order_noquota@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content">
<text class="cell-list-block__title">积分使用记录查询</text>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view>
<view class="cell-list-block" @click="goPage('integral-apply')">
<image class="icon-address" src="@/static/image/billing_inquiry@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content">
<text class="cell-list-block__title">积分申请查询</text>
</view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view>
</view>
</view>
</view>
</template>
<script>
import {
mapState
} from 'vuex'
export default {
data() {
return {
}
},
onLoad() {
},
computed: {
navHeight() {
return {
'height': `${this.sysinfo.safeArea.top + 44}px`
}
},
...mapState(['sysinfo'])
},
methods: {
goPage(page) {
uni.navigateTo({
url: `/pages/${page}/${page}`
});
}
}
}
</script>
<style lang="scss" scoped>
.view {
flex-direction: column;
}
/* #ifndef APP-PLUS */
page {
width: 100%;
min-height: 100%;
display: flex;
background: #fff;
}
.status_bar {
height: var(--status-bar-height);
}
/* #endif */
.order {
flex: 1;
background: #fff;
padding: 0 32rpx;
}
.listview {
flex: 1;
flex-direction: column;
padding-top: 64rpx;
}
.cell-list {
flex-direction: column;
}
.icon-address {
width: 88rpx;
height: 88rpx;
margin-right: 24rpx;
}
.cell-list-block__content {
display: flex;
flex: 1;
flex-direction: column;
}
.cell-list-block__title {
color: #333;
font-size: 28rpx;
font-weight: 500;
flex: 1;
align-items: center;
margin-bottom: 4rpx;
}
.cell-list-block__desc {
color: #acacac;
font-size: 12px;
}
.icon-arrow {
width: 12rpx;
height: 20rpx;
}
.cell-list-block {
display: flex;
height: 77px;
margin-bottom: 24rpx;
background: #f8f9fa;
border-radius: 8px;
padding: 0 36rpx 0 16rpx;
align-items: center;
}
</style>
This diff is collapsed.
......@@ -119,6 +119,14 @@
<text class="dot" v-if="zdzpNum - 0 >0">{{zdzpNum}}</text>
<text class="entry-bill-text">直配订单查询</text>
</view>
<view class="entry-block" @click="goPage('integral-manage')" v-if='!isChildCustomer'>
<view class="entry-bill">
<image class="entry-bill-icon entry-bill-icon_billing"
src="@/static/image/uc_company@3x.png" mode="">
</image>
</view>
<text class="entry-bill-text">积分管理</text>
</view>
<!-- <view class="entry-block" @click="goPage('brand-recommend')">
<view class="entry-bill">
<image class="entry-bill-icon entry-bill-icon_billing"
......
import apiHelper from './api.helper.js'
/**
* 积分明细查询
*/
export async function fetchDistributerPointEarnPage(params) {
const res = await apiHelper.post('/crm-app/scm/distributer-point/earn/page', params)
return res
}
/**
* 积分使用记录查询
*/
export async function fetchDistributerPointUsePage(params) {
const res = await apiHelper.post('/crm-app/scm/distributer-point/use/page', params)
return res
}
/**
* 积分统计查询
*/
export async function fetchDistributerPointStatistics(params) {
const res = await apiHelper.post('/crm-app/scm/distributer-point/statistics', params)
return res
}
/**
* 积分申请
*/
export async function apiApplyIntegral(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/reverse_int', params)
return res
}
/**
* 积分申请查询
*/
export async function getReverseIntegralList(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/get_reverse_int', params)
return res
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment