1、新增旧货市场
2、新增用户等级
This commit is contained in:
+13
-6
@@ -51,7 +51,8 @@
|
||||
</el-button>
|
||||
</el-input>
|
||||
<view class="flex flex-col justify-start items-start pointer w-100p">
|
||||
<view v-for="(item, index) in list" :key="index" class="content-item-wrap" @click="openDownload(item.files[0])">
|
||||
<view v-for="(item, index) in list" :key="index" class="content-item-wrap"
|
||||
@click="openDownload(item._id, item.files[0])">
|
||||
<file-word theme="outline" size="80" fill="#4a90e2" strokeLinecap="square"/>
|
||||
<view class="content">
|
||||
<text class="title">{{ item.name }}</text>
|
||||
@@ -108,12 +109,18 @@ export default {
|
||||
})
|
||||
this.list = rows
|
||||
},
|
||||
toMySchool(){
|
||||
toMySchool() {
|
||||
vk.navigateTo({
|
||||
url: '/pages/user/school'
|
||||
})
|
||||
},
|
||||
openDownload(url){
|
||||
async openDownload(id, url) {
|
||||
await vk.callFunction({
|
||||
url: 'client/article/list/pub/addDownload',
|
||||
data: {
|
||||
id
|
||||
}
|
||||
})
|
||||
window.open(url)
|
||||
}
|
||||
},
|
||||
@@ -202,7 +209,7 @@ export default {
|
||||
justify-content: flex-start;
|
||||
flex-direction: column;
|
||||
|
||||
.title{
|
||||
.title {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
@@ -219,11 +226,11 @@ export default {
|
||||
border-right: 2px solid #bbb;
|
||||
}
|
||||
|
||||
:first-child{
|
||||
:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
:last-child{
|
||||
:last-child {
|
||||
border-right: none
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user