Merge pull request 'xbx' (#124) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/124
This commit is contained in:
commit
d96bce28b1
@ -1,5 +1,10 @@
|
|||||||
|
let build = []
|
||||||
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
build = ['transform-remove-console']
|
||||||
|
}
|
||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [
|
presets: [
|
||||||
'@vue/cli-plugin-babel/preset'
|
'@vue/cli-plugin-babel/preset'
|
||||||
]
|
],
|
||||||
|
plugins: [...build]
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
"@vue/cli-service": "~4.5.0",
|
"@vue/cli-service": "~4.5.0",
|
||||||
"@vue/compiler-sfc": "^3.0.0-0",
|
"@vue/compiler-sfc": "^3.0.0-0",
|
||||||
"@vue/eslint-config-typescript": "^5.0.2",
|
"@vue/eslint-config-typescript": "^5.0.2",
|
||||||
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
||||||
"eslint": "^6.7.2",
|
"eslint": "^6.7.2",
|
||||||
"eslint-plugin-vue": "^7.0.0-0",
|
"eslint-plugin-vue": "^7.0.0-0",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^4.14.1",
|
||||||
|
@ -233,6 +233,7 @@ interface VideoDetail{
|
|||||||
share: number;
|
share: number;
|
||||||
watch: number;
|
watch: number;
|
||||||
score: string;
|
score: string;
|
||||||
|
statusdesc: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function videodetail(data?: any,ifupdate?: number) {
|
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,
|
updatedAt: res.data.updated_at,
|
||||||
watch: res.data.watch,
|
watch: res.data.watch,
|
||||||
share: res.data.share,
|
share: res.data.share,
|
||||||
score: res.data.score
|
score: res.data.score,
|
||||||
|
statusdesc: res.data.statusdesc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<div class="num">{{(score+'').split('.')[1]?score:score+'.0'}} {{lan.$t('fen')}}</div>
|
<div class="num">{{(score+'').split('.')[1]?score:score+'.0'}} {{lan.$t('fen')}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="all" @click="findall(replyid)" >
|
<div class="all" @click="findall(replyid)" >
|
||||||
<span>={{lan.$t('suoyouhuifu')}}</span>
|
<span>{{lan.$t('suoyouhuifu')}}</span>
|
||||||
<img src="@/static/images/arrowdownblue.png" alt="">
|
<img src="@/static/images/arrowdownblue.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -118,13 +118,20 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
setup(prop,context){
|
setup(prop,context){
|
||||||
const lan: any = useI18n();
|
const lan: any = useI18n();
|
||||||
const reviewlist=ref({})
|
const reviewlist=ref<any>({data: []})
|
||||||
const commentval=ref<string>('')
|
const commentval=ref<string>('')
|
||||||
const uinfo=ref<any>({})
|
const uinfo=ref<any>({})
|
||||||
const replylist =ref({})
|
const replylist =ref({})
|
||||||
const videoid=ref(useRoute().query.id)
|
const videoid=ref(useRoute().query.id)
|
||||||
|
const url = useRoute().path
|
||||||
onMounted(async () => {
|
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(useRoute().query)
|
||||||
console.log(store.state.userinfo.memberid,"userifno")
|
console.log(store.state.userinfo.memberid,"userifno")
|
||||||
|
@ -28,12 +28,14 @@
|
|||||||
@change="getquhao"
|
@change="getquhao"
|
||||||
class="getcode"
|
class="getcode"
|
||||||
style="width: 50%"
|
style="width: 50%"
|
||||||
|
option-label-prop="label"
|
||||||
show-search
|
show-search
|
||||||
>
|
>
|
||||||
<a-select-option
|
<a-select-option
|
||||||
v-for="(i, j) in quhaolist"
|
v-for="(i, j) in quhaolist"
|
||||||
:key="j"
|
:key="j"
|
||||||
:value="i.name + '+' + i.code"
|
:value="i.name + '+' + i.code"
|
||||||
|
:label="'+' + i.code"
|
||||||
>
|
>
|
||||||
{{ i.name }}+{{ i.code }}
|
{{ i.name }}+{{ i.code }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@ -394,6 +396,13 @@ export default defineComponent({
|
|||||||
function navto(url: string) {
|
function navto(url: string) {
|
||||||
router.push(url);
|
router.push(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getquhao(e?: any){
|
||||||
|
console.log(e)
|
||||||
|
phone.value.quhao = e.toString()
|
||||||
|
phone.value.quhao = phone.value.quhao.split("+")[1];
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
formLayout,
|
formLayout,
|
||||||
getcode,
|
getcode,
|
||||||
@ -408,6 +417,7 @@ export default defineComponent({
|
|||||||
navto,
|
navto,
|
||||||
lan,
|
lan,
|
||||||
quhaolist,
|
quhaolist,
|
||||||
|
getquhao
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -334,7 +334,7 @@
|
|||||||
{{ lan.$t("wanchengrenzheng") }}
|
{{ lan.$t("wanchengrenzheng") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="title sub-title">
|
<div class="title sub-title">
|
||||||
{{ lan.$t("shuru") }} {{ userinfo.mobile }}
|
{{ lan.$t("shuru") }}{{ userinfo.code }} {{ userinfo.mobile }}
|
||||||
{{ lan.$t("shoudaodeyzm") }}
|
{{ lan.$t("shoudaodeyzm") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-box">
|
<div class="form-box">
|
||||||
@ -381,14 +381,19 @@
|
|||||||
<!-- <a-input size="small" v-model:value="bindPhone.number" /> -->
|
<!-- <a-input size="small" v-model:value="bindPhone.number" /> -->
|
||||||
<a-input-group compact class="telbox">
|
<a-input-group compact class="telbox">
|
||||||
<a-select
|
<a-select
|
||||||
:default-value="quhaolist[0].code"
|
:default-value="quhaolist[0].name + '+' + quhaolist[0].code"
|
||||||
size="small"
|
size="small"
|
||||||
@change="getquhao"
|
@change="getquhao"
|
||||||
|
option-label-prop="label"
|
||||||
|
style="width: 1rem;"
|
||||||
|
show-search
|
||||||
>
|
>
|
||||||
<a-select-option
|
<a-select-option
|
||||||
v-for="(i, j) in quhaolist"
|
v-for="(i, j) in quhaolist"
|
||||||
:key="j"
|
:key="j"
|
||||||
:value="i.code"
|
:value="i.name + '+' + i.code"
|
||||||
|
|
||||||
|
:label="'+' + i.code"
|
||||||
>
|
>
|
||||||
{{ i.name }}+{{ i.code }}
|
{{ i.name }}+{{ i.code }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@ -740,6 +745,7 @@ export default defineComponent({
|
|||||||
function getquhao(e?: any) {
|
function getquhao(e?: any) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
myquhao.value = e.toString();
|
myquhao.value = e.toString();
|
||||||
|
myquhao.value = myquhao.value.split("+")[1];
|
||||||
}
|
}
|
||||||
// 是否显示修改密码框
|
// 是否显示修改密码框
|
||||||
const updatePasswordVisible: Ref<boolean> = ref(false);
|
const updatePasswordVisible: Ref<boolean> = ref(false);
|
||||||
@ -1036,6 +1042,7 @@ export default defineComponent({
|
|||||||
.telbox {
|
.telbox {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
// width: 200px;
|
||||||
}
|
}
|
||||||
.update-btn {
|
.update-btn {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<LiveCount :info="liveinfo.studentlist" :livestatus="liveinfo.livestatus" :zid="liveinfo.liveid"></LiveCount>
|
<LiveCount :info="liveinfo.studentlist" :livestatus="liveinfo.livestatus" :zid="liveinfo.liveid"></LiveCount>
|
||||||
</div>
|
</div>
|
||||||
<VideoReview class="review" v-if="liveinfo.livestatus == 2 && liveinfo.score != '0.0'" :videoinfo="liveinfo.score"></VideoReview>
|
<VideoReview class="review" v-if="liveinfo.livestatus == 2" :videoinfo="liveinfo.score"></VideoReview>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -2151,6 +2151,11 @@ babel-plugin-dynamic-import-node@^2.3.3:
|
|||||||
dependencies:
|
dependencies:
|
||||||
object.assign "^4.1.0"
|
object.assign "^4.1.0"
|
||||||
|
|
||||||
|
babel-plugin-transform-remove-console@^6.9.4:
|
||||||
|
version "6.9.4"
|
||||||
|
resolved "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz#b980360c067384e24b357a588d807d3c83527780"
|
||||||
|
integrity sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=
|
||||||
|
|
||||||
balanced-match@^1.0.0:
|
balanced-match@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
||||||
|
Loading…
Reference in New Issue
Block a user