feat(bonus): 奖金添加复购级差收益字段,且只有存在时才可见
This commit is contained in:
		
							parent
							
								
									aec869deab
								
							
						
					
					
						commit
						4d15edb36d
					
				| 
						 | 
					@ -1,62 +1,61 @@
 | 
				
			||||||
 | 
					 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <view class="main">
 | 
					  <view class="main">
 | 
				
			||||||
		<view v-if="userInfo.pkCountry!=1" class="top">
 | 
					    <view v-if="userInfo.pkCountry != 1" class="top">
 | 
				
			||||||
      <view class="search-bottom">
 | 
					      <view class="search-bottom">
 | 
				
			||||||
				<view class="time-text">{{'查询时间'}}</view>
 | 
					        <view class="time-text">{{ '查询时间' }}</view>
 | 
				
			||||||
        <view class="time1">
 | 
					        <view class="time1">
 | 
				
			||||||
          <picker :value="query.startDate" mode="date" @change="bindDateChange">
 | 
					          <picker :value="query.startDate" mode="date" @change="bindDateChange">
 | 
				
			||||||
						<view v-if="query.startDate!=''" class="uni-input">{{query.startDate}}</view>
 | 
					            <view v-if="query.startDate != ''" class="uni-input">{{
 | 
				
			||||||
						<view v-else class="uni-input">{{'开始日期'}}</view>
 | 
					              query.startDate
 | 
				
			||||||
 | 
					            }}</view>
 | 
				
			||||||
 | 
					            <view v-else class="uni-input">{{ '开始日期' }}</view>
 | 
				
			||||||
          </picker>
 | 
					          </picker>
 | 
				
			||||||
        </view>
 | 
					        </view>
 | 
				
			||||||
				<view class="text_s">{{'至'}}</view>
 | 
					        <view class="text_s">{{ '至' }}</view>
 | 
				
			||||||
        <view class="time1">
 | 
					        <view class="time1">
 | 
				
			||||||
          <picker :value="query.endDate" mode="date" @change="bindDateChange1">
 | 
					          <picker :value="query.endDate" mode="date" @change="bindDateChange1">
 | 
				
			||||||
						<view v-if="query.endDate!=''" class="uni-input">{{query.endDate}}</view>
 | 
					            <view v-if="query.endDate != ''" class="uni-input">{{
 | 
				
			||||||
						<view v-else class="uni-input">{{'结束日期'}}</view>
 | 
					              query.endDate
 | 
				
			||||||
 | 
					            }}</view>
 | 
				
			||||||
 | 
					            <view v-else class="uni-input">{{ '结束日期' }}</view>
 | 
				
			||||||
          </picker>
 | 
					          </picker>
 | 
				
			||||||
        </view>
 | 
					        </view>
 | 
				
			||||||
        <view class="search-icons" @click="submit">
 | 
					        <view class="search-icons" @click="submit">
 | 
				
			||||||
					<image class="search-icon-s" src="../../static/images/search.png"></image>
 | 
					          <image
 | 
				
			||||||
 | 
					            class="search-icon-s"
 | 
				
			||||||
 | 
					            src="../../static/images/search.png"
 | 
				
			||||||
 | 
					          ></image>
 | 
				
			||||||
        </view>
 | 
					        </view>
 | 
				
			||||||
      </view>
 | 
					      </view>
 | 
				
			||||||
 | 
					 | 
				
			||||||
    </view>
 | 
					    </view>
 | 
				
			||||||
    <view class="search-content">
 | 
					    <view class="search-content">
 | 
				
			||||||
      <view class="search-list">
 | 
					      <view class="search-list">
 | 
				
			||||||
        <view v-for="item in dataList" class="search-view">
 | 
					        <view v-for="item in dataList" class="search-view">
 | 
				
			||||||
					<view style="height: 20rpx;"></view>
 | 
					          <view style="height: 20rpx"></view>
 | 
				
			||||||
          <view class="flex_s">
 | 
					          <view class="flex_s">
 | 
				
			||||||
            <view class="data-left">
 | 
					            <view class="data-left">
 | 
				
			||||||
							{{'奖金日期'}}
 | 
					              {{ '奖金日期' }}
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
            <view class="data-right">
 | 
					            <view class="data-right">
 | 
				
			||||||
							{{item.settleDate }}
 | 
					              {{ item.settleDate }}
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
          </view>
 | 
					          </view>
 | 
				
			||||||
          <view class="flex_s">
 | 
					          <view class="flex_s">
 | 
				
			||||||
						<view class="data-left">
 | 
					            <view class="data-left"> {{ '直推收益' }}({{ isLocaled() }}) </view>
 | 
				
			||||||
							{{'直推收益'}}({{ isLocaled() }})
 | 
					 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
            <view class="data-right">
 | 
					            <view class="data-right">
 | 
				
			||||||
							{{item.directIncome| toThousandthAndKeepDecimal }}
 | 
					              {{ item.directIncome | toThousandthAndKeepDecimal }}
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
          </view>
 | 
					          </view>
 | 
				
			||||||
          <view class="flex_s">
 | 
					          <view class="flex_s">
 | 
				
			||||||
						<view class="data-left">
 | 
					            <view class="data-left"> {{ '拓展收益' }}({{ isLocaled() }}) </view>
 | 
				
			||||||
							{{'拓展收益'}}({{ isLocaled() }})
 | 
					 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
            <view class="data-right">
 | 
					            <view class="data-right">
 | 
				
			||||||
							{{item.expandIncome| toThousandthAndKeepDecimal}}
 | 
					              {{ item.expandIncome | toThousandthAndKeepDecimal }}
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
          </view>
 | 
					          </view>
 | 
				
			||||||
          <view class="flex_s">
 | 
					          <view class="flex_s">
 | 
				
			||||||
					<view class="data-left">
 | 
					            <view class="data-left"> {{ '辅导收益' }}({{ isLocaled() }}) </view>
 | 
				
			||||||
						{{'辅导收益'}}({{ isLocaled() }})
 | 
					 | 
				
			||||||
					</view>
 | 
					 | 
				
			||||||
            <view class="data-right">
 | 
					            <view class="data-right">
 | 
				
			||||||
						{{item.coachIncome | toThousandthAndKeepDecimal}}
 | 
					              {{ item.coachIncome | toThousandthAndKeepDecimal }}
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
          </view>
 | 
					          </view>
 | 
				
			||||||
          <!-- <view class="flex_s">
 | 
					          <!-- <view class="flex_s">
 | 
				
			||||||
