hookehuyr

fix

...@@ -87,6 +87,7 @@ export default { ...@@ -87,6 +87,7 @@ export default {
87 created() { 87 created() {
88 }, 88 },
89 mounted() { 89 mounted() {
90 + // TAG: 视频组件控制
90 setTimeout(() => { 91 setTimeout(() => {
91 var mp = new MuiPlayer({ 92 var mp = new MuiPlayer({
92 container: '#mui-player-' + this.item.id, 93 container: '#mui-player-' + this.item.id,
......
...@@ -160,6 +160,7 @@ const onLoad = () => { ...@@ -160,6 +160,7 @@ const onLoad = () => {
160 .then(res => { 160 .then(res => {
161 if (res.data.code === 1) { 161 if (res.data.code === 1) {
162 replyList.value = _.concat(replyList.value, res.data.data.replylist); 162 replyList.value = _.concat(replyList.value, res.data.data.replylist);
163 + replyList.value = _.uniqBy(replyList.value, 'id');
163 offset.value = replyList.value.length; 164 offset.value = replyList.value.length;
164 loading.value = false; 165 loading.value = false;
165 // 数据全部加载完成 166 // 数据全部加载完成
...@@ -232,4 +233,4 @@ export default { ...@@ -232,4 +233,4 @@ export default {
232 } 233 }
233 } 234 }
234 } 235 }
235 -</style>
...\ No newline at end of file ...\ No newline at end of file
236 +</style>
......
...@@ -60,7 +60,7 @@ const getUserInfo = () => { ...@@ -60,7 +60,7 @@ const getUserInfo = () => {
60 60
61 const active = ref(0); // index 0 为简介,1 为留言 61 const active = ref(0); // index 0 为简介,1 为留言
62 const onClickTab = ({ title }) => { 62 const onClickTab = ({ title }) => {
63 - console.warn(title); 63 + // console.warn(title);
64 }; 64 };
65 // 监听路由变化 65 // 监听路由变化
66 watch(() => $route.path, (v) => { 66 watch(() => $route.path, (v) => {
...@@ -162,4 +162,4 @@ export default { ...@@ -162,4 +162,4 @@ export default {
162 } 162 }
163 } 163 }
164 } 164 }
165 -</style>
...\ No newline at end of file ...\ No newline at end of file
165 +</style>
......
...@@ -95,6 +95,7 @@ const onLoad = () => { ...@@ -95,6 +95,7 @@ const onLoad = () => {
95 .then(res => { 95 .then(res => {
96 if (res.data.code === 1) { 96 if (res.data.code === 1) {
97 commentList.value = _.concat(commentList.value, res.data.data); 97 commentList.value = _.concat(commentList.value, res.data.data);
98 + commentList.value = _.uniqBy(commentList.value, 'id');
98 offset.value = commentList.value.length; 99 offset.value = commentList.value.length;
99 loading.value = false; 100 loading.value = false;
100 // 数据全部加载完成 101 // 数据全部加载完成
...@@ -312,4 +313,4 @@ export default { ...@@ -312,4 +313,4 @@ export default {
312 box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.06); 313 box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.06);
313 } 314 }
314 } 315 }
315 -</style>
...\ No newline at end of file ...\ No newline at end of file
316 +</style>
......
...@@ -77,6 +77,7 @@ let user_info = reactive({ ...@@ -77,6 +77,7 @@ let user_info = reactive({
77 77
78 // 保存用户信息 78 // 保存用户信息
79 const saveInfo = () => { 79 const saveInfo = () => {
80 + // TODO: 需要一个修改儿童信息的接口
80 let url = $route.query.type === 'Add' ? 'add_performer' : 'add_performer'; 81 let url = $route.query.type === 'Add' ? 'add_performer' : 'add_performer';
81 axios.post(`/srv/?a=${url}`, { 82 axios.post(`/srv/?a=${url}`, {
82 kg_id: user_info.kg_id, 83 kg_id: user_info.kg_id,
...@@ -149,4 +150,4 @@ export default { ...@@ -149,4 +150,4 @@ export default {
149 } 150 }
150 } 151 }
151 } 152 }
152 -</style>
...\ No newline at end of file ...\ No newline at end of file
153 +</style>
......