Browse Source

首页,登录,我的,页面样式

feature-1.0
helming 3 years ago
parent
commit
6634cd09b9
  1. 2
      main.js
  2. 32
      pages.json
  3. 217
      pages/index/index.vue
  4. 4
      pages/index/upload/upload.vue
  5. 46
      pages/login/login.vue
  6. 4
      pages/profit/profit.vue
  7. 326
      pages/userInfo/userInfo.vue
  8. BIN
      static/emoBack.png
  9. BIN
      static/friendBack.png
  10. BIN
      static/gifBack.png
  11. BIN
      static/headBack.png
  12. BIN
      static/iconAbout.png
  13. BIN
      static/iconContactUs.png
  14. BIN
      static/iconInvite.png
  15. BIN
      static/iconInviteLog.png
  16. BIN
      static/iconNotice.png
  17. BIN
      static/iconWithdraw.png
  18. BIN
      static/index-default.png
  19. BIN
      static/index-select.png
  20. BIN
      static/iwatchBack.png
  21. BIN
      static/material.png
  22. BIN
      static/mine-default.png
  23. BIN
      static/mine-select.png
  24. BIN
      static/phoneBack.png
  25. BIN
      static/theme-default.png
  26. BIN
      static/theme-select.png
  27. BIN
      static/upload.png

2
main.js

@ -6,7 +6,7 @@ import common from './utils/common.js'
// const baseURL = 'http://localhost:7010' // const baseURL = 'http://localhost:7010'
//const baseURL = 'http://81.69.47.31:7010' //const baseURL = 'http://81.69.47.31:7010'
// const baseURL = 'http://bnyer.vaiwan.com' // const baseURL = 'http://bnyer.vaiwan.com'
const baseURL = 'http://aipdbt.natappfree.cc' const baseURL = 'http://fu7avs.natappfree.cc'
Vue.prototype.$baseURL = baseURL; Vue.prototype.$baseURL = baseURL;

32
pages.json

