deming/pageB/video/video.nvue

921 lines
28 KiB
Plaintext
Raw Normal View History

2020-08-09 11:31:47 +08:00
<template>
2020-08-12 22:00:01 +08:00
<view class="container">
2020-08-10 19:06:47 +08:00
<video id="videoId" :style="videoSize" :src="src" autoplay="true" :show-fullscreen-btn="false" @play="playing"
2020-08-17 16:57:23 +08:00
@pause="pausing" @ended="videoEnd" @timeupdate="timeupdate" :show-play-btn="false" :controls="false" @click="stoping"
2020-08-11 22:15:58 +08:00
:enable-progress-gesture="false" :show-center-play-btn="false"></video>
2020-08-09 19:08:12 +08:00
<!-- 用户操作 -->
2020-08-11 22:15:58 +08:00
<userinfo class="user-info" :style="{ top: fixTop }" :list="list" :cart="cart_type" :comment="is_comment" :num="comment_num"
@openCart="openPopup"></userinfo>
<!-- 视频信息 -->
2020-08-17 16:57:23 +08:00
<cover-view class="info-box">
2020-08-14 11:33:57 +08:00
<view class="video-info-box" :style="{ width: time_count > 99 ? '180rpx' : '160rpx' }">
2020-08-09 19:08:12 +08:00
<image class="image-play" src="../../static/videoIcon.png" mode=""></image>
2020-08-09 11:31:47 +08:00
<text class="video-slip">视频</text>
2020-08-11 22:15:58 +08:00
<text class="time">{{ time_count }}s</text>
2020-08-09 11:31:47 +08:00
</view>
<view>
2020-08-17 16:57:23 +08:00
<text class="name" @click="gotoInfo(list)">@{{ list.member_nickname }}</text>
2020-08-09 11:31:47 +08:00
</view>
2020-08-17 16:57:23 +08:00
<view @click="stopClick">
2020-08-09 11:31:47 +08:00
<text class="title">{{ list.article_title }}</text>
</view>
2020-08-17 16:57:23 +08:00
<view @click="stopClick">
2020-08-09 11:31:47 +08:00
<text class="centent">{{ list.article_content }}</text>
</view>
2020-08-17 16:57:23 +08:00
<view class="label-box" @click="stopClick">
2020-08-09 11:31:47 +08:00
<block v-for="(item,index) in list.label" :key="index">
2020-08-09 19:08:12 +08:00
<text class="label" :style="{ width: labelLen[index] * 40 + 'rpx' }">{{ item.name }}</text>
2020-08-09 11:31:47 +08:00
</block>
</view>
</cover-view>
2020-08-11 22:15:58 +08:00
<!-- 单个商品 -->
2020-08-12 22:00:01 +08:00
<cover-view class="good-one" :style="{ bottom: fixTop - 100 }" v-if="cart_len == 1 && cart_type">
2020-08-12 15:35:47 +08:00
<view class="one-list" v-for="(item,index) in list.goods" :key="index" @click="goGoodInfo(item.goods_id)">
2020-08-11 22:15:58 +08:00
<image class="one-image" :src="item.goods_image" mode=""></image>
<view class="one-box">
2020-08-12 15:35:47 +08:00
<text class="title-one">{{ item.goods_advword }}</text>
<text class="content-one">{{ item.goods_name }}</text>
<text class="good-price">¥{{ item.goods_promotion_price }}</text>
2020-08-11 22:15:58 +08:00
</view>
2020-08-10 19:06:47 +08:00
</view>
2020-08-11 22:15:58 +08:00
</cover-view>
<!-- 遮罩层 -->
2020-08-12 15:35:47 +08:00
<cover-view class="mask" @click.stop="stopClick" :style="videoSize" v-if="is_edit || is_comment || cart_type && cart_len >= 2">
2020-08-11 22:15:58 +08:00
<!-- 评论 -->
<cover-view class="content-box" v-if="is_comment" ref="contentBox">
<view class="content-title">
<text class="tips">评论</text>
<text class="close-down" @click="closeComment">×</text>
</view>
<scroller class="comment-list">
<view class="" v-for="(item,index) in commentList" :key="index">
<view class="comment-list-box">
<view class="comment-list-header">
<image class="avatar" :src="item.member_avatar" mode=""></image>
2020-08-19 19:24:14 +08:00
<view class="comment-title-info">
2020-08-11 22:15:58 +08:00
<text class="comment-title">{{ item.member_nickname }}</text>
<text class="comment-time">{{ item.create_time }}</text>
</view>
2020-08-10 19:06:47 +08:00
</view>
2020-08-12 15:35:47 +08:00
<text class="reply" @click="openKeyInput(item,index)">回复</text>
2020-08-11 22:15:58 +08:00
</view>
<view class="content-main">
<text class="content-style">{{ item.content }}</text>
2020-08-10 19:06:47 +08:00
</view>
2020-08-13 16:18:39 +08:00
<view class="more-content-box">
2020-08-13 19:41:46 +08:00
<view class="child-box" v-for="(child,cid) in allList[item.id]" :key="cid">
<view class="child-info">
<image class="child-avatar" :src="child.member_avatar" mode=""></image>
<text class="child-name">{{ child.member_nickname }}</text>
2020-08-13 16:18:39 +08:00
<text v-if="0">{{ child.reply_member_nickname }}</text>
</view>
2020-08-14 11:33:57 +08:00
<text class="child_content">{{ child.content }}</text>
2020-08-13 19:41:46 +08:00
</view>
2020-08-14 11:33:57 +08:00
<view>
<text class="more-comment" @click="getReplyList(item.id)" v-if="item.reply_count">展开更多回复</text>
<text></text>
2020-08-13 16:18:39 +08:00
</view>
</view>
2020-08-10 19:06:47 +08:00
</view>
2020-08-14 19:49:57 +08:00
<view class="send-box" @click="openKeyInput">
2020-08-12 15:35:47 +08:00
<input class="send-val" type="text" :placeholder="edit_text" placeholder-class="placeholder-class"
2020-08-14 19:49:57 +08:00
disabled="true" @click="openKeyInput" />
2020-08-11 22:15:58 +08:00
<text class="btn-send">发送</text>
2020-08-10 19:06:47 +08:00
</view>
2020-08-11 22:15:58 +08:00
<loading class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
<loading-indicator class="indicator"></loading-indicator>
<text class="indicator-text">努力加载中</text>
</loading>
</scroller>
</cover-view>
2020-08-12 15:35:47 +08:00
<!-- 评论框 -->
2020-08-14 19:49:57 +08:00
<cover-view class="edit-box" :style="videoSize" v-if="is_edit" @click="hideEdit">
<view class="input-main">
<input class="edit-input" type="text" :focus="is_focus" :placeholder=" edit_text_other ? edit_text_other : edit_text"
2020-08-12 22:00:01 +08:00
placeholder-class="placeholder-class" v-model="send_value" />
<text class="btn-send" @click="sendComment">发送</text>
</view>
2020-08-14 19:49:57 +08:00
<!-- <view class="key-height" :style="{ height: editTop }"></view> -->
2020-08-12 15:35:47 +08:00
</cover-view>
2020-08-11 22:15:58 +08:00
<!-- 购物车 -->
<cover-view class="cart-box" v-if="cart_type">
<view class="cart-title">
<text class="tips">全部商品</text>
<text class="close-down" @click="cart_type = false">×</text>
2020-08-10 19:06:47 +08:00
</view>
2020-08-11 22:15:58 +08:00
<scroller class="cart-list">
<view class="" v-for="(item,index) in list.goods" :key="index">
<view class="cart-list-header" @click="goGoodInfo(item.goods_id)">
<image class="goods-img" :src="item.goods_image" mode=""></image>
<view class="goods-info">
<text class="good-title">{{ item.goods_advword }}</text>
<text class="good-price">{{ item.goods_promotion_price }}</text>
</view>
</view>
</view>
2020-08-12 15:35:47 +08:00
<loading v-if="0" class="loading" @loading="onloading" :display="loadinging ? 'show' : 'hide'">
2020-08-11 22:15:58 +08:00
<loading-indicator class="indicator"></loading-indicator>
<text class="indicator-text">努力加载中</text>
</loading>
</scroller>
</cover-view>
2020-08-10 19:06:47 +08:00
</cover-view>
2020-08-11 22:15:58 +08:00
<!-- 返回按钮 -->
<cover-image class="close" @click="goBack" src="../../static/close.png">
</cover-image>
<!-- 暂停按钮 -->
2020-08-14 19:49:57 +08:00
<cover-view class="pause" :style="{ top: fixTop + 100 }">
<cover-image class="pause-img" src="../../static/videoPlay.png" @click="stoping" v-if="!is_play">
</cover-image>
</cover-view>
2020-08-09 11:31:47 +08:00
</view>
</template>
<script>
2020-08-09 19:08:12 +08:00
import userinfo from "../components/userinfo/index" // 点赞组件
2020-08-18 15:29:52 +08:00
const temp_url = "https://mall.dmygkeji.com/api/";
2020-08-09 11:31:47 +08:00
export default {
2020-08-10 19:06:47 +08:00
components: {
2020-08-09 19:08:12 +08:00
userinfo
},
2020-08-09 11:31:47 +08:00
data() {
return {
videoSize: {},
2020-08-11 22:15:58 +08:00
fixTop: 0,
2020-08-12 22:00:01 +08:00
editTop: 0,
2020-08-09 11:31:47 +08:00
list: {},
2020-08-09 19:08:12 +08:00
labelLen: [],
2020-08-12 15:35:47 +08:00
cart_len: 0, // 购物车个数
2020-08-09 19:08:12 +08:00
cart_type: false, // 显示购物车
is_comment: false, // 显示评论
2020-08-12 15:35:47 +08:00
is_edit: false, // 显示输入
is_focus: false, //
2020-08-09 19:08:12 +08:00
comment_num: 0, // 评论数
2020-08-12 15:35:47 +08:00
edit_text: "有爱评论,说点好听的 ~",
edit_text_other: "有爱评论,说点好听的 ~",
pid: 0, // 主键
reply_id: 0, // 回复id
2020-08-13 19:41:46 +08:00
allList: {}, // 全部子评论
2020-08-14 11:33:57 +08:00
page_: {},
2020-08-10 19:06:47 +08:00
page: 0,
2020-08-12 15:35:47 +08:00
comment_id: 0,
send_value: "", // 评论
2020-08-10 19:06:47 +08:00
commentList: [], // 评论列表
2020-08-09 11:31:47 +08:00
src: "",
is_play: true,
2020-08-09 19:08:12 +08:00
time_count: 0,
linear: null,
2020-08-10 19:06:47 +08:00
loadinging: false,
2020-08-09 11:31:47 +08:00
};
},
onLoad(option) {
2020-08-10 19:06:47 +08:00
this.article_id = option.id;
2020-08-09 11:31:47 +08:00
this.getVideoInfo(option.id);
this.getInfo();
2020-08-13 19:41:46 +08:00
this.allList = {};
2020-08-09 11:31:47 +08:00
},
onReady() {
this.videoBox = uni.createVideoContext("videoId", this);
},
2020-08-17 19:33:55 +08:00
onHide() {
2020-08-20 15:16:29 +08:00
if (uni.getSystemInfoSync().platform == "ios") {
console.log("ios");
} else if (uni.getSystemInfoSync().platform == "android") {
this.videoBox.pause();
}
2020-08-17 19:33:55 +08:00
},
2020-08-11 22:15:58 +08:00
onBackPress() {
if (this.cart_type) {
this.cart_type = !this.cart_type;
} else if (this.is_edit) {
this.is_edit = !this.is_edit;
} else if (this.is_comment) {
this.is_comment = !this.is_comment;
} else {
return false;
}
return true;
},
2020-08-09 11:31:47 +08:00
methods: {
2020-08-11 22:15:58 +08:00
moveHandle() {
return false;
},
2020-08-09 11:31:47 +08:00
// 获取信息
getVideoInfo(article_id) {
uni.request({
2020-08-11 11:12:32 +08:00
url: temp_url + "article/articleInfo",
2020-08-09 11:31:47 +08:00
method: "POST",
data: {
article_id: article_id
},
2020-08-09 19:08:12 +08:00
header: {
2020-08-10 19:06:47 +08:00
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
2020-08-09 19:08:12 +08:00
},
2020-08-09 11:31:47 +08:00
success: (res) => {
this.list = res.data.data.info;
this.src = res.data.data.info.video_path;
2020-08-11 22:15:58 +08:00
this.cart_len = res.data.data.info.goods.length;
2020-08-12 15:35:47 +08:00
console.log(this.cart_len);
2020-08-09 19:08:12 +08:00
let item = res.data.data.info.label;
let arr = [];
item.forEach(data => {
let str = escape(data.name);
2020-08-10 19:06:47 +08:00
if (str.indexOf('%u')) {
2020-08-09 19:08:12 +08:00
// console.log(data.name);
arr.push(Math.floor(data.name.length / 2));
} else {
arr.push(data.name.length);
}
})
this.labelLen = arr;
2020-08-09 11:31:47 +08:00
}
})
},
2020-08-10 19:06:47 +08:00
// 获取评论
getComment() {
uni.request({
2020-08-11 11:12:32 +08:00
url: temp_url + "article/articleCommentList",
2020-08-10 19:06:47 +08:00
method: "POST",
data: {
article_id: this.article_id,
page: this.page,
},
success: (res) => {
if (res.data.errCode == 0) {
2020-08-11 22:15:58 +08:00
// console.log(res.data);
2020-08-10 19:06:47 +08:00
this.commentList = res.data.data;
}
}
})
},
2020-08-11 11:12:32 +08:00
// 发布评论
2020-08-11 22:15:58 +08:00
sendComment() {
2020-08-14 19:49:57 +08:00
console.log(this.article_id, this.send_value, this.pid, this.reply_id);
2020-08-11 22:15:58 +08:00
if (this.send_value.length == 0) {
2020-08-14 19:49:57 +08:00
uni.showToast({
title: "输入内容不能为空!",
icon: "none"
})
2020-08-11 22:15:58 +08:00
return;
}
uni.request({
url: temp_url + "article/articleAddComment",
method: "POST",
data: {
article_id: this.article_id,
content: this.send_value,
pid: this.pid,
reply_id: this.reply_id,
},
2020-08-12 15:35:47 +08:00
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2020-08-11 22:15:58 +08:00
success: (res) => {
2020-08-13 19:41:46 +08:00
console.log(res);
2020-08-12 22:00:01 +08:00
this.is_edit = false;
2020-08-15 19:14:12 +08:00
this.send_value = "";
2020-08-11 22:15:58 +08:00
if (res.data.errCode == 0) {
this.comment_num = res.data.num;
2020-08-13 16:18:39 +08:00
let p_id = res.data.data.data.pid;
2020-08-14 19:49:57 +08:00
console.log(this.pid, this.reply_id, this.comment_id);
2020-08-13 16:18:39 +08:00
if (res.data.data.data.pid) {
this.commentList[this.comment_id].reply_count = true;
console.log(this.allList[p_id]);
if (this.allList[p_id]) {
2020-08-13 19:41:46 +08:00
this.allList[p_id].push(res.data.data.data);
2020-08-13 16:18:39 +08:00
} else {
this.allList[p_id] = [];
2020-08-13 19:41:46 +08:00
this.allList[p_id].push(res.data.data.data);
2020-08-13 16:18:39 +08:00
}
console.log(this.allList);
2020-08-12 15:35:47 +08:00
} else {
this.commentList.unshift(res.data.data.data);
}
2020-08-13 16:18:39 +08:00
// console.log(this.commentList);
2020-08-12 22:00:01 +08:00
} else if (res.data.errCode == 401) {
uni.showToast({
title: "您还没有登录,请先登录!",
2020-08-13 16:18:39 +08:00
icon: "none",
// success: () => {
// setTimeout(function() {
// this.$u.route("/pageA/login/login")
// }, 2000)
// }
2020-08-12 22:00:01 +08:00
})
2020-08-11 22:15:58 +08:00
} else {
uni.showToast({
title: res.data.message,
icon: "none"
})
}
}
})
2020-08-11 11:12:32 +08:00
},
2020-08-14 11:33:57 +08:00
// 发现回复列表
getReplyList(id) {
uni.showLoading({
title: "loading..."
})
2020-08-14 19:49:57 +08:00
if (!this.page_[id] === 0) {}
2020-08-14 11:33:57 +08:00
uni.request({
url: temp_url + "article/articleReplyList",
method: "POST",
data: {
id: id,
page: this.page_[id],
},
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
success: (res) => {
uni.hideLoading();
2020-08-20 15:16:29 +08:00
console.log(this.page_);
2020-08-14 11:33:57 +08:00
if (res.data.errCode == 0) {
if (res.data.data.length < 10) {
this.is_more = false;
}
this.page_[id]++;
2020-08-20 15:16:29 +08:00
console.log(this.page_);
2020-08-14 19:49:57 +08:00
this.allList[id] = res.data.data;
this.$forceUpdate();
2020-08-14 11:33:57 +08:00
}
}
})
},
2020-08-09 11:31:47 +08:00
// 获取手机信息
getInfo() {
uni.getSystemInfo({
success: (res) => {
this.videoSize = {
width: "750rpx",
2020-08-11 22:15:58 +08:00
height: res.screenHeight + "px",
2020-08-09 11:31:47 +08:00
}
2020-08-11 22:15:58 +08:00
this.fixTop = res.screenHeight / 3;
2020-08-09 11:31:47 +08:00
}
})
},
// 播放
playing(e) {
2020-08-09 19:08:12 +08:00
// console.log(e);
2020-08-10 19:06:47 +08:00
if (e.type == "play") {}
2020-08-09 11:31:47 +08:00
},
2020-08-11 22:15:58 +08:00
pausing(e) {
if (e.type == "pause") {
this.is_play = false;
}
},
// 结束
videoEnd(e) {
// console.log(e);
if (e.type == "ended") {
this.is_play = false;
this.time_count = 0;
}
},
2020-08-09 11:31:47 +08:00
// 暂停
stoping() {
this.is_play = !this.is_play;
if (this.is_play) {
this.videoBox.play();
} else {
this.videoBox.pause();
}
},
2020-08-09 19:08:12 +08:00
// 监听视频
timeupdate(e) {
this.time_count = parseInt(e.detail.duration) - parseInt(e.detail.currentTime);
2020-08-11 22:15:58 +08:00
// console.log(e.detail.currentTime,e.detail.duration);
2020-08-09 19:08:12 +08:00
if (e.detail.duration == e.detail.currentTime) {
2020-08-11 22:15:58 +08:00
// this.is_play = false;
2020-08-09 19:08:12 +08:00
}
// let num = parseInt((e.detail.currentTime/e.detail.duration)*100);
// this.linear = num + "%";
// console.log(this.time_count);
2020-08-09 11:31:47 +08:00
},
2020-08-10 19:06:47 +08:00
// 打开弹窗
openPopup(data) {
2020-08-11 22:15:58 +08:00
// console.log(data);
2020-08-12 15:35:47 +08:00
if (this.cart_len >= 2) {
}
2020-08-10 19:06:47 +08:00
this.cart_type = data.cart;
this.is_comment = data.comment;
if (this.is_comment) {
this.page = 0;
this.getComment();
2020-08-11 22:15:58 +08:00
// this.is_play = true;
2020-08-10 19:06:47 +08:00
}
},
2020-08-12 15:35:47 +08:00
// 打开评论输入
2020-08-12 22:00:01 +08:00
openKeyInput(data, index) {
2020-08-14 19:49:57 +08:00
// console.log(data);
2020-08-12 22:00:01 +08:00
let me = this;
this.is_focus = true;
2020-08-12 15:35:47 +08:00
setTimeout(() => {
2020-08-12 22:00:01 +08:00
this.is_edit = true;
}, 500)
uni.onKeyboardHeightChange(function(res) {
console.log(res);
if (res.height == 0) {
me.is_focus = false;
me.is_edit = false;
} else {
2020-08-14 19:49:57 +08:00
me.editTop = res.height + "rpx";
2020-08-12 22:00:01 +08:00
}
})
2020-08-12 15:35:47 +08:00
this.comment_id = index;
if (data.id) {
this.edit_text_other = "回复@" + data.member_nickname;
this.pid = data.id;
this.reply_id = data.member_id;
} else {
this.edit_text_other = "有爱评论,说点好听的 ~";
this.pid = "";
this.reply_id = "";
}
// console.log(this.pid, this.edit_text_other);
},
blue() {
this.is_focus = false;
},
2020-08-10 19:06:47 +08:00
// 关闭评论
closeComment() {
this.is_comment = false;
2020-08-12 15:35:47 +08:00
this.is_edit = false;
2020-08-11 22:15:58 +08:00
// console.log(this.is_comment,this.is_play);
// if (!this.is_comment && this.is_play) {
// console.log(1);
// this.is_play = false;
// }
2020-08-10 19:06:47 +08:00
},
// 下拉加载
onloading(e) {
console.log(e);
this.loadinging = true;
setTimeout(() => {
this.loadinging = false;
}, 2000)
},
2020-08-11 22:15:58 +08:00
// 跳转
goGoodInfo(id) {
uni.navigateTo({
2020-08-12 15:35:47 +08:00
url: "/pageB/sdetails/index?id=" + id + "&type=" + 1,
2020-08-11 22:15:58 +08:00
})
},
2020-08-17 16:57:23 +08:00
gotoInfo(id) {
console.log(id);
},
2020-08-14 19:49:57 +08:00
// 收起键盘
hideEdit() {},
2020-08-11 11:12:32 +08:00
// stop
stopClick(event) {
event.stopPropagation();
},
2020-08-09 11:31:47 +08:00
goBack() {
uni.navigateBack({
delta: 1
})
}
}
}
</script>
<style>
2020-08-17 16:57:23 +08:00
2020-08-12 22:00:01 +08:00
.container {
position: relative;
2020-08-17 16:57:23 +08:00
background-color: #FF0000 !important;
2020-08-12 22:00:01 +08:00
}
2020-08-09 11:31:47 +08:00
/* 关闭 */
.close {
2020-08-14 19:49:57 +08:00
z-index: 99;
2020-08-09 11:31:47 +08:00
position: fixed;
2020-08-11 22:15:58 +08:00
top: 100rpx;
right: 70rpx;
2020-08-09 11:31:47 +08:00
width: 30rpx;
height: 30rpx;
}
2020-08-10 19:06:47 +08:00
2020-08-09 19:08:12 +08:00
/* 暂停 */
.pause {
2020-08-11 22:15:58 +08:00
z-index: 99;
2020-08-09 19:08:12 +08:00
position: fixed;
left: 330rpx;
width: 100rpx;
height: 100rpx;
2020-08-17 16:57:23 +08:00
/* #ifdef H5 */
top: 500rpx;
/* #endif */
2020-08-09 19:08:12 +08:00
}
2020-08-14 19:49:57 +08:00
.pause-img {
width: 100rpx;
height: 100rpx;
}
2020-08-10 19:06:47 +08:00
2020-08-09 19:08:12 +08:00
/* 用户操作 */
.user-info {
position: fixed;
2020-08-17 16:57:23 +08:00
right: 26rpx;
/* #ifdef H5 */
top: 400rpx;
/* #endif */
2020-08-09 19:08:12 +08:00
}
2020-08-10 19:06:47 +08:00
2020-08-09 11:31:47 +08:00
/* 底部信息 */
.info-box {
position: fixed;
bottom: 0;
left: 0;
padding: 30rpx;
}
.video-info-box {
flex-direction: row;
align-items: center;
height: 40rpx;
padding: 4rpx 10rpx;
margin-bottom: 20rpx;
color: #666666;
border-radius: 10rpx;
background-color: rgba(255, 255, 255, .6);
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.good-one {
2020-08-12 15:35:47 +08:00
position: fixed;
right: 160rpx;
width: 420rpx;
2020-08-11 22:15:58 +08:00
padding: 20rpx;
border-radius: 10rpx;
2020-08-12 15:35:47 +08:00
background-color: rgba(0, 0, 0, 0.6);
2020-08-11 22:15:58 +08:00
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.one-list {
flex-direction: row;
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.one-image {
width: 160rpx;
height: 160rpx;
margin-right: 20rpx;
border-radius: 4rpx;
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.one-box {
2020-08-12 15:35:47 +08:00
justify-content: space-around;
color: #333;
2020-08-11 22:15:58 +08:00
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.title-one {
2020-08-12 15:35:47 +08:00
width: 200rpx;
2020-08-11 22:15:58 +08:00
font-size: 28rpx;
color: #fff;
lines: 1;
2020-08-12 15:35:47 +08:00
text-overflow: ellipsis;
2020-08-11 22:15:58 +08:00
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.content-one {
2020-08-12 15:35:47 +08:00
width: 200rpx;
2020-08-11 22:15:58 +08:00
font-size: 24rpx;
color: #fff;
lines: 2;
2020-08-12 15:35:47 +08:00
text-overflow: ellipsis;
2020-08-11 22:15:58 +08:00
}
.mask {
2020-08-14 19:49:57 +08:00
z-index: 10000;
2020-08-11 22:15:58 +08:00
position: fixed;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
}
2020-08-09 11:31:47 +08:00
2020-08-10 19:06:47 +08:00
.content-box {
2020-08-14 19:49:57 +08:00
z-index: 999;
2020-08-10 19:06:47 +08:00
position: fixed;
bottom: 0;
left: 0;
width: 750rpx;
height: 700rpx;
2020-08-12 15:35:47 +08:00
padding-bottom: 50rpx;
2020-08-10 19:06:47 +08:00
margin-bottom: 88rpx;
background-color: #fff;
}
.content-title {
justify-content: space-between;
flex-direction: row;
align-items: center;
height: 88rpx;
padding: 0 20rpx;
background-color: #ECECEC;
}
.comment-list {
margin-bottom: 50rpx;
}
.comment-list-box {
2020-08-13 16:18:39 +08:00
padding: 20rpx 30rpx;
2020-08-10 19:06:47 +08:00
flex-direction: row;
align-items: center;
justify-content: space-between;
}
2020-08-11 22:15:58 +08:00
2020-08-10 19:06:47 +08:00
.content-main {
flex-direction: row;
padding-left: 100rpx;
}
2020-08-14 19:49:57 +08:00
2020-08-11 22:15:58 +08:00
2020-08-10 19:06:47 +08:00
.content-style {
width: 600rpx;
2020-08-13 19:41:46 +08:00
font-size: 28rpx;
2020-08-10 19:06:47 +08:00
color: #333;
lines: 2;
2020-08-20 14:23:21 +08:00
letter-spacing: 2rpx;
2020-08-10 19:06:47 +08:00
}
2020-08-14 19:49:57 +08:00
2020-08-13 16:18:39 +08:00
.more-content-box {
margin-left: 100rpx;
}
2020-08-14 19:49:57 +08:00
.child-box {}
2020-08-13 19:41:46 +08:00
.child-info {
margin: 10rpx 0;
flex-direction: row;
align-items: center;
}
2020-08-14 19:49:57 +08:00
2020-08-13 19:41:46 +08:00
.child-avatar {
width: 30rpx;
height: 30rpx;
margin-right: 10rpx;
border-radius: 50%;
}
2020-08-14 19:49:57 +08:00
2020-08-13 19:41:46 +08:00
.child-name {
font-size: 22rpx;
color: #333;
}
2020-08-14 19:49:57 +08:00
2020-08-13 19:41:46 +08:00
.child_content {
padding: 4rpx 0;
margin-left: 40rpx;
font-size: 26rpx;
}
2020-08-14 19:49:57 +08:00
2020-08-13 16:18:39 +08:00
.more-comment {
margin: 10rpx 0;
font-size: 22rpx;
color: #999;
}
2020-08-11 22:15:58 +08:00
2020-08-10 19:06:47 +08:00
.comment-list-header {
flex-direction: row;
}
.avatar {
width: 60rpx;
height: 60rpx;
margin-right: 20rpx;
border-radius: 50%;
}
2020-08-19 19:24:14 +08:00
.comment-title-info {
justify-content: space-between;
}
2020-08-10 19:06:47 +08:00
.comment-title {
font-size: 26rpx;
color: #333;
}
.comment-time,
.reply {
font-size: 22rpx;
color: #999;
}
.tips {
font-size: 30rpx;
font-weight: 500;
color: #333;
}
2020-08-11 22:15:58 +08:00
2020-08-10 19:06:47 +08:00
.send-box {
z-index: 10000;
position: fixed;
bottom: 0;
left: 0;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 750rpx;
height: 88rpx;
padding: 10rpx 30rpx;
border-top-width: 1rpx;
border-color: #ececec;
background-color: #fff;
}
2020-08-11 22:15:58 +08:00
2020-08-10 19:06:47 +08:00
.send-val {
width: 600rpx;
height: 88rpx;
font-size: 36rpx;
}
2020-08-11 22:15:58 +08:00
2020-08-10 19:06:47 +08:00
.btn-send {
2020-08-20 15:16:29 +08:00
padding: 0 20rpx;
2020-08-12 22:00:01 +08:00
font-size: 28rpx;
color: #666;
2020-08-10 19:06:47 +08:00
}
2020-08-11 22:15:58 +08:00
2020-08-10 19:06:47 +08:00
.close-down {
2020-08-11 22:15:58 +08:00
padding: 10rpx;
2020-08-10 19:06:47 +08:00
font-size: 50rpx;
text-align: center;
color: #333;
}
2020-08-12 15:35:47 +08:00
.edit-box {
2020-08-12 22:00:01 +08:00
z-index: 1000;
2020-08-12 15:35:47 +08:00
position: fixed;
bottom: 0;
left: 0;
2020-08-12 22:00:01 +08:00
width: 750rpx;
background-color: rgba(0, 0, 0, 0.8);
}
.input-main {
position: fixed;
left: 0;
2020-08-14 19:49:57 +08:00
bottom: 0;
2020-08-12 22:00:01 +08:00
/* #ifdef H5 */
display: flex;
/* #endif */
2020-08-12 15:35:47 +08:00
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 750rpx;
padding: 0 20rpx;
2020-08-12 22:00:01 +08:00
line-height: 80rpx;
2020-08-12 15:35:47 +08:00
background-color: #fff;
2020-08-14 19:49:57 +08:00
border-top-right-radius: 10rpx;
border-top-left-radius: 10rpx;
}
.key-height {
width: 750rpx;
background-color: #fff;
2020-08-12 15:35:47 +08:00
}
.edit-input {
width: 600rpx;
2020-08-12 22:00:01 +08:00
height: 80rpx;
padding: 0 10rpx;
2020-08-12 15:35:47 +08:00
font-size: 24rpx;
color: #333;
}
2020-08-11 22:15:58 +08:00
.cart-box {
2020-08-14 19:49:57 +08:00
z-index: 1000;
2020-08-11 22:15:58 +08:00
position: fixed;
bottom: 0;
left: 0;
width: 750rpx;
height: 700rpx;
background-color: #fff;
}
.cart-title {
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 88rpx;
padding: 0 20rpx;
border-color: #f2f2f2;
border-bottom-width: 1rpx;
background-color: #fff;
}
2020-08-12 15:35:47 +08:00
.cart-list {}
2020-08-11 22:15:58 +08:00
.cart-list-header {
padding: 20rpx;
flex-direction: row;
border-bottom-width: 1rpx;
border-bottom-color: #ececec;
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.goods-img {
width: 160rpx;
height: 160rpx;
2020-08-12 15:35:47 +08:00
border-radius: 10rpx;
margin-right: 20rpx;
2020-08-11 22:15:58 +08:00
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.goods-info {
justify-content: space-around;
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.good-title {
2020-08-12 15:35:47 +08:00
width: 500rpx;
2020-08-11 22:15:58 +08:00
color: #333;
font-size: 30rpx;
2020-08-12 15:35:47 +08:00
lines: 2;
text-overflow: ellipsis;
2020-08-11 22:15:58 +08:00
}
2020-08-12 15:35:47 +08:00
2020-08-11 22:15:58 +08:00
.good-price {
font-size: 28rpx;
color: #FF3131;
}
2020-08-09 11:31:47 +08:00
.image-play {
width: 22rpx;
height: 20rpx;
margin-right: 10rpx;
}
.video-slip {
color: #666;
font-size: 24rpx;
margin-right: 20rpx;
}
.time {
color: #666;
font-size: 24rpx;
}
.name {
color: #fff;
font-size: 36rpx;
margin-bottom: 20rpx;
}
.title {
2020-08-17 16:57:23 +08:00
width: 700rpx;
2020-08-09 11:31:47 +08:00
color: #fff;
2020-08-20 17:42:07 +08:00
font-size: 30rpx;
2020-08-09 11:31:47 +08:00
margin-bottom: 20rpx;
2020-08-17 16:57:23 +08:00
lines: 1;
text-overflow: ellipsis;
2020-08-20 14:23:21 +08:00
letter-spacing: 2rpx;
2020-08-09 11:31:47 +08:00
}
.centent {
2020-08-20 17:42:07 +08:00
width: 700rpx;
2020-08-09 11:31:47 +08:00
color: #fff;
font-size: 28rpx;
margin-bottom: 20rpx;
lines: 2;
text-overflow: ellipsis;
}
.label-box {
flex-direction: row;
}
.label {
width: 100rpx;
height: 40rpx;
padding: 4rpx 10rpx;
margin-right: 10rpx;
margin-bottom: 10rpx;
font-size: 26rpx;
text-align: center;
2020-08-12 15:35:47 +08:00
line-height: 38rpx;
2020-08-09 11:31:47 +08:00
color: #666666;
border-radius: 10rpx;
background-color: rgba(255, 255, 255, .6);
}
2020-08-10 19:06:47 +08:00
.loading {
width: 750rpx;
flex-direction: row;
align-items: center;
justify-content: center;
}
.indicator-text {
font-size: 20rpx;
text-align: center;
color: #999;
}
.indicator {
width: 30rpx;
height: 30rpx;
color: #999;
}
2020-08-12 15:35:47 +08:00
.placeholder-class {
font-size: 13px;
color: #666;
}
2020-08-09 11:31:47 +08:00
</style>