Kaynağa Gözat

溧水app、小程序代码修改

sunyadv 5 yıl önce
ebeveyn
işleme
1af17bb61f

+ 1 - 1
lss_vue/src/routes.js

@@ -73,7 +73,7 @@ let routes = [
             { path: '/myMessage', component: myMessage, name: '我的消息', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myAssets', component: myAssets, name: '我的资产', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myScore', component: myScore, name: '我的评分', meta: {keepAlive: true, parentPath:'/tab_my'} },
-            { path: '/myScore/:id', component: myScoreDetail, name: '我的评分详情', meta: {keepAlive: true, parentPath:'/tab_my'} },
+            { path: '/myScore/:uid/:time', component: myScoreDetail, name: '我的评分详情', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/mySuggest', component: mySuggest, name: '我的建议', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myAddress', component: myAddress, name: '通讯录', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myGrade/:id/:name', component: myGrade, name: '打分页面', meta: {keepAlive: true, parentPath:'/tab_my'} },

+ 1 - 1
lss_vue/src/views/Home.vue

@@ -15,7 +15,7 @@
             <mt-tab-item id="tab3" @click.native="changeTab(3)">
                 <img v-if="selected == 'tab3'" slot="icon" src="../assets/image/tab_my_choose.png">
                 <img v-else slot="icon" src="../assets/image/tab_my.png">
-                <mt-badge v-if="num != 0" class="myMsg" size="small" type="error">{{num}}</mt-badge>
+                <mt-badge v-if="num != 0 && num != null" class="myMsg" size="small" type="error">{{num}}</mt-badge>
                 我的
             </mt-tab-item>
         </mt-tabbar>

+ 3 - 3
lss_vue/src/views/my/myScore.vue

@@ -18,7 +18,7 @@
                         <div>个人分:{{item.personalScore}}分</div>
                         <div>建议分:{{item.ideaScore}}分</div>
                         <div>评分人:{{item.rater}}</div>
-                        <div>时间:{{item.scoringYearMonth}} <span class="toDetail" v-on:click="toDetail(item.scoreId)">查看详情 ></span></div>
+                        <div>时间:{{item.scoringYearMonth}} <span class="toDetail" v-on:click="toDetail(item.uid,item.scoringYearMonth)">查看详情 ></span></div>
                     </div>
                 </li>
                 <div class="order" v-if="haveMore">
@@ -104,8 +104,8 @@
                 }
             },
 
-            toDetail(id) {
-                this.$router.push("/myScore/" + id)
+            toDetail(uid,time) {
+                this.$router.push("/myScore/" + uid + "/" + time)
             },
 
             jumpBack() {

+ 4 - 2
lss_vue/src/views/my/myScoreDetail.vue

@@ -50,7 +50,8 @@
 	export default {
 		data() {
 			return {
-                id: this.$route.params.id,
+                uid: this.$route.params.uid,
+                time: this.$route.params.time,
                 detail: '',
 			}
 		},
@@ -59,7 +60,8 @@
             getDetail() {
                 this.$indicator.open();
                 this.http.post(this.port.my.scoreDetail, {
-                    'scoreId': this.id,
+                    'uid': this.uid,
+                    'time': this.time,
                 } , 
                 res => {
                     this.$indicator.close();

+ 1 - 1
lss_vue_wx/src/routes.js

@@ -73,7 +73,7 @@ let routes = [
             { path: '/myMessage', component: myMessage, name: '我的消息', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myAssets', component: myAssets, name: '我的资产', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myScore', component: myScore, name: '我的评分', meta: {keepAlive: true, parentPath:'/tab_my'} },
-            { path: '/myScore/:id', component: myScoreDetail, name: '我的评分详情', meta: {keepAlive: true, parentPath:'/tab_my'} },
+            { path: '/myScore/:uid/:time', component: myScoreDetail, name: '我的评分详情', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/mySuggest', component: mySuggest, name: '我的建议', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myAddress', component: myAddress, name: '通讯录', meta: {keepAlive: true, parentPath:'/tab_my'} },
             { path: '/myGrade/:id/:name', component: myGrade, name: '打分页面', meta: {keepAlive: true, parentPath:'/tab_my'} },

+ 1 - 1
lss_vue_wx/src/views/Home.vue

@@ -15,7 +15,7 @@
             <mt-tab-item id="tab3" @click.native="changeTab(3)">
                 <img v-if="selected == 'tab3'" slot="icon" src="../assets/image/tab_my_choose.png">
                 <img v-else slot="icon" src="../assets/image/tab_my.png">
-                <mt-badge v-if="num != 0" class="myMsg" size="small" type="error">{{num}}</mt-badge>
+                <mt-badge v-if="num != 0 && num != null" class="myMsg" size="small" type="error">{{num}}</mt-badge>
                 我的
             </mt-tab-item>
         </mt-tabbar>

+ 3 - 3
lss_vue_wx/src/views/my/myScore.vue

@@ -18,7 +18,7 @@
                         <div>个人分:{{item.personalScore}}分</div>
                         <div>建议分:{{item.ideaScore}}分</div>
                         <div>评分人:{{item.rater}}</div>
-                        <div>时间:{{item.scoringYearMonth}} <span class="toDetail" v-on:click="toDetail(item.scoreId)">查看详情 ></span></div>
+                        <div>时间:{{item.scoringYearMonth}} <span class="toDetail" v-on:click="toDetail(item.uid,item.scoringYearMonth)">查看详情 ></span></div>
                     </div>
                 </li>
                 <div class="order" v-if="haveMore">
@@ -104,8 +104,8 @@
                 }
             },
 
-            toDetail(id) {
-                this.$router.push("/myScore/" + id)
+            toDetail(uid,time) {
+                this.$router.push("/myScore/" + uid + "/" + time)
             },
 
             jumpBack() {

+ 4 - 2
lss_vue_wx/src/views/my/myScoreDetail.vue

@@ -50,7 +50,8 @@
 	export default {
 		data() {
 			return {
-                id: this.$route.params.id,
+                uid: this.$route.params.uid,
+                time: this.$route.params.time,
                 detail: '',
 			}
 		},
@@ -59,7 +60,8 @@
             getDetail() {
                 this.$indicator.open();
                 this.http.post(this.port.my.scoreDetail, {
-                    'scoreId': this.id,
+                    'uid': this.uid,
+                    'time': this.time,
                 } , 
                 res => {
                     this.$indicator.close();