完成
This commit is contained in:
parent
b4d0efd059
commit
b5e81088af
@ -34,6 +34,9 @@ export default defineComponent({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
div {
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
.one-line-hide {
|
.one-line-hide {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div class="user" style="overflow: hidden;">
|
<div class="user" style="overflow: hidden;">
|
||||||
<div class="user" :class="{'seltop': selnum == 0}">
|
<div class="user" :class="{'seltop': selnum == 0}">
|
||||||
<img :src="userinfo.img" alt="" class="head">
|
<img :src="userinfo.img" alt="" class="head">
|
||||||
<div class="name">{{userinfo.username}}</div>
|
<div class="name">{{userinfo.name}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ export default createStore({
|
|||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
setUserInfo(state, userinfo){
|
setUserInfo(state, userinfo){
|
||||||
|
userinfo.money = userinfo.money.toString()
|
||||||
state.userinfo = userinfo
|
state.userinfo = userinfo
|
||||||
},
|
},
|
||||||
login(state, islogin: boolean){
|
login(state, islogin: boolean){
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
>
|
>
|
||||||
<a-radio :value="4">
|
<a-radio :value="4">
|
||||||
<img src="@/static/images/bank.png" alt="" class="icon icon1" />
|
<img src="@/static/images/bank.png" alt="" class="icon icon1" />
|
||||||
<span>银行卡zzz</span>
|
<span>银行卡</span>
|
||||||
</a-radio>
|
</a-radio>
|
||||||
<a-radio :value="2">
|
<a-radio :value="2">
|
||||||
<img src="@/static/images/walletzfb.png" alt="" class="icon" />
|
<img src="@/static/images/walletzfb.png" alt="" class="icon" />
|
||||||
|
@ -34,14 +34,14 @@
|
|||||||
<div class="input-box teach-lang">
|
<div class="input-box teach-lang">
|
||||||
<div class="label">教授</div>
|
<div class="label">教授</div>
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="userinfo.tlanguage"
|
v-model:value="userinfo.tlanguageValue"
|
||||||
style="width: 171px"
|
style="width: 171px"
|
||||||
size="small"
|
size="small"
|
||||||
ref="select"
|
ref="select"
|
||||||
:getPopupContainer="triggerNode => triggerNode.parentNode"
|
:getPopupContainer="triggerNode => triggerNode.parentNode"
|
||||||
>
|
>
|
||||||
<a-select-option v-for="(item, index) in ['英语', '法语']" :key="index" :value="item">
|
<a-select-option v-for="(item, index) in chiveslist[1]" :key="index" :value="item.languageid">
|
||||||
{{ item }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</div>
|
</div>
|
||||||
@ -169,7 +169,7 @@
|
|||||||
:getPopupContainer="triggerNode => triggerNode.parentNode"
|
:getPopupContainer="triggerNode => triggerNode.parentNode"
|
||||||
>
|
>
|
||||||
<a-select-option v-for="(item, index) in currencylist" :key="index" :value="item.value">
|
<a-select-option v-for="(item, index) in currencylist" :key="index" :value="item.value">
|
||||||
{{item.name}}
|
{{item.value}}{{item.name}}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</div>
|
</div>
|
||||||
@ -524,28 +524,29 @@ export default defineComponent({
|
|||||||
// for(let i in toRaw(formData.value).willsay){
|
// for(let i in toRaw(formData.value).willsay){
|
||||||
// console.log(toRaw(formData.value).willsay[i])
|
// console.log(toRaw(formData.value).willsay[i])
|
||||||
// }
|
// }
|
||||||
|
const uesrinfo = toRaw(formData.value)
|
||||||
for(let m=0;m<toRaw(chiveslist.value).length;m++){
|
for(let m=0;m<toRaw(chiveslist.value).length;m++){
|
||||||
for(const i in toRaw(formData.value).willsayValue){
|
for(const i in uesrinfo.willsayValue){
|
||||||
// console.log(toRaw(formData.value).willsayValue[i])
|
// console.log(toRaw(formData.value).willsayValue[i])
|
||||||
|
|
||||||
if(typeof toRaw(formData.value).willsay[i].name=='string'){
|
if(typeof uesrinfo.willsay[i].name=='string'){
|
||||||
|
|
||||||
// console.log(toRaw(chiveslist.value))
|
// console.log(toRaw(chiveslist.value))
|
||||||
if(toRaw(formData.value).willsay[i].name==toRaw(chiveslist.value)[m].name){
|
if(uesrinfo.willsay[i].name==toRaw(chiveslist.value)[m].name){
|
||||||
toRaw(formData.value).willsayValue[i].name=toRaw(chiveslist.value)[m].languageid
|
uesrinfo.willsayValue[i].name=toRaw(chiveslist.value)[m].languageid
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
toRaw(formData.value).willsayValue[i].name=toRaw(formData.value).willsay[i].name
|
uesrinfo.willsayValue[i].name=uesrinfo.willsay[i].name
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
toRaw(formData.value).willsayValue[i].level=toRaw(formData.value).willsay[i].level
|
uesrinfo.willsayValue[i].level=uesrinfo.willsay[i].level
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(toRaw(formData.value).willsayValue)
|
console.log(uesrinfo)
|
||||||
|
|
||||||
console.log(toRaw(formData.value));
|
// console.log(toRaw(formData.value));
|
||||||
putmember(toRaw(formData.value))
|
putmember(uesrinfo)
|
||||||
// putmember(toRaw(formData.value)).then((res) => {
|
// putmember(toRaw(formData.value)).then((res) => {
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
// })
|
// })
|
||||||
|
@ -252,7 +252,9 @@ export default defineComponent({
|
|||||||
salelist.value=await saleinfo({bdate:dateString[0],edate:dateString[1],status:state.value,page:page.value});
|
salelist.value=await saleinfo({bdate:dateString[0],edate:dateString[1],status:state.value,page:page.value});
|
||||||
}
|
}
|
||||||
async function del(e: number){
|
async function del(e: number){
|
||||||
deleteaccount(e)
|
await deleteaccount(e);
|
||||||
|
accountlist.value = await getwallect();
|
||||||
|
|
||||||
}
|
}
|
||||||
async function pagechange(e: any) {
|
async function pagechange(e: any) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
<div :class="tabindex == 0 ? 'on' : ''" @click="tabchange(0)">
|
<div :class="tabindex == 0 ? 'on' : ''" @click="tabchange(0)">
|
||||||
审核中
|
审核中
|
||||||
</div>
|
</div>
|
||||||
<div :class="tabindex == 1 ? 'on' : ''" @click="tabchange(1)">
|
<div :class="tabindex == 2 ? 'on' : ''" @click="tabchange(2)">
|
||||||
未通过
|
未通过
|
||||||
</div>
|
</div>
|
||||||
<div :class="tabindex == 2 ? 'on' : ''" @click="tabchange(2)">
|
<div :class="tabindex == 1 ? 'on' : ''" @click="tabchange(1)">
|
||||||
已发布
|
已发布
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
:share="i.share"
|
:share="i.share"
|
||||||
></VideoItem>
|
></VideoItem>
|
||||||
</div>
|
</div>
|
||||||
<div class="list" v-if="tabindex == 1">
|
<div class="list" v-if="tabindex == 2">
|
||||||
<VideoItem
|
<VideoItem
|
||||||
v-for="(i, j) in videolist.data"
|
v-for="(i, j) in videolist.data"
|
||||||
:key="j"
|
:key="j"
|
||||||
@ -67,7 +67,7 @@
|
|||||||
:share="i.share"
|
:share="i.share"
|
||||||
></VideoItem>
|
></VideoItem>
|
||||||
</div>
|
</div>
|
||||||
<div class="list" v-if="tabindex == 2">
|
<div class="list" v-if="tabindex == 1">
|
||||||
<VideoItem
|
<VideoItem
|
||||||
v-for="(i, j) in videolist.data"
|
v-for="(i, j) in videolist.data"
|
||||||
:key="j"
|
:key="j"
|
||||||
@ -228,7 +228,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
async function tabchange(e: number) {
|
async function tabchange(e: number) {
|
||||||
tabindex.value = e;
|
tabindex.value = e;
|
||||||
videolist.value = await getvideolist({title: input.value,page:page.value,status:e});
|
videolist.value = await getvideolist({title: input.value,page:page.value,status:e == 4 ? '' : 0});
|
||||||
// console.log(videolist)
|
// console.log(videolist)
|
||||||
}
|
}
|
||||||
async function sel(){
|
async function sel(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user