This commit is contained in:
闫世杰 2023-08-03 11:54:49 +08:00
parent da68810ac0
commit e1610c6bd5
3 changed files with 238 additions and 204 deletions

View File

@ -612,6 +612,14 @@
"enablePullDownRefresh": false
}
},
//
{
"path": "xxgl/index",
"style": {
"navigationBarTitleText": "下乡管理",
"enablePullDownRefresh": false
}
},
// 线
{
"path": "xskz/index",
@ -628,7 +636,6 @@
"enablePullDownRefresh": false
}
}
]
}
],

View File

@ -4,7 +4,7 @@
<u-loading-page :loading="load"></u-loading-page>
</view>
<view v-if="load == false">
<view class="top" :style="{ 'height': titleHeight + 'px' }">
<view class="top" :style="{ height: titleHeight + 'px' }">
<image class="bg" src="../../static/MyBg.png" mode=""></image>
<view class="avator_box" @click="GoPersonalCenter">
<view class="tou">
@ -33,25 +33,19 @@
<view class="nums">
{{ care }}
</view>
<view class="itms_name">
关注
</view>
<view class="itms_name"> 关注 </view>
</view>
<view class="fans_itm" @click="toCol()">
<view class="nums">
{{ colNum }}
</view>
<view class="itms_name">
收藏
</view>
<view class="itms_name"> 收藏 </view>
</view>
<view class="fans_itm" @click="toFans()">
<view class="nums">
{{ fans }}
</view>
<view class="itms_name">
粉丝
</view>
<view class="itms_name"> 粉丝 </view>
</view>
</view>
<view class="jifen_box">
@ -73,47 +67,35 @@
<image src="../../static/DunIcon.png" mode=""></image>
</view>
<view class="ji_word_box">
<view class="ji_word_title">
我的交易
</view>
<view class="ji_con">
作品交易订单
</view>
<view class="ji_word_title"> 我的交易 </view>
<view class="ji_con"> 作品交易订单 </view>
</view>
</view>
</view>
<view class="content_bott">
<view class="content_bott_itm" @click="toWork()">
<view class="content_bott_wods">
我的作品
</view>
<view class="content_bott_wods"> 我的作品 </view>
<view class="content_bott_arrow">
<image src="../../static/rightArrow.png" mode=""></image>
</view>
</view>
<view class="content_bott_itm" @click="tohdM()">
<view class="content_bott_wods">
活动管理
</view>
<view class="content_bott_wods"> 活动管理 </view>
<view class="content_bott_arrow">
<image src="../../static/rightArrow.png" mode=""></image>
</view>
</view>
<view class="content_bott_itm" @click="toOrderControl()">
<view class="content_bott_wods">
点单管理
</view>
<view class="content_bott_wods"> 点单管理 </view>
<view class="content_bott_arrow">
<image src="../../static/rightArrow.png" mode=""></image>
</view>
</view>
<view class="content_bott_itm" >
<view class="content_bott_itm" @click="toCountryside()">
<!-- @click="" -->
<view class="content_bott_wods">
下乡管理
</view>
<view class="content_bott_wods"> 下乡管理 </view>
<view class="content_bott_arrow">
<image src="../../static/rightArrow.png" mode=""></image>
</view>
@ -127,19 +109,14 @@
</view>
</view> -->
<view class="content_bott_itm" @click="myNews()">
<view class="content_bott_wods">
消息
</view>
<view class="content_bott_wods"> 消息 </view>
<view class="content_bott_arrow">
<image src="../../static/rightArrow.png" mode=""></image>
</view>
</view>
<view class="content_bott_itm" @click="toSz()">
<view class="content_bott_wods">
设置
</view>
<view class="content_bott_wods"> 设置 </view>
<view class="content_bott_arrow">
<image src="../../static/rightArrow.png" mode=""></image>
</view>
@ -147,215 +124,238 @@
</view>
</view>
<u-gap height="50" bgColor="#F4F5F7"></u-gap>
<tabbar tabbarId='5'></tabbar>
<tabbar tabbarId="5"></tabbar>
</view>
</view>
</template>
<script>
export default {
data () {
data() {
return {
load: true,
image: '',
userName: '',
userId: '',
point: '',
colNum: '',
fans: '',
care: '',
yhsf: '',
image: "",
userName: "",
userId: "",
point: "",
colNum: "",
fans: "",
care: "",
yhsf: "",
isUnread: false,
statusHeight: 0,
titleHeight: 90,
};
},
onReady () {
onReady() {
const systemMsg = uni.getSystemInfoSync();
this.statusHeight = systemMsg.statusBarHeight
this.statusHeight = systemMsg.statusBarHeight;
// #ifdef MP-WEIXIN
const menuButtonInfo = uni.getMenuButtonBoundingClientRect() //
this.titleHeight = 90 + menuButtonInfo.height + (menuButtonInfo.top - systemMsg.statusBarHeight) * 2
const menuButtonInfo = uni.getMenuButtonBoundingClientRect(); //
this.titleHeight =
90 +
menuButtonInfo.height +
(menuButtonInfo.top - systemMsg.statusBarHeight) * 2;
// #endif
},
onShow () {
this.getUserInfo()
onShow() {
this.getUserInfo();
},
methods: {
//
getUserInfo () {
let _this = this
this.http.request('/user/userInfo', {}, "GET").then(res => {
getUserInfo() {
let _this = this;
this.http
.request("/user/userInfo", {}, "GET")
.then((res) => {
if (res.code == 200) {
// let img = JSON.parse(res.data.images)
this.image = res.data.images
this.userName = res.data.userName
this.userId = res.data.id
this.yhsf = res.data.yhsf
this.point = res.data.point
this.getCol()
this.image = res.data.images;
this.userName = res.data.userName;
this.userId = res.data.id;
this.yhsf = res.data.yhsf;
this.point = res.data.point;
this.getCol();
}
}).catch(e => {
})
.catch((e) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
});
},
//
getCol () {
this.http.request('/worksCollection', {}, "GET").then(res => {
getCol() {
this.http
.request("/worksCollection", {}, "GET")
.then((res) => {
if (res.code == 200) {
if (res.data.length == 0) {
this.colNum = 0
this.colNum = 0;
} else {
this.colNum = res.data.total
this.colNum = res.data.total;
}
this.getCare()
this.getCare();
}
}).catch(e => {
})
.catch((e) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
});
},
//
getCare () {
this.http.request('/userFollow/myFollow', {}, "GET").then(res => {
getCare() {
this.http
.request("/userFollow/myFollow", {}, "GET")
.then((res) => {
if (res.code == 200) {
if (res.data.length == 0) {
this.care = 0
this.care = 0;
} else {
this.care = res.data.total
this.care = res.data.total;
}
this.getFans()
this.getFans();
}
}).catch(e => {
})
.catch((e) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
});
},
//
getFans () {
this.http.request('/userFollow/myFans', {}, "GET").then(res => {
getFans() {
this.http
.request("/userFollow/myFans", {}, "GET")
.then((res) => {
if (res.code == 200) {
if (res.data.length == 0) {
this.fans = 0
this.fans = 0;
} else {
this.fans = res.data.total
this.fans = res.data.total;
}
this.load = false
this.load = false;
}
}).catch(e => {
})
.catch((e) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
});
},
//
getTalkList () {
let _this = this
this.http.request('/chat/lists', {}, "GET").then(res => {
getTalkList() {
let _this = this;
this.http
.request("/chat/lists", {}, "GET")
.then((res) => {
if (res.code == 200) {
if (res.data.length > 0) {
res.data.forEach(function (item) {
if (item.unread > 0)
_this.isUnread = true
if (item.unread > 0) _this.isUnread = true;
});
}
}
})
}
}
}).catch(e => {
.catch((e) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
});
},
//
gopointsPg () {
gopointsPg() {
uni.navigateTo({
url: "/pagesB/MyPoints/MyPoints"
})
url: "/pagesB/MyPoints/MyPoints",
});
},
//
goOrderDetails () {
goOrderDetails() {
uni.navigateTo({
url: "/pagesB/MyOrder/MyOrder"
})
url: "/pagesB/MyOrder/MyOrder",
});
},
//
GoPersonalCenter () {
GoPersonalCenter() {
uni.navigateTo({
url: "/pagesB/PersonalCenter/PersonalCenter"
})
url: "/pagesB/PersonalCenter/PersonalCenter",
});
},
//
toCol () {
toCol() {
uni.navigateTo({
url: "/pagesA/my/myCollection"
})
url: "/pagesA/my/myCollection",
});
},
//
toFollow () {
toFollow() {
uni.navigateTo({
url: "/pagesA/my/myFollow?tab=0"
})
url: "/pagesA/my/myFollow?tab=0",
});
},
//
toFans () {
toFans() {
uni.navigateTo({
url: "/pagesA/my/myFollow?tab=1"
})
url: "/pagesA/my/myFollow?tab=1",
});
},
//
toWork () {
toWork() {
uni.navigateTo({
url: "/pagesA/my/myWoekList",
})
});
},
//
toOrderControl () {
toOrderControl() {
uni.navigateTo({
//
url: "OrderActControl",
})
});
},
//
toCountryside() {
uni.navigateTo({
//
url: "/pagesD/xxgl/index",
});
},
//
toAddress () {
toAddress() {
uni.navigateTo({
url: "/pagesA/ReceivingAddress/ReceivingAddress",
})
});
},
//
toSz () {
toSz() {
uni.navigateTo({
url: "/pagesA/my/logOut"
})
url: "/pagesA/my/logOut",
});
},
//
tohdM () {
tohdM() {
uni.navigateTo({
url: "/pagesA/activeManage/activeManage",
})
});
},
//
myNews () {
myNews() {
uni.navigateTo({
url: "/pagesA/msg/msg"
})
}
}
}
url: "/pagesA/msg/msg",
});
},
},
};
</script>
<style>
page {
background-color: #F4F5F7;
background-color: #f4f5f7;
}
</style>
@ -395,7 +395,7 @@ image {
margin-left: 24rpx;
.user_name_de {
color: #251B1D;
color: #251b1d;
font-size: 40rpx;
font-weight: 600;
@ -420,10 +420,9 @@ image {
.words {
margin-top: 16rpx;
color: #AFADB0;
color: #afadb0;
font-size: 24rpx;
}
}
.arrow {
@ -431,10 +430,8 @@ image {
height: 48rpx;
}
}
}
.content_area {
padding: 0 32rpx;
margin-bottom: 120rpx;
@ -447,18 +444,18 @@ image {
height: 160rpx;
border: 1px solid transparent;
border-radius: 8px;
background-color: #FFFFFF;
background-color: #ffffff;
.fans_itm {
.nums {
color: #251B1D;
color: #251b1d;
font-weight: bold;
font-family: DIN-Bold, DIN;
font-size: 16px;
}
.itms_name {
color: #AFADB0;
color: #afadb0;
font-size: 24rpx;
margin-top: 16rpx;
}
@ -477,7 +474,7 @@ image {
display: flex;
width: 332rpx;
height: 136rpx;
background-color: #FFFFFF;
background-color: #ffffff;
border-radius: 8px;
.ji_ico {
@ -492,12 +489,12 @@ image {
.ji_word_title {
font-size: 28rpx;
color: #251B1D;
color: #251b1d;
font-weight: 600;
}
.ji_con {
color: #AFADB0;
color: #afadb0;
font-size: 24rpx;
font-weight: 400;
margin-top: 8rpx;
@ -508,7 +505,7 @@ image {
.content_bott {
padding: 32rpx;
background-color: #FFFFFF;
background-color: #ffffff;
border-radius: 8px;
.content_bott_itm {
@ -519,7 +516,7 @@ image {
.content_bott_wods {
font-size: 28rpx;
color: #251B1D;
color: #251b1d;
font-weight: 600;
}

View File

@ -24,13 +24,29 @@
</view>
</view> -->
<view class="forms">
<view class="teamBox" v-for="(item, index) in list" :key="item.id">
<view
class="teamBox"
v-for="item in list"
:key="item.id"
@click="skip({ id: item.id })"
>
<view class="teamBox-top">
<image class="team-image" :src="item.linkPath" mode="scaleToFill" />
<view class="content">
<view class="content-title">
<text>{{ item.name }}</text>
</view>
<image
class="team-image"
src="https://cdn.uviewui.com/uview/album/1.jpg"
mode="scaleToFill"
/>
</view>
<view class="mask">
<view class="mask-play">
<image src="../../static/play.png"></image>
</view>
</view>
</view>
<view class="teamBox-bottom">
<view class="interactive">
<image src="../../static/play-1.png" mode=""></image>
@ -102,6 +118,12 @@ export default {
});
});
},
skip(query = {}) {
this.$router.push({
path: "/pagesD/xskz/details",
query,
});
},
playMask(obj) {
// this.videoList[index].play = false;
// var video = document.getElementById("video");
@ -163,44 +185,52 @@ export default {
}
.forms {
width: 90%;
margin: 40rpx auto 0rpx;
.teamBox {
.teamBox-top {
position: relative;
.team-image {
width: 100%;
height: 400rpx;
border: 2px solid red;
}
.mask {
.content {
position: relative;
z-index: 4;
.content-title {
position: absolute;
top: 0;
width: 100%;
height: 100%;
z-index: 99;
z-index: 10;
padding: 18rpx;
text {
// position: absolute;
// left: 60rpx;
color: #fff;
max-width: 500rpx;
overflow: hidden; /* 超出一行文字自动隐藏 */
text-overflow: ellipsis; /*文字隐藏后添加省略号*/
white-space: nowrap;
}
}
.team-image {
width: 100%;
height: 400rpx;
}
}
.mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 12;
display: flex;
align-items: center;
justify-content: center;
.mask-play {
image {
width: 60rpx;
height: 60rpx;
margin: 110rpx 0 0 300rpx;
}
}
}
}
.teamBox-bottom {
display: flex;
justify-content: space-between;
width: 100%;
padding: 15rpx 15rpx;
padding: 15rpx 32rpx;
background-color: #fff;
box-sizing: border-box;
.interactive {