diff --git a/components/system-news/system-news.vue b/components/system-news/system-news.vue
index 0c5ec7a..7533f30 100644
--- a/components/system-news/system-news.vue
+++ b/components/system-news/system-news.vue
@@ -7,7 +7,7 @@
一键已读
-
+
@@ -53,6 +53,27 @@
}
},
methods: {
+ returnRouter(item) {
+ if (item.refType == 2) {
+ uni.navigateTo({
+ url: '/pages/resource/articeDetail?id=' + item.refId
+ });
+ } else if (item.refType == 4) {
+ uni.navigateTo({
+ url: '/pages/resource/qaDetail?id=' + item.refId
+ });
+ } else {
+ if (item.conType == '10') {
+ uni.navigateTo({
+ url: '/pages/resource/microDetail?id=' + item.refId
+ });
+ } else if (item.conType == '20') {
+ uni.navigateTo({
+ url: '/pages/resource/courseDetail?id=' +item.refId
+ });
+ }
+ }
+ },
cancel() {
this.modalShow = false;
},
diff --git a/pages/my/myMedal.vue b/pages/my/myMedal.vue
index 2dab94e..8719381 100644
--- a/pages/my/myMedal.vue
+++ b/pages/my/myMedal.vue
@@ -14,7 +14,7 @@
我的勋章
-
+
{{me.medalName}}
@@ -26,6 +26,26 @@
+
+
+
+
+
+
+ {{medalData.medalName}} LV.{{medalData.medalLevel}}
+
+
+ {{medalData.requirement}}
+
+
+
+
+
+ LV.{{index+1}}
+
+
+
+
@@ -35,8 +55,12 @@
export default {
data(){
return {
+ show:false,
fileBaseUrl:this.$config.fileUrl,
medalList:[],
+ medalData:{},
+ medalConfig:[],
+ rules:[],
}
},
computed: {
@@ -44,8 +68,22 @@
},
mounted() {
this.getMedal();
+ this.getConfig();
},
methods:{
+ getConfig() {// 获取勋章配置
+ apiStat.userMedalConfig().then(res=>{
+ if(res.status == 200) {
+ this.medalConfig = res.result;
+ }
+ })
+ },
+ handelClick(me) {
+ this.medalData = me;
+ this.show = true;
+ let data = this.medalConfig.find(it=>it.id ==me.medalId);
+ this.rules = JSON.parse(data.rules);
+ },
getMedal() {
apiStat.userMedal(this.userInfo.aid).then(res=>{
if(res.status == 200) {
@@ -62,6 +100,45 @@
background: url(../../static/images/me-bg.png) no-repeat 100% / 100%;
background-position: 0 0;
padding-top: 220upx;
+ /deep/ .u-popup__content{
+ border-radius: 16upx;
+ }
+ .medel-show-box{
+ position: relative;
+ background: url(../../static/images/show-bg.png) no-repeat 100% / 100%;
+ background-position: 0 0;
+ padding-bottom: 80upx;
+ .img{
+ position: absolute;
+ right:40upx;
+ top:40upx
+ }
+ .medal-info-top{
+ text-align: center;
+ margin-top: 152upx;
+ .title-info{
+ font-size: 40upx;
+ font-weight: 500;
+ color: #333333;
+ margin-top: 26upx;
+ }
+ .title-text{
+ margin-top: 24upx;
+ font-size: 28upx;
+ color: #999999;
+ }
+ }
+ .medal-info-flex{
+ display: flex;
+ overflow-x: auto;
+ padding: 60upx 52upx;
+ .medal-info-index{
+ text-align: center;
+ margin-right: 60upx;
+ }
+ }
+
+ }
.medal-img{
text-align: center;
.peo{
diff --git a/static/images/cancel.png b/static/images/cancel.png
new file mode 100644
index 0000000..59c35bf
Binary files /dev/null and b/static/images/cancel.png differ
diff --git a/static/images/show-bg.png b/static/images/show-bg.png
new file mode 100644
index 0000000..eb0d754
Binary files /dev/null and b/static/images/show-bg.png differ