@ -3,9 +3,10 @@
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页", "navigationBarTitleText": "次元Hub",
"enablePullDownRefresh": false, "enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#FFC542" "navigationBarBackgroundColor": "#141b29",
"navigationStyle": "custom"
} }
}, },
{ {
@ -41,7 +42,7 @@
"style": { "style": {
"navigationBarTitleText": " ", "navigationBarTitleText": " ",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#22343C" "navigationBarBackgroundColor": "#141b29"
} }
}, { }, {
@ -96,8 +97,9 @@
{ {
"path": "pages/userInfo/userInfo", "path": "pages/userInfo/userInfo",
"style": { "style": {
"navigationBarTitleText": "我的", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": true,
"navigationStyle": "custom"
} }
} }
], ],
@ -208,22 +210,24 @@
} }
] ]
}], }],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "white",
"navigationBarTitleText": "bnyer", "navigationBarTitleText": "次元Hub",
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#141b29",
"backgroundColor": "#F8F8F8", "backgroundColor": "#141b29",
"rpxCalcMaxDeviceWidth": 750, // rpx px 960 "rpxCalcMaxDeviceWidth": 750, // rpx px 960
"rpxCalcBaseDeviceWidth": 375, // rpx 使 rpx px 375 "rpxCalcBaseDeviceWidth": 375, // rpx 使 rpx px 375
"rpxCalcIncludeWidth": 750 // rpx rpx 750 "rpxCalcIncludeWidth": 750 // rpx rpx 750
}, },
//tab //tab
"tabBar": { "tabBar": {
"color": "#899A96", "color": "#FFFFFF",
"selectedColor": "#1A1A1A", "selectedColor": "#30a9c0",
"borderStyle": "black", "borderStyle": "black",
"backgroundColor": "#30444E", "backgroundColor": "#141b29",
"fontSize": "12px",
"spacing": "5px",
"height": "100px",
"list": [{ "list": [{
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"iconPath": "static/index-default.png", "iconPath": "static/index-default.png",

217
pages/index/index.vue

@ -1,8 +1,7 @@
<template> <template>
<view class="container"> <view class="container">
<view class="top"> <view class="top">
<uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="banner" :current="current" :mode="mode" <uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="banner" :current="current" :mode="mode" :dots-styles="dotsStyles" >
field="bannerName">
<swiper class="swiper-box" @change="changeSwiper" :current="swiperDotIndex" :autoplay="autoplay" <swiper class="swiper-box" @change="changeSwiper" :current="swiperDotIndex" :autoplay="autoplay"
:interval="interval" :duration="duration" circular> :interval="interval" :duration="duration" circular>
<swiper-item v-for="(item, index) in banner" :key="index"> <swiper-item v-for="(item, index) in banner" :key="index">
@ -16,21 +15,20 @@
</view> </view>
<view class="middle"> <view class="middle">
<uni-row class="middle-uni-row" gutter="40"> <view class="middle-div">
<uni-col :span="12" class="middle-uni-col" v-for="(val, i) in funcList" :index="i" :key="i"> <view class="middle-btn-item" v-for="(val, i) in funcList" :index="i" :key="i">
<view class="grid-item-box"> <view class="grid-item-box" @click="change(val.url)">
<!-- <uni-icons type="image" :size="30" color="#777" /> --> <!-- <uni-icons type="image" :size="30" color="#777" /> -->
<text class="text uni-white">{{ val.title }}</text> <text class="text uni-white">{{ val.title }}</text>
<image :src="val.icon" class="iconImage" mode="aspectFill" /> <image :src="val.icon" class="iconImage" mode="aspectFill" />
</view> </view>
</uni-col> </view>
</uni-row> </view>
</view> </view>
<view class="foot"> <view class="foot">
<uni-row class="foot-uni-row" gutter="88"> <view class="foot-div">
<uni-col :span="8" class="foot-uni-col" v-for="(params, v) in list" :index="v" :key="v"> <view class="grid-item-box uni-white" v-for="(params, v) in list" :index="v" :key="v">
<view class="grid-item-box uni-white">
<!-- <uni-icons type="image" :size="30" color="#777" /> --> <!-- <uni-icons type="image" :size="30" color="#777" /> -->
<view class="icom-div"> <view class="icom-div">
<image :src="params.icon" class="listIconImage" mode="aspectFill" /> <image :src="params.icon" class="listIconImage" mode="aspectFill" />
@ -38,8 +36,7 @@
<text class="text">{{ params.text }}</text> <text class="text">{{ params.text }}</text>
<text class="text">{{ params.num }}</text> <text class="text">{{ params.num }}</text>
</view> </view>
</uni-col> </view>
</uni-row>
</view> </view>
</view> </view>
@ -60,7 +57,15 @@
} }
], ],
current: 0, current: 0,
mode: 'nav', mode: 'default',
dotsStyles: {
backgroundColor: 'rgba(255, 255, 255, .5)',
border: '1px rgba(0, 0, 0, .3) solid',
color: '#fff',
selectedBackgroundColor: 'rgba(255, 255, 255, .9)',
selectedBorder: '1px rgba(0, 0, 0, .9) solid',
bottom: 50
},
swiperDotIndex: 0, swiperDotIndex: 0,
autoplay: true, autoplay: true,
interval: 5000, interval: 5000,
@ -95,7 +100,7 @@
}, },
{ {
typeId: 4, typeId: 4,
text: '朋友圈', text: '背景图',
num: '10', num: '10',
icon: '/static/friendBack.png' icon: '/static/friendBack.png'
}, },
@ -117,42 +122,54 @@
created(){ created(){
const userInfo = uni.getStorageSync('userInfo') const userInfo = uni.getStorageSync('userInfo')
if (!userInfo) { if (!userInfo) {
console.log('havent userInfo')
uni.showModal({ uni.showModal({
content: '艺术家账户过期,请重新登录!', content: '艺术家账户过期,请重新登录!',
showCancel: false, showCancel: false,
success() { success() {
// //
// uni.reLaunch({ uni.reLaunch({
// url: '/pages/login/login' url: '/pages/login/login'
// }); });
} }
}); });
} else { } else {
this.userInfo = userInfo; this.userInfo = userInfo;
console.log('have userInfo') this.queryCreatorTypeImgNum();
this.getBanner();
} }
}, },
onLoad(){ onLoad(){
},
onShow(){
const userInfo = uni.getStorageSync('userInfo')
if (userInfo) {
this.queryCreatorTypeImgNum(); this.queryCreatorTypeImgNum();
this.getBanner(); this.getBanner();
}
},
onPullDownRefresh() {
const userInfo = uni.getStorageSync('userInfo')
if (userInfo) {
this.queryCreatorTypeImgNum();
this.getBanner();
}
}, },
methods: { methods: {
changeSwiper(e){ changeSwiper(e){
this.current = e.detail.current; this.current = e.detail.current;
}, },
change(e) { change(e) {
this.pageUrl = this.funcList[e.detail.index].url // this.pageUrl = this.funcList[e.detail.index].url
console.log('this.pageUrl',this.pageUrl)
/** 跳转指定页面*/ /** 跳转指定页面*/
uni.navigateTo({ uni.navigateTo({
url: this.pageUrl url: e
// url: this.pageUrl
}); });
}, },
clickItem(e) { clickItem(e) {
this.swiperDotIndex = e this.swiperDotIndex = e
console.log('this.swiperDotIndex', this.swiperDotIndex)
}, },
// banner // banner
linkTo(item) { linkTo(item) {
@ -182,7 +199,7 @@
async queryCreatorTypeImgNum() { async queryCreatorTypeImgNum() {
let that = this; let that = this;
const res = await queryCreatorTypeImgNum(that.userInfo.id) const res = await queryCreatorTypeImgNum(that.userInfo.id)
console.log('res',res) // console.log('res',res)
if (res.data.code === 200) { if (res.data.code === 200) {
that.list[0].num = res.data.data.headNum that.list[0].num = res.data.data.headNum
that.list[1].num = res.data.data.gifNum that.list[1].num = res.data.data.gifNum
@ -202,7 +219,7 @@
} }
</script> </script>
<style lang="scss"> <style scoped lang="scss">
.container{ .container{
font-family:Franklin Gothic Medium, Arial Narrow, Arial, sans-serif; font-family:Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;
} }
@ -211,60 +228,22 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.grid-item-box { .grid-item-box {
flex: 1;
// position: relative;
/* #ifndef APP-NVUE */
display: flex; display: flex;
/* #endif */
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 10rpx 0;
}
.grid-item-box-row {
flex: 1;
// position: relative;
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: center;
padding: 10rpx 0;
} }
.swiper-box { .swiper-box {
height: 260rpx; height: 50vh;
} }
.swiper-item { .swiper-item {
/* #ifndef APP-NVUE */ background-color: rgba(255, 255, 255, .3);
display: flex;
/* #endif */
flex-direction: column;
justify-content: center;
align-items: center;
height: 290rpx;
color: #fff;
}
.swiper-item0 {
background-color: #cee1fd;
}
.swiper-item1 {
background-color: #b2cef7;
}
.swiper-item2 {
background-color: #cee1fd;
} }
.image {
width: 750rpx;
}
/* #ifndef APP-NVUE */ /* #ifndef APP-NVUE */
::v-deep .image img { ::v-deep .image img {
@ -272,12 +251,12 @@
-khtml-user-drag: none; -khtml-user-drag: none;
-moz-user-drag: none; -moz-user-drag: none;
-o-user-drag: none; -o-user-drag: none;
user-drag: none; // user-drag: none;
} }
/* #endif */ /* #endif */
@media screen and (min-width: 500rpx) { @media screen and (min-width: 375rpx) {
.uni-swiper-dot-box { .uni-swiper-dot-box {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -290,81 +269,87 @@
} }
} }
.uni-bg-blue {
background-color: #007aff;
}
.iconImage{
width:90rpx;
height:90rpx;
}
.listIconImage{
width:60rpx;
height:60rpx;
}
</style>
<style scoped lang="scss">
.container { .container {
min-height: 100vh; min-height: 100vh;
background: #FFC542; background: #141b29;
border-top: 2rpx solid #FFC542; border-top: 2rpx solid #141b29;
position: relative;
.top { .top {
width: 638rpx; width: 100%;
// height: 272rpx; height: 50vh;
margin: 40rpx auto;
border-radius: 50rpx;
overflow: hidden;
} }
.middle { .middle {
width: 638rpx; position: absolute;
top: calc(50vh - 60rpx);
left: 0;
right: 0;
.middle-div {
width: 670rpx;
height: calc(20vh - 30rpx);
margin: 0 auto; margin: 0 auto;
background: #1d2734;
border-radius: 40rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.middle-btn-item {
width: 50%;
}
}
.grid-item-box { .grid-item-box {
height: 360rpx; height: 100%;
background: rgb(62, 213, 152);
border-radius: 25px;
position: relative;
.text { .text {
font-size: 48rpx; font-size: 36rpx;
position: absolute; margin-bottom: 20rpx;
top: 84rpx;
left: auto;
right: auto;
} }
.iconImage { .iconImage {
position: absolute; width: 100rpx;
bottom: 0; height: 100rpx;
left: auto;
right: auto;
width: 158rpx;
height: 186rpx;
} }
} }
} }
.foot { .foot {
margin-top: 40rpx; position: absolute;
padding: 56rpx; top: calc(70vh - 40rpx);
background: #2A3C44; left: 0;
border-radius: 80rpx 0px 0px 0px; right: 0;
height: calc(30vh - 30rpx);
.foot-div {
width: 670rpx;
height: 100%;
margin: 0 auto;
background: #1d2734;
border-radius: 40rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.grid-item-box { .grid-item-box {
margin-bottom: 14rpx; width: 170rpx;
height: 50%;
//padding: 40rpx;
.icom-div { .icom-div {
background: #30444E; //background: #0a6375;
border-radius: 24rpx; border-radius: 24rpx;
.listIconImage { .listIconImage {
height: 130rpx; height: 80rpx;
width: 130rpx; width: 80rpx;
} }
@ -373,7 +358,7 @@
.text { .text {
text-align: center; text-align: center;
font-size: 24rpx; font-size: 24rpx;
line-height: 30rpx; line-height: 24rpx;
margin-top: 10rpx; margin-top: 10rpx;
} }

4
pages/index/upload/upload.vue

@ -215,9 +215,9 @@
for (var i = 0; i < tempFilePaths.length; i++) { for (var i = 0; i < tempFilePaths.length; i++) {
//const tempFile = e.tempFiles[i]; //const tempFile = e.tempFiles[i];
uni.uploadFile({ uni.uploadFile({
url: 'http://48uu7a.natappfree.cc/file/upload', url: 'http://pc2zer.natappfree.cc/file/upload',
name: 'file', name: 'file',
//url: 'http://localhost:7010/file/uploadBatch', // url: 'http://pc2zer.natappfree.cc/file/uploadBatch',
// name: 'files', // name: 'files',
header:{ header:{
"Content-Type": "multipart/form-data" "Content-Type": "multipart/form-data"

46
pages/login/login.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="login-body uni-bg-color"> <view class="login-body uni-bg-color">
<div class="auto-center"> <div class="auto-center">
<div class="logo-div"></div> <div class="logo-div">^_^</div>
<div class="welcome-text"> <div class="welcome-text">
<p class="welcome-title uni-white">进入次元Hub</p> <p class="welcome-title uni-white">进入次元Hub</p>
<p class="welcome-subtitle uni-secondary-color">开启你的创作之旅~</p> <p class="welcome-subtitle uni-secondary-color">开启你的创作之旅~</p>
@ -10,7 +10,7 @@
<uni-forms-item required name="phone"> <uni-forms-item required name="phone">
<template #label> <template #label>
<div class="form-label l-username"> <div class="form-label l-username">
<uni-icons type="contact" size="18" color="#FFC542"></uni-icons> <uni-icons type="contact" size="18" color="#FFFFFF"></uni-icons>
</div> </div>
</template> </template>
<uni-easyinput <uni-easyinput
@ -24,13 +24,13 @@
<uni-forms-item required name="password"> <uni-forms-item required name="password">
<template #label> <template #label>
<div class="form-label l-password"> <div class="form-label l-password">
<uni-icons type="locked-filled" size="18" color="#FF575F"></uni-icons> <uni-icons type="locked-filled" size="18" color="#FFFFFF"></uni-icons>
</div> </div>
</template> </template>
<uni-easyinput type="password" v-model="formData.password" placeholder="请输入密码" :inputBorder="false" /> <uni-easyinput type="password" v-model="formData.password" placeholder="请输入密码" :inputBorder="false" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<button class="login-btn" type="primary" @click="$noMultipleClicks(login,formData)">登录<uni-icons type="arrow-right" size="20" color="#fff"></uni-icons></button> <button class="login-btn" type="primary" @click="$noMultipleClicks(login,formData)">登录</button>
<div class="foget-password uni-secondary-color"> <div class="foget-password uni-secondary-color">
<span >忘记密码</span> <span >忘记密码</span>
</div> </div>
@ -170,22 +170,24 @@
<style scoped lang="scss"> <style scoped lang="scss">
.login-body { .login-body {
min-height: 100vh; min-height: 100vh;
background-color: #22343C; background-color: #141b29;
.auto-center { .auto-center {
width: 622rpx; width: 622rpx;
margin: 0 auto; margin: 0 auto;
border-top: 1rpx solid #22343C; border-top: 1rpx solid #141b29;
border-bottom: 1rpx solid #22343C; border-bottom: 1rpx solid #141b29;
} }
.logo-div { .logo-div {
width: 86rpx; width: 86rpx;
height: 86rpx; height: 86rpx;
background: linear-gradient(180.00deg, rgba(63.59,223.05,158.63,1) 0%,rgba(62,213,152,1) 100%); background: linear-gradient(180.00deg, #30a9c0 0%, #30a9c0 100%);
box-shadow: 0 4rpx 8rpx rgba(15, 218, 137, 0.3);
border-radius: 24rpx; border-radius: 24rpx;
margin-top: 154rpx; margin-top: 154rpx;
text-align: center;
line-height: 86rpx;
font-weight: 600;
} }
.welcome-text { .welcome-text {
margin-top: 72rpx; margin-top: 72rpx;
@ -206,29 +208,28 @@
.form-label { .form-label {
width: 76rpx; width: 76rpx;
height: 96rpx; height: 96rpx;
border-radius: 24rpx; border-radius: 24rpx 0 0 24rpx;
line-height: 96rpx; line-height: 96rpx;
text-align: center; text-align: center;
margin-right: 24rpx;
margin-bottom: 4rpx;
margin-top: 4rpx;
} }
.l-username { .l-username {
background: rgb(98, 91, 57); background: #1d2734;
} }
.l-password { .l-password {
background: rgb(98, 58, 66); background: #1d2734;
} }
} }
.login-btn { .login-btn {
background: linear-gradient(180.00deg, rgba(63.59,223.05,158.63,1) 0%,rgba(62,213,152,1) 100%); height: 100rpx;
box-shadow: 0 4rpx 8rpx rgba(15, 218, 137, 0.3); line-height: 100rpx;
background: linear-gradient(180.00deg, rgba(255, 255, 255, 1) 0%,rgba(255, 255, 255, 1) 100%);
border-radius: 24rpx; border-radius: 24rpx;
margin-top: 52rpx; margin-top: 52rpx;
color: #494951;
} }
.foget-password { .foget-password {
text-align: right; text-align: right;
@ -239,22 +240,23 @@
} }
.login-body { .login-body {
::v-deep .uni-forms-item { ::v-deep .uni-forms-item {
margin-bottom: 0 !important;
} }
} }
.login-body { .login-body {
::v-deep input { ::v-deep input {
height: 100rpx; height: 96rpx;
border-bottom: 4rpx solid rgba(0, 0, 0, 0.05); background: #1d2734 !important;
background: none !important;
font-size: 36rpx; font-size: 36rpx;
color: rgb(150, 167, 175); color: rgb(150, 167, 175);
border-radius: 0 24rpx 24rpx 0;
} }
} }
.login-body { .login-body {
::v-deep .uni-easyinput__content { ::v-deep .uni-easyinput__content {
background: none !important; background: #1d2734 !important;
border-radius: 0 24rpx 24rpx 0;
} }
} }
</style> </style>

4
pages/profit/profit.vue

@ -191,7 +191,6 @@ export default {
created() { created() {
const userInfo = uni.getStorageSync('userInfo') const userInfo = uni.getStorageSync('userInfo')
if (!userInfo) { if (!userInfo) {
console.log('havent userInfo')
uni.showModal({ uni.showModal({
content: '艺术家账户过期,请重新登录!', content: '艺术家账户过期,请重新登录!',
showCancel: false, showCancel: false,
@ -204,7 +203,6 @@ export default {
}); });
} else { } else {
this.userInfo = userInfo; this.userInfo = userInfo;
console.log('have userInfo')
} }
this.queryFrontProfitInfo(); this.queryFrontProfitInfo();
this.queryFrontPreDownloadAndInviteCount(); this.queryFrontPreDownloadAndInviteCount();
@ -353,7 +351,7 @@ export default {
}; };
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.container { .container {
font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif; font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;
} }

326
pages/userInfo/userInfo.vue

@ -1,38 +1,45 @@
<template> <template>
<view class="container"> <view class="container">
<view class="top"> <view class="top">
<view class="background-image-dim">
<image :src="userInfo.img" style="width: 100%; height: 100%;" :model="'center'"></image>
</view> </view>
<view class="dim-div"></view>
<view class="my-message"> <view class="my-message">
<view class="left"> <view class="left">
<image :src="userInfo.img" mode=""></image> <image :src="userInfo.img" :model="'center'"></image>
</view> </view>
<view class="right"> <view class="right">
<view class="user-info-div">
<view class="username uni-white">
{{userInfo.name}} {{userInfo.name}}
</view>
<view class="user-info uni-secondary-color">
<view class="nums-item">粉丝 <span class="num-span uni-white">{{creatorFansLikeInfo.fansNum}}</span> </view>
<view class="nums-item">点赞 <span class="num-span uni-white">{{creatorFansLikeInfo.likeNum}}</span> </view>
<view class="nums-item">收藏 <span class="num-span uni-white">{{creatorFansLikeInfo.collectNum}}</span> </view>
</view>
</view>
</view>
</view> </view>
</view> </view>
<view class="middle"> <view class="middle">
<uni-section title="我的数据" type="line" padding> <view class="middle-item-box" v-for="(item, index) in middleList" :index="index" :key="index" :class="item.class">
<uni-group mode="card"> <view class="middle-btn-item" @click="change(item)" >
<view>粉丝数 {{creatorFansLikeInfo.fansNum}} </view> <div class="text uni-white">{{item.title}}</div>
<view>点赞数 {{creatorFansLikeInfo.likeNum}}</view> <image :src="item.img" class="listIconImage" :mode="'aspectFill'" />
<view>收藏数 {{creatorFansLikeInfo.collectNum}} </view> </view>
</uni-group> </view>
</uni-section>
</view> </view>
<view class="foot"> <view class="foot">
<uni-section title="更多服务" type="line"> <view class="foot-item-box" v-for="(item, index) in list" :index="index" :key="index" >
<uni-group mode="card"> <view class="list-click-item" @click="change(item)">
<uni-grid :column="3" @change="change" :showBorder="false" :square="true">
<uni-grid-item v-for="(item, index) in list" :index="index" :key="index">
<view class="grid-item-box" style="background-color: #fff;">
<!-- <uni-icons type="image" :size="30" color="#777" /> --> <!-- <uni-icons type="image" :size="30" color="#777" /> -->
<image :src="item.img" class="listIconImage" mode="aspectFill" /> <image :src="item.img" class="listIconImage" :mode="'aspectFill'" />
<text class="text">{{item.title}}</text> <div class="text uni-white">{{item.title}}</div>
<uni-icons type="right" size="12" color="#ffffff" />
</view>
</view> </view>
</uni-grid-item>
</uni-grid>
</uni-group>
</uni-section>
</view> </view>
</view> </view>
</template> </template>
@ -44,6 +51,19 @@
export default { export default {
data() { data() {
return { return {
middleList: [
{
url: '/pages-userInfo/extends/extends',
title: '邀请他人',
img: '/static/iconInvite.png',
class: 'meddle-invite'
}, {
url: '/pages-userInfo/withdraw/withdrawIndex',
title: '提现记录',
img: '/static/iconWithdraw.png',
class: 'meddle-withdraw'
}
],
list: [{ list: [{
url: '/pages-userInfo/about/about', url: '/pages-userInfo/about/about',
title: '常见问题', title: '常见问题',
@ -52,25 +72,20 @@
url: '/pages-userInfo/contact/contact', url: '/pages-userInfo/contact/contact',
title: '联系我们', title: '联系我们',
img: '/static/iconContactUs.png' img: '/static/iconContactUs.png'
}, {
url: '/pages-userInfo/extends/extends',
title: '邀请他人',
img: '/static/iconInvite.png'
}, { }, {
url: '/pages-userInfo/notice/notice', url: '/pages-userInfo/notice/notice',
title: '通知公告', title: '通知公告',
img: '/static/iconNotice.png' img: '/static/iconNotice.png'
}, {
url: '/pages-userInfo/withdraw/withdrawIndex',
title: '提现记录',
img: '/static/iconWithdraw.png'
},{ },{
url: '/pages-userInfo/setting/setting', url: '/pages-userInfo/setting/setting',
title: '系统设置', title: '系统设置',
img: '/static/iconInviteLog.png' img: '/static/iconInviteLog.png'
}], }],
pageUrl: '', pageUrl: '',
userInfo: {}, userInfo: {
name: "Adming",
img: "/static/material.png"
},
creatorFansLikeInfo: { creatorFansLikeInfo: {
fansNum: 0, fansNum: 0,
likeNum: 0, likeNum: 0,
@ -81,7 +96,6 @@
created() { created() {
const userInfo = uni.getStorageSync('userInfo') const userInfo = uni.getStorageSync('userInfo')
if (!userInfo) { if (!userInfo) {
console.log('havent userInfo')
uni.showModal({ uni.showModal({
content: '艺术家账户过期,请重新登录!', content: '艺术家账户过期,请重新登录!',
showCancel: false, showCancel: false,
@ -94,21 +108,22 @@
}); });
} else { } else {
this.userInfo = userInfo; this.userInfo = userInfo;
console.log('have userInfo')
} }
// //
this.getCreatorInfoFansLike(); this.getCreatorInfoFansLike();
}, },
onPullDownRefresh() {
this.getCreatorInfoFansLike();
},
methods: { methods: {
change(e) { change(e) {
let { // let {
index // index
} = e.detail // } = e.detail
this.pageUrl = this.list[index].url // this.pageUrl = this.list[index].url
console.log('this.pageUrl', this.pageUrl)
/** 跳转指定页面*/ /** 跳转指定页面*/
uni.navigateTo({ uni.navigateTo({
url: this.pageUrl url: e.url
}); });
}, },
@ -117,10 +132,8 @@
async getCreatorInfoFansLike() { async getCreatorInfoFansLike() {
let that = this; let that = this;
const res = await getCreatorInfoFansLike(that.userInfo.id) const res = await getCreatorInfoFansLike(that.userInfo.id)
console.log('res', res)
if (res.data.code === 200) { if (res.data.code === 200) {
that.creatorFansLikeInfo = res.data.data that.creatorFansLikeInfo = res.data.data
console.log('creatorFansLikeInfo', that.creatorFansLikeInfo)
} else { } else {
uni.showModal({ uni.showModal({
content: '获取粉丝喜欢收藏数量数据加载失败!', content: '获取粉丝喜欢收藏数量数据加载失败!',
@ -132,21 +145,63 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.container { .container {
font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif; font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;
min-height: 100vh;
background: #141b29;
}
.top {
width: 100vw;
height: 25vh;
position: relative;
.background-image-dim {
width: 100%;
height: 100%;
image {
width: 100%;
height: 100%;
}
}
.dim-div {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
/* 主要内容 */
background: rgba(29, 39, 52, .6);
/* 模糊大小就是靠的blur这个函数中的数值大小 */
backdrop-filter: blur(25rpx);
}
.my-message {
width: calc(100% - 80rpx);
height: calc(100% - 80rpx);
position: absolute;
top: 0;
left: 0;
}
} }
.my-message { .my-message {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: flex-end;
padding: 20rpx; padding: 40rpx;
.left { .left {
width: 100rpx; width: 150rpx;
height: 100rpx; height: 150rpx;
margin-right: 20rpx; margin-right: 40rpx;
>image { >image {
width: 100%; width: 100%;
@ -157,109 +212,126 @@
.right { .right {
font-size: 12px; font-size: 12px;
height: 150rpx;
display: flex;
align-items: center;
.user-info-div {
.username {
font-size: 32rpx;
line-height: 48rpx;
font-weight: 600;
} }
.user-info {
display: flex;
justify-content: flex-start;
.nums-item {
margin-right: 20rpx;
.num-span {
margin-left: 10rpx;
} }
}
// .container {
// .top {
// width: 100vw;
// image { }
// width: 100vw;
// height: 400rpx; }
// }
// .uni-searchbar { }
// border: 1px solid #11A8FD; }
// margin: 0 40rpx;
// border-radius: 16rpx;
// padding: 0;
// .uni-searchbar__box { .middle {
// padding: 0; width: 670rpx;
// border-radius: 16rpx !important; margin: 40rpx auto;
display: flex;
justify-content: space-between;
//.meddle-invite {
// background-image: linear-gradient(45deg, #243949 0%, #30a9c0 100%);
//} //}
//
//.meddle-withdraw {
// background-image: linear-gradient(45deg, #243949 0%, #2580B3 100%);
//} //}
// >text { .middle-item-box {
// font-weight: bold; width: 315rpx;
// font-size: 14px; height: 150rpx;
// display: block; //background: #1d2734;
// text-align: center; border-radius: 20rpx;
// padding-top: 40rpx; overflow: hidden;
// padding-bottom: 20rpx; backdrop-filter: blur(25rpx);
// } background-image: linear-gradient(45deg, #243949 0%, #30a9c0 100%);
// .user-list {
// display: flex;
// justify-content: flex-start;
// align-items: center;
// overflow-x: auto;
// .user-list-box {
// width: 140rpx;
// padding: 20rpx;
// text-align: center;
// image {
// width: 100rpx;
// height: 100rpx;
// border-radius: 100rpx;
// }
// text { .middle-btn-item {
// font-size: 24rpx; height: 100%;
// color: #1E1E1E; width: 100%;
// text-align: center; position: relative;
// }
// }
// }
// }
// .middle { .listIconImage{
// text-align: center; width: 140rpx;
// height: calc(100vh - 248rpx); height: 140rpx;
// padding-top: 40rpx; position: absolute;
bottom: -20rpx;
left: -20rpx;
}
// text { .text {
// font-weight: bold; text-align: right;
// font-size: 14px; font-size: 32rpx;
// display: block; line-height: 40rpx;
// } width: 500rpx;
position: absolute;
top: 30rpx;
right: 30rpx;
}
// image {
// width: 40rpx;
// height: 40rpx;
// }
// }
// }
.grid-item-box {
flex: 1;
// position: relative;
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
align-items: center;
justify-content: center;
padding: 15px 0;
} }
.grid-item-box-row { }
flex: 1;
// position: relative; }
/* #ifndef APP-NVUE */
.foot {
width: 670rpx;
margin: 0 auto;
.foot-item-box {
width: calc(100% - 40rpx);
background: #1d2734;
border-radius: 20rpx;
padding: 20rpx;
margin-bottom: 20rpx;
.list-click-item {
display: flex; display: flex;
/* #endif */
flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: space-between;
padding: 15px 0; height: 60rpx;
}
.listIconImage{ .listIconImage{
width:2rem; width: 40rpx;
height:2rem; height: 40rpx;
}
.text {
font-size: 24rpx;
line-height: 40rpx;
width: 500rpx;
}
}
} }
}
</style> </style>

BIN
static/emoBack.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
static/friendBack.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
static/gifBack.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/headBack.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
static/iconAbout.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
static/iconContactUs.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
static/iconInvite.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
static/iconInviteLog.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
static/iconNotice.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
static/iconWithdraw.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
static/index-default.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
static/index-select.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
static/iwatchBack.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 997 B

BIN
static/material.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
static/mine-default.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
static/mine-select.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
static/phoneBack.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
static/theme-default.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
static/theme-select.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 10 KiB

BIN
static/upload.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Loading…
Cancel
Save