Commit 25e8e81d by sunchao

团队业绩、积分查询bug修复

parent da3e50c2
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</view> </view>
<!-- // 一级循环 --> <!-- // 一级循环 -->
<view class="content-sam-box"> <view class="content-sam-box">
<view class="" v-for="(pointItem,index) in list"> <view class="" v-for="(pointItem,index) in dataList">
<view class="content-sa" style=" " v-if="felTyle == 'achievement'"> <view class="content-sa" style=" " v-if="felTyle == 'achievement'">
<view class="content-box-title" <view class="content-box-title"
style="display: flex;align-items: center;margin-left: 6rpx;flex: 1;"> style="display: flex;align-items: center;margin-left: 6rpx;flex: 1;">
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}, },
mounted() { mounted() {
// this.alist = this.dataList // this.alist = this.dataList
this.list = JSON.parse(JSON.stringify(this.dataList)) // this.list = JSON.parse(JSON.stringify(this.dataList))
// this.$nextTick(() => { // this.$nextTick(() => {
// }) // })
......
<template> <template>
<view class="container"> <view class="container">
<text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="top:-10rpx;left: 20rpx;"></text> <text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="left: 20rpx;"
:style="{top:queryType==1? '16rpx':'-10rpx'}"></text>
<view class="others" v-if="queryType == 2"> <view class="others" v-if="queryType == 2">
<text>身份信息</text> <text>身份信息</text>
<view class="others_item"> <view class="others_item">
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
<view class="certifyImgBox"> <view class="certifyImgBox">
<image :src="item?.cerUrl" mode="widthFix"></image> <image :src="item?.cerUrl" mode="widthFix"></image>
<view>认证编号:{{item?.authenticationCode}}</view> <view>认证编号:{{item?.authenticationCode}}</view>
<view>有效期至:{{item?.endDate}}</view> <view>有效期至:{{dateFormat(item?.endDate)}}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
<script> <script>
import api from '../../api/api'; import api from '../../api/api';
import common from '../../common/common'; import common from '../../common/common';
import dataHandling from "@/util/dataHandling";
export default{ export default{
data(){ data(){
return { return {
...@@ -48,6 +49,9 @@ ...@@ -48,6 +49,9 @@
this.getResult(); this.getResult();
}, },
methods:{ methods:{
dateFormat(val){
return dataHandling.dateFormat(val,'yyyy-MM-dd')
},
goBack(){ goBack(){
let back = getCurrentPages(); let back = getCurrentPages();
if(back && back.length>1) { if(back && back.length>1) {
...@@ -102,17 +106,23 @@ ...@@ -102,17 +106,23 @@
text-align: center; text-align: center;
margin-top: 10%; margin-top: 10%;
} }
.certifyInfoItem{ .certifyListContent{
background-color: #fff; .certifyInfoItem{
margin-bottom: 10rpx; background-color: #fff;
padding: 20rpx 0; margin-bottom: 10rpx;
width: 100%; padding: 20rpx 0;
display: flex; width: 100%;
flex-direction: column; display: flex;
align-items: center; flex-direction: column;
image{ align-items: center;
max-width: 60%; .certifyImgBox{
height: auto; text-align: center;
}
image{
max-width: 60%;
height: auto;
}
} }
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view class="container" style="position: relative;"> <view class="container" style="position: relative;">
<text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="top:0;left: 20rpx;"></text> <text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="top:-20rpx;left: 20rpx;"></text>
<view class="record_wrapper" v-if="cffpFortuneDeductionList.length > 0"> <view class="record_wrapper" v-if="cffpFortuneDeductionList.length > 0">
<view class="recordContent" v-for="(item,index) in cffpFortuneDeductionList" :key="index"> <view class="recordContent" v-for="(item,index) in cffpFortuneDeductionList" :key="index">
<image :src="item.deductionUrl" mode="widthFix"></image> <image :src="item.deductionUrl" mode="widthFix"></image>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<style lang="scss"> <style lang="scss">
.record_wrapper{ .record_wrapper{
margin-top: 30rpx; margin-top: 40rpx;
.recordContent{ .recordContent{
display: flex; display: flex;
margin-bottom: 20rpx; margin-bottom: 20rpx;
......
...@@ -364,12 +364,14 @@ ...@@ -364,12 +364,14 @@
} }
uni-image { uni-image {
margin-top: 40rpx;
width: 60% !important; width: 60% !important;
} }
.tips { .tips {
width: 100%; width: 100%;
text-align: center; text-align: center;
// font-size: 28rpx;
} }
} }
</style> </style>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<view class="certifyImgBox"> <view class="certifyImgBox">
<image :src="item.cerUrl" alt="" srcset="" mode="widthFix"></image> <image :src="item.cerUrl" alt="" srcset="" mode="widthFix"></image>
<view>认证编号:{{item.authenticationCode}}</view> <view>认证编号:{{item.authenticationCode}}</view>
<view>有效期至:{{item.endDate}}</view> <view>有效期至:{{dateFormat(item.endDate)}}</view>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
</view> </view>
<view class="opt_wrapper"> <view class="opt_wrapper">
<!-- <view style="width: 33%;">销售以来</view> --> <!-- <view style="width: 33%;">销售以来</view> -->
<view class="timeSelectContent" v-if="timeFlag =='D'">
<view class="uni-input">{{fortuneDate}}
</view>
</view>
<!-- 年月时间选择 --> <!-- 年月时间选择 -->
<view class="timeSelectContent" v-if="timeFlag !='D'"> <view class="timeSelectContent" v-if="timeFlag !='D'">
<picker mode="date" :value="fortuneDate" :end="maxDate" :fields="fields" @change="bindDateChange"> <picker mode="date" :value="fortuneDate" :end="maxDate" :fields="fields" @change="bindDateChange">
...@@ -24,7 +28,6 @@ ...@@ -24,7 +28,6 @@
<text class="iconfont icon-youjiantou"></text> <text class="iconfont icon-youjiantou"></text>
</view> </view>
</picker> </picker>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -71,7 +71,6 @@ ...@@ -71,7 +71,6 @@
}, },
components:{}, components:{},
onLoad(options){ onLoad(options){
this.fortuneDate = options.fortuneDate;
this.productType = options.productType; this.productType = options.productType;
this.timeFlag = options.timeFlag; this.timeFlag = options.timeFlag;
this.commissionType = options.commissionType; this.commissionType = options.commissionType;
...@@ -86,6 +85,9 @@ ...@@ -86,6 +85,9 @@
if(this.timeFlag == 'D'){ if(this.timeFlag == 'D'){
this.fortuneDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}` this.fortuneDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`
} }
if(options.fortuneDate){
this.fortuneDate = options.fortuneDate;
}
this.getCommissionType(); this.getCommissionType();
this.getProductType(); this.getProductType();
this.getDetail(); this.getDetail();
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
}, },
mounted() { mounted() {
this.switchTab(2) this.switchTab(1)
this.getmyseatem() this.getmyseatem()
}, },
methods:{ methods:{
......
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