作者 刘晓艳

穿搭bug修改

... ... @@ -5,6 +5,6 @@
<view>审核!</view>
<view>别急!</view>
</view>
<view class='bottom_btn' bindtap='goIndex'>确定</view>
<view class='bottom_btn' bindtap='goIndex'>回首页</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -17,18 +17,58 @@ Page({
comment_text: ''
},
showPoster() {
this.setData({
showPoster(e) {
var id = e.currentTarget.dataset.id
var that = this
wx.hideTabBar({})
wx.showToast({
title: '加载中',
icon: 'loading'
})
// setTimeout(function() {
that.setData({
poster_state: true
})
// }, 2000)
this.getPoster(id)
},
canclePopup() {
var list = this.data.list
for (var i = 0; i < list.length; i++) {
list[i].more_state = false
}
this.setData({
poster_state: false
poster_state: false,
list: list
})
wx.showTabBar({})
},
getPoster(id) {
let that = this;
let url = '/home/index/fashionShare';
let param = {
list_id: id
}
let header = {
'XX-Token': wx.getStorageSync('token'),
'XX-Device-Type': 'wxapp'
}
app.post(url, param, header).then((res) => {
console.log(res)
if (res.data.code == 20000) {
this.setData({
poster: res.data.data.url,
})
}
})
},
showMore() {
this.setData({
more_state: !(this.data.more_state)
... ...
... ... @@ -103,7 +103,7 @@
<!-- <textarea placeholder='请输入评论内容' bindconfirm='submitComment' fixed='true'></textarea> -->
</view>
<view class='mask_box' wx:if='{{poster_state}}'>
<!-- <view class='mask_box' wx:if='{{poster_state}}'>
<view class='popup_box'>
<view>
<view class='popup_content_box'>
... ... @@ -126,4 +126,24 @@
</view>
<view class='iconfont icon-quxiao' bindtap='canclePopup'></view>
</view>
</view> -->
<view class='mask_box2' wx:if='{{poster_state}}'>
<view class='popup_box2'>
<view>
<view class='popup_content_box'>
<view class='popup_info_box'>
<view class='popup_img'>
<image src='{{poster}}'></image>
</view>
<view class='popup_icon_box'>
<view class='popup_btn_box' bindtap='saveImg' data-src='{{poster}}'>
<view class='popup_btn2'>保存图片</view>
</view>
</view>
</view>
</view>
</view>
<view class='iconfont icon-quxiao' bindtap='canclePopup'></view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -453,13 +453,121 @@ page {
border-radius: 10rpx;
}
.popup_info_box {
.mask_chassify_box {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
position: fixed;
top: 90rpx;
left: 0;
z-index: 10;
}
.classif_popup_box {
width: 80%;
height: 100%;
background: #fff;
position: fixed;
top: 90rpx;
right: 0rpx;
z-index: 10;
}
.classify_item {
display: flex;
align-items: center;
padding: 20rpx 30rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #ebebeb;
font-size: 28rpx;
color: #282829;
}
.chassify_picker {
width: 83%;
display: flex;
align-items: center;
}
.chassify_picker input {
width: 140%;
text-align: right;
}
.classify_btn_box {
width: 80%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
box-sizing: border-box;
position: fixed;
bottom: 30rpx;
}
.classify_btn {
width: 200rpx;
height: 80rpx;
background: #ebebeb;
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
color: #282829;
}
.classify_active {
background: #000;
color: #fff;
}
.mask_box2 {
width: 100%;
height: 100%;
background: #000;
position: fixed;
top: 0;
left: 0;
z-index: 10;
padding: 30rpx;
box-sizing: border-box;
}
.icon-quxiao {
font-size: 36rpx;
text-align: center;
color: #fff;
position: absolute;
bottom: -80rpx;
left: 50%;
transform: translateX(-50%);
}
.popup_box2 {
width: 100%;
border-radius: 10rpx;
position: relative;
}
.popup_box2 image {
width: 100%;
height: 686rpx;
border-radius: 10rpx;
}
.popup_info_box {
width: 686rpx;
/* background: #fff;
padding: 30rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #282829; */
border-radius: 10rpx;
position: relative;
}
.popup_icon_box {
... ... @@ -468,9 +576,12 @@ page {
justify-content: space-between;
padding: 0 45rpx;
margin-top: 30rpx;
position: absolute;
left: 0;
bottom: 0;
}
.popup_title {
.popup_title2 {
font-size: 34rpx;
color: #000;
font-weight: bold;
... ... @@ -489,7 +600,7 @@ page {
position: relative;
}
.popup_btn {
.popup_btn2 {
width: 200rpx;
height: 72rpx;
background: rgba(0, 0, 0, 1);
... ... @@ -523,77 +634,26 @@ page {
position: absolute;
bottom: -25rpx;
right: 0;
z-index: 100;
}
.popup_img {
position: relative;
}
.mask_chassify_box {
.popup_img{
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
position: fixed;
top: 90rpx;
left: 0;
z-index: 10;
height:1026rpx;
border-radius: 16rpx;
overflow: hidden;
}
.classif_popup_box {
width: 80%;
.popup_img image{
width: 100%;
height: 100%;
background: #fff;
position: fixed;
top: 90rpx;
right: 0rpx;
z-index: 10;
}
.classify_item {
display: flex;
align-items: center;
padding: 20rpx 30rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #ebebeb;
font-size: 28rpx;
color: #282829;
}
.chassify_picker {
width: 83%;
display: flex;
align-items: center;
}
.chassify_picker input {
width: 140%;
text-align: right;
}
.classify_btn_box {
width: 80%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
box-sizing: border-box;
position: fixed;
bottom: 30rpx;
}
.classify_btn {
width: 200rpx;
height: 80rpx;
background: #ebebeb;
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
color: #282829;
.popup_img2 {
width: 686rpx;
height: 686rpx;
position: relative;
}
.classify_active {
background: #000;
color: #fff;
.popup_img2 image {
width: 100%;
height: 100%;
}
... ...
... ... @@ -7,7 +7,9 @@ Page({
*/
data: {
status: '',
list: []
list: [],
mask_state:false,
id:0,
},
goUserInfo(e) {
... ... @@ -20,7 +22,9 @@ Page({
getData() {
let url = '/home/index/checkFans'
let params = {
status: this.data.status
status: this.data.status,
open_user_id:this.data.id,
page:1
}
let header = {
"XX-Token": wx.getStorageSync('token'),
... ... @@ -29,11 +33,6 @@ Page({
app.post(url, params, header).then((res) => {
console.log(res)
var list = res.data.data.list
// if (this.data.status == 1) {
// for (var i in list) {
// list[i].user_host == 1
// }
// }
if (res.data.code == 20000) {
this.setData({
list: list
... ... @@ -42,34 +41,53 @@ Page({
})
},
//点击关注
attention(e) {
var status = ''
var index = e.currentTarget.dataset.index
//关注接口
// attentionInfo(e) {
// let that = this;
// var id = e.currentTarget.dataset.id
// var status = e.currentTarget.dataset.status
// let url = '/home/index/host';
// let param = {
// open_user_id: id,
// status: status
// }
// let header = {
// 'XX-Token': wx.getStorageSync('token'),
// 'XX-Device-Type': 'wxapp'
// }
// app.post(url, param, header).then((res) => {
// if (res.data.code == 20000) {
// this.getData()
// }
// })
// },
showMask(e) {
var id = e.currentTarget.dataset.id
var list = this.data.list
if (list.user_host == 1) {
list.user_host = 0
status = 2
} else {
list.user_host = 1
status = 1
}
this.attentionInfo(id, status)
var status = e.currentTarget.dataset.status
wx.setStorageSync('id', id)
wx.setStorageSync('status', status)
this.setData({
list: list
mask_state: true,
// id: id,
// status: status
})
},
//关注接口
attentionInfo(e) {
let that = this;
var id = e.currentTarget.dataset.id
var status = e.currentTarget.dataset.status
cancleMask() {
this.setData({
mask_state: false
})
},
attentionInfo() {
var id = wx.getStorageSync('id')
var status = parseInt(wx.getStorageSync('status'))
var that = this
let url = '/home/index/host';
let param = {
open_user_id: id,
status: status
open_user_id:id,
status:status ,
}
let header = {
'XX-Token': wx.getStorageSync('token'),
... ... @@ -77,18 +95,18 @@ Page({
}
app.post(url, param, header).then((res) => {
if (res.data.code == 20000) {
this.getData()
that.getData()
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.setData({
status: options.status ? options.status : ''
status: options.status ? options.status : '',
id: options.id ? options.id : 0
})
this.getData()
if (options.status == 1) {
... ...
<!--pages/index/fans/fans.wxml-->
<view class='content_box'>
<view class='item_list' wx:for='{{list}}' wx:key bindtap='goUserInfo' data-id='{{item.id}}'>
<view class='item_list' wx:for='{{list}}' wx:key catchtap='goUserInfo' data-id='{{item.id}}'>
<view class='list_left'>
<image class='head_img' src='{{item.avatar}}'></image>
<view>
... ... @@ -10,7 +10,18 @@
</view>
</view>
</view>
<view class="list_label list_active" bindtap='attentionInfo' data-id='{{item.id}}' data-status='1' wx:if='{{status==2}}'>添加关注</view>
<view class="list_label" bindtap='attentionInfo' data-id='{{item.id}}' data-status='2' wx:if='{{status==1}}'>取消关注</view>
<view class="list_label list_active" catchtap='showMask' data-id='{{item.id}}' data-status='1' wx:if='{{status==2}}'>添加关注</view>
<view class="list_label" catchtap='showMask' data-id='{{item.id}}' data-status='2' wx:if='{{status==1}}'>取消关注</view>
</view>
</view>
<view class='mask_box' wx:if='{{mask_state}}' catchtap='cancleMask'>
<view class='popup_box'>
<view class='popup_title'>提示</view>
<view>确认取消关注吗?</view>
<view class='popup_btn_box'>
<view class='popup_btn' catchtap='cancleMask'>取消</view>
<view class='popup_btn' bindtap='attentionInfo'>确定</view>
</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -14,11 +14,11 @@ Page({
style_array: ['时尚', '学院', '欧美风'],
style_index: -1,
height_array: [
'150cm-155cm', '155cm-160cm', '160cm-165cm', '165cm-170cm', '170cm-175cm', '175cm-180cm', '180cm-185cm', '185cm-190cm',
'150cm-153cm', '153cm-156cm', '156cm-159cm', '159cm-162cm', '162cm-165cm', '165cm-168cm', '168cm-171cm', '171cm-174cm', '174cm-177cm', '174cm-177cm', '177cm-180cm', '180cm-183cm', '183cm-186cm', '186cm-189cm', '192cm-195cm', '195cm-198cm',
],
height_index: -1,
weight_array: [
'40kg-45kg', '45kg-50kg', '55kg-60kg', '60kg-65kg', '65kg-70kg', '70kg-75kg', '75kg-80kg', '85kg-90kg', '90kg-95kg',
'45kg-50kg', '50kg-55kg', '55kg-60kg', '60kg-65kg', '65kg-70kg', '70kg-75kg', '75kg-80kg', '80kg-85kg', '85kg-90kg', '90kg-95kg', '95kg-100kg'
],
weight_index: -1,
sex: '',
... ... @@ -27,13 +27,16 @@ Page({
stature: '',
weight: '',
status: 0,
list: [],
order: 1,
poster_list: [],
img_state: false,
imgUrl: '',
img_text: '',
poster: '',
list: [],
list2: [],
last_page: '',
// https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534766809331&di=012cc4ad15d457ffa55c6537503eb84a&imgtype=0&src=http%3A%2F%2Fpicture.5068.com%2Fallimg%2F121120%2F4-1211201G920.jpg
cardPath: '',
... ... @@ -83,7 +86,7 @@ Page({
var list = this.data.list
var imgs = list[mindex].img
var current = e.currentTarget.dataset.src
console.log(imgs)
// console.log(imgs)
this.setData({
imgUrl: current,
img_text: e.currentTarget.dataset.text,
... ... @@ -248,16 +251,16 @@ Page({
showPoster(e) {
var id = e.currentTarget.dataset.id
var that=this
var that = this
wx.hideTabBar({})
wx.showToast({
title: '加载中',
icon: 'loading'
})
// setTimeout(function() {
that.setData({
poster_state: true
})
that.setData({
poster_state: true
})
// }, 2000)
this.getPoster(id)
},
... ... @@ -436,15 +439,29 @@ Page({
'XX-Device-Type': 'wxapp'
}
app.post(url, param, header).then((res) => {
console.log('data', res)
if (res.data.code == 20000) {
var list = res.data.data.list
for (var i = 0; i < list.length; i++) {
list[i].more_state = false
}
if (list != '') {
var list = this.data.list
console.log(list, '33')
console.log(list.concat(res.data.data.list))
// list2.concat(res.data.data.list)
// var list = list2
// for (var i = 0; i < list.length; i++) {
// list[i].more_state = false
// }
if (res.data.data.list != '') {
console.log(that.data.list2)
that.setData({
list: list,
page: res.data.data.page,
list: list.concat(res.data.data.list),
last_page: res.data.data.last_page,
})
console.log('list', that.data.list)
} else if (this.data.page > res.data.data.last_page) {
wx.showToast({
title: '没有更多数据了',
icon: 'none'
})
} else {
wx.showToast({
... ... @@ -460,8 +477,6 @@ Page({
}).catch((errMsg) => {})
},
//画图
drawCanvas: function() {
console.log(this.data.cardPath, 'aa')
... ... @@ -545,13 +560,9 @@ Page({
}
},
onLoad: function() {
this.getData()
this.getStyle()
var that = this;
wx: wx.getSystemInfo({
success: function(res) {
... ... @@ -564,7 +575,20 @@ Page({
})
that.drawCanvas();
},
onShow() {
this.getData()
// this.getData()
},
onReachBottom: function() {
const that = this;
var len = that.data.list.length
var last_page = this.data.last_page
var page = that.data.page
page++
that.setData({
page: page
})
that.getData();
},
})
\ No newline at end of file
... ...
... ... @@ -36,7 +36,10 @@
<image src='{{items.img}}' catchtap='viewImg' data-src='{{items.img}}' data-text='{{items.text}}' data-mindex="{{mindex}}" data-sindex='{{sindex}}'></image>
</block>
</view>
<view class='list_content'>{{item.text}}</view>
<view class='list_content'>
<!-- {{item.text}} -->
<text wx:for='{{item.styles}}' wx:for-item='its' wx:key>{{its}}</text>
</view>
</view>
<view class='list_state_box'>
<view class='time'>{{item.open_time}}</view>
... ... @@ -112,41 +115,41 @@
</view>
<!-- catchtap='cancleClassify' -->
<view class='mask_chassify_box' wx:if='{{classify_state}}'>
<view class='mask_chassify_box' wx:if='{{classify_state}}' catchtap='cancleClassify'>
<view class='classif_popup_box'>
<view class='classify_content_box'>
<view class='classify_item'>
<view>性别</view>
<picker class='chassify_picker' range='{{sex_array}}' value='{{sex_index}}' bindchange='setSex'>
<picker class='chassify_picker' range='{{sex_array}}' value='{{sex_index}}' bindchange='setSex' catchtap='stop'>
<input placeholder='请选择' value='{{sex}}' disabled='true'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
<view class='classify_item'>
<view>风格</view>
<picker class='chassify_picker' range='{{style_array}}' value='{{style_index}}' range-key='name' bindchange='setStyle'>
<picker class='chassify_picker' range='{{style_array}}' value='{{style_index}}' range-key='name' bindchange='setStyle' catchtap='stop'>
<input placeholder='请选择' value='{{style}}' disabled='true'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
<view class='classify_item'>
<view>身高</view>
<picker class='chassify_picker' range='{{height_array}}' value='{{height_index}}' bindchange='getHeight'>
<picker class='chassify_picker' range='{{height_array}}' value='{{height_index}}' bindchange='getHeight' catchtap='stop'>
<input placeholder='请选择' disabled='true' value='{{stature}}'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
<view class='classify_item'>
<view>体重</view>
<picker class='chassify_picker' range='{{weight_array}}' value='{{weight_index}}' bindchange='getWeight'>
<picker class='chassify_picker' range='{{weight_array}}' value='{{weight_index}}' bindchange='getWeight' catchtap='stop'>
<input placeholder='请选择' disabled='true' value='{{weight}}'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
</view>
<view class='classify_btn_box'>
<view class='classify_btn' bindtap='clearData'>重置</view>
<view class='classify_btn classify_active' bindtap='confirmData'>确认</view>
<view class='classify_btn' catchtap='clearData'>重置</view>
<view class='classify_btn classify_active' catchtap='confirmData'>确认</view>
</view>
</view>
</view>
... ...
... ... @@ -329,7 +329,9 @@ page {
color: #1a1a1a;
margin-top: 10rpx;
}
.list_content text{
margin-right: 10rpx;
}
.list_img_box {
display: flex;
flex-wrap: wrap;
... ... @@ -586,7 +588,7 @@ page {
position: fixed;
top: 90rpx;
right: 0rpx;
z-index: 10;
z-index:900;
}
.classify_item {
... ...
... ... @@ -10,7 +10,16 @@ Page({
page: 1,
list1: [],
list2: [],
},
goCenter(e) {
var id = e.currentTarget.dataset.id
var look_type = e.currentTarget.dataset.look_type
var look = e.currentTarget.dataset.look
wx.navigateTo({
url: '/pages/my/userInfo/userInfo?id=' + id + '&look_type=' + look_type + '&look=' + look,
})
},
readState(e) {
... ...
... ... @@ -8,7 +8,7 @@
<block wx:if='{{status==1||status==2}}'>
<view class='item_list' wx:for='{{list1.data}}' wx:key>
<view class='list_left'>
<image class='head_img' src='{{item.avatar}}'></image>
<image class='head_img' src='{{item.avatar}}' catchtap='goCenter' data-id='{{item.news_user_id}}' data-look_type='{{status}}' data-look="{{item.news_id}}"></image>
<view>
<view class=' user_name '>{{item.user_nickname}}</view>
<view>
... ... @@ -44,8 +44,8 @@
<text>{{item.user_nickname}}您好,您发布的{{title}}审核</text>
<text class='list_hint2'>未通过</text>
</view>
<view>原因:发布内容有歧义</view>
<view>2018-11-22 14:00</view>
<view>原因:{{item.status_text}}</view>
<view>{{item.status_time}}</view>
</view>
</view>
</view>
... ...
... ... @@ -93,5 +93,5 @@
</textarea>
</view>
</view>
<view class='bottom_btn2' bindtap='goCheck'>确定</view>
<view class='bottom_btn2' bindtap='goCheck'>确定发布</view>
</view>
\ No newline at end of file
... ...
... ... @@ -18,6 +18,25 @@ Page({
status: 1,
},
complain(e) {
var id = e.currentTarget.dataset.id
var status = e.currentTarget.dataset.status
let url = '/home/index/updateFashion'
let params = {
list_id: id,
status: status
}
let header = {
"XX-Token": wx.getStorageSync('token'),
'XX-Device-Type': 'wxapp'
}
app.post(url, params, header).then((res) => {
if (res.data.code == 20000) {
this.getData()
}
})
},
cancleMask() {
this.setData({
mask_state: false
... ... @@ -186,7 +205,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
// this.getData()
this.getData()
this.getData2()
},
... ... @@ -202,6 +221,7 @@ Page({
*/
onShow: function() {
this.getData()
this.getData2()
},
/**
... ...
... ... @@ -64,8 +64,8 @@
<view class='time'>{{item.open_time}}</view>
<view class='list_icon'>
<view bindtap='likeCharge' data-index="{{index}}" data-id='{{item.list_id}}' data-status='2' wx:if='{{tab_current!=4&&tab_current!=3}}'>
<text class='iconfont icon-dianzan2 zan'></text>
<!-- <text class='iconfont icon-huida pinglun1' wx:else></text> -->
<text class='iconfont icon-dianzan2 zan' wx:if='{{tab_current!=1}}'></text>
<text class='iconfont icon-huida pinglun1' wx:else></text>
<text class=''>{{item.support}}</text>
</view>
<view bindtap='review' data-id='{{item.list_id}}' data-type='review'>
... ... @@ -78,7 +78,7 @@
<text class=''>{{item.collect}}</text>
</view>
<view class='more_box' wx:if='{{tab_current==1 || tab_current==4}}'>
<text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{index}}'></text>
<text class='iconfont icon-gengduo'></text>
<block wx:if='{{state2}}'>
<view class='more_label_box more2' wx:if='{{item.more_state}}'>
<view class='more_item' bindtap='showPoster'>
... ... @@ -88,25 +88,25 @@
</block>
<block wx:else>
<view class='more_label_box' wx:if='{{item.more_state}}'>
<view class='more_item' bindtap='showPoster'>
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-status='4'>
<text>删除</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-status='4'>
<text>仅自己可见</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-status='3'>
<text>粉丝可见</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-status='1'>
<text>全部</text>
</view>
</view>
</block>
</view>
<text class='iconfont icon-suo' wx:if='{{tab_current==1}}'></text>
<text class='iconfont icon-suo' wx:if='{{tab_current==1}}' catchtap='showMore' data-index='{{index}}'></text>
</view>
</view>
</view>
... ...
... ... @@ -412,13 +412,14 @@ page {
display: inline-block;
position: absolute;
right: 0;
bottom: -355rpx;
bottom: -275rpx;
width: 250rpx;
background: #fff;
box-shadow: 0 8rpx 30rpx 0 #e5e5e5;
color: #000;
text-align: center;
padding: 30rpx 0;
/* padding: 30rpx 0; */
overflow: hidden;
}
.more {
... ... @@ -432,8 +433,10 @@ page {
}
.more_item {
padding: 0 25rpx;
width: 100%;
padding:15rpx 0;
text-align: center;
border-bottom: 1rpx solid #ebebeb;
}
.more_line {
... ...
... ... @@ -7,10 +7,56 @@ Page({
*/
data: {
id: '',
look: '',
look: 0,
look_type: '',
status: 1,
page: 1
page: 1,
list:[],
},
goList(e) {
var status = e.currentTarget.dataset.status
var id = this.data.id
wx.navigateTo({
url: '/pages/index/fans/fans?status=' + status+'&id='+id,
})
},
//点赞
likeCharge(e) {
console.log(e)
var id = e.currentTarget.dataset.id
var index = e.currentTarget.dataset.index
var list = this.data.list
var status = ''
if (list[index].my_support == 1) {
console.log(11)
list[index].my_support = 0
status = 2
} else {
console.log(22)
list[index].my_support = 1
status = 1
}
this.setData({
list: list
})
this.like(id, status)
},
like(id, status) {
let url = '/home/index/support'
let params = {
list_id: id,
status: status
}
let header = {
"XX-Token": wx.getStorageSync('token'),
'XX-Device-Type': 'wxapp'
}
app.post(url, params, header).then((res) => {
if (res.data.code == 20000) {
this.getData()
}
})
},
getData() {
... ... @@ -132,7 +178,9 @@ Page({
*/
onLoad: function(options) {
this.setData({
id: options.id ? options.id : ''
id: options.id ? options.id : '',
look_type: options.look_type ? options.look_type : '',
look: options.look ? options.look : ''
})
if (options.id != '' && options.id != undefined) {
this.getData()
... ...
<view class='banner_box' bindtap='uoloadImg'>
<view class='banner_info info1'>
<view class="list_label1 {{host==1?'list_active1':''}}" bindtap='attentionInfo' data-id='{{item.id}}'>{{host==1?'已关注':'添加关注'}}</view>
<view class="list_label1 {{host==1?'list_active1':''}}" bindtap='attentionInfo'>{{host==1?'已关注':'添加关注'}}</view>
</view>
<view class='head_img'>
<image class='banner_img' src='{{avatar}}'></image>
... ... @@ -12,7 +12,7 @@
<text class='' style='color:#999;'>粉丝</text>
<text class='user_num'>{{fans_num}}</text>
</view>
<view bindtap='goList' data-status='1'>
<view bindtap='goList' data-status='1' data-id='{{}}'>
<text class='' style='color:#999;'>关注</text>
<text class='user_num'>{{host_num}}</text>
</view>
... ... @@ -46,7 +46,7 @@
<view class='time'>{{item.open_time}}</view>
<view class='list_icon'>
<view bindtap='likeCharge' data-index="{{index}}" data-id='{{item.list_id}}' wx:if='{{status!=4}}'>
<text class='iconfont icon-dianzan2 zan' wx:if="{{item.user_support==1}}"></text>
<text class='iconfont icon-dianzan2 zan' wx:if="{{item.my_support==1}}"></text>
<text class='iconfont icon-huida pinglun1' wx:else></text>
<text class=''>{{item.support}}</text>
</view>
... ... @@ -59,36 +59,6 @@
<!-- <text class='iconfont icon-shoucang4 pinglun1' wx:else></text> -->
<text class=''>{{item.collect}}</text>
</view>
<view class='more_box' wx:if='{{status==1 || status==4}}'>
<text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{index}}'></text>
<block wx:if='{{state2}}'>
<view class='more_label_box more2' wx:if='{{item.more_state}}'>
<view class='more_item' bindtap='showPoster'>
<text>删除</text>
</view>
</view>
</block>
<block wx:else>
<view class='more_label_box' wx:if='{{item.more_state}}'>
<view class='more_item' bindtap='showPoster'>
<text>删除</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<text>仅自己可见</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<text>粉丝可见</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<text>全部</text>
</view>
</view>
</block>
</view>
<text class='iconfont icon-suo' wx:if='{{status==1}}'></text>
</view>
</view>
</view>
... ...
... ... @@ -283,7 +283,9 @@ page {
font-size: 26rpx;
color: #fff;
}
.zan{
color: #000;
}
.zan, .pinglun1 {
font-size: 28rpx;
margin-right: 10rpx;
... ...