diff --git a/babel.config.js b/babel.config.js index e955840..96ef322 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,10 @@ +let build = [] +if (process.env.NODE_ENV === 'production') { + build = ['transform-remove-console'] +} module.exports = { presets: [ '@vue/cli-plugin-babel/preset' - ] + ], + plugins: [...build] } diff --git a/package.json b/package.json index 4b9544e..2fee0c7 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0-0", "@vue/eslint-config-typescript": "^5.0.2", + "babel-plugin-transform-remove-console": "^6.9.4", "eslint": "^6.7.2", "eslint-plugin-vue": "^7.0.0-0", "node-sass": "^4.14.1", diff --git a/src/api/index.ts b/src/api/index.ts index b63c94e..602c62c 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -233,6 +233,7 @@ interface VideoDetail{ share: number; watch: number; score: string; + statusdesc: string; } export async function videodetail(data?: any,ifupdate?: number) { @@ -264,8 +265,8 @@ export async function videodetail(data?: any,ifupdate?: number) { updatedAt: res.data.updated_at, watch: res.data.watch, share: res.data.share, - score: res.data.score - + score: res.data.score, + statusdesc: res.data.statusdesc } } diff --git a/src/components/ReviewItem.vue b/src/components/ReviewItem.vue index 76693cf..f740f15 100644 --- a/src/components/ReviewItem.vue +++ b/src/components/ReviewItem.vue @@ -14,7 +14,7 @@
{{(score+'').split('.')[1]?score:score+'.0'}} {{lan.$t('fen')}}
- ={{lan.$t('suoyouhuifu')}} + {{lan.$t('suoyouhuifu')}}
diff --git a/src/components/VideoReview.vue b/src/components/VideoReview.vue index 2e12fde..9fcad07 100644 --- a/src/components/VideoReview.vue +++ b/src/components/VideoReview.vue @@ -118,13 +118,20 @@ export default defineComponent({ }, setup(prop,context){ const lan: any = useI18n(); - const reviewlist=ref({}) + const reviewlist=ref({data: []}) const commentval=ref('') const uinfo=ref({}) const replylist =ref({}) const videoid=ref(useRoute().query.id) + const url = useRoute().path onMounted(async () => { - reviewlist.value=await getcommentlist({type: 2,id: videoid.value}) + let type = 1; + if(url == '/regime/livedetail'){ + type = 1; + }else{ + type = 2; + } + reviewlist.value=await getcommentlist({type: type,id: videoid.value}) }) console.log(useRoute().query) console.log(store.state.userinfo.memberid,"userifno") diff --git a/src/views/login/Sign.vue b/src/views/login/Sign.vue index 3c8c0de..61a38cb 100644 --- a/src/views/login/Sign.vue +++ b/src/views/login/Sign.vue @@ -28,12 +28,14 @@ @change="getquhao" class="getcode" style="width: 50%" + option-label-prop="label" show-search > {{ i.name }}+{{ i.code }} @@ -394,6 +396,13 @@ export default defineComponent({ function navto(url: string) { router.push(url); } + + function getquhao(e?: any){ + console.log(e) + phone.value.quhao = e.toString() + phone.value.quhao = phone.value.quhao.split("+")[1]; + } + return { formLayout, getcode, @@ -408,6 +417,7 @@ export default defineComponent({ navto, lan, quhaolist, + getquhao }; }, }); diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index 078e2ac..eed3ab5 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -334,7 +334,7 @@ {{ lan.$t("wanchengrenzheng") }}
- {{ lan.$t("shuru") }} {{ userinfo.mobile }} + {{ lan.$t("shuru") }}{{ userinfo.code }} {{ userinfo.mobile }} {{ lan.$t("shoudaodeyzm") }}
@@ -381,14 +381,19 @@ {{ i.name }}+{{ i.code }} @@ -740,6 +745,7 @@ export default defineComponent({ function getquhao(e?: any) { console.log(e); myquhao.value = e.toString(); + myquhao.value = myquhao.value.split("+")[1]; } // 是否显示修改密码框 const updatePasswordVisible: Ref = ref(false); @@ -1036,6 +1042,7 @@ export default defineComponent({ .telbox { margin-left: 15px; font-size: 12px; + // width: 200px; } .update-btn { font-size: 11px; diff --git a/src/views/regime/Livedetail.vue b/src/views/regime/Livedetail.vue index d8d698b..10b60d5 100644 --- a/src/views/regime/Livedetail.vue +++ b/src/views/regime/Livedetail.vue @@ -7,7 +7,7 @@
- +