| xqd
@@ -52,13 +52,21 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <view class="draft">
|
|
|
- <view class="draftLabel" style="padding-left: 30rpx;padding-right: 30rpx;">
|
|
|
- <image style="width: 34rpx;height: 34rpx;" src="/static/zuopin_icon.png" mode="" class="labelIcon">
|
|
|
- </image>
|
|
|
- {{isLogin?'作品':'精选案例'}}
|
|
|
- </view>
|
|
|
+
|
|
|
<view style="padding-left: 15rpx;padding-right: 15rpx;">
|
|
|
+ <view class="draft">
|
|
|
+ <view class="draftLabel" style="padding-left: 30rpx;padding-right: 30rpx;">
|
|
|
+ <image style="width: 34rpx;height: 34rpx; " src="/static/zuopin_icon.png" mode="" class="labelIcon">
|
|
|
+ </image>
|
|
|
+ <view style="margin-left: 14rpx;">数字人作品</view>
|
|
|
+ </view>
|
|
|
+ <view class="draftList1" v-if="isLogin">
|
|
|
+ <view class="isLoginList" v-for="(item,index) in ['推荐作品','我的作品']" :key="index" >
|
|
|
+ <view class="item" @click="getInfoWorkList(index)" :style="{ backgroundColor: current== index?'#207CF4':'',color:current == index?'white':''}">{{item}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="draftList" v-else>我的作品</view>
|
|
|
+
|
|
|
<empty v-if="workList.length==0" :tipTxt="isLogin?'暂无作品':'暂无案例'"></empty>
|
|
|
<view class="draftList" v-else>
|
|
|
<view class="itemBox" v-for="(item,index) in workList" @click="goWorkDetail(item)">
|
| xqd
@@ -171,7 +179,7 @@
|
|
|
showInitLead: false,
|
|
|
showLead2: false,
|
|
|
showLead1: true,
|
|
|
-
|
|
|
+current:0,
|
|
|
demoList: [],
|
|
|
|
|
|
show: false,
|
| xqd
@@ -260,6 +268,7 @@
|
|
|
// this.getIndexData()
|
|
|
// },
|
|
|
methods: {
|
|
|
+
|
|
|
nextLead() {
|
|
|
// this.showLead1 = false
|
|
|
// this.showLead2 = true
|
| xqd
@@ -380,10 +389,22 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
-
|
|
|
- async getWorkList() {
|
|
|
+getInfoWorkList(index){
|
|
|
+ this.current =index
|
|
|
+if(index == 0){
|
|
|
+ let params = {
|
|
|
+ is_select:1
|
|
|
+ }
|
|
|
+ this.getWorkList(params)
|
|
|
+}
|
|
|
+else{
|
|
|
+ this.getWorkList(null)
|
|
|
+}
|
|
|
+},
|
|
|
+
|
|
|
+ async getWorkList(params) {
|
|
|
let _this = this
|
|
|
- let res = await this.$http('digitalMen.workList', {})
|
|
|
+ let res = await this.$http('digitalMen.workList', params)
|
|
|
if (res.code == 0) {
|
|
|
// uni.stopPullDownRefresh()
|
|
|
this.workList = res.data
|