chengkun 4 years ago
parent
commit
b37c92ed7c
  1. 56
      api/creator.js
  2. 38
      api/index.js
  3. 3
      main.js
  4. 3
      manifest.json
  5. 129
      pages.json
  6. 198
      pages/creator/creator.vue
  7. 358
      pages/creator/imgDetail.vue
  8. 191
      pages/creator/userDetail.vue
  9. 129
      pages/index/choiceness.vue
  10. 246
      pages/index/index.vue
  11. BIN
      static/collect-select.png
  12. BIN
      static/collect.png
  13. BIN
      static/collectLength.png
  14. BIN
      static/download-select.png
  15. BIN
      static/download.png
  16. BIN
      static/hot-not.png
  17. BIN
      static/hot-yes.png
  18. 2
      static/img/share.svg
  19. 2
      static/img/slide-top.svg
  20. BIN
      static/img/start.gif
  21. BIN
      static/imgLength.png
  22. BIN
      static/index-default.png
  23. BIN
      static/index-select.png
  24. BIN
      static/jiantou-right.png
  25. BIN
      static/like-select.png
  26. BIN
      static/like.png
  27. BIN
      static/likeLength.png
  28. BIN
      static/mine-default.png
  29. BIN
      static/mine-select.png
  30. BIN
      static/share.png
  31. BIN
      static/theme-default.png
  32. BIN
      static/theme-select.png
  33. 17
      unpackage/dist/dev/mp-toutiao/app.json
  34. 63
      unpackage/dist/dev/mp-toutiao/common/main.js
  35. 6
      unpackage/dist/dev/mp-toutiao/common/runtime.js
  36. 770
      unpackage/dist/dev/mp-toutiao/common/vendor.js
  37. 147
      unpackage/dist/dev/mp-toutiao/pages/creator/creator.js
  38. 2
      unpackage/dist/dev/mp-toutiao/pages/creator/creator.ttml
  39. 41
      unpackage/dist/dev/mp-toutiao/pages/creator/creator.ttss
  40. 473
      unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.js
  41. 5
      unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.json
  42. 1
      unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.ttml
  43. 41
      unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.ttss
  44. 285
      unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.js
  45. 7
      unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.json
  46. 1
      unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.ttml
  47. 71
      unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.ttss
  48. 276
      unpackage/dist/dev/mp-toutiao/pages/index/choiceness.js
  49. 7
      unpackage/dist/dev/mp-toutiao/pages/index/choiceness.json
  50. 1
      unpackage/dist/dev/mp-toutiao/pages/index/choiceness.ttml
  51. 35
      unpackage/dist/dev/mp-toutiao/pages/index/choiceness.ttss
  52. 311
      unpackage/dist/dev/mp-toutiao/pages/index/index.js
  53. 2
      unpackage/dist/dev/mp-toutiao/pages/index/index.ttml
  54. 64
      unpackage/dist/dev/mp-toutiao/pages/index/index.ttss
  55. 80
      unpackage/dist/dev/mp-toutiao/pages/userInfo/contactUs/contactUs.js
  56. 129
      unpackage/dist/dev/mp-toutiao/pages/userInfo/myCollection/myCollection.js
  57. 2
      unpackage/dist/dev/mp-toutiao/pages/userInfo/myCollection/myCollection.ttml
  58. 80
      unpackage/dist/dev/mp-toutiao/pages/userInfo/question/question.js
  59. 184
      unpackage/dist/dev/mp-toutiao/pages/userInfo/setting/setting.js
  60. 194
      unpackage/dist/dev/mp-toutiao/pages/userInfo/userInfo.js
  61. 29
      unpackage/dist/dev/mp-toutiao/project.config.json
  62. BIN
      unpackage/dist/dev/mp-toutiao/static/collect-select.png
  63. BIN
      unpackage/dist/dev/mp-toutiao/static/collect.png
  64. BIN
      unpackage/dist/dev/mp-toutiao/static/collectLength.png
  65. BIN
      unpackage/dist/dev/mp-toutiao/static/download-select.png
  66. BIN
      unpackage/dist/dev/mp-toutiao/static/download.png
  67. BIN
      unpackage/dist/dev/mp-toutiao/static/hot-not.png
  68. BIN
      unpackage/dist/dev/mp-toutiao/static/hot-yes.png
  69. 2
      unpackage/dist/dev/mp-toutiao/static/img/share.svg
  70. 2
      unpackage/dist/dev/mp-toutiao/static/img/slide-top.svg
  71. BIN
      unpackage/dist/dev/mp-toutiao/static/img/start.gif
  72. BIN
      unpackage/dist/dev/mp-toutiao/static/imgLength.png
  73. BIN
      unpackage/dist/dev/mp-toutiao/static/index-default.png
  74. BIN
      unpackage/dist/dev/mp-toutiao/static/index-select.png
  75. BIN
      unpackage/dist/dev/mp-toutiao/static/jiantou-right.png
  76. BIN
      unpackage/dist/dev/mp-toutiao/static/like-select.png
  77. BIN
      unpackage/dist/dev/mp-toutiao/static/like.png
  78. BIN
      unpackage/dist/dev/mp-toutiao/static/likeLength.png
  79. BIN
      unpackage/dist/dev/mp-toutiao/static/mine-default.png
  80. BIN
      unpackage/dist/dev/mp-toutiao/static/mine-select.png
  81. BIN
      unpackage/dist/dev/mp-toutiao/static/share.png
  82. BIN
      unpackage/dist/dev/mp-toutiao/static/theme-default.png
  83. BIN
      unpackage/dist/dev/mp-toutiao/static/theme-select.png
  84. 96
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-badge/components/uni-badge/uni-badge.js
  85. 98
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-icons/components/uni-icons/uni-icons.js
  86. 100
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-list/components/uni-list-item/uni-list-item.js
  87. 96
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-list/components/uni-list/uni-list.js
  88. 100
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.js
  89. 244
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.js
  90. 4
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.json
  91. 1
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.ttml
  92. 45
      unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.ttss
  93. 4
      utils/request.js

56
api/creator.js