| 
						 | 
					@ -67,23 +66,19 @@
 | 
				
			||||||
						{{item.shareIncome| toThousandthAndKeepDecimal}}
 | 
											{{item.shareIncome| toThousandthAndKeepDecimal}}
 | 
				
			||||||
					</view>
 | 
										</view>
 | 
				
			||||||
				</view> -->
 | 
									</view> -->
 | 
				
			||||||
					<view class="flex_s" v-if="userInfo.pkCountry==1">
 | 
					          <view class="flex_s" v-if="userInfo.pkCountry == 1">
 | 
				
			||||||
						<view class="data-left">
 | 
					            <view class="data-left"> {{ '服务补贴' }}({{ isLocaled() }}) </view>
 | 
				
			||||||
							{{'服务补贴'}}({{ isLocaled() }})
 | 
					 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
            <view class="data-right">
 | 
					            <view class="data-right">
 | 
				
			||||||
							{{item.serviceIncome| toThousandthAndKeepDecimal}}
 | 
					              {{ item.serviceIncome | toThousandthAndKeepDecimal }}
 | 
				
			||||||
 | 
					            </view>
 | 
				
			||||||
 | 
					          </view>
 | 
				
			||||||
 | 
					          <view v-if="item.repurRangeIncome" class="flex_s">
 | 
				
			||||||
 | 
					            <view class="data-left"> 复购级差收益({{ isLocaled() }}) </view>
 | 
				
			||||||
 | 
					            <view class="data-right">
 | 
				
			||||||
 | 
					              {{ item.repurRangeIncome | toThousandthAndKeepDecimal }}
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
          </view>
 | 
					          </view>
 | 
				
			||||||
          <!-- <view class="flex_s">
 | 
					          <!-- <view class="flex_s">
 | 
				
			||||||
						<view class="data-left">
 | 
					 | 
				
			||||||
							级差收益({{ isLocaled() }})
 | 
					 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
						<view class="data-right">
 | 
					 | 
				
			||||||
							{{item.repurRangeIncome| toThousandthAndKeepDecimal}}
 | 
					 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
					</view>
 | 
					 | 
				
			||||||
					<view class="flex_s">
 | 
					 | 
				
			||||||
						<view class="data-left">
 | 
											<view class="data-left">
 | 
				
			||||||
							{{$t('直推级差')}}({{ isLocaled() }})
 | 
												{{$t('直推级差')}}({{ isLocaled() }})
 | 
				
			||||||
						</view>
 | 
											</view>
 | 
				
			||||||
