Sfoglia il codice sorgente

提交色盲模式

puyao 2 giorni fa
parent
commit
7f2c667f92

+ 41 - 3
pages/user/customerDetail.vue

@@ -17,7 +17,11 @@
 			</view>
 		</view>
 		<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;"
 			 @click="todetail">
 				<view>	{{typestate==0?'更多详情':'点击收起'}}</view>
@@ -25,7 +29,7 @@
 				<image src="/static/arrow_down.png" class="w30 h30 ml10" v-else></image>
 			 </view>
 		</view>
-		<view class="bgf p20">
+		<view class="bgf p20" v-if="!answertype">
 			<view class="justify-start ">
 				<view v-for="(item,index) in titname" :key="index" class="justify-start align-center ml28">
 					<view :style="{ backgroundColor: statusColors[index] || '#CCCCCC' }" 
@@ -45,6 +49,26 @@
 				</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="justify-between align-center"> 
 				<view class="bold fs32">用户信息</view>
@@ -130,6 +154,7 @@
 	export default {
 		data() {
 			return {
+				answertype:false,
 				typeOption: [{
 					label: '全部',
 					value: 0
@@ -165,6 +190,13 @@
 					3: '#f55a4f',
 					4: '#ffd700',
 				  },
+				  statusText: {
+				  	0: '﹨',
+				  	1: '∎',
+				  	2: '✔',
+				  	3: '✖',
+				  	4: '◇',
+				    },
 				titname:['未看课','看课中','完课','待看课','看课中断',],
 				statelist:[
 				{  status: 4 },
@@ -256,6 +288,10 @@
 			uni.$off('urgeUser', this.urgetoUser());
 		  },
 		methods: {
+			seltype(){
+				console.log(this.answertype)
+				this.answertype=!this.answertype
+			},
 			clearhuan(){
 				uni.removeStorageSync('qwarrid')
 				uni.removeStorageSync('fsUserId')
@@ -349,6 +385,7 @@
 					corpId: this.corpId,
 					userId:this.userId,
 					externalUserId:this.externalUserId,
+					
 				};
 				getQwExternalContactDetails(data).then(res => {
 					if(res.code==200){
@@ -501,7 +538,8 @@
 				})
 				const params = {
 					type:this.typestate,
-					qwExternalContactId:this.qwUserExternalId
+					qwExternalContactId:this.qwUserExternalId,
+					// qwExternalContactId:'19594956',
 				}
 				getcustomerlist(params).then(res => {
 					uni.hideLoading()

+ 1 - 1
unpackage/dist/build/web/index.html

@@ -2,4 +2,4 @@
         CSS.supports('top: constant(a)'))
       document.write(
         '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
-        (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><script src=https://res.wx.qq.com/open/js/jweixin-1.2.0.js></script><title></title><link rel=stylesheet href=/countqwh5/static/index.css></head><body><div id=app></div><script type=module src=/main.js></script><script src=/countqwh5/static/js/chunk-vendors.3957b4da.js></script><script src=/countqwh5/static/js/index.b86e851e.js></script></body></html>
+        (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><script src=https://res.wx.qq.com/open/js/jweixin-1.2.0.js></script><title></title><link rel=stylesheet href=/countqwh5/static/index.css></head><body><div id=app></div><script type=module src=/main.js></script><script src=/countqwh5/static/js/chunk-vendors.3957b4da.js></script><script src=/countqwh5/static/js/index.47b38872.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/static/js/index.47b38872.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/static/js/pages-user-customerDetail.3c3448ee.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/static/js/pages-user-customerDetail.88d33464.js


BIN
unpackage/dist/build/web/web.zip


Some files were not shown because too many files changed in this diff