56 changed files with 6853 additions and 6064 deletions
@ -1,43 +1,127 @@ |
|||||
<template> |
<template> |
||||
<view> |
<view class="myCollection"> |
||||
<text>这是我的收藏</text> |
<view class="myCollection-list"> |
||||
<view v-for="(item,index) in myCollection" :key="index"> |
<view class="imgList1"> |
||||
<image :src="item.imgUrl"></image> |
<image v-for="(item,index) in imgList" :key='index' class="img-box" |
||||
|
:style="'width:'+imgWidth+';height:'+imgHeight" :src="item.imgUrl" @click="targetDetail(item)" |
||||
|
mode=""></image> |
||||
|
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import {getCollectionList} from '@/api/myCollection.js' |
import { |
||||
|
listTiktokCollection |
||||
|
} from '@/api/userInfo.js' |
||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
myCollection:[] |
userInfo: {}, // 用户信息 |
||||
|
imgList: [], // 图片列表 |
||||
|
imgWidth: 0, // 图片宽 |
||||
|
imgHeight: 0, // 图片高 |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
} |
} |
||||
}, |
}, |
||||
onLoad() { |
created() { |
||||
this.getMyCollection(1) |
this.userInfo = uni.getStorageSync('userInfo') |
||||
|
uni.getSystemInfo({ |
||||
|
success: res => { |
||||
|
console.log(res) |
||||
|
this.imgWidth = res.windowWidth - 60 + 'rpx' |
||||
|
this.imgHeight = (res.windowWidth - 60) * 2 - 30 + 'rpx' |
||||
|
this.getImgList() |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
// 下拉刷新 |
||||
|
onPullDownRefresh() { |
||||
|
this.getImgList() |
||||
|
uni.stopPullDownRefresh() |
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
async getMyCollection(userId){ |
// 收藏图片列表 |
||||
let data = { |
async getImgList() { |
||||
userId : userId |
const res = await listTiktokCollection({ |
||||
|
userId: this.userInfo.id |
||||
|
}) |
||||
|
if (res.data.code === 200) { |
||||
|
for (let i = 0; i < res.data.data.length; i++) { |
||||
|
this.imgList = res.data.data |
||||
|
} |
||||
|
} else { |
||||
|
uni.showToast({ |
||||
|
title: res.data.msg, |
||||
|
icon: 'none' |
||||
|
}) |
||||
} |
} |
||||
const res = await getCollectionList(data) |
}, |
||||
if(res.data.code === 200){ |
// 前往详情页 |
||||
this.myCollection = res.data.data |
targetDetail(item) { |
||||
console.log(res) |
console.log('跳转', item) |
||||
}else{ |
if (item.id) { |
||||
uni.showModal({ |
uni.setStorage({ |
||||
content: '我的收藏加载失败!', |
key: 'detailId', |
||||
showCancel: false |
data: item.id, |
||||
}); |
success() { |
||||
|
console.log(111111) |
||||
|
uni.redirectTo({ |
||||
|
url: '../creator/imgDetail' |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
} |
} |
||||
} |
}, |
||||
} |
}, |
||||
|
// onUnload() { |
||||
|
// uni.switchTab({ |
||||
|
// url: '/pages/index/index' |
||||
|
// }) |
||||
|
// }, |
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
<style> |
<style lang="less"> |
||||
|
.myCollection { |
||||
|
padding-right: 40rpx; |
||||
|
padding-top: 40rpx; |
||||
|
|
||||
|
.uni-searchbar { |
||||
|
border: 1px solid #11A8FD; |
||||
|
border-radius: 16rpx; |
||||
|
padding: 0; |
||||
|
margin-left: 40rpx; |
||||
|
|
||||
|
.uni-searchbar__box { |
||||
|
padding: 0; |
||||
|
border-radius: 16rpx !important; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.myCollection-list { |
||||
|
display: flex; |
||||
|
|
||||
|
.first-box { |
||||
|
border-radius: 16rpx; |
||||
|
font-size: 16px; |
||||
|
margin-top: 40rpx; |
||||
|
margin-left: 40rpx; |
||||
|
color: #fff; |
||||
|
line-height: 60rpx; |
||||
|
text-align: center; |
||||
|
height: 60rpx; |
||||
|
background-color: #11A8FD; |
||||
|
display: inline-block; |
||||
|
vertical-align: top; |
||||
|
} |
||||
|
|
||||
|
image { |
||||
|
margin-top: 40rpx; |
||||
|
margin-left: 40rpx; |
||||
|
border-radius: 16rpx; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
</style> |
</style> |
||||
|
|||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||
|
Component({}) |
||||
@ -0,0 +1,7 @@ |
|||||
|
{ |
||||
|
"usingComponents": {}, |
||||
|
"component": true, |
||||
|
"componentGenerics": { |
||||
|
"scoped-slots-default": true |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
<view data-event-opts="{{[['tap',[['_onclick',['$event']]]]]}}" bindtap="__e"><slot></slot><block tt:if="{{generic['default']==='imgDetail--ad-fullscreen-video--default--e36c'}}"><imgDetail--ad-fullscreen-video--default--e36c options="{{options}}" loading="{{loading}}" error="{{errorMessage}}" bind:__l="__l"></imgDetail--ad-fullscreen-video--default--e36c></block></view> |
||||
@ -0,0 +1 @@ |
|||||
|
Component({}) |
||||
@ -0,0 +1,7 @@ |
|||||
|
{ |
||||
|
"usingComponents": {}, |
||||
|
"component": true, |
||||
|
"componentGenerics": { |
||||
|
"scoped-slots-default": true |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
<view data-event-opts="{{[['tap',[['_onclick',['$event']]]]]}}" bindtap="__e"><slot></slot><block tt:if="{{generic['default']==='imgDetail--ad-rewarded-video--default--51fe'}}"><imgDetail--ad-rewarded-video--default--51fe options="{{options}}" loading="{{loading}}" error="{{errorMessage}}" bind:__l="__l"></imgDetail--ad-rewarded-video--default--51fe></block></view> |
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||
<view class="creator data-v-5830ad60"><view class="data-v-5830ad60"><swiper class="swiper-box data-v-5830ad60" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-dots="{{indicatorDots}}"><block tt:for="{{banner}}" tt:for-item="item" tt:for-index="index" tt:key="index"><swiper-item class="data-v-5830ad60"><image class="img data-v-5830ad60" src="{{item.bannerImg}}" data-event-opts="{{[['tap',[['linkTo',['$0'],[[['banner','',index]]]]]]]}}" bindtap="__e"></image></swiper-item></block></swiper></view><view class="list data-v-5830ad60"><block tt:for="{{userImgList}}" tt:for-item="item" tt:for-index="index" tt:key="index"><view class="list-item data-v-5830ad60"><view class="fb-d-r fb-j-sb fb-a-c list-top data-v-5830ad60"><view data-event-opts="{{[['tap',[['toUserDetail',['$0'],[[['userImgList','',index]]]]]]]}}" class="fb-d-r fb-a-c head-box data-v-5830ad60" bindtap="__e"><image class="head data-v-5830ad60" src="{{item.img}}"></image><view class="ml-10 data-v-5830ad60"><view class="data-v-5830ad60"><text class="data-v-5830ad60">{{item.username}}</text></view><view class="fb-d-r fb-j-sb data-v-5830ad60"><view class="imgLength-box data-v-5830ad60"><image class="img-icon data-v-5830ad60" src="../../static/imgLength.png" mode></image><text class="data-v-5830ad60">11111</text></view><view class="imgLength-box data-v-5830ad60"><image class="img-icon data-v-5830ad60" src="../../static/collectLength.png" mode></image><text class="data-v-5830ad60">11111</text></view><view class="imgLength-box data-v-5830ad60"><image class="img-icon data-v-5830ad60" src="../../static/likeLength.png" mode></image><text class="data-v-5830ad60">11111</text></view></view></view></view><image class="jiantou data-v-5830ad60" src="../../static/jiantou-right.png" mode></image></view><view class="fb-d-r fb-j-sb img-box data-v-5830ad60"><block tt:for="{{item.imgList}}" tt:for-item="pic" tt:for-index="param" tt:key="param"><view class="data-v-5830ad60"><image class="threeImg data-v-5830ad60" src="{{pic.imgUrl}}" data-event-opts="{{[['tap',[['linkTo',['$0'],[[['userImgList','',index],['imgList','',param]]]]]]]}}" bindtap="__e"></image></view></block></view></view></block></view></view> |
<view class="creator data-v-5830ad60"><view class="data-v-5830ad60"><swiper class="swiper-box data-v-5830ad60" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-dots="{{indicatorDots}}"><block tt:for="{{banner}}" tt:for-item="item" tt:for-index="index" tt:key="index"><swiper-item class="data-v-5830ad60"><image class="img data-v-5830ad60" src="{{item.bannerImg}}" data-event-opts="{{[['tap',[['linkTo',['$0'],[[['banner','',index]]]]]]]}}" bindtap="__e"></image></swiper-item></block></swiper></view><view class="list data-v-5830ad60"><block tt:for="{{userImgList}}" tt:for-item="item" tt:for-index="index" tt:key="index"><view class="list-item data-v-5830ad60"><view data-event-opts="{{[['tap',[['toUserDetail',['$0'],[[['userImgList','',index]]]]]]]}}" class="fb-d-r fb-j-sb fb-a-c list-top data-v-5830ad60" bindtap="__e"><view class="fb-d-r fb-a-c head-box data-v-5830ad60"><image class="head data-v-5830ad60" src="{{item.img}}"></image><view class="ml-10 data-v-5830ad60"><view class="data-v-5830ad60"><text class="data-v-5830ad60">{{item.username}}</text></view><view class="fb-d-r fb-j-sb data-v-5830ad60"><view class="imgLength-box data-v-5830ad60"><image class="img-icon data-v-5830ad60" src="../../static/imgLength.png" mode></image><text class="data-v-5830ad60">11111</text></view><view class="imgLength-box data-v-5830ad60"><image class="img-icon data-v-5830ad60" src="../../static/collectLength.png" mode></image><text class="data-v-5830ad60">11111</text></view><view class="imgLength-box data-v-5830ad60"><image class="img-icon data-v-5830ad60" src="../../static/likeLength.png" mode></image><text class="data-v-5830ad60">11111</text></view></view></view></view><image class="jiantou data-v-5830ad60" src="../../static/jiantou-right.png" mode></image></view><view class="fb-d-r fb-j-sb img-box data-v-5830ad60"><block tt:for="{{item.imgList}}" tt:for-item="pic" tt:for-index="param" tt:key="param"><view class="data-v-5830ad60"><image class="threeImg data-v-5830ad60" src="{{pic.imgUrl}}" data-event-opts="{{[['tap',[['linkTo',['$0'],[[['userImgList','',index],['imgList','',param]]]]]]]}}" bindtap="__e"></image></view></block></view></view></block></view></view> |
||||
@ -0,0 +1,6 @@ |
|||||
|
|
||||
|
wx.createComponent({ |
||||
|
generic:true, |
||||
|
props: {loading:{type:null},error:{type:null}}, |
||||
|
render: function(){} |
||||
|
}) |
||||
@ -0,0 +1,6 @@ |
|||||
|
{ |
||||
|
"component": true, |
||||
|
"usingComponents": { |
||||
|
"imgDetail--ad-fullscreen-video--default--e36c": "/pages/creator/imgDetail--ad-fullscreen-video--default--e36c" |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
<button disabled="{{loading}}" loading="{{loading}}">显示广告</button><block tt:if="{{error}}"><view>{{error}}</view></block> |
||||
@ -0,0 +1,2 @@ |
|||||
|
|
||||
|
@import "./imgDetail.ttss" |
||||
@ -0,0 +1,6 @@ |
|||||
|
|
||||
|
wx.createComponent({ |
||||
|
generic:true, |
||||
|
props: {loading:{type:null},error:{type:null}}, |
||||
|
render: function(){} |
||||
|
}) |
||||
@ -0,0 +1,7 @@ |
|||||
|
{ |
||||
|
"component": true, |
||||
|
"usingComponents": { |
||||
|
"imgDetail--ad-rewarded-video--default--51fe": "/pages/creator/imgDetail--ad-rewarded-video--default--51fe", |
||||
|
"ad-rewarded-video": "/node-modules/@dcloudio/uni-cli-shared/components/ad-rewarded-video" |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
<button disabled="{{loading}}" loading="{{loading}}">显示广告</button><block tt:if="{{error}}"><view>{{error}}</view></block> |
||||
@ -0,0 +1,2 @@ |
|||||
|
|
||||
|
@import "./imgDetail.ttss" |
||||
File diff suppressed because one or more lines are too long
@ -1,5 +1,7 @@ |
|||||
{ |
{ |
||||
"navigationBarTitleText": "", |
"navigationBarTitleText": "", |
||||
"enablePullDownRefresh": true, |
"enablePullDownRefresh": true, |
||||
"usingComponents": {} |
"usingComponents": { |
||||
|
"imgDetail--ad-fullscreen-video--default--e36c": "/pages/creator/imgDetail--ad-fullscreen-video--default--e36c" |
||||
|
} |
||||
} |
} |
||||
@ -1 +1 @@ |
|||||
<view class="imgDetail"><image class="main-img" src="{{detailMsg.imgUrl}}" mode></image><view class="toolbar"><view class="toolbar-box"><block tt:if="{{detailMsg.isHot==='0'}}"><image src="../../static/hot-not.png" mode></image></block><block tt:else><image src="../../static/hot-yes.png" mode></image></block></view><view data-event-opts="{{[['tap',[['download',['$0'],['detailMsg.imgUrl']]]]]}}" class="toolbar-box" bindtap="__e"><block tt:if="{{isDownload}}"><image src="../../static/download-select.png" mode></image></block><block tt:else><image src="../../static/download.png" mode></image></block><text>{{"下载"+detailMsg.downloadNum}}</text></view><view data-event-opts="{{[['tap',[['likeCollect',['isLike']]]]]}}" class="toolbar-box" bindtap="__e"><block tt:if="{{isLike}}"><image src="../../static/like-select.png" mode></image></block><block tt:else><image src="../../static/like.png" mode></image></block><text>{{"喜欢"+detailMsg.greatNum}}</text></view><view data-event-opts="{{[['tap',[['likeCollect',['isCollect']]]]]}}" class="toolbar-box" bindtap="__e"><block tt:if="{{isCollect}}"><image src="../../static/collect-select.png" mode></image></block><block tt:else><image src="../../static/collect.png" mode></image></block><text>{{"收藏"+detailMsg.collectionNum}}</text></view><view data-event-opts="{{[['tap',[['share',['$event']]]]]}}" class="toolbar-box" bindtap="__e"><image src="../../static/share.png" mode></image></view></view></view> |
<view class="imgDetail"><image class="main-img" src="{{detailMsg.imgUrl}}" mode></image><view class="toolbar"><view class="toolbar-box"><block tt:if="{{detailMsg.isHot==='0'}}"><image src="../../static/hot-not.png" mode></image></block><block tt:else><image src="../../static/hot-yes.png" mode></image></block></view><view data-event-opts="{{[['tap',[['download',['$0'],['detailMsg.imgUrl']]]]]}}" class="toolbar-box" bindtap="__e"><block tt:if="{{isDownload}}"><image src="../../static/download-select.png" mode></image></block><block tt:else><image src="../../static/download.png" mode></image></block><text>下载</text></view><view data-event-opts="{{[['tap',[['likeCollect',['isLike']]]]]}}" class="toolbar-box" bindtap="__e"><block tt:if="{{isLike}}"><image src="../../static/like-select.png" mode></image></block><block tt:else><image src="../../static/like.png" mode></image></block><text>喜欢</text></view><view data-event-opts="{{[['tap',[['likeCollect',['isCollect']]]]]}}" class="toolbar-box" bindtap="__e"><block tt:if="{{isCollect}}"><image src="../../static/collect-select.png" mode></image></block><block tt:else><image src="../../static/collect.png" mode></image></block><text>收藏</text></view><view class="toolbar-box share-box"><button open-type="share"><image src="../../static/share.png" mode></image><text>分享</text></button></view></view></view> |
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||
<view class="choiceness"><uni-search-bar class="uni-mt-10" vue-id="d8b33852-1" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto" cancelButton="none" data-event-opts="{{[['^confirm',[['search']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-search-bar><view class="choiceness-list"><view class="imgList1"><view class="first-box" style="{{('width:'+imgWidth)}}">热门作品</view><block tt:for="{{imgList1}}" tt:for-item="item" tt:for-index="index" tt:key="index"><image class="img-box" style="{{('width:'+imgWidth+';height:'+imgHeight)}}" src="{{item.imgUrl}}" mode data-event-opts="{{[['tap',[['targetDetail',['$0'],[[['imgList1','',index]]]]]]]}}" bindtap="__e"></image></block></view><view class="imgList2"><block tt:for="{{imgList2}}" tt:for-item="item" tt:for-index="index" tt:key="index"><image class="img-box" style="{{('width:'+imgWidth+';height:'+imgHeight)}}" src="{{item.imgUrl}}" mode></image></block></view></view></view> |
<view class="choiceness"><uni-search-bar class="uni-mt-10" vue-id="d8b33852-1" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto" cancelButton="none" data-event-opts="{{[['^confirm',[['search']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-search-bar><view class="choiceness-list"><view class="imgList1"><view class="ad-view"><ad adpid="H5DB4880B" type data-event-opts="{{[['load',[['onload',['$event']]]],['close',[['onclose',['$event']]]],['error',[['onerror',['$event']]]]]}}" bindload="__e" bindclose="__e" binderror="__e"></ad></view><block tt:for="{{imgList}}" tt:for-item="item" tt:for-index="index" tt:key="index"><image class="img-box" style="{{('width:'+imgWidth+';height:'+imgHeight)}}" src="{{item.imgUrl}}" mode data-event-opts="{{[['tap',[['targetDetail',['$0'],[[['imgList','',index]]]]]]]}}" bindtap="__e"></image></block></view></view></view> |
||||
File diff suppressed because one or more lines are too long
@ -1,5 +1,6 @@ |
|||||
{ |
{ |
||||
"navigationBarTitleText": "首页", |
"navigationBarTitleText": "首页", |
||||
|
"enablePullDownRefresh": false, |
||||
"usingComponents": { |
"usingComponents": { |
||||
"uni-search-bar": "/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar" |
"uni-search-bar": "/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar" |
||||
} |
} |
||||
|
|||||
@ -1 +1 @@ |
|||||
<view class="container"><view class="top"><image class="back-img" src="../../static/img/start.gif" mode></image><view class="top-bottom"></view><uni-search-bar class="uni-mt-10" vue-id="8dda190e-1" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto" cancelButton="none" data-event-opts="{{[['^confirm',[['search']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-search-bar><text>大家都在搜</text><view class="user-list"><block tt:for="{{userList}}" tt:for-item="item" tt:for-index="index" tt:key="id"><view data-event-opts="{{[['tap',[['goUserDetail',['$0'],[[['userList','id',item.id,'scanCode']]]]]]]}}" class="user-list-box" bindtap="__e"><image src="{{item.img}}" mode></image><text>{{item.tiktokNumber}}</text></view></block><block tt:for="{{userList}}" tt:for-item="item" tt:for-index="index" tt:key="id"><view class="user-list-box"><image src="{{item.img}}" mode></image><text>{{item.tiktokNumber}}</text></view></block><block tt:for="{{userList}}" tt:for-item="item" tt:for-index="index" tt:key="id"><view class="user-list-box"><image src="{{item.img}}" mode></image><text>{{item.tiktokNumber}}</text></view></block></view></view><view class="middle"><text>近期精选</text><image src="../../static/img/slide-top.svg" mode></image></view></view> |
<view class="container"><view class="top"><image class="back-img" src="../../static/img/start.gif" mode></image><view class="top-bottom"></view><uni-search-bar class="uni-mt-10" vue-id="8dda190e-1" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto" cancelButton="none" data-event-opts="{{[['^confirm',[['search']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-search-bar><text>大家都在搜</text><view class="user-list"><block tt:for="{{userList}}" tt:for-item="item" tt:for-index="index" tt:key="id"><view data-event-opts="{{[['tap',[['goUserDetail',['$0'],[[['userList','id',item.id,'scanCode']]]]]]]}}" class="user-list-box" bindtap="__e"><image src="{{item.img}}" mode></image><text>{{item.tiktokNumber}}</text></view></block></view></view><view class="middle"><text>近期精选</text><image src="../../static/img/slide-top.svg" mode></image></view></view> |
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||
<view><text>这是我的收藏</text><block tt:for="{{myCollection}}" tt:for-item="item" tt:for-index="index" tt:key="index"><view><image src="{{item.imgUrl}}"></image></view></block></view> |
<view class="myCollection"><view class="myCollection-list"><view class="imgList1"><block tt:for="{{imgList}}" tt:for-item="item" tt:for-index="index" tt:key="index"><image class="img-box" style="{{('width:'+imgWidth+';height:'+imgHeight)}}" src="{{item.imgUrl}}" mode data-event-opts="{{[['tap',[['targetDetail',['$0'],[[['imgList','',index]]]]]]]}}" bindtap="__e"></image></block></view></view></view> |
||||
@ -0,0 +1,36 @@ |
|||||
|
.myCollection { |
||||
|
padding-right: 40rpx; |
||||
|
padding-top: 40rpx; |
||||
|
} |
||||
|
.myCollection .uni-searchbar { |
||||
|
border: 1px solid #11A8FD; |
||||
|
border-radius: 16rpx; |
||||
|
padding: 0; |
||||
|
margin-left: 40rpx; |
||||
|
} |
||||
|
.myCollection .uni-searchbar .uni-searchbar__box { |
||||
|
padding: 0; |
||||
|
border-radius: 16rpx !important; |
||||
|
} |
||||
|
.myCollection .myCollection-list { |
||||
|
display: flex; |
||||
|
} |
||||
|
.myCollection .myCollection-list .first-box { |
||||
|
border-radius: 16rpx; |
||||
|
font-size: 16px; |
||||
|
margin-top: 40rpx; |
||||
|
margin-left: 40rpx; |
||||
|
color: #fff; |
||||
|
line-height: 60rpx; |
||||
|
text-align: center; |
||||
|
height: 60rpx; |
||||
|
background-color: #11A8FD; |
||||
|
display: inline-block; |
||||
|
vertical-align: top; |
||||
|
} |
||||
|
.myCollection .myCollection-list image { |
||||
|
margin-top: 40rpx; |
||||
|
margin-left: 40rpx; |
||||
|
border-radius: 16rpx; |
||||
|
} |
||||
|
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||
<view><uni-list vue-id="23dab6ff-1" bind:__l="__l" vue-slots="{{['default']}}"><uni-list-item vue-id="{{('23dab6ff-2')+','+('23dab6ff-1')}}" title="我的信息" clickable="{{true}}" data-event-opts="{{[['^click',[['onClick']]]]}}" bind:click="__e" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-3')+','+('23dab6ff-1')}}" title="我的收藏" show-extra-icon="{{true}}" extra-icon="{{gift-filled}}" link="{{true}}" to="/pages/userInfo/myCollection/myCollection" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-4')+','+('23dab6ff-1')}}" title="常见问题" show-extra-icon="{{true}}" extra-icon="{{extraIcon1}}" link="{{true}}" to="/pages/userInfo/question/question" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-5')+','+('23dab6ff-1')}}" title="联系我们" link="{{true}}" to="/pages/userInfo/contactUs/contactUs" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-6')+','+('23dab6ff-1')}}" title="设置" link="{{true}}" to="/pages/userInfo/setting/setting" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-7')+','+('23dab6ff-1')}}" title="分享" clickable="{{true}}" data-event-opts="{{[['^click',[['getLink']]]]}}" bind:click="__e" bind:__l="__l"></uni-list-item><button open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">绑定手机号</button></uni-list></view> |
<view class="userInfo"><view class="my-message"><view class="left"><image src="{{userInfo.img}}" mode></image></view><view class="right">{{''+userInfo.username+''}}</view></view><uni-list vue-id="23dab6ff-1" bind:__l="__l" vue-slots="{{['default']}}"><uni-list-item vue-id="{{('23dab6ff-2')+','+('23dab6ff-1')}}" title="我的收藏" link="{{true}}" to="/pages/userInfo/myCollection/myCollection" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-3')+','+('23dab6ff-1')}}" title="常见问题" link="{{true}}" to="/pages/userInfo/question/question" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-4')+','+('23dab6ff-1')}}" title="联系我们" link="{{true}}" to="/pages/userInfo/contactUs/contactUs" bind:__l="__l"></uni-list-item><uni-list-item vue-id="{{('23dab6ff-5')+','+('23dab6ff-1')}}" title="设置" link="{{true}}" to="/pages/userInfo/setting/setting" bind:__l="__l"></uni-list-item><view class="share-box"><button title="分享" open-type="share">分享</button></view></uni-list><view class="bottom-btn"><button open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">绑定手机号</button></view></view> |
||||
@ -0,0 +1,42 @@ |
|||||
|
.userInfo { |
||||
|
height: 100%; |
||||
|
background-color: white; |
||||
|
} |
||||
|
.userInfo .my-message { |
||||
|
display: flex; |
||||
|
justify-content: flex-start; |
||||
|
align-items: center; |
||||
|
padding: 20rpx; |
||||
|
} |
||||
|
.userInfo .my-message .left { |
||||
|
width: 100rpx; |
||||
|
height: 100rpx; |
||||
|
margin-right: 20rpx; |
||||
|
} |
||||
|
.userInfo .my-message .left > image { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
border-radius: 50%; |
||||
|
} |
||||
|
.userInfo .my-message .right { |
||||
|
font-size: 12px; |
||||
|
} |
||||
|
.userInfo .share-box { |
||||
|
width: 100vw; |
||||
|
} |
||||
|
.userInfo .share-box > button { |
||||
|
background: none; |
||||
|
outline: none; |
||||
|
font-size: 14px; |
||||
|
text-align: left; |
||||
|
line-height: 14px; |
||||
|
padding: 12px 15px; |
||||
|
} |
||||
|
.userInfo .bottom-btn { |
||||
|
position: fixed; |
||||
|
bottom: 0; |
||||
|
left: 0; |
||||
|
width: 100vw; |
||||
|
z-index: 1000; |
||||
|
} |
||||
|
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue