居民社群

This commit is contained in:
shijingjing
2023-03-22 17:53:49 +08:00
parent 2f98f6bc09
commit 73d84875c3
3 changed files with 35 additions and 16 deletions

View File

@@ -30,7 +30,7 @@
</div>
</div>
<div class="card-right">
<div class="xnr" @click="$linkTo('/mods/AppFarmerBank/AppFarmerBank')">
<div class="xnr" @click="$linkTo('/mods/AppNewFarmer/AppNewFarmer')">
<div class="bottom-word">
<p>丰都新农人</p>
<div>新农人新经济</div>

View File

@@ -10,7 +10,7 @@
<div class="tips">
<div class="name-tip" v-if="groupInfo.name">
<div class="name">{{ groupInfo.name }}</div>
<div class="count">({{ groupInfo.personCount }})</div>
<!-- <div class="count">({{ groupInfo.personCount }})</div> -->
</div>
</div>
</div>
@@ -18,9 +18,11 @@
<div class="jionGroup">
<!-- 长按保存图片或扫码加入群聊 -->
<!-- 通过扫一扫加入与通过插件加入只能选一种 -->
<cell class="group" :url='picUrl' v-if="picUrl"></cell>
<cell class="group" contactText="点击加入群聊" :url='picUrl' v-if="picUrl"></cell>
</div>
<div class="pic">
<img src="https://cdn.cunwuyun.cn/fengdu/mdpi_img-chongqing.png" alt="">
</div>
@@ -53,8 +55,11 @@ export default {
id: {
handler(v) {
if(v) {
this.picUrl = null
this.$nextTick(()=> {
this.picUrl = this.list.filter(i=> i.id == v)[0].qrCode
this.groupInfo = this.list.filter(i => i.id == v)[0]
})
}
}
}
@@ -74,7 +79,7 @@ export default {
this.dictList = res.data.records.map(e=> {
return {
value: e.id,
label: e.name
label: e.name? e.name: '未命名群聊'
}
})
}
@@ -112,6 +117,13 @@ export default {
font-size: 28px;
}
.tishi {
color: #3D3D3D;
font-size: 28px;
font-weight: 400;
text-align: center;
}
.header {
width: 100%;
height: 100%;
@@ -145,22 +157,24 @@ export default {
font-weight: 600;
color: #333333;
.name {
width: 165px;
width: 100%;
height: 100%;
line-height: 50px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.count {
width: calc(100% - 165px);
height: 100%;
line-height: 50px;
}
// .count {
// width: calc(100% - 165px);
// height: 100%;
// line-height: 50px;
// }
}
}
div {
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;

View File

@@ -24,9 +24,9 @@
<img class="result-img" v-show="item.myRecord.assessmentType == 3" src="https://cdn.cunwuyun.cn/qujing/buhege.png" alt="">
</div>
<div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div>
<div class="tips" v-if="item.examinationType">{{ item.examinationType==0? '学习测试':'考试认证' }}</div>
<div class="tips" v-if="item.examinationType" :class="item.examinationType == 0? 'auth': ''">{{ item.examinationType==0? '学习测试':'考试认证' }}</div>
</div>
<div class="card_bottom col_blue" @click="handleToTest(item.id)">{{ item.myRecord? '重新考试':'参加考试'}}</div>
<div class="card_bottom col_blue" @click="handleToTest(item)">{{ item.myRecord? '重新考试':'参加考试'}}</div>
</div>
</scroll-view>
</div>
@@ -110,7 +110,8 @@ export default {
}
})
},
handleToTest(id) {
handleToTest({id, examination_duration: time }) {
console.log(time);
if(!this.user.areaId) {
this.showAuth = true;
this.testId = id;
@@ -223,7 +224,7 @@ export default {
.result {
position: absolute;
right: 0;
top: 10px;
top: 15px;
.result-img {
width: 200px;
height: 200px;
@@ -254,6 +255,10 @@ export default {
color: #FFF;
}
.auth {
background: #8F5AFF;
}
}
.card_bottom {