|
@@ -17,7 +17,11 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="justify-between align-center bgf newsbox plr20">
|
|
<view class="justify-between align-center bgf newsbox plr20">
|
|
- <view class="fs28 pt20 fs32 bold" >看课记录</view>
|
|
|
|
|
|
+ <view class="justify-start align-center pt20">
|
|
|
|
+ <view class="fs28 fs32 bold" >看课记录</view>
|
|
|
|
+ <text class=" fs24 ml10 u-border base-color-6 plr16 radius30 ptb2"
|
|
|
|
+ @click="seltype()">色盲模式</text>
|
|
|
|
+ </view>
|
|
<view class="lh45 plr20 fs24 radius40 h50 justify-between align-center" style="color: #999;"
|
|
<view class="lh45 plr20 fs24 radius40 h50 justify-between align-center" style="color: #999;"
|
|
@click="todetail">
|
|
@click="todetail">
|
|
<view> {{typestate==0?'更多详情':'点击收起'}}</view>
|
|
<view> {{typestate==0?'更多详情':'点击收起'}}</view>
|
|
@@ -25,7 +29,7 @@
|
|
<image src="/static/arrow_down.png" class="w30 h30 ml10" v-else></image>
|
|
<image src="/static/arrow_down.png" class="w30 h30 ml10" v-else></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="bgf p20">
|
|
|
|
|
|
+ <view class="bgf p20" v-if="!answertype">
|
|
<view class="justify-start ">
|
|
<view class="justify-start ">
|
|
<view v-for="(item,index) in titname" :key="index" class="justify-start align-center ml28">
|
|
<view v-for="(item,index) in titname" :key="index" class="justify-start align-center ml28">
|
|
<view :style="{ backgroundColor: statusColors[index] || '#CCCCCC' }"
|
|
<view :style="{ backgroundColor: statusColors[index] || '#CCCCCC' }"
|
|
@@ -45,6 +49,26 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="bgf p20" v-else>
|
|
|
|
+ <view class="justify-start ">
|
|
|
|
+ <view v-for="(item,index) in titname" :key="index" class="justify-start align-center ml28">
|
|
|
|
+ <view class="w30 h30 radius4 base-bg-f5 u-border fs24 lh24"
|
|
|
|
+ style="text-align: center;">{{statusText[index]}}</view>
|
|
|
|
+ <view class="fs24 mr6 ml10">{{item}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="fs24 mt20 base-color-6" >近{{typestate==0?'7':'30'}}天看课记录</view>
|
|
|
|
+ <view class="justify-between mt20">
|
|
|
|
+ <view class="justify-start align-center mt12 " style="width: 100%;flex-wrap: wrap">
|
|
|
|
+ <view class="w54 h54 mr20 radius4 mb12" v-for="(item,index) in answerlist"
|
|
|
|
+ :key="index">
|
|
|
|
+ <view class="fs24 base-color-6">{{item.date.slice(-2)}}</view>
|
|
|
|
+ <view class="w30 h30 radius4 base-bg-f5 u-border fs24 lh24"
|
|
|
|
+ style="text-align: center;">{{statusText[item.logType]}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="bgf p20 mt20">
|
|
<view class="bgf p20 mt20">
|
|
<view class="justify-between align-center">
|
|
<view class="justify-between align-center">
|
|
<view class="bold fs32">用户信息</view>
|
|
<view class="bold fs32">用户信息</view>
|
|
@@ -130,6 +154,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ answertype:false,
|
|
typeOption: [{
|
|
typeOption: [{
|
|
label: '全部',
|
|
label: '全部',
|
|
value: 0
|
|
value: 0
|
|
@@ -165,6 +190,13 @@
|
|
3: '#f55a4f',
|
|
3: '#f55a4f',
|
|
4: '#ffd700',
|
|
4: '#ffd700',
|
|
},
|
|
},
|
|
|
|
+ statusText: {
|
|
|
|
+ 0: '﹨',
|
|
|
|
+ 1: '∎',
|
|
|
|
+ 2: '✔',
|
|
|
|
+ 3: '✖',
|
|
|
|
+ 4: '◇',
|
|
|
|
+ },
|
|
titname:['未看课','看课中','完课','待看课','看课中断',],
|
|
titname:['未看课','看课中','完课','待看课','看课中断',],
|
|
statelist:[
|
|
statelist:[
|
|
{ status: 4 },
|
|
{ status: 4 },
|
|
@@ -256,6 +288,10 @@
|
|
uni.$off('urgeUser', this.urgetoUser());
|
|
uni.$off('urgeUser', this.urgetoUser());
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ seltype(){
|
|
|
|
+ console.log(this.answertype)
|
|
|
|
+ this.answertype=!this.answertype
|
|
|
|
+ },
|
|
clearhuan(){
|
|
clearhuan(){
|
|
uni.removeStorageSync('qwarrid')
|
|
uni.removeStorageSync('qwarrid')
|
|
uni.removeStorageSync('fsUserId')
|
|
uni.removeStorageSync('fsUserId')
|
|
@@ -349,6 +385,7 @@
|
|
corpId: this.corpId,
|
|
corpId: this.corpId,
|
|
userId:this.userId,
|
|
userId:this.userId,
|
|
externalUserId:this.externalUserId,
|
|
externalUserId:this.externalUserId,
|
|
|
|
+
|
|
};
|
|
};
|
|
getQwExternalContactDetails(data).then(res => {
|
|
getQwExternalContactDetails(data).then(res => {
|
|
if(res.code==200){
|
|
if(res.code==200){
|
|
@@ -501,7 +538,8 @@
|
|
})
|
|
})
|
|
const params = {
|
|
const params = {
|
|
type:this.typestate,
|
|
type:this.typestate,
|
|
- qwExternalContactId:this.qwUserExternalId
|
|
|
|
|
|
+ qwExternalContactId:this.qwUserExternalId,
|
|
|
|
+ // qwExternalContactId:'19594956',
|
|
}
|
|
}
|
|
getcustomerlist(params).then(res => {
|
|
getcustomerlist(params).then(res => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|