@ -8,7 +8,6 @@ export function getBannerList() {
return request({
url: `${serviceTitle}/img/mini/tiktok/listBanner`,
method: 'get'
})
}
//获取小程序用户图片列表
@ -18,3 +17,58 @@ export function getUserImgList() {
method: 'get'
})
}
// 获取图片详情
export function detailsTiktokImg(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/detailsTiktokImg/${data}`,
method: 'get'
})
}
// 查询是否点赞过
export function judgeTiktokLike(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/judgeTiktokLike`,
method: 'post',
data
})
}
// 查询是否收藏过
export function judgeTiktokCollect(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/judgeTiktokCollect`,
method: 'post',
data
})
}
// 点赞
export function tiktokLike(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/tiktokLike`,
method: 'post',
data
})
}
// 取消点赞
export function tiktokUnLike(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/tiktokUnLike`,
method: 'post',
data
})
}
// 收藏
export function tiktokCollect(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/tiktokCollect`,
method: 'post',
data
})
}
// 取消收藏
export function tiktokUnCollect(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/tiktokUnCollect`,
method: 'post',
data
})
}

38
api/index.js

@ -0,0 +1,38 @@
import request from '@/utils/request'
const serviceTitle = '/img'
//GET 传参需要用 params
//POST 传参需要用 data
//获取banner列表
export function tiktokUserImgs() {
return request({
url: `${serviceTitle}/img/mini/tiktok/tiktokUserImgs`,
method: 'get'
})
}
// 近期精选图片列表
export function imgLists(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/imgLists`,
method: 'post',
data
})
}
//用户详情页-根据搜索码查询用户图片列表
export function tiktokUserDetails(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/tiktokUserImgsDetails`,
method: 'post',
data
})
}
// 用户授权登录
export function loginTiktok(data) {
return request({
url: `${serviceTitle}/img/mini/tiktok/loginTiktok`,
method: 'post',
data
})
}

3
main.js

@ -1,7 +1,8 @@
import App from './App'
import store from './store/'
const baseURL = 'http://localhost:7010'
// const baseURL = 'http://localhost:7010'
const baseURL = 'http://81.69.47.31:7010'
Vue.prototype.baseURL = baseURL;

3
manifest.json

@ -58,7 +58,8 @@
"mp-toutiao" : {
"appid" : "ttc408b2b55b364f6601",
"setting" : {
"urlCheck" : false
"urlCheck" : false,
"es6" : true
}
}
}

129
pages.json

@ -7,58 +7,69 @@
}
},
{
"path" : "pages/creator/creator",
"style" :
{
"navigationBarTitleText": "艺术家",
"enablePullDownRefresh": true
}
"path": "pages/index/choiceness",
"style": {
"navigationBarTitleText": "近期精选",
"enablePullDownRefresh": true
}
},
{
"path": "pages/creator/creator",
"style": {
"navigationBarTitleText": "艺术家",
"enablePullDownRefresh": true
}
},
{
"path": "pages/creator/userDetail",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": true
}
},
{
"path": "pages/creator/imgDetail",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": true
}
},
{
"path" : "pages/userInfo/userInfo",
"style" :
{
"navigationBarTitleText": "个人中心",
"enablePullDownRefresh": true
}
}
,{
"path" : "pages/userInfo/myCollection/myCollection",
"style" :
{
"navigationBarTitleText": "我的收藏",
"enablePullDownRefresh": true
}
}
,{
"path" : "pages/userInfo/question/question",
"style" :
{
"navigationBarTitleText": "常见问题",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/userInfo/contactUs/contactUs",
"style" :
{
"navigationBarTitleText": "联系我们",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/userInfo/setting/setting",
"style" :
{
"navigationBarTitleText": "设置",
"enablePullDownRefresh": false
}
}
],
{
"path": "pages/userInfo/userInfo",
"style": {
"navigationBarTitleText": "个人中心",
"enablePullDownRefresh": true
}
}, {
"path": "pages/userInfo/myCollection/myCollection",
"style": {
"navigationBarTitleText": "我的收藏",
"enablePullDownRefresh": true
}
}, {
"path": "pages/userInfo/question/question",
"style": {
"navigationBarTitleText": "常见问题",
"enablePullDownRefresh": false
}
}, {
"path": "pages/userInfo/contactUs/contactUs",
"style": {
"navigationBarTitleText": "联系我们",
"enablePullDownRefresh": false
}
}, {
"path": "pages/userInfo/setting/setting",
"style": {
"navigationBarTitleText": "设置",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "bnyer",
@ -68,25 +79,25 @@
//tab
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#007AFF",
"selectedColor": "#1296DB",
"borderStyle": "black",
"backgroundColor": "#F8F8F8",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"iconPath": "static/index-default.png",
"selectedIconPath": "static/index-select.png",
"text": "首页"
},
{
"pagePath": "pages/creator/creator",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"iconPath": "static/theme-default.png",
"selectedIconPath": "static/theme-select.png",
"text": "艺术家"
},
},
{
"pagePath": "pages/userInfo/userInfo",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"iconPath": "static/mine-default.png",
"selectedIconPath": "static/mine-select.png",
"text": "我的"
}
]

198
pages/creator/creator.vue

@ -1,72 +1,68 @@
<template>
<view class="content">
<view class="creator">
<view>
<swiper class="swiper-box" :autoplay="autoplay" :interval="interval" :duration="duration" :indicator-dots="indicatorDots">
<swiper class="swiper-box" :autoplay="autoplay" :interval="interval" :duration="duration"
:indicator-dots="indicatorDots">
<swiper-item v-for="(item, index) in banner" :key="index">
<image class="img" @click="linkTo(item)" :src="item.bannerImg"></image>
</swiper-item>
</swiper>
</view>
<view class="list">
<view v-for="(item, index) in userImgList" :key="index" class="list-item">
<!-- 展示用户相关信息 -->
<template>
<view class="fb-d-r fb-j-sb fb-a-c">
<view class="fb-d-r fb-a-c head-box">
<image class="head" :src="item.img"></image>
<view class="ml-10">
<view class="">
<text class="">{{item.username}}</text>
</view>
<view class="fb-d-r fb-j-sb">
<view class="">
<text>图标</text> <text>11111</text>
</view>
<view class="">
<text>图标</text> <text>11111</text>
</view>
<view class="">
<text>图标</text> <text>11111</text>
</view>
</view>
</view>
</view>
<view class="fb-d-r fb-j-sb fb-a-c list-top">
<view class="fb-d-r fb-a-c head-box" @click="toUserDetail(item)">
<image class="head" :src="item.img"></image>
<view class="ml-10">
<view class="">
jiantou
<text class="">{{item.username}}</text>
</view>
</view>
</template>
<!-- 展示用户对应三张图 -->
<template>
<view class="fb-d-r fb-j-sb img-box">
<view v-for="(pic,param) in item.imgList" :key="param" >
<image class="threeImg" @click="linkTo(item)" :src="pic.imgUrl"></image>
<view class="fb-d-r fb-j-sb">
<view class="imgLength-box">
<image class="img-icon" src="../../static/imgLength.png" mode=""></image>
<text>11111</text>
</view>
<view class="imgLength-box">
<image class="img-icon" src="../../static/collectLength.png" mode=""></image>
<text>11111</text>
</view>
<view class="imgLength-box">
<image class="img-icon" src="../../static/likeLength.png" mode=""></image>
<text>11111</text>
</view>
</view>
</view>
</template>
</view>
<image class="jiantou" src="../../static/jiantou-right.png" mode=""></image>
</view>
<!-- 展示用户对应三张图 -->
<view class="fb-d-r fb-j-sb img-box">
<view v-for="(pic,param) in item.imgList" :key="param">
<image class="threeImg" @click="linkTo(pic)" :src="pic.imgUrl"></image>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import {getBannerList,getUserImgList} from '@/api/creator.js'
import {
getBannerList,
getUserImgList
} from '@/api/creator.js'
export default {
data() {
return {
banner: [],
userImgList:[],
userImgList: [],
autoplay: true,
interval: 2000,
duration: 1000,
indicatorDots: true,
}
},
onLoad() {
@ -74,85 +70,136 @@
this.getUserImgList();
},
methods: {
linkTo(item){
console.log(item.bannerImg)
uni.showModal({
content: '跳转啦',
showCancel: false
});
//
toUserDetail(item){
if (item) {
uni.setStorage({
key: 'userDetail',
data: item,
success() {
uni.redirectTo({
url: '../creator/userDetail'
})
}
})
}
},
//
linkTo(item) {
console.log(item)
if (item.id) {
uni.setStorage({
key: 'detailId',
data: item.id,
success() {
console.log(111111)
uni.redirectTo({
url: '../creator/imgDetail'
})
}
})
}
},
getUserDetails(item){
getUserDetails(item) {
//TODO
console.log(item);
},
async getBanner(){
async getBanner() {
const res = await getBannerList()
if(res.data.code === 200){
if (res.data.code === 200) {
this.banner = res.data.data
}else{
} else {
uni.showModal({
content: 'banner加载失败!',
content: 'banner加载失败!',
showCancel: false
});
}
},
async getUserImgList(){
async getUserImgList() {
const res = await getUserImgList()
if(res.data.code === 200){
if (res.data.code === 200) {
this.userImgList = res.data.data
console.log('userListImg',this.userImgList)
}else{
console.log('userListImg', this.userImgList)
} else {
uni.showModal({
content: '用户图片列表加载失败!',
content: '用户图片列表加载失败!',
showCancel: false
});
}
}
}
}
</script>
<style scoped lang="scss">
.content {
.creator {
padding: 20rpx;
background-color: #ffffff;
font-size: 22rpx;
.list {
margin-top: 20rpx;
&-item {
padding: 5rpx;
margin-top: 20rpx;
}
.list-top{
margin-bottom: 20rpx;
}
.head-box {
flex: .8;
&>.ml-10 {
flex: 1;
height: 40px;
padding: 4rpx 0;
display: flex;
flex-direction:column;
justify-content: space-between;
.imgLength-box {
display: flex;
justify-content: flex-start;
align-items: center;
.img-icon {
width: 30rpx;
height: 30rpx;
}
}
}
}
.jiantou {
width: 40rpx;
height: 40rpx;
}
.img-box {
margin-top: 10rpx;
>view {
display: flex;
justify-content: flex-start;
view {
width: 32%;
image {
border-radius: 8rpx;
width: 100%;
width: calc(100% - 12rpx);
}
}
}
}
}
.swiper-box {
height: 250rpx;
// border: 2rpx solid #18BC37;
border-radius: 8rpx;
overflow: hidden;
}
.swiper-item {
@ -171,25 +218,24 @@
width: 100%;
height: 100%;
}
.head {
// flex: 1;
// display: flex;
width:80rpx;
height:80rpx;
width: 80rpx;
height: 80rpx;
border-radius: 50%;
// justify-content: space-between;
// align-items: flex-end;
}
.userName {
margin-left: 10rpx;
}
.threeImg {
height:300rpx;
width:200rpx;
height: 300rpx;
width: 200rpx;
}
</style>

358
pages/creator/imgDetail.vue

@ -0,0 +1,358 @@
<template>
<view class="imgDetail">
<image class="main-img" :src="detailMsg.imgUrl" mode=""></image>
<view class="toolbar">
<view class="toolbar-box">
<image v-if="detailMsg.isHot ==='0'" src="../../static/hot-not.png" mode=""></image>
<image v-else src="../../static/hot-yes.png" mode=""></image>
</view>
<view class="toolbar-box" @click="download(detailMsg.imgUrl)">
<image v-if="isDownload" src="../../static/download-select.png" mode=""></image>
<image v-else src="../../static/download.png" mode=""></image>
<text>下载{{detailMsg.downloadNum}}</text>
</view>
<view class="toolbar-box" @click="likeCollect('isLike')">
<image v-if="isLike" src="../../static/like-select.png" mode=""></image>
<image v-else src="../../static/like.png" mode=""></image>
<text>喜欢{{detailMsg.greatNum}}</text>
</view>
<view class="toolbar-box" @click="likeCollect('isCollect')">
<image v-if="isCollect" src="../../static/collect-select.png" mode=""></image>
<image v-else src="../../static/collect.png" mode=""></image>
<text>收藏{{detailMsg.collectionNum}}</text>
</view>
<view class="toolbar-box" @click="share">
<image src="../../static/share.png" mode=""></image>
</view>
</view>
</view>
</template>
<script>
import {
detailsTiktokImg, //
judgeTiktokLike, //
judgeTiktokCollect, //
tiktokLike, //
tiktokUnLike, //
tiktokCollect, //
tiktokUnCollect, //
} from '@/api/creator.js'
export default {
data() {
return {
detailMsg: {}, //
userInfo: {}, //
isDownload: false, //
isLike: false, // /
isCollect: false, //
}
},
created() {
uni.getStorage({
key: 'detailId',
success: res => {
this.getImgDetail(res.data)
}
})
},
methods: {
//
async getImgDetail(id) {
const res = await detailsTiktokImg(id)
if (res.data.code === 200) {
this.detailMsg = res.data.data
console.log('图片详情', this.detailMsg)
uni.getStorage({
key: 'userInfo',
success: res => {
this.userInfo = res.data
console.log('userInfo', this.userInfo)
this.searchIsLike()
this.searchisCollect()
}
})
} else {
uni.showToast({
title: '请输入艺术家代号',
icon: 'error'
})
}
},
//
async searchIsLike() {
const params = {
imgId: this.detailMsg.id,
userId: this.userInfo.id
}
console.log('params', this.detailMsg, params)
const res = await judgeTiktokLike(params)
if (res.data.code === 200) {
this.isLike = res.data.data
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
},
//
async searchisCollect() {
const params = {
imgId: this.detailMsg.id,
userId: this.userInfo.id
}
const res = await judgeTiktokCollect(params)
if (res.data.code === 200) {
this.isCollect = res.data.data
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
},
// /
async likeCollect(val) {
const params = {
imgId: this.detailMsg.id,
userId: this.userInfo.id
}
if (val === 'isLike') {
this.isLike = !this.isLike
console.log('this.isLike', this.isLike)
if (this.isLike) {
//
console.log('点赞')
const res = await tiktokLike(params)
if (res.data.code === 200) {
this.detailMsg.greatNum += 1
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
} else {
//
console.log('取消点赞')
const res = await tiktokUnLike(params)
if (res.data.code === 200) {
this.detailMsg.greatNum -= 1
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
}
} else if (val === 'isCollect') {
this.isCollect = !this.isCollect
if (this.isCollect) {
//
console.log('收藏')
const res = await tiktokCollect(params)
if (res.data.code === 200) {
this.detailMsg.collectionNum += 1
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
} else {
//
console.log('取消收藏')
const res = await tiktokUnCollect(params)
if (res.data.code === 200) {
this.detailMsg.collectionNum -= 1
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
}
}
},
//
download(url) {
this.isDownload = true
this.detailMsg.downloadNum += 1
uni.showLoading({
title: '正在保存图片...'
});
//
uni.getSetting({
success: (res) => {
//
if (!res.authSetting["scope.writePhotosAlbum"]) {
//
tt.authorize({
scope: "scope.album",
success: () => {
//
uni.downloadFile({
url,
success: (res) => {
console.log('下载路径', res)
if (res.statusCode === 200) {
uni.saveImageToPhotosAlbum({
//
filePath: res.tempFilePath,
success: (res) => {
console.log(
'success',
res)
},
fail: (res) => {
console.log('fail',
res)
return uni
.showToast({
title: res
.errMsg,
});
},
complete: (res) => {
uni.hideLoading();
if (res.errMsg !==
"saveImageToPhotosAlbum:ok"
) {
return uni
.showToast({
title: "下载失败!",
});
} else {
return uni
.showToast({
title: "下载成功!",
});
}
},
});
} else {
uni.showToast({
title: "下载失败!",
});
}
}
})
},
//
fail: () => {
uni.hideLoading();
uni.showModal({
title: "您已拒绝获取相册权限",
content: "是否进入权限管理,调整授权?",
success: (res) => {
if (res.confirm) {
//
uni.openSetting({
success: (
res) => {
console
.log(
res
.authSetting
);
},
});
} else if (res.cancel) {
return uni.showToast({
title: "已取消!",
});
}
},
});
},
});
} else {
//
uni.saveImageToPhotosAlbum({
filePath: url,
success: (res) => {
uni.hideLoading();
return uni.showToast({
title: "保存成功!",
});
},
fail: (res) => {
uni.hideLoading();
console.log(res.errMsg);
return uni.showToast({
title: res.errMsg,
});
},
//
complete: (res) => {
uni.hideLoading();
},
});
}
},
fail: (res) => {},
});
},
//
share() {
uni.showToast({
title: '分享',
})
}
}
}
</script>
<style lang="less">
.imgDetail {
height: 100vh;
width: 100vw;
overflow: hidden;
position: relative;
.main-img {
width: 100%;
height: 100%;
}
.toolbar {
width: 60px;
height: 360px;
background-color: rgba(255, 255, 255, 0.2);
position: absolute;
bottom: 76px;
right: 10px;
border-radius: 60px;
padding-top: 40rpx;
.toolbar-box {
height: 60px;
text-align: center;
margin-bottom: 40rpx;
text {
display: block;
text-align: center;
line-height: 60rpx;
font-size: 12px;
}
image {
width: 50rpx;
height: 50rpx;
margin: 0 auto;
}
}
.toolbar-box:first-child {
line-height: 40rpx;
height: 40rpx;
}
}
}
</style>

191
pages/creator/userDetail.vue

@ -0,0 +1,191 @@
<template>
<view class="userDetail">
<view class="avatar-box">
<view class="avatar-top">
<view class="avatar-left-box">
<image :src="userMsg.img" mode=""></image>
<text>{{userMsg.username}}</text>
</view>
<view class="avatar-right-box">
<image src="../../static/img/share.svg" mode=""></image>
</view>
</view>
<view class="avatar-box-text">
个性签名
</view>
<view class="avatar-box-tag">
<view class="avatar-box-tag-left">
<view class="tag-left-box">
<text>112</text>
<text>作品</text>
</view>
<view class="tag-left-box">
<text>112</text>
<text>收藏</text>
</view>
<view class="tag-left-box">
<text>112</text>
<text>喜欢</text>
</view>
</view>
<view class="avatar-box-tag-right">
</view>
</view>
</view>
<view class="middle">
<uni-segmented-control :current="current" :values="arrList" @clickItem="onClickItem" styleType="text"
activeColor="#11A8FD"></uni-segmented-control>
</view>
<view class="bottom">
<image :src="item.imgUrl" mode="" v-for="(item,index) in userMsg.imgList" :key="index"
:style="'width:'+imgWidth+';height:'+imgHeight" @click="targetDetail(item)"></image>
</view>
</view>
</template>
<script>
import {
tiktokUserDetails
} from '@/api/creator.js'
export default {
data() {
return {
userMsg: {},
current: 0,
arrList: ['背景图', '头像', '表情包'],
imgWidth: 0, //
imgHeight: 0, //
}
},
created() {
uni.getSystemInfo({
success: res => {
console.log(res)
this.imgWidth = res.windowWidth - 60 + 'rpx'
this.imgHeight = (res.windowWidth - 60) * 2 - 30 + 'rpx'
}
})
uni.getStorage({
key: 'userDetail',
success: res => {
console.log('getStorage', res)
this.userMsg = res.data
}
})
},
methods: {
onClickItem(e) {
console.log('点击', e)
},
//
targetDetail(item) {
console.log('跳转', item)
if (item.id) {
uni.setStorage({
key: 'detailId',
data: item.id,
success() {
console.log(111111)
uni.redirectTo({
url: './imgDetail'
})
}
})
}
}
}
}
</script>
<style lang="less">
.userDetail {
.avatar-box {
padding: 20rpx 20rpx;
background: #11A8FD;
.avatar-top {
display: flex;
justify-content: space-between;
align-items: center;
height: 120rpx;
.avatar-left-box {
display: flex;
justify-content: flex-start;
align-items: center;
image {
width: 80rpx;
height: 80rpx;
border-radius: 80rpx;
}
text {
font-size: 14px;
color: #fff;
margin-left: 20rpx;
}
}
.avatar-right-box {
image {
width: 40rpx;
height: 40rpx;
}
}
}
.avatar-box-text {
color: #fff;
font-size: 12px;
}
.avatar-box-tag {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 24rpx;
.avatar-box-tag-left {
display: flex;
justify-content: flex-start;
align-items: center;
.tag-left-box {
width: 120rpx;
text {
display: block;
color: #fff;
font-size: 12px;
}
text:last-child {
margin-top: 8rpx;
}
}
}
}
}
.middle {
.segmented-control {
border-radius: 8rpx 8rpx 0 0;
background-color: rgba(17, 168, 253, 0.1);
}
}
.bottom {
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
image {
margin-top: 40rpx;
margin-left: 40rpx;
border-radius: 16rpx;
}
}
}
</style>

129
pages/index/choiceness.vue

@ -0,0 +1,129 @@
<template>
<view class="choiceness">
<uni-search-bar class="uni-mt-10" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto" cancelButton="none"
@confirm="search" />
<view class="choiceness-list">
<view class="imgList1">
<view class="first-box" :style="'width:'+imgWidth">
热门作品
</view>
<image v-for="(item,index) in imgList1" :key='index' class="img-box"
:style="'width:'+imgWidth+';height:'+imgHeight" :src="item.imgUrl" @click="targetDetail(item)"
mode=""></image>
</view>
<view class="imgList2">
<image v-for="(item,index) in imgList2" :key='index' class="img-box"
:style="'width:'+imgWidth+';height:'+imgHeight" :src="item.imgUrl" mode=""></image>
</view>
</view>
</view>
</template>
<script>
import {
imgLists
} from '@/api/index.js'
export default {
data() {
return {
imgList1: [], //
imgList2: [], //
imgWidth: 0, //
imgHeight: 0, //
}
},
created() {
uni.getSystemInfo({
success: res => {
console.log(res)
this.imgWidth = res.windowWidth - 60 + 'rpx'
this.imgHeight = (res.windowWidth - 60) * 2 - 30 + 'rpx'
this.getImgList()
}
})
},
methods: {
//
async getImgList() {
const res = await imgLists()
if (res.data.code === 200) {
for (let i = 0; i < res.data.rows.length; i++) {
if (i % 2 == 0) {
this.imgList2.push(res.data.rows[i])
} else {
this.imgList1.push(res.data.rows[i])
}
}
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
},
//
targetDetail(item) {
console.log('跳转', item)
if (item.id) {
uni.setStorage({
key: 'detailId',
data: item.id,
success() {
console.log(111111)
uni.redirectTo({
url: '../creator/imgDetail'
})
}
})
}
}
},
// onUnload() {
// uni.switchTab({
// url: '/pages/index/index'
// })
// },
}
</script>
<style lang="less">
.choiceness {
padding-right: 40rpx;
padding-top: 40rpx;
.uni-searchbar {
border: 1px solid #11A8FD;
border-radius: 16rpx;
padding: 0;
.uni-searchbar__box {
padding: 0;
border-radius: 16rpx !important;
}
}
.choiceness-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>

246
pages/index/index.vue

@ -1,45 +1,245 @@
<template>
<view class="container">
<!-- <view>
<cover-image class="img" src="/static/logo.png"></cover-image>
</view> -->
<view>
<uni-search-bar class="uni-mt-10" radius="5" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto"
cancelButton="none" @confirm="search" />
<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" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto" cancelButton="none"
@confirm="search" />
<text>大家都在搜</text>
<view class="user-list">
<view class="user-list-box" v-for="(item,index) in userList" :key='item.id'
@click="goUserDetail(item.scanCode)">
<image :src="item.img" mode=""></image>
<text>{{item.tiktokNumber}}</text>
</view>
<view class="user-list-box" v-for="(item,index) in userList" :key='item.id'>
<image :src="item.img" mode=""></image>
<text>{{item.tiktokNumber}}</text>
</view>
<view class="user-list-box" v-for="(item,index) in userList" :key='item.id'>
<image :src="item.img" mode=""></image>
<text>{{item.tiktokNumber}}</text>
</view>
</view>
</view>
<view>
<view class="middle">
<text>近期精选</text>
<image src="../../static/img/slide-top.svg" mode=""></image>
</view>
</view>
</template>
<script>
import {
tiktokUserImgs,
tiktokUserDetails,
loginTiktok
} from '@/api/index.js'
export default {
data() {
return {
userList: []
}
},
created() {
const userInfo = uni.getStorageSync('userInfo')
if (!userInfo) {
console.log('havent userInfo')
this.getUserInfo()
} else {
console.log('have userInfo')
}
this.getUserList()
},
onPageScroll(e) {
// scrollTopeasy-loadimage
console.log('e.scrollTop', e.scrollTop)
if (e.scrollTop > 200) {
uni.redirectTo({
url: './choiceness'
})
}
},
methods: {
//
search(res) {
uni.showToast({
title: '搜索:' + res.value,
icon: 'none'
})
if (res.value) {
console.log('search', res.value)
this.goUserDetail(res.value)
} else {
uni.showToast({
title: '请输入艺术家代号',
icon: 'error'
})
}
},
}
//
getUserInfo() {
tt.login({
force: true,
success: res => {
tt.getUserInfo({
withCredentials: true,
success: userInfo => {
const params = {
code: res.code,
encryptedData: userInfo.encryptedData,
iv: userInfo.iv
}
//
loginTiktok(params).then(res => {
if (res.data.code === 200) {
uni.setStorage({
key: 'userInfo',
data: res.data.data.userInfo,
})
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
}).catch(res => {})
console.log(`getUserInfo 调用成功`, userInfo);
},
fail(userInfo) {
console.log(`getUserInfo 调用失败`);
},
});
},
fail(res) {
console.log(`login 调用失败`);
},
});
},
//
async getUserList() {
const res = await tiktokUserImgs()
if (res.data.code === 200) {
this.userList = res.data.data
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
console.log('getUserList', res)
},
//
async goUserDetail(scanCode) {
if (scanCode) {
const res = await tiktokUserDetails({
scanCode
})
console.log('tiktokUserDetails', res)
if (res.data.code === 200) {
uni.setStorage({
key: 'userDetail',
data: res.data.data,
success() {
uni.redirectTo({
url: '../creator/userDetail'
})
}
})
} else {
uni.showToast({
title: res.data.msg,
icon: 'error'
})
}
} else {
uni.showToast({
title: '搜索码不能为空',
icon: 'error'
})
}
},
//
handleScroll() {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
console.log(scrollTop)
},
},
}
</script>
<style>
<style lang="less">
.container {
padding: 20px;
font-size: 14px;
line-height: 24px;
.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 {
padding: 0;
border-radius: 16rpx !important;
}
}
>text {
font-weight: bold;
font-size: 14px;
display: block;
text-align: center;
padding-top: 40rpx;
padding-bottom: 20rpx;
}
.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 {
font-size: 24rpx;
color: #1E1E1E;
text-align: center;
}
}
}
}
.middle {
text-align: center;
height: calc(100vh - 248rpx);
padding-top: 40rpx;
text {
font-weight: bold;
font-size: 14px;
display: block;
}
image {
width: 40rpx;
height: 40rpx;
}
}
}
</style>

BIN
static/collect-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
static/collect.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
static/collectLength.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
static/download-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
static/download.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
static/hot-not.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
static/hot-yes.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

2
static/img/share.svg

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1652699648832" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4781" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M833.493333 842.666667H201.173333A43.413333 43.413333 0 0 1 160 797.333333v-485.333333A43.413333 43.413333 0 0 1 201.173333 266.666667h91.84a10.666667 10.666667 0 0 1 0 21.333333h-91.84A22.293333 22.293333 0 0 0 181.333333 312v485.333333A22.293333 22.293333 0 0 0 201.173333 821.333333h632.32A22.293333 22.293333 0 0 0 853.333333 797.333333V508.48a10.666667 10.666667 0 0 1 21.333334 0v288.853333A43.413333 43.413333 0 0 1 833.493333 842.666667z" fill="#ffffff" p-id="4782"></path><path d="M330.666667 640a10.666667 10.666667 0 0 1-10.666667-10.666667 362.666667 362.666667 0 0 1 362.666667-362.666666h141.12L709.333333 201.28a10.666667 10.666667 0 1 1 10.666667-18.56l149.333333 85.333333A10.666667 10.666667 0 0 1 864 288H682.666667a341.333333 341.333333 0 0 0-341.333334 341.333333 10.666667 10.666667 0 0 1-10.666666 10.666667z" fill="#ffffff" p-id="4783"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

2
static/img/slide-top.svg

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1652526355166" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8351" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M533.333333 512L341.333333 704l29.866667 29.866667 162.133333-162.133334 162.133334 162.133334 29.866666-29.866667-192-192z m0-256L341.333333 448l29.866667 29.866667 162.133333-162.133334 162.133334 162.133334 29.866666-29.866667L533.333333 256z" fill="#444444" p-id="8352"></path></svg>

After

Width:  |  Height:  |  Size: 979 B

BIN
static/img/start.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
static/imgLength.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
static/index-default.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
static/index-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
static/jiantou-right.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
static/like-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
static/like.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
static/likeLength.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
static/mine-default.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
static/mine-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
static/share.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
static/theme-default.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
static/theme-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

17
unpackage/dist/dev/mp-toutiao/app.json

@ -1,7 +1,10 @@
{
"pages": [
"pages/index/index",
"pages/index/choiceness",
"pages/creator/creator",
"pages/creator/userDetail",
"pages/creator/imgDetail",
"pages/userInfo/userInfo",
"pages/userInfo/myCollection/myCollection",
"pages/userInfo/question/question",
@ -17,26 +20,26 @@
},
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#007AFF",
"selectedColor": "#1296DB",
"borderStyle": "black",
"backgroundColor": "#F8F8F8",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"iconPath": "static/index-default.png",
"selectedIconPath": "static/index-select.png",
"text": "首页"
},
{
"pagePath": "pages/creator/creator",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"iconPath": "static/theme-default.png",
"selectedIconPath": "static/theme-select.png",
"text": "艺术家"
},
{
"pagePath": "pages/userInfo/userInfo",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"iconPath": "static/mine-default.png",
"selectedIconPath": "static/mine-select.png",
"text": "我的"
}
]

63
unpackage/dist/dev/mp-toutiao/common/main.js

File diff suppressed because one or more lines are too long

6
unpackage/dist/dev/mp-toutiao/common/runtime.js

File diff suppressed because one or more lines are too long

770
unpackage/dist/dev/mp-toutiao/common/vendor.js

File diff suppressed because one or more lines are too long

147
unpackage/dist/dev/mp-toutiao/pages/creator/creator.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/dev/mp-toutiao/pages/creator/creator.ttml

@ -1 +1 @@
<view class="content 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 data-v-5830ad60"><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="data-v-5830ad60"><text class="data-v-5830ad60">图标</text><text class="data-v-5830ad60">11111</text></view><view class="data-v-5830ad60"><text class="data-v-5830ad60">图标</text><text class="data-v-5830ad60">11111</text></view><view class="data-v-5830ad60"><text class="data-v-5830ad60">图标</text><text class="data-v-5830ad60">11111</text></view></view></view></view><view class="data-v-5830ad60">jiantou</view></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]]]]]]]}}" 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 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>

41
unpackage/dist/dev/mp-toutiao/pages/creator/creator.ttss

@ -1,33 +1,56 @@
@charset "UTF-8";
/* 水平间距 */
/* 水平间距 */
.content.data-v-5830ad60 {
.creator.data-v-5830ad60 {
padding: 20rpx;
background-color: #ffffff;
font-size: 22rpx;
}
.content .list.data-v-5830ad60 {
.creator .list.data-v-5830ad60 {
margin-top: 20rpx;
}
.content .list-item.data-v-5830ad60 {
.creator .list-item.data-v-5830ad60 {
padding: 5rpx;
margin-top: 20rpx;
}
.content .list .head-box.data-v-5830ad60 {
.creator .list .list-top.data-v-5830ad60 {
margin-bottom: 20rpx;
}
.creator .list .head-box.data-v-5830ad60 {
flex: .8;
}
.content .list .head-box > .ml-10.data-v-5830ad60 {
.creator .list .head-box > .ml-10.data-v-5830ad60 {
flex: 1;
height: 40px;
padding: 4rpx 0;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.creator .list .head-box > .ml-10 .imgLength-box.data-v-5830ad60 {
display: flex;
justify-content: flex-start;
align-items: center;
}
.creator .list .head-box > .ml-10 .imgLength-box .img-icon.data-v-5830ad60 {
width: 30rpx;
height: 30rpx;
}
.creator .list .jiantou.data-v-5830ad60 {
width: 40rpx;
height: 40rpx;
}
.content .list .img-box.data-v-5830ad60 {
.creator .list .img-box.data-v-5830ad60 {
margin-top: 10rpx;
display: flex;
justify-content: flex-start;
}
.content .list .img-box > view.data-v-5830ad60 {
.creator .list .img-box view.data-v-5830ad60 {
width: 32%;
}
.content .list .img-box > view image.data-v-5830ad60 {
.creator .list .img-box view image.data-v-5830ad60 {
border-radius: 8rpx;
width: 100%;
width: calc(100% - 12rpx);
}
.swiper-box.data-v-5830ad60 {
height: 250rpx;

473
unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.js

File diff suppressed because one or more lines are too long

5
unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.json

@ -0,0 +1,5 @@
{
"navigationBarTitleText": "",
"enablePullDownRefresh": true,
"usingComponents": {}
}

1
unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.ttml

@ -0,0 +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>

41
unpackage/dist/dev/mp-toutiao/pages/creator/imgDetail.ttss

@ -0,0 +1,41 @@
.imgDetail {
height: 100vh;
width: 100vw;
overflow: hidden;
position: relative;
}
.imgDetail .main-img {
width: 100%;
height: 100%;
}
.imgDetail .toolbar {
width: 60px;
height: 360px;
background-color: rgba(255, 255, 255, 0.2);
position: absolute;
bottom: 76px;
right: 10px;
border-radius: 60px;
padding-top: 40rpx;
}
.imgDetail .toolbar .toolbar-box {
height: 60px;
text-align: center;
margin-bottom: 40rpx;
}
.imgDetail .toolbar .toolbar-box text {
display: block;
text-align: center;
line-height: 60rpx;
font-size: 12px;
}
.imgDetail .toolbar .toolbar-box image {
width: 50rpx;
height: 50rpx;
margin: 0 auto;
}
.imgDetail .toolbar .toolbar-box:first-child {
line-height: 40rpx;
height: 40rpx;
}

285
unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.js

File diff suppressed because one or more lines are too long

7
unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.json

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "",
"enablePullDownRefresh": true,
"usingComponents": {
"uni-segmented-control": "/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control"
}
}

1
unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.ttml

@ -0,0 +1 @@
<view class="userDetail"><view class="avatar-box"><view class="avatar-top"><view class="avatar-left-box"><image src="{{userMsg.img}}" mode></image><text>{{userMsg.username}}</text></view><view class="avatar-right-box"><image src="../../static/img/share.svg" mode></image></view></view><view class="avatar-box-text">个性签名</view><view class="avatar-box-tag"><view class="avatar-box-tag-left"><view class="tag-left-box"><text>112</text><text>作品</text></view><view class="tag-left-box"><text>112</text><text>收藏</text></view><view class="tag-left-box"><text>112</text><text>喜欢</text></view></view><view class="avatar-box-tag-right"></view></view></view><view class="middle"><uni-segmented-control vue-id="b78c2d26-1" current="{{current}}" values="{{arrList}}" styleType="text" activeColor="#11A8FD" data-event-opts="{{[['^clickItem',[['onClickItem']]]]}}" bind:clickItem="__e" bind:__l="__l"></uni-segmented-control></view><view class="bottom"><block tt:for="{{userMsg.imgList}}" tt:for-item="item" tt:for-index="index" tt:key="index"><image style="{{('width:'+imgWidth+';height:'+imgHeight)}}" src="{{item.imgUrl}}" mode data-event-opts="{{[['tap',[['targetDetail',['$0'],[[['userMsg.imgList','',index]]]]]]]}}" bindtap="__e"></image></block></view></view>

71
unpackage/dist/dev/mp-toutiao/pages/creator/userDetail.ttss

@ -0,0 +1,71 @@
.userDetail .avatar-box {
padding: 20rpx 20rpx;
background: #11A8FD;
}
.userDetail .avatar-box .avatar-top {
display: flex;
justify-content: space-between;
align-items: center;
height: 120rpx;
}
.userDetail .avatar-box .avatar-top .avatar-left-box {
display: flex;
justify-content: flex-start;
align-items: center;
}
.userDetail .avatar-box .avatar-top .avatar-left-box image {
width: 80rpx;
height: 80rpx;
border-radius: 80rpx;
}
.userDetail .avatar-box .avatar-top .avatar-left-box text {
font-size: 14px;
color: #fff;
margin-left: 20rpx;
}
.userDetail .avatar-box .avatar-top .avatar-right-box image {
width: 40rpx;
height: 40rpx;
}
.userDetail .avatar-box .avatar-box-text {
color: #fff;
font-size: 12px;
}
.userDetail .avatar-box .avatar-box-tag {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 24rpx;
}
.userDetail .avatar-box .avatar-box-tag .avatar-box-tag-left {
display: flex;
justify-content: flex-start;
align-items: center;
}
.userDetail .avatar-box .avatar-box-tag .avatar-box-tag-left .tag-left-box {
width: 120rpx;
}
.userDetail .avatar-box .avatar-box-tag .avatar-box-tag-left .tag-left-box text {
display: block;
color: #fff;
font-size: 12px;
}
.userDetail .avatar-box .avatar-box-tag .avatar-box-tag-left .tag-left-box text:last-child {
margin-top: 8rpx;
}
.userDetail .middle .segmented-control {
border-radius: 8rpx 8rpx 0 0;
background-color: rgba(17, 168, 253, 0.1);
}
.userDetail .bottom {
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
}
.userDetail .bottom image {
margin-top: 40rpx;
margin-left: 40rpx;
border-radius: 16rpx;
}

276
unpackage/dist/dev/mp-toutiao/pages/index/choiceness.js

File diff suppressed because one or more lines are too long

7
unpackage/dist/dev/mp-toutiao/pages/index/choiceness.json

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "近期精选",
"enablePullDownRefresh": true,
"usingComponents": {
"uni-search-bar": "/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar"
}
}

1
unpackage/dist/dev/mp-toutiao/pages/index/choiceness.ttml

@ -0,0 +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>

35
unpackage/dist/dev/mp-toutiao/pages/index/choiceness.ttss

@ -0,0 +1,35 @@
.choiceness {
padding-right: 40rpx;
padding-top: 40rpx;
}
.choiceness .uni-searchbar {
border: 1px solid #11A8FD;
border-radius: 16rpx;
padding: 0;
}
.choiceness .uni-searchbar .uni-searchbar__box {
padding: 0;
border-radius: 16rpx !important;
}
.choiceness .choiceness-list {
display: flex;
}
.choiceness .choiceness-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;
}
.choiceness .choiceness-list image {
margin-top: 40rpx;
margin-left: 40rpx;
border-radius: 16rpx;
}

311
unpackage/dist/dev/mp-toutiao/pages/index/index.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/dev/mp-toutiao/pages/index/index.ttml

@ -1 +1 @@
<view class="container"><view><uni-search-bar class="uni-mt-10" vue-id="8dda190e-1" radius="5" placeholder="请输入喜欢的艺术家代号吧~" clearButton="auto" cancelButton="none" data-event-opts="{{[['^confirm',[['search']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-search-bar></view><view></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><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>

64
unpackage/dist/dev/mp-toutiao/pages/index/index.ttss

@ -1,7 +1,61 @@
.container {
padding: 20px;
font-size: 14px;
line-height: 24px;
.container .top {
width: 100vw;
}
.container .top image {
width: 100vw;
height: 400rpx;
}
.container .top .uni-searchbar {
border: 1px solid #11A8FD;
margin: 0 40rpx;
border-radius: 16rpx;
padding: 0;
}
.container .top .uni-searchbar .uni-searchbar__box {
padding: 0;
border-radius: 16rpx !important;
}
.container .top > text {
font-weight: bold;
font-size: 14px;
display: block;
text-align: center;
padding-top: 40rpx;
padding-bottom: 20rpx;
}
.container .top .user-list {
display: flex;
justify-content: flex-start;
align-items: center;
overflow-x: auto;
}
.container .top .user-list .user-list-box {
width: 140rpx;
padding: 20rpx;
text-align: center;
}
.container .top .user-list .user-list-box image {
width: 100rpx;
height: 100rpx;
border-radius: 100rpx;
}
.container .top .user-list .user-list-box text {
font-size: 24rpx;
color: #1E1E1E;
text-align: center;
}
.container .middle {
text-align: center;
height: calc(100vh - 248rpx);
padding-top: 40rpx;
}
.container .middle text {
font-weight: bold;
font-size: 14px;
display: block;
}
.container .middle image {
width: 40rpx;
height: 40rpx;
}

80
unpackage/dist/dev/mp-toutiao/pages/userInfo/contactUs/contactUs.js

File diff suppressed because one or more lines are too long

129
unpackage/dist/dev/mp-toutiao/pages/userInfo/myCollection/myCollection.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/dev/mp-toutiao/pages/userInfo/myCollection/myCollection.ttml

@ -1 +1 @@
<view><text>这是我的收藏</text></view>
<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>

80
unpackage/dist/dev/mp-toutiao/pages/userInfo/question/question.js

File diff suppressed because one or more lines are too long

184
unpackage/dist/dev/mp-toutiao/pages/userInfo/setting/setting.js

File diff suppressed because one or more lines are too long

194
unpackage/dist/dev/mp-toutiao/pages/userInfo/userInfo.js

File diff suppressed because one or more lines are too long

29
unpackage/dist/dev/mp-toutiao/project.config.json

@ -1,23 +1,8 @@
{
"setting": {
"urlCheck": false
},
"appid": "ttc408b2b55b364f6601",
"projectname": "app",
"condition": {
"miniprogram": {
"list": [
{
"id": 1651737979264,
"name": "1",
"pathName": "pages/creator/creator",
"query": "",
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
}
],
"current": 1651737979264
}
}
}
"setting": {
"urlCheck": false,
"es6": true
},
"appid": "ttc408b2b55b364f6601",
"projectname": "app"
}

BIN
unpackage/dist/dev/mp-toutiao/static/collect-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/collect.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/collectLength.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/download-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/download.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/hot-not.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/hot-yes.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

2
unpackage/dist/dev/mp-toutiao/static/img/share.svg

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1652699648832" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4781" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M833.493333 842.666667H201.173333A43.413333 43.413333 0 0 1 160 797.333333v-485.333333A43.413333 43.413333 0 0 1 201.173333 266.666667h91.84a10.666667 10.666667 0 0 1 0 21.333333h-91.84A22.293333 22.293333 0 0 0 181.333333 312v485.333333A22.293333 22.293333 0 0 0 201.173333 821.333333h632.32A22.293333 22.293333 0 0 0 853.333333 797.333333V508.48a10.666667 10.666667 0 0 1 21.333334 0v288.853333A43.413333 43.413333 0 0 1 833.493333 842.666667z" fill="#ffffff" p-id="4782"></path><path d="M330.666667 640a10.666667 10.666667 0 0 1-10.666667-10.666667 362.666667 362.666667 0 0 1 362.666667-362.666666h141.12L709.333333 201.28a10.666667 10.666667 0 1 1 10.666667-18.56l149.333333 85.333333A10.666667 10.666667 0 0 1 864 288H682.666667a341.333333 341.333333 0 0 0-341.333334 341.333333 10.666667 10.666667 0 0 1-10.666666 10.666667z" fill="#ffffff" p-id="4783"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

2
unpackage/dist/dev/mp-toutiao/static/img/slide-top.svg

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1652526355166" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8351" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M533.333333 512L341.333333 704l29.866667 29.866667 162.133333-162.133334 162.133334 162.133334 29.866666-29.866667-192-192z m0-256L341.333333 448l29.866667 29.866667 162.133333-162.133334 162.133334 162.133334 29.866666-29.866667L533.333333 256z" fill="#444444" p-id="8352"></path></svg>

After

Width:  |  Height:  |  Size: 979 B

BIN
unpackage/dist/dev/mp-toutiao/static/img/start.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
unpackage/dist/dev/mp-toutiao/static/imgLength.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/index-default.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/index-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/jiantou-right.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/like-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/like.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/likeLength.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/mine-default.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/mine-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/share.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/theme-default.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
unpackage/dist/dev/mp-toutiao/static/theme-select.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

96
unpackage/dist/dev/mp-toutiao/uni_modules/uni-badge/components/uni-badge/uni-badge.js

File diff suppressed because one or more lines are too long

98
unpackage/dist/dev/mp-toutiao/uni_modules/uni-icons/components/uni-icons/uni-icons.js

File diff suppressed because one or more lines are too long

100
unpackage/dist/dev/mp-toutiao/uni_modules/uni-list/components/uni-list-item/uni-list-item.js

File diff suppressed because one or more lines are too long

96
unpackage/dist/dev/mp-toutiao/uni_modules/uni-list/components/uni-list/uni-list.js

File diff suppressed because one or more lines are too long

100
unpackage/dist/dev/mp-toutiao/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.js

File diff suppressed because one or more lines are too long

244
unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.js

File diff suppressed because one or more lines are too long

4
unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.json

@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}

1
unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.ttml

@ -0,0 +1 @@
<view class="{{(('segmented-control')+' '+(styleType==='text'?'segmented-control--text':'segmented-control--button'))}}" style="{{'border-color:'+(styleType==='text'?'':activeColor)+';'}}"><block tt:for="{{values}}" tt:for-item="item" tt:for-index="index" tt:key="index"><view data-event-opts="{{[['tap',[['_onClick',[index]]]]]}}" class="{{((((('segmented-control__item')+' '+(styleType==='text'?'':'segmented-control__item--button'))+' '+(index===currentIndex&&styleType==='button'?'segmented-control__item--button--active':''))+' '+(index===0&&styleType==='button'?'segmented-control__item--button--first':''))+' '+(index===values.length-1&&styleType==='button'?'segmented-control__item--button--last':''))}}" style="{{'background-color:'+(index===currentIndex&&styleType==='button'?activeColor:'')+';'+('border-color:'+(index===currentIndex&&styleType==='text'||styleType==='button'?activeColor:'transparent')+';')}}" bindtap="__e"><view><text class="{{(('segmented-control__text')+' '+(styleType==='text'&&index===currentIndex?'segmented-control__item--text':''))}}" style="{{'color:'+(index===currentIndex?styleType==='text'?activeColor:'#fff':styleType==='text'?'#000':activeColor)+';'}}">{{item}}</text></view></view></block></view>

45
unpackage/dist/dev/mp-toutiao/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.ttss

@ -0,0 +1,45 @@
@charset "UTF-8";
/* 水平间距 */
/* 水平间距 */
.segmented-control {
display: flex;
box-sizing: border-box;
flex-direction: row;
height: 36px;
overflow: hidden;
}
.segmented-control__item {
display: inline-flex;
box-sizing: border-box;
position: relative;
flex: 1;
justify-content: center;
align-items: center;
}
.segmented-control__item--button {
border-style: solid;
border-top-width: 1px;
border-bottom-width: 1px;
border-right-width: 1px;
border-left-width: 0;
}
.segmented-control__item--button--first {
border-left-width: 1px;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.segmented-control__item--button--last {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.segmented-control__item--text {
border-bottom-style: solid;
border-bottom-width: 2px;
padding: 6px 0;
}
.segmented-control__text {
font-size: 14px;
line-height: 20px;
text-align: center;
}

4
utils/request.js

@ -23,8 +23,6 @@ service.interceptors.request.use(
// }) :
// config.params = { ...config.params
// };
console.log('请求拦截成功')
console.log(config)
return config;
},
error => {
@ -35,7 +33,6 @@ service.interceptors.request.use(
//配置成功后的拦截器
service.interceptors.response.use(res => {
console.log('返回参数',res)
return res
// if (res.data.status == 200) {
// return res
@ -60,7 +57,6 @@ axios.defaults.adapter = function(config) { //自己定义个适配器,用来
responseType: config.responseType,
sslVerify: config.sslVerify,
complete: function complete(response) {
console.log("执行完成:", response)
response = {
data: response.data,
status: response.statusCode,

Loading…
Cancel
Save