| 
						 | 
					@ -91,28 +86,24 @@
 | 
				
			||||||
							{{item.globalPoints| toThousandthAndKeepDecimal}}
 | 
												{{item.globalPoints| toThousandthAndKeepDecimal}}
 | 
				
			||||||
						</view>
 | 
											</view>
 | 
				
			||||||
					</view> -->
 | 
										</view> -->
 | 
				
			||||||
					<view class="flex_s" v-if="userInfo.pkCountry==1">
 | 
					          <view class="flex_s" v-if="userInfo.pkCountry == 1">
 | 
				
			||||||
 | 
					            <view class="data-left"> {{ '重复消费' }}({{ isLocaled() }}) </view>
 | 
				
			||||||
 | 
					            <view class="data-right">
 | 
				
			||||||
 | 
					              {{ item.backPoints | toThousandthAndKeepDecimal }}
 | 
				
			||||||
 | 
					            </view>
 | 
				
			||||||
 | 
					          </view>
 | 
				
			||||||
 | 
					          <view class="flex_s" v-if="userInfo.pkCountry == 1">
 | 
				
			||||||
            <view class="data-left">
 | 
					            <view class="data-left">
 | 
				
			||||||
							{{'重复消费'}}({{ isLocaled() }})
 | 
					              {{ '平台服务费' }}({{ isLocaled() }})
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
            <view class="data-right">
 | 
					            <view class="data-right">
 | 
				
			||||||
							{{item.backPoints| toThousandthAndKeepDecimal}}
 | 
					              {{ item.serviceSpend | toThousandthAndKeepDecimal }}
 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
					</view>
 | 
					 | 
				
			||||||
					<view class="flex_s" v-if="userInfo.pkCountry==1">
 | 
					 | 
				
			||||||
						<view class="data-left">
 | 
					 | 
				
			||||||
							{{'平台服务费'}}({{ isLocaled() }})
 | 
					 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
						<view class="data-right">
 | 
					 | 
				
			||||||
							{{item.serviceSpend| toThousandthAndKeepDecimal}}
 | 
					 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
          </view>
 | 
					          </view>
 | 
				
			||||||
          <view class="flex_s">
 | 
					          <view class="flex_s">
 | 
				
			||||||
						<view class="data-left">
 | 
					            <view class="data-left"> {{ '实发小计' }}({{ isLocaled() }}) </view>
 | 
				
			||||||
							{{'实发小计'}}({{ isLocaled() }})
 | 
					 | 
				
			||||||
						</view>
 | 
					 | 
				
			||||||
            <view class="data-right">
 | 
					            <view class="data-right">
 | 
				
			||||||
							{{item.purRealSubtotal| toThousandthAndKeepDecimal}}
 | 
					              {{ item.purRealSubtotal | toThousandthAndKeepDecimal }}
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
          </view>
 | 
					          </view>
 | 
				
			||||||
          <!-- <view class="border_s">
 | 
					          <!-- <view class="border_s">
 | 
				
			||||||
| 
						 | 
					@ -120,8 +111,8 @@
 | 
				
			||||||
							{{'查看详情'}}
 | 
												{{'查看详情'}}
 | 
				
			||||||
						</view>
 | 
											</view>
 | 
				
			||||||
					</view> -->
 | 
										</view> -->
 | 
				
			||||||
					<view style="clear: both;"></view>
 | 
					          <view style="clear: both"></view>
 | 
				
			||||||
					<view style="height: 20rpx;background-color: #fff;"></view>
 | 
					          <view style="height: 20rpx; background-color: #fff"></view>
 | 
				
			||||||
        </view>
 | 
					        </view>
 | 
				
			||||||
      </view>
 | 
					      </view>
 | 
				
			||||||
    </view>
 | 
					    </view>
 | 
				
			||||||
| 
						 | 
					@ -129,16 +120,12 @@
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
	import * as api from '@/config/login.js'
 | 
					import * as api from '@/config/login.js'
 | 
				
			||||||
	import {
 | 
					import { setToken } from '@/config/auth.js'
 | 
				
			||||||
		setToken
 | 
					import store from '@/store'
 | 
				
			||||||
	} from '@/config/auth.js'
 | 
					import { isLocaled } from '@/util/numberToCurrency'
 | 
				
			||||||
	import store from '@/store'
 | 
					 | 
				
			||||||
	import {
 | 
					 | 
				
			||||||
		isLocaled
 | 
					 | 
				
			||||||
	} from '@/util/numberToCurrency'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	export default {
 | 
					export default {
 | 
				
			||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      getBonusTypeList: [],
 | 
					      getBonusTypeList: [],
 | 
				
			||||||
| 
						 | 
					@ -150,18 +137,16 @@
 | 
				
			||||||
        endDate: '',
 | 
					        endDate: '',
 | 
				
			||||||
        sourceMemberCode: '',
 | 
					        sourceMemberCode: '',
 | 
				
			||||||
        sourceMemberName: '',
 | 
					        sourceMemberName: '',
 | 
				
			||||||
					pkBonusItems: ''
 | 
					        pkBonusItems: '',
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      page: {
 | 
					      page: {
 | 
				
			||||||
        pageNum: 1,
 | 
					        pageNum: 1,
 | 
				
			||||||
					pageSize: 50
 | 
					        pageSize: 50,
 | 
				
			||||||
				}
 | 
					      },
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
		props: ["num", "checkRule"],
 | 
					  props: ['num', 'checkRule'],
 | 
				
			||||||
		onLoad() {
 | 
					  onLoad() {},
 | 
				
			||||||
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
    // this.getType()
 | 
					    // this.getType()
 | 
				
			||||||
    this.userInfo = uni.getStorageSync('User')
 | 
					    this.userInfo = uni.getStorageSync('User')
 | 
				
			||||||
| 
						 | 
					@ -171,15 +156,18 @@
 | 
				
			||||||
    isLocaled,
 | 
					    isLocaled,
 | 
				
			||||||
    urlTap() {
 | 
					    urlTap() {
 | 
				
			||||||
      uni.navigateTo({
 | 
					      uni.navigateTo({
 | 
				
			||||||
					url: '/pages/bonusSource/index'
 | 
					        url: '/pages/bonusSource/index',
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    getInfo() {
 | 
					    getInfo() {
 | 
				
			||||||
				api.getInfo().then(res => {
 | 
					      api
 | 
				
			||||||
 | 
					        .getInfo()
 | 
				
			||||||
 | 
					        .then(res => {
 | 
				
			||||||
          if (res) {
 | 
					          if (res) {
 | 
				
			||||||
            this.userInfo = res.data
 | 
					            this.userInfo = res.data
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
				}).catch(error => {
 | 
					        })
 | 
				
			||||||
 | 
					        .catch(error => {
 | 
				
			||||||
          reject(error)
 | 
					          reject(error)
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
| 
						 | 
					@ -187,11 +175,14 @@
 | 
				
			||||||
      this.getDataList()
 | 
					      this.getDataList()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    getType() {
 | 
					    getType() {
 | 
				
			||||||
				api.getBonusType().then(res => {
 | 
					      api
 | 
				
			||||||
 | 
					        .getBonusType()
 | 
				
			||||||
 | 
					        .then(res => {
 | 
				
			||||||
          if (res) {
 | 
					          if (res) {
 | 
				
			||||||
            this.getBonusTypeList = res.rows
 | 
					            this.getBonusTypeList = res.rows
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
				}).catch(error => {
 | 
					        })
 | 
				
			||||||
 | 
					        .catch(error => {
 | 
				
			||||||
          reject(error)
 | 
					          reject(error)
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
| 
						 | 
					@ -205,27 +196,31 @@
 | 
				
			||||||
      this.query.endDate = e.detail.value
 | 
					      this.query.endDate = e.detail.value
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    getDataList(num) {
 | 
					    getDataList(num) {
 | 
				
			||||||
				api.queryBonusFirst(this.query, `?pageNum=${num||1}&pageSize=${this.page.pageSize}`).then(res => {
 | 
					      api
 | 
				
			||||||
 | 
					        .queryBonusFirst(
 | 
				
			||||||
 | 
					          this.query,
 | 
				
			||||||
 | 
					          `?pageNum=${num || 1}&pageSize=${this.page.pageSize}`
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
 | 
					        .then(res => {
 | 
				
			||||||
          if (res) {
 | 
					          if (res) {
 | 
				
			||||||
            this.dataList.push(...res.rows)
 | 
					            this.dataList.push(...res.rows)
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
				}).catch(error => {
 | 
					        })
 | 
				
			||||||
 | 
					        .catch(error => {
 | 
				
			||||||
          reject(error)
 | 
					          reject(error)
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
			submit() {
 | 
					    submit() {},
 | 
				
			||||||
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
		},
 | 
					}
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
<style>
 | 
					<style>
 | 
				
			||||||
	.border_s {
 | 
					.border_s {
 | 
				
			||||||
  border-bottom: 1rpx solid #eee;
 | 
					  border-bottom: 1rpx solid #eee;
 | 
				
			||||||
  height: 10rpx;
 | 
					  height: 10rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.button {
 | 
					.button {
 | 
				
			||||||
  padding: 0 30rpx;
 | 
					  padding: 0 30rpx;
 | 
				
			||||||
  /* width: 150rpx; */
 | 
					  /* width: 150rpx; */
 | 
				
			||||||
  height: 52rpx;
 | 
					  height: 52rpx;
 | 
				
			||||||
| 
						 | 
					@ -233,74 +228,74 @@
 | 
				
			||||||
  color: #fff;
 | 
					  color: #fff;
 | 
				
			||||||
  font-size: 28rpx;
 | 
					  font-size: 28rpx;
 | 
				
			||||||
  text-align: center;
 | 
					  text-align: center;
 | 
				
			||||||
		background: #005BAC;
 | 
					  background: #005bac;
 | 
				
			||||||
  margin: 30rpx 0 0 0;
 | 
					  margin: 30rpx 0 0 0;
 | 
				
			||||||
  float: right;
 | 
					  float: right;
 | 
				
			||||||
  border-radius: 24rpx;
 | 
					  border-radius: 24rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.type {
 | 
					.type {
 | 
				
			||||||
		color: #005BAC !important;
 | 
					  color: #005bac !important;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.flex_s {
 | 
					.flex_s {
 | 
				
			||||||
  width: 100%;
 | 
					  width: 100%;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  justify-content: space-between;
 | 
					  justify-content: space-between;
 | 
				
			||||||
  padding-bottom: 15rpx;
 | 
					  padding-bottom: 15rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.data-left {
 | 
					.data-left {
 | 
				
			||||||
  color: #999;
 | 
					  color: #999;
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.data-right {
 | 
					.data-right {
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-view {
 | 
					.search-view {
 | 
				
			||||||
  /* display: flex; */
 | 
					  /* display: flex; */
 | 
				
			||||||
  /* justify-content: space-between; */
 | 
					  /* justify-content: space-between; */
 | 
				
			||||||
  padding: 30rpx 20rpx 0 20rpx;
 | 
					  padding: 30rpx 20rpx 0 20rpx;
 | 
				
			||||||
  border-bottom: 20rpx solid #eee;
 | 
					  border-bottom: 20rpx solid #eee;
 | 
				
			||||||
  /* border-bottom: 1px solid #eee; */
 | 
					  /* border-bottom: 1px solid #eee; */
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-list {
 | 
					.search-list {
 | 
				
			||||||
  margin-bottom: 25rpx;
 | 
					  margin-bottom: 25rpx;
 | 
				
			||||||
  background-color: #fff;
 | 
					  background-color: #fff;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-content {
 | 
					.search-content {
 | 
				
			||||||
  margin-top: 25rpx;
 | 
					  margin-top: 25rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.text_s {
 | 
					.text_s {
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-icon-s {
 | 
					.search-icon-s {
 | 
				
			||||||
  width: 22rpx;
 | 
					  width: 22rpx;
 | 
				
			||||||
  height: 22rpx;
 | 
					  height: 22rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-icons {
 | 
					.search-icons {
 | 
				
			||||||
  width: 47rpx;
 | 
					  width: 47rpx;
 | 
				
			||||||
  height: 47rpx;
 | 
					  height: 47rpx;
 | 
				
			||||||
		background: #005BAC;
 | 
					  background: #005bac;
 | 
				
			||||||
  border-radius: 50%;
 | 
					  border-radius: 50%;
 | 
				
			||||||
  margin-left: 20rpx;
 | 
					  margin-left: 20rpx;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  justify-content: center;
 | 
					  justify-content: center;
 | 
				
			||||||
  align-items: center;
 | 
					  align-items: center;
 | 
				
			||||||
  margin: 30rpx 20rpx 0 0;
 | 
					  margin: 30rpx 20rpx 0 0;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.time1 {
 | 
					.time1 {
 | 
				
			||||||
  width: 158rpx;
 | 
					  width: 158rpx;
 | 
				
			||||||
  height: 75rpx;
 | 
					  height: 75rpx;
 | 
				
			||||||
  border-bottom: 1rpx solid #eee;
 | 
					  border-bottom: 1rpx solid #eee;
 | 
				
			||||||
| 
						 | 
					@ -309,21 +304,21 @@
 | 
				
			||||||
  text-align: center;
 | 
					  text-align: center;
 | 
				
			||||||
  font-size: 24rpx;
 | 
					  font-size: 24rpx;
 | 
				
			||||||
  /* margin-bottom: 30rpx; */
 | 
					  /* margin-bottom: 30rpx; */
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.time-text {
 | 
					.time-text {
 | 
				
			||||||
  color: #999;
 | 
					  color: #999;
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-bottom {
 | 
					.search-bottom {
 | 
				
			||||||
  height: 100rpx;
 | 
					  height: 100rpx;
 | 
				
			||||||
  line-height: 100rpx;
 | 
					  line-height: 100rpx;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  margin-left: 20rpx;
 | 
					  margin-left: 20rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.texts {
 | 
					.texts {
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
  overflow: hidden;
 | 
					  overflow: hidden;
 | 
				
			||||||
| 
						 | 
					@ -331,80 +326,82 @@
 | 
				
			||||||
  text-overflow: ellipsis;
 | 
					  text-overflow: ellipsis;
 | 
				
			||||||
  /* width:200rpx; */
 | 
					  /* width:200rpx; */
 | 
				
			||||||
  text-align: right;
 | 
					  text-align: right;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.select-text {
 | 
					.select-text {
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  margin-right: 20rpx;
 | 
					  margin-right: 20rpx;
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
  position: relative;
 | 
					  position: relative;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.selIcon {
 | 
					.selIcon {
 | 
				
			||||||
  width: 20rpx;
 | 
					  width: 20rpx;
 | 
				
			||||||
  height: 20rpx;
 | 
					  height: 20rpx;
 | 
				
			||||||
  margin-top: 10rpx;
 | 
					  margin-top: 10rpx;
 | 
				
			||||||
  margin-left: 5rpx;
 | 
					  margin-left: 5rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.text-s {
 | 
					.text-s {
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
  color: #999;
 | 
					  color: #999;
 | 
				
			||||||
  margin-right: 10rpx;
 | 
					  margin-right: 10rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.place {
 | 
					.place {
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
  color: #999;
 | 
					  color: #999;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.border-colors {
 | 
					.border-colors {
 | 
				
			||||||
  border: none;
 | 
					  border: none;
 | 
				
			||||||
  font-size: 26rpx;
 | 
					  font-size: 26rpx;
 | 
				
			||||||
  color: #333;
 | 
					  color: #333;
 | 
				
			||||||
  margin-left: 30rpx;
 | 
					  margin-left: 30rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	page {
 | 
					page {
 | 
				
			||||||
  background-color: #f2f2f2;
 | 
					  background-color: #f2f2f2;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-icon {
 | 
					.search-icon {
 | 
				
			||||||
  width: 25rpx;
 | 
					  width: 25rpx;
 | 
				
			||||||
  height: 25rpx;
 | 
					  height: 25rpx;
 | 
				
			||||||
  position: absolute;
 | 
					  position: absolute;
 | 
				
			||||||
  left: 30rpx;
 | 
					  left: 30rpx;
 | 
				
			||||||
  top: 12rpx;
 | 
					  top: 12rpx;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		image {}
 | 
					  image {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-bg {}
 | 
					.search-bg {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.top {
 | 
					.top {
 | 
				
			||||||
  /* height: 200rpx; */
 | 
					  /* height: 200rpx; */
 | 
				
			||||||
  background-color: #fff;
 | 
					  background-color: #fff;
 | 
				
			||||||
  padding: 20rpx 0 20rpx 0;
 | 
					  padding: 20rpx 0 20rpx 0;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-tops {
 | 
					.search-tops {
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  justify-content: space-between;
 | 
					  justify-content: space-between;
 | 
				
			||||||
  height: 65rpx;
 | 
					  height: 65rpx;
 | 
				
			||||||
  line-height: 65rpx;
 | 
					  line-height: 65rpx;
 | 
				
			||||||
  padding-bottom: 40rpx;
 | 
					  padding-bottom: 40rpx;
 | 
				
			||||||
  border-bottom: 1px solid #eee;
 | 
					  border-bottom: 1px solid #eee;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	.search-bg {
 | 
					.search-bg {
 | 
				
			||||||
  width: 432rpx;
 | 
					  width: 432rpx;
 | 
				
			||||||
  height: 35rpx;
 | 
					  height: 35rpx;
 | 
				
			||||||
		background: #F5F6F8;
 | 
					  background: #f5f6f8;
 | 
				
			||||||
  border-radius: 33rpx;
 | 
					  border-radius: 33rpx;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  position: relative;
 | 
					  position: relative;
 | 
				
			||||||
  padding: 20rpx 50rpx;
 | 
					  padding: 20rpx 50rpx;
 | 
				
			||||||
  margin-left: 20rpx;
 | 
					  margin-left: 20rpx;
 | 
				
			||||||
	}
 | 
					}
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
| 
						 | 
					@ -20,7 +20,7 @@ module.exports = vm => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //#ifdef DEV_SERVER
 | 
					    //#ifdef DEV_SERVER
 | 
				
			||||||
    console.log('DEV_SERVER')
 | 
					    console.log('DEV_SERVER')
 | 
				
			||||||
    config.baseURL = 'http://192.168.0.86:8080'
 | 
					    config.baseURL = '/prod-api'
 | 
				
			||||||
    //#endif
 | 
					    //#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //#ifdef QA_SERVER
 | 
					    //#ifdef QA_SERVER
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -53,12 +53,13 @@
 | 
				
			||||||
            <view
 | 
					            <view
 | 
				
			||||||
              v-for="(fieldName, fieldKey) in BONUS_FIELD_MAP"
 | 
					              v-for="(fieldName, fieldKey) in BONUS_FIELD_MAP"
 | 
				
			||||||
              :key="fieldKey"
 | 
					              :key="fieldKey"
 | 
				
			||||||
              class="bonus-item"
 | 
					 | 
				
			||||||
            >
 | 
					            >
 | 
				
			||||||
 | 
					              <view class="bonus-item" v-if="dailyBonus[fieldKey]">
 | 
				
			||||||
                <text class="item-label">{{ fieldName }}(¥)</text>
 | 
					                <text class="item-label">{{ fieldName }}(¥)</text>
 | 
				
			||||||
                <text class="item-value">{{ dailyBonus[fieldKey] }}</text>
 | 
					                <text class="item-value">{{ dailyBonus[fieldKey] }}</text>
 | 
				
			||||||
              </view>
 | 
					              </view>
 | 
				
			||||||
            </view>
 | 
					            </view>
 | 
				
			||||||
 | 
					          </view>
 | 
				
			||||||
          <view class="card-footer">
 | 
					          <view class="card-footer">
 | 
				
			||||||
            <text class="subtotal-label">小计(¥)</text>
 | 
					            <text class="subtotal-label">小计(¥)</text>
 | 
				
			||||||
            <text class="subtotal-value">{{
 | 
					            <text class="subtotal-value">{{
 | 
				
			||||||
| 
						 | 
					@ -115,7 +116,8 @@ export default {
 | 
				
			||||||
        retailSameLevelIncome: '平级收益',
 | 
					        retailSameLevelIncome: '平级收益',
 | 
				
			||||||
        retailAreaIncome: '区域收益',
 | 
					        retailAreaIncome: '区域收益',
 | 
				
			||||||
        retailBenefitRangeIncome: '福利级差收益',
 | 
					        retailBenefitRangeIncome: '福利级差收益',
 | 
				
			||||||
        retailMonthRepurchaseIncome: '复购级差收益',
 | 
					        repurRangeIncome: '复购级差收益',
 | 
				
			||||||
 | 
					        retailMonthRepurchaseIncome: '月复购级差收益',
 | 
				
			||||||
        coachIncome: '培育津贴',
 | 
					        coachIncome: '培育津贴',
 | 
				
			||||||
        retailBenefitIncomeTotal: '福利分红收益',
 | 
					        retailBenefitIncomeTotal: '福利分红收益',
 | 
				
			||||||
        backPoints: '重消收益',
 | 
					        backPoints: '重消收益',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,11 +21,22 @@
 | 
				
			||||||
        }}</text>
 | 
					        }}</text>
 | 
				
			||||||
      </view>
 | 
					      </view>
 | 
				
			||||||
      <view v-for="(label, key) in detailLabels" :key="key" class="detail-item">
 | 
					      <view v-for="(label, key) in detailLabels" :key="key" class="detail-item">
 | 
				
			||||||
 | 
					        <template
 | 
				
			||||||
 | 
					          v-if="key === 'repurRangeIncome' && bonusData.repurRangeIncome"
 | 
				
			||||||
 | 
					        >
 | 
				
			||||||
          <text class="detail-label">{{ label }}</text>
 | 
					          <text class="detail-label">{{ label }}</text>
 | 
				
			||||||
          <text class="detail-value">
 | 
					          <text class="detail-value">
 | 
				
			||||||
            <text class="currency-symbol-small">¥</text>
 | 
					            <text class="currency-symbol-small">¥</text>
 | 
				
			||||||
            {{ bonusData[key] || '0.00' }}
 | 
					            {{ bonusData[key] || '0.00' }}
 | 
				
			||||||
          </text>
 | 
					          </text>
 | 
				
			||||||
 | 
					        </template>
 | 
				
			||||||
 | 
					        <template v-else>
 | 
				
			||||||
 | 
					          <text class="detail-label">{{ label }}</text>
 | 
				
			||||||
 | 
					          <text class="detail-value">
 | 
				
			||||||
 | 
					            <text class="currency-symbol-small">¥</text>
 | 
				
			||||||
 | 
					            {{ bonusData[key] || '0.00' }}
 | 
				
			||||||
 | 
					          </text>
 | 
				
			||||||
 | 
					        </template>
 | 
				
			||||||
      </view>
 | 
					      </view>
 | 
				
			||||||
      <!-- 分割线 -->
 | 
					      <!-- 分割线 -->
 | 
				
			||||||
      <view class="divider"></view>
 | 
					      <view class="divider"></view>
 | 
				
			||||||
| 
						 | 
					@ -63,6 +74,7 @@ export default {
 | 
				
			||||||
        retailRangeIncome: '直推收益(¥)',
 | 
					        retailRangeIncome: '直推收益(¥)',
 | 
				
			||||||
        retailSameLevelIncome: '平级收益(¥)',
 | 
					        retailSameLevelIncome: '平级收益(¥)',
 | 
				
			||||||
        retailAreaIncome: '区域收益(¥)',
 | 
					        retailAreaIncome: '区域收益(¥)',
 | 
				
			||||||
 | 
					        repurRangeIncome: '复购级差收益(¥)',
 | 
				
			||||||
        // welfareLevelDifferenceIncome: '福利级差收益(¥)',
 | 
					        // welfareLevelDifferenceIncome: '福利级差收益(¥)',
 | 
				
			||||||
        // welfareDividendIncome: '福利分红收益(¥)',
 | 
					        // welfareDividendIncome: '福利分红收益(¥)',
 | 
				
			||||||
        backPoints: '重消收益(¥)',
 | 
					        backPoints: '重消收益(¥)',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue