第一次提交
This commit is contained in:
223
pagesLive/live/part/background.nvue
Normal file
223
pagesLive/live/part/background.nvue
Normal file
@ -0,0 +1,223 @@
|
||||
<template>
|
||||
<view class="wrap__giftPanel" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap="close"></view>
|
||||
<view class="pop__ui_child anim-footer">
|
||||
<view class="more-box p-0-20" @tap.stop="">
|
||||
<scroll-view scroll-x="true" class="category_list">
|
||||
<view class="category_item" v-for="(item,index) in listData" :key='index' @click="img_index = index"
|
||||
:class="img_index == index?'active':''">
|
||||
<view class="category_item-active-after" v-if="img_index == index"></view>
|
||||
<text class="white f28">{{item.name}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view scroll-x="true" class="more-box-list" v-if="listData[img_index]&&listData[img_index].list">
|
||||
<view class="more-box-list-item" :class="bg_index==index?'more-box-list-item-active':''"
|
||||
v-for="(item,index) in listData[img_index].list" :key="index"
|
||||
@click="selectBg(item.link,index)">
|
||||
<image class="more-box-list-image" :src="item.link" mode="aspectFill"></image>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="d-b-c f-d-i foot-box">
|
||||
<text class="grayD f22" @tap="reset">重置</text>
|
||||
<text class="grayD f22">选择背景</text>
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<text class="grayD f22 icon iconfont icon-tijiaochenggong" @tap="close"></text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-lizhirenyuan i-btntool more-icont" @tap="close"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
img_index: 0,
|
||||
popupVisible: false,
|
||||
type: 0,
|
||||
listData: [],
|
||||
bg_index: -1
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().config.font_url + "')"
|
||||
});
|
||||
console.log(getApp().config.font_url);
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
show() {
|
||||
this.popupVisible = true;
|
||||
this.getData();
|
||||
},
|
||||
getData() {
|
||||
let self = this;
|
||||
getApp()._get('live.RoomApply/imageInfo', {}, (res) => {
|
||||
self.listData = res.data.list;
|
||||
|
||||
})
|
||||
},
|
||||
close() {
|
||||
this.$emit('close');
|
||||
this.popupVisible = false;
|
||||
},
|
||||
selectBg(e, i) {
|
||||
console.log('selectBg');
|
||||
this.bg_index = i;
|
||||
this.$emit('liveSet', e);
|
||||
},
|
||||
reset() {
|
||||
this.img_index = 0;
|
||||
this.bg_index = -1;
|
||||
this.$emit('liveSet', '');
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border-color: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background-color: #000;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background-color: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
|
||||
.foot-box {
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid rgba(255, 255, 255, .1);
|
||||
padding: 0 23rpx;
|
||||
}
|
||||
|
||||
.foot-box .icon.iconfont {
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.more-box {
|
||||
background: rgba(0, 0, 0, .85);
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.more-box-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
padding: 25rpx 0 53rpx 0;
|
||||
}
|
||||
|
||||
.more-box-list-item {
|
||||
width: 152rpx;
|
||||
height: 194rpx;
|
||||
border-radius: 10rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 47rpx;
|
||||
border: 3rpx solid;
|
||||
border-color: rgba(0, 0, 0, 0);
|
||||
padding: 6rpx;
|
||||
}
|
||||
|
||||
.more-box-list-item-active {
|
||||
border: 3rpx solid #8AE4F0;
|
||||
border-color: $dominant-color;
|
||||
}
|
||||
|
||||
.more-box-list-image {
|
||||
width: 137rpx;
|
||||
height: 179rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wrap__giftPanel {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.category_list {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
height: 95rpx;
|
||||
border-bottom: 1rpx solid rgba(255, 255, 255, .1);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.category_item {
|
||||
flex-shrink: 0;
|
||||
margin: 0 64rpx;
|
||||
font-size: 28rpx;
|
||||
color: #DDDDDD;
|
||||
height: 95rpx;
|
||||
line-height: 95rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.category_item-active-after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 1rpx;
|
||||
left: 0;
|
||||
width: 32rpx;
|
||||
height: 5rpx;
|
||||
background: #DDDDDD;
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
</style>
|
||||
274
pagesLive/live/part/beauty.nvue
Normal file
274
pagesLive/live/part/beauty.nvue
Normal file
@ -0,0 +1,274 @@
|
||||
<template>
|
||||
<view class="wrap__giftPanel" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap="close"></view>
|
||||
<view class="pop__ui_child anim-footer">
|
||||
<div class="more-box" @tap.stop="">
|
||||
<view class="p-20-0">
|
||||
<slider class="progress-bar-slider" :value="value" activeColor="#E2231A" backgroundColor="#FFFFFF" :block-size='20'
|
||||
block-color="#FFFFFF" @change="sliderChange" :min="0" :max="10" />
|
||||
</view>
|
||||
<view class="more-box-list">
|
||||
<view class="more-list" @tap="setBrightness">
|
||||
<view class="more-iconbox" :class="{'more-iconbox-active': activeIndex == 0}">
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<text class="icon iconfont icon-liangdu_o i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-liangdu_o i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<text class="f22 white mt20">亮度</text>
|
||||
</view>
|
||||
<view class="more-list" @tap="setSmoothness">
|
||||
<view class="more-iconbox" :class="{'more-iconbox-active': activeIndex == 1}">
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<text class="icon iconfont icon-guanghua i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-guanghua i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<text class="f22 white mt20">平滑度</text>
|
||||
</view>
|
||||
<view class="more-list" @tap="setRedness">
|
||||
<view class="more-iconbox" :class="{'more-iconbox-active': activeIndex == 2}" >
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<text class="icon iconfont icon-Vlian i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-Vlian i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<text class="f22 white mt20">红色度</text>
|
||||
</view>
|
||||
<view class="more-list" @tap="setSharpness">
|
||||
<view class="more-iconbox" :class="{'more-iconbox-active': activeIndex == 3}">
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<text class="icon iconfont icon-qingxidu i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-qingxidu i-btntool more-icont"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<text class="f22 white mt20">锐度</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="foot-box">
|
||||
<text class="grayD f22" @tap="resetBeauty">重置</text>
|
||||
<text class="grayD f22">美颜</text>
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<text class="grayD f22 icon iconfont icon-tijiaochenggong" @click="close"></text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-lizhirenyuan i-btntool more-icont" @click="close"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
popupVisible: false,
|
||||
activeIndex: 0,
|
||||
value: 1
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().font_url + "')"
|
||||
});
|
||||
console.log(getApp().font_url);
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
show() {
|
||||
this.activeIndex = 0;
|
||||
this.value = uni.getStorageSync('lightening') * 10;
|
||||
this.popupVisible = true;
|
||||
},
|
||||
/*改变*/
|
||||
sliderChange(e) {
|
||||
let value = e.detail.value / 10;
|
||||
if (this.activeIndex == 0) {
|
||||
uni.setStorageSync('lightening', value);
|
||||
}
|
||||
if (this.activeIndex == 1) {
|
||||
uni.setStorageSync('smoothness', value);
|
||||
}
|
||||
if (this.activeIndex == 2) {
|
||||
uni.setStorageSync('redness', value);
|
||||
}
|
||||
if (this.activeIndex == 3) {
|
||||
uni.setStorageSync('sharpness', value);
|
||||
}
|
||||
this.$emit('liveSet', 'set');
|
||||
},
|
||||
close() {
|
||||
this.popupVisible = false;
|
||||
this.$emit('close')
|
||||
},
|
||||
setBrightness(){
|
||||
this.activeIndex = 0;
|
||||
this.value = uni.getStorageSync('lightening') * 10;
|
||||
},
|
||||
setSmoothness(){
|
||||
this.activeIndex = 1;
|
||||
this.value = uni.getStorageSync('smoothness') * 10;
|
||||
},
|
||||
setRedness(){
|
||||
this.activeIndex = 2;
|
||||
this.value = uni.getStorageSync('redness') * 10;
|
||||
},
|
||||
setSharpness(){
|
||||
this.activeIndex = 3;
|
||||
this.value = uni.getStorageSync('sharpness') * 10;
|
||||
},
|
||||
resetBeauty(){
|
||||
this.$emit('liveSet', 'reset');
|
||||
if (this.activeIndex == 0) {
|
||||
this.value = 6;
|
||||
}else if (this.activeIndex == 1) {
|
||||
this.value = 5;
|
||||
}else if (this.activeIndex == 2) {
|
||||
this.value = 1;
|
||||
}else if (this.activeIndex == 3) {
|
||||
this.value = 3;
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border-color: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background-color: #000;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background-color: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
.foot-box{
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid rgba(255,255,255,.1);
|
||||
padding: 0 23rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
.foot-box .icon.iconfont{
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
.more-box {
|
||||
background: rgba(0, 0, 0, .85);
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
}
|
||||
.more-box-list{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 34rpx 107rpx 43rpx 134rpx;
|
||||
}
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.more-list .icon.iconfont{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.more-icont {
|
||||
font-size: 46rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.Progress {
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
/* opacity: 0.3; */
|
||||
height: 100rpx;
|
||||
width: 700rpx;
|
||||
position: fixed;
|
||||
bottom: 370rpx;
|
||||
border-radius: 16rpx;
|
||||
left: 25rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
width: 364rpx;
|
||||
height: 75rpx;
|
||||
margin-left: 193rpx;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin:auto;
|
||||
padding-top: 30rpx;
|
||||
/* background-color: red; */
|
||||
}
|
||||
.progress-bar-slider{
|
||||
width: 364rpx;
|
||||
margin-left: 193rpx;
|
||||
}
|
||||
.wrap__giftPanel {
|
||||
z-index: 100;
|
||||
}
|
||||
.more-iconbox{
|
||||
width: 69rpx;
|
||||
height: 69rpx;
|
||||
background: rgba(255,255,255,.2);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.more-iconbox-active{
|
||||
background: #8AE4F0;
|
||||
}
|
||||
</style>
|
||||
170
pagesLive/live/part/definition.nvue
Normal file
170
pagesLive/live/part/definition.nvue
Normal file
@ -0,0 +1,170 @@
|
||||
<template>
|
||||
<view class="wrap__giftPanel" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap="close"></view>
|
||||
<view class="pop__ui_child anim-footer">
|
||||
<div class="more-box" @tap.stop="">
|
||||
<view class="more-box-list">
|
||||
<text class="def-btn mr40" :class="type==0?'def-btn-active':''" @click="defFunc(0)">标准</text>
|
||||
<text class="def-btn mr40" :class="type==1?'def-btn-active':''" @click="defFunc(1)">高清</text>
|
||||
<text class="def-btn" :class="type==2?'def-btn-active':''" @click="defFunc(2)">超清</text>
|
||||
</view>
|
||||
<view class="foot-box">
|
||||
<text class="grayD f22">重置</text>
|
||||
<text class="grayD f22">清晰度</text>
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<text class="grayD f22 icon iconfont icon-tijiaochenggong" @tap="close"></text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-lizhirenyuan i-btntool more-icont" @tap="close"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
popupVisible: false,
|
||||
type: 0
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().config.font_url + "')"
|
||||
});
|
||||
console.log(getApp().config.font_url);
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
show() {
|
||||
let vd = uni.getStorageSync('vd');
|
||||
if(vd){
|
||||
this.type = vd;
|
||||
}else{
|
||||
this.type = 0;
|
||||
}
|
||||
this.popupVisible = true;
|
||||
},
|
||||
defFunc(n){
|
||||
this.type=n;
|
||||
this.$emit('liveSet', n);
|
||||
},
|
||||
close() {
|
||||
this.popupVisible = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border-color: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background-color: #000;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background-color: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
.foot-box{
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid;
|
||||
padding: 0 23rpx;
|
||||
border-color: rgba(255,255,255,.1);
|
||||
}
|
||||
.foot-box .icon.iconfont{
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
.more-box {
|
||||
background: rgba(0, 0, 0, .85);
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
}
|
||||
.more-box-list{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 34rpx 107rpx 43rpx 134rpx;
|
||||
}
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.wrap__giftPanel {
|
||||
z-index: 100;
|
||||
}
|
||||
.mr40{
|
||||
margin-right: 40rpx;
|
||||
}
|
||||
.def-btn{
|
||||
border-radius: 30rpx;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 180rpx;
|
||||
color: #FFFFFF;
|
||||
font-size: 22rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.def-btn-active{
|
||||
color: #E2231A;
|
||||
border: 1rpx solid #E2231A;
|
||||
}
|
||||
.foot-box{
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid rgba(255,255,255,.1);
|
||||
padding: 0 23rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
.foot-box .icon.iconfont{
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
</style>
|
||||
229
pagesLive/live/part/music.nvue
Normal file
229
pagesLive/live/part/music.nvue
Normal file
@ -0,0 +1,229 @@
|
||||
<template>
|
||||
<view class="wrap__giftPanel" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap="close"></view>
|
||||
<view class="pop__ui_child anim-footer">
|
||||
<div class="more-box p-0-20" @tap.stop="">
|
||||
<scroll-view scroll-x="true" class="category_list">
|
||||
<view class="category_item" v-for="(item,index) in listData" :key='index' @click="img_index = index"
|
||||
:class="img_index == index?'active':''">
|
||||
<view class="category_item-active-after" v-if="img_index == index"></view><text
|
||||
class="white f28">{{item.name}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view scroll-x="true" class="more-box-list" v-if="listData[img_index]&&listData[img_index].list">
|
||||
<view class="more-box-list-item" v-for="(item,index) in listData[img_index].list"
|
||||
@click="playBgm(item.link,index)">
|
||||
<view class="item-image" :class="bg_index==index?'more-box-list-item-active':''">
|
||||
<image class="more-box-list-image"
|
||||
:src="item.image_link"
|
||||
mode="aspectFill"></image>
|
||||
</view>
|
||||
<text class="f26 white mb10">{{item.name}}</text>
|
||||
<text class="f22 white">{{item.songster}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="d-c-c f-d-i foot-box">
|
||||
<text class="grayD f22 " @tap="stopBg">停止选择音乐</text>
|
||||
</view>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
img_index: 0,
|
||||
popupVisible: false,
|
||||
listData: [{
|
||||
list: []
|
||||
}],
|
||||
bg_index: -1
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().globalData.vueObj.font_url + "')"
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
show() {
|
||||
this.getData();
|
||||
this.popupVisible = true;
|
||||
},
|
||||
getData() {
|
||||
let self = this;
|
||||
getApp()._get('live.RoomApply/audioInfo', {}, (res) => {
|
||||
console.log(res)
|
||||
self.listData = res.data.list;
|
||||
})
|
||||
},
|
||||
playBgm(e, i) {
|
||||
this.bg_index = i;
|
||||
this.$emit('liveSet', e);
|
||||
},
|
||||
stopBg() {
|
||||
this.$emit('liveSet', '');
|
||||
this.img_index = 0;
|
||||
this.bg_index = -1;
|
||||
},
|
||||
close() {
|
||||
this.$emit('close');
|
||||
this.popupVisible = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border-color: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background-color: #000;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background-color: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
|
||||
.foot-box {
|
||||
width: 710rpx;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid;
|
||||
padding: 0 23rpx;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.foot-box .icon.iconfont {
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.more-box {
|
||||
background: rgba(0, 0, 0, .85);
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.more-box-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
padding: 25rpx 0 53rpx 0;
|
||||
}
|
||||
|
||||
.more-box-list-item {
|
||||
width: 196rpx;
|
||||
border-radius: 10rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 47rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.item-image {
|
||||
width: 196rpx;
|
||||
height: 192rpx;
|
||||
border-radius: 10rpx;
|
||||
border: 3rpx solid rgba(0, 0, 0, 0);
|
||||
padding: 6rpx;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.more-box-list-image {
|
||||
width: 178rpx;
|
||||
height: 174rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.more-box-list-item-active {
|
||||
border: 3rpx solid #8AE4F0;
|
||||
}
|
||||
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wrap__giftPanel {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.category_list {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
height: 95rpx;
|
||||
border-bottom: 1rpx solid;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.category_item {
|
||||
flex-shrink: 0;
|
||||
margin: 0 64rpx;
|
||||
font-size: 28rpx;
|
||||
color: #DDDDDD;
|
||||
height: 95rpx;
|
||||
line-height: 95rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.category_item-active-after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 1rpx;
|
||||
left: 0;
|
||||
width: 32rpx;
|
||||
height: 5rpx;
|
||||
background: #DDDDDD;
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
</style>
|
||||
600
pagesLive/live/part/product.nvue
Normal file
600
pagesLive/live/part/product.nvue
Normal file
@ -0,0 +1,600 @@
|
||||
<template>
|
||||
<div class="wrap__giftPanel" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap="close"></view>
|
||||
<view class="pop__ui_child anim-footer" v-if="!isSpec">
|
||||
<div class="more-box p-0-20" @tap.stop="">
|
||||
<view class="product-title">
|
||||
<text class="f32 gray3" v-if="type==0">共{{product_list.length}}件商品</text>
|
||||
<text class="f32 gray3" v-if="type==1">共{{course_list.length}}件课程</text>
|
||||
<view class="icon iconfont icon-guanbi" @click="close">
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-guanbi"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="d-r d-s-c">
|
||||
<text :class="type==1?'item p20 f26':'item-active p20 f26'" @click="type=0">商品</text>
|
||||
<text :class="type==0?'item p20 f26':'item-active p20 f26'" @click="type=1">课程</text>
|
||||
</view>
|
||||
<scroll-view v-if="type==0" class="product_list" scroll-y show-scrollbar="false">
|
||||
<view class="product-item" v-for="(item,index) in product_list" :key='index'>
|
||||
<view class="product-cover">
|
||||
<text class="over-img" v-if="item.product.product_stock<=0">-已抢光-</text>
|
||||
<image class="product-img" :src="item.product.image[0].file_path" mode="aspectFill"></image>
|
||||
<view class="porduct_no"><text class="porduct_no_text">{{index+1}}</text></view>
|
||||
<!-- <text class="porduct_off">已下架</text> -->
|
||||
<text class="porduct_on" v-if="live_product_id==item.live_product_id">讲解中</text>
|
||||
</view>
|
||||
<view class="porduct-item-right">
|
||||
<view>
|
||||
<text class="product-name text-ellipsis-2">{{item.product.product_name}}</text>
|
||||
<text class="no-stock" v-if="item.product.product_stock<=0">商品已抢光</text>
|
||||
<text class="pro-stock" v-else>库存:{{item.product.product_stock}}</text>
|
||||
</view>
|
||||
<view class="d-b-c f-d-i" style="width: 500rpx;">
|
||||
<text class="product-price flex-1">¥{{item.product.product_price}}</text>
|
||||
<view class="d-e-c f-d-i f-s-0">
|
||||
<template v-if="isCaster">
|
||||
<view class="product-btn" v-if="live_product_id==item.live_product_id"
|
||||
@tap="cancelExplain()"><text class="f22 white">取消讲解</text></view>
|
||||
<view class="product-btn" v-else @tap="setExplain(item)"><text
|
||||
class="f22 white">设为讲解</text></view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<view class="product-btn" @click="buyClick(item,1)"><text
|
||||
class="white f22">去抢购</text></view>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view v-if="type==1" class="product_list" scroll-y show-scrollbar="false">
|
||||
<view class="product-item" v-for="(item,index) in course_list" :key='index'>
|
||||
<view class="product-cover">
|
||||
<image class="product-img" :src="item.course.image.file_path" mode="aspectFill"></image>
|
||||
<view class="porduct_no"><text class="porduct_no_text">{{index+1}}</text></view>
|
||||
<!-- <text class="porduct_off">已下架</text> -->
|
||||
<text class="porduct_on" v-if="live_product_id==item.live_product_id">讲解中</text>
|
||||
</view>
|
||||
<view class="porduct-item-right">
|
||||
<view>
|
||||
<text class="product-name text-ellipsis-2">{{item.course.title}}</text>
|
||||
</view>
|
||||
<view class="d-b-c f-d-i" style="width: 500rpx;">
|
||||
<text class="product-price flex-1">¥{{item.course.course_price}}</text>
|
||||
<view class="d-e-c f-d-i f-s-0">
|
||||
<template v-if="isCaster">
|
||||
<view class="product-btn" v-if="live_product_id==item.live_product_id"
|
||||
@tap="cancelExplain()"><text class="f22 white">取消讲解</text></view>
|
||||
<view class="product-btn" v-else @tap="setExplain(item)"><text
|
||||
class="f22 white">设为讲解</text></view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<view class="product-btn" @click="buyClick(item,0)"><text
|
||||
class="white f22">去抢购</text></view>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</div>
|
||||
</view>
|
||||
<!--购物确定-->
|
||||
<spec ref="specPop" @close="closePopup"></spec>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import spec from './spec.nvue';
|
||||
export default {
|
||||
components: {
|
||||
spec
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isSpec: false,
|
||||
img_index: 0,
|
||||
popupVisible: false,
|
||||
type: 0,
|
||||
product_id: 0,
|
||||
detail: {},
|
||||
/*商品属性*/
|
||||
specData: null,
|
||||
/*子级页面传参*/
|
||||
productModel: {},
|
||||
}
|
||||
},
|
||||
props: ['product_list', 'course_list', 'isCaster', 'room_id', 'live_product_id'],
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().globalData.vueObj.font_url + "')"
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
closePopup() {
|
||||
this.product_id = 0;
|
||||
this.isSpec = false;
|
||||
},
|
||||
buyClick(e, n) {
|
||||
let self = this;
|
||||
console.log(e)
|
||||
if (n) {
|
||||
this.product_id = e.product.product_id;
|
||||
console.log('打开规格选择')
|
||||
this.getData();
|
||||
} else {
|
||||
// this.gotoPage('/pages/course/course-detail?course_id=' + e.course_id);
|
||||
uni.navigateTo({
|
||||
url: '/pages/course/course-detail?course_id=' + e.course.course_id + '&room_id=' + self
|
||||
.room_id
|
||||
})
|
||||
}
|
||||
// this.gotoPage('/pages/order/confirm-order?order_type=live_product&room_id='+room_id+'live_product_id='+item.live_product_id);
|
||||
// gotoPage('/pages/order/confirm-order?order_type=live_course&room_id='+room_id+'live_product_id='+item.live_product_id)
|
||||
},
|
||||
/*获取数据*/
|
||||
getData() {
|
||||
let self = this;
|
||||
let product_id = self.product_id;
|
||||
|
||||
console.log('商品详情')
|
||||
getApp()._get(
|
||||
'product.product/detail', {
|
||||
product_id: product_id,
|
||||
},
|
||||
function(res) {
|
||||
// 初始化商品多规格
|
||||
self.specData = null;
|
||||
if (res.data.detail.spec_type == 20) {
|
||||
self.initSpecData(res.data.specData);
|
||||
}
|
||||
self.detail = res.data.detail;
|
||||
self.openPopup();
|
||||
}
|
||||
);
|
||||
},
|
||||
/*多规格商品*/
|
||||
initSpecData(data) {
|
||||
for (let i in data.spec_attr) {
|
||||
for (let j in data.spec_attr[i].spec_items) {
|
||||
data.spec_attr[i].spec_items[j].checked = false;
|
||||
}
|
||||
}
|
||||
this.specData = data;
|
||||
if (this.specData.spec_attr) {
|
||||
this.specData.spec_attr.forEach(item => {
|
||||
this.alreadyChioce += item.group_name;
|
||||
this.alreadyChioce += ' / ';
|
||||
});
|
||||
this.alreadyChioce = this.alreadyChioce.replace(/(\s\/\s)$/gi, '');
|
||||
}
|
||||
},
|
||||
|
||||
/*选规格*/
|
||||
openPopup() {
|
||||
let obj = {
|
||||
specData: this.specData,
|
||||
detail: this.detail,
|
||||
productSpecArr: this.specData != null ? new Array(this.specData.spec_attr.length) : [],
|
||||
show_sku: {
|
||||
sku_image: '',
|
||||
seckill_price: 0,
|
||||
product_sku_id: 0,
|
||||
line_price: 0,
|
||||
seckill_stock: 0,
|
||||
seckill_product_sku_id: 0,
|
||||
sum: 1
|
||||
},
|
||||
type: 'order',
|
||||
room_id: this.room_id
|
||||
};
|
||||
this.productModel = obj;
|
||||
// this.isPopup = true;\
|
||||
console.log(this.productModel);
|
||||
console.log('商品详情初始化结束');
|
||||
this.$refs.specPop.show(this.productModel);
|
||||
this.isSpec = true;
|
||||
// this.$refs.specPop.show();
|
||||
},
|
||||
show() {
|
||||
this.popupVisible = true;
|
||||
},
|
||||
setExplain(item) {
|
||||
console.log('------setExplain-------------');
|
||||
let self = this;
|
||||
uni.showLoading({
|
||||
title: '设置中',
|
||||
mask: true
|
||||
});
|
||||
getApp()._post(
|
||||
'live.room/set_product', {
|
||||
room_id: self.room_id,
|
||||
live_product_id: item.live_product_id
|
||||
},
|
||||
function(res) {
|
||||
self.product_active = item.product_id;
|
||||
// self.$emit('setProduct', item.product_id);
|
||||
// self.close();
|
||||
}
|
||||
);
|
||||
let product = {}
|
||||
if (self.type == 0) {
|
||||
product = {
|
||||
product_image: item.product.image[0].file_path,
|
||||
product_name: item.product.product_name,
|
||||
product_price: item.product.product_price,
|
||||
product_id: item.live_product_id,
|
||||
nav_id: item.product.product_id,
|
||||
product_type: 1
|
||||
}
|
||||
} else {
|
||||
product = {
|
||||
product_image: item.course.image.file_path,
|
||||
product_name: item.course.title,
|
||||
product_price: item.course.course_price,
|
||||
product_id: item.live_product_id,
|
||||
nav_id: item.course.course_id,
|
||||
product_type: 2
|
||||
}
|
||||
}
|
||||
this.$emit('explainProduct', product);
|
||||
this.popupVisible = false;
|
||||
},
|
||||
cancelExplain() {
|
||||
console.log('------cancelExplain-------------');
|
||||
console.log('------setExplain-------------');
|
||||
let self = this;
|
||||
uni.showLoading({
|
||||
title: '设置中',
|
||||
mask: true
|
||||
});
|
||||
getApp()._post(
|
||||
'live.room/set_product', {
|
||||
room_id: self.room_id,
|
||||
live_product_id: 0
|
||||
},
|
||||
function(res) {
|
||||
self.product_active = 0;
|
||||
}
|
||||
);
|
||||
this.$emit('explainProduct', null);
|
||||
this.popupVisible = false;
|
||||
},
|
||||
close() {
|
||||
this.$emit('close');
|
||||
this.popupVisible = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background: #ffffff;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
|
||||
.foot-box {
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid;
|
||||
padding: 0 23rpx;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
}
|
||||
|
||||
.foot-box .icon.iconfont {
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.more-box {
|
||||
background: #ffffff;
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.product-title {
|
||||
height: 100rpx;
|
||||
padding: 0 27rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
border-bottom: 1rpx solid #eeeeee;
|
||||
}
|
||||
|
||||
.more-box .product-title .icon-guanbi {
|
||||
font-size: 32rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.more-box-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
padding: 25rpx 0 53rpx 0;
|
||||
}
|
||||
|
||||
.more-box-list-item {
|
||||
width: 186rpx;
|
||||
border-radius: 10rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 47rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.more-box-list-item .item-image {
|
||||
width: 196rpx;
|
||||
height: 192rpx;
|
||||
border-radius: 10rpx;
|
||||
border: 3rpx solid;
|
||||
border-color: rgba(0, 0, 0, 0);
|
||||
padding: 6rpx;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.more-box-list-item .item-image image {
|
||||
width: 184rpx;
|
||||
height: 180rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.more-box-list-item .item-image.active {
|
||||
border: 3rpx solid #8AE4F0;
|
||||
}
|
||||
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wrap__giftPanel {
|
||||
z-index: 10000;
|
||||
}
|
||||
.op0{
|
||||
opacity: 0;
|
||||
}
|
||||
.category_list {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
height: 95rpx;
|
||||
border-bottom: 1rpx solid;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.product_list {
|
||||
padding-bottom: 80rpx;
|
||||
height: 730rpx;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
padding: 33rpx 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.product-cover {
|
||||
width: 184rpx;
|
||||
height: 184rpx;
|
||||
border-radius: 5rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.product-img {
|
||||
width: 184rpx;
|
||||
height: 184rpx;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
|
||||
.porduct_no {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 3;
|
||||
width: 54rpx;
|
||||
height: 36rpx;
|
||||
line-height: 36rpx;
|
||||
background: rgba(0, 0, 0, .65);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.porduct_no_text {
|
||||
color: #FFFFFF;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.porduct_on {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 184rpx;
|
||||
height: 41rpx;
|
||||
line-height: 41rpx;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 18rpx;
|
||||
background: #E2231A;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.porduct_off {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 184rpx;
|
||||
height: 41rpx;
|
||||
font-size: 18rpx;
|
||||
color: #FFFFFF;
|
||||
background: #999999;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 3;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.over-img {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
width: 184rpx;
|
||||
height: 184rpx;
|
||||
line-height: 184rpx;
|
||||
border-radius: 5rpx;
|
||||
background: rgba(0, 0, 0, .45);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 20rpx;
|
||||
color: #FFFFFF;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.porduct-item-right {
|
||||
margin-left: 20rpx;
|
||||
height: 184rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
lines: 2;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
height: 64rpx;
|
||||
width: 500rpx;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #3A3838;
|
||||
}
|
||||
|
||||
.no-stock {
|
||||
width: 280rpx;
|
||||
height: 28rpx;
|
||||
line-height: 28rpx;
|
||||
font-size: 18rpx;
|
||||
color: #FFFFFF;
|
||||
padding-left: 18rpx;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
background: linear-gradient(-65deg, #E2231A, #E2231A);
|
||||
border-radius: 14rpx;
|
||||
margin-top: 9rpx;
|
||||
flex-direction: row;
|
||||
|
||||
}
|
||||
|
||||
.pro-stock {
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #999999;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.product-btn {
|
||||
padding: 0 35rpx;
|
||||
height: 46rpx;
|
||||
background: #E2231A;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: 1rpx solid #E2231A;
|
||||
color: #FFFFFF;
|
||||
font-size: 22rpx;
|
||||
border-radius: 5rpx;
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
|
||||
.product-btn-border {
|
||||
padding: 0 35rpx;
|
||||
height: 46rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 22rpx;
|
||||
border-radius: 5rpx;
|
||||
margin-left: 16rpx;
|
||||
border: 1rpx solid #dddddd;
|
||||
color: #DDDDDD;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.item-active {
|
||||
color: #E2231A;
|
||||
}
|
||||
</style>
|
||||
398
pagesLive/live/part/record.nvue
Normal file
398
pagesLive/live/part/record.nvue
Normal file
@ -0,0 +1,398 @@
|
||||
<template>
|
||||
<view class="wrap__giftPanel" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap="close"></view>
|
||||
<view class="pop__ui_child anim-footer">
|
||||
<div class="more-box p-0-20" @tap.stop="">
|
||||
<scroll-view class="product_list" style="height: 800rpx;" scroll-y show-scrollbar="false"
|
||||
lower-threshold="50" @scrolltolower="scrolltolowerFunc">
|
||||
<view v-if="listData.length>0">
|
||||
<view class="product-item d-r d-b-c" v-for="(item,index) in listData" :key='index'>
|
||||
<view class="flex-1 d-s-c d-r">
|
||||
<image class="avatarUrl" :src="item.avatarurl || ''" mode=""></image>
|
||||
<text class="name">{{item.nickName || ''}}</text>
|
||||
<text class="grade">{{item.awardTitle || ''}}</text>
|
||||
</view>
|
||||
<button type="default" class="record-btn" @click="openFunc(item)"><text
|
||||
class="btn-text">恢复</text></button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 没有记录 -->
|
||||
<view class="d-c-c p30" v-if="listData.length==0 && !loading">
|
||||
<text class="f24 white">亲,暂无相关记录哦</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
img_index: 0,
|
||||
popupVisible: false,
|
||||
listData: [],
|
||||
bg_index: -1,
|
||||
search: '',
|
||||
list_rows: 10,
|
||||
last_page: 0,
|
||||
/*当前页面*/
|
||||
page: 1,
|
||||
/*底部加载*/
|
||||
loading: true,
|
||||
}
|
||||
},
|
||||
props: ['userType', 'room_id'],
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().globalData.vueObj.font_url + "')"
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
/*可滚动视图区域到底触发*/
|
||||
scrolltolowerFunc() {
|
||||
let self = this;
|
||||
self.page++;
|
||||
self.loading = true;
|
||||
if (self.page > self.last_page) {
|
||||
self.loading = false;
|
||||
self.no_more = true;
|
||||
return;
|
||||
}
|
||||
self.getData();
|
||||
},
|
||||
openFunc(e) {
|
||||
let self = this;
|
||||
if (this.userType == 'offspe') {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要取消禁言该用户吗?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
self.openspe(e);
|
||||
console.log('用户点击确定');
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要取消删除该用户吗?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
self.openUser(e);
|
||||
console.log('用户点击确定');
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
openspe(e) {
|
||||
let self = this;
|
||||
getApp()._get('live.room/openSay', {
|
||||
user_id: e.user_id,
|
||||
room_id: self.room_id
|
||||
}, (res) => {
|
||||
uni.showModal({
|
||||
title: '友情提示',
|
||||
content: res.msg,
|
||||
showCancel: false,
|
||||
success: function(res) {
|
||||
self.page = 1;
|
||||
self.listData = [];
|
||||
self.getData();
|
||||
self.$emit('liveSet', {
|
||||
type: 'openSay',
|
||||
user_id: e.user_id
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
openUser(e) {
|
||||
let self = this;
|
||||
getApp()._get('live.room/openPerson', {
|
||||
user_id: e.user_id,
|
||||
room_id: self.room_id
|
||||
}, (res) => {
|
||||
uni.showModal({
|
||||
title: '友情提示',
|
||||
content: res.msg,
|
||||
showCancel: false,
|
||||
success: function(res) {
|
||||
self.page = 1;
|
||||
self.listData = [];
|
||||
self.getData();
|
||||
self.$emit('liveSet', {
|
||||
type: 'openPerson',
|
||||
user_id: e.user_id
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
show() {
|
||||
this.getData();
|
||||
this.popupVisible = true;
|
||||
},
|
||||
searchFunc() {
|
||||
this.restoreData();
|
||||
this.getData();
|
||||
},
|
||||
/*还原初始化*/
|
||||
restoreData() {
|
||||
this.listData = [];
|
||||
this.page = 1;
|
||||
},
|
||||
getData() {
|
||||
let self = this;
|
||||
self.loading = true;
|
||||
let url = '';
|
||||
if (self.userType == 'offspe') {
|
||||
url = 'live.room/sayList';
|
||||
} else {
|
||||
url = 'live.room/kickList';
|
||||
}
|
||||
let params = {
|
||||
search: self.search,
|
||||
list_rows: self.list_rows,
|
||||
page: self.page || 1,
|
||||
room_id: self.room_id
|
||||
}
|
||||
getApp()._get(url, params, (res) => {
|
||||
console.log(res)
|
||||
self.loading = false;
|
||||
if (res.data.list == '') {
|
||||
return
|
||||
} else {
|
||||
self.listData = self.listData.concat(res.data.list.data);
|
||||
self.last_page = res.data.list.last_page;
|
||||
if (res.data.list.last_page <= 1) {
|
||||
self.no_more = true;
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
playBgm(e, i) {
|
||||
this.bg_index = i;
|
||||
this.$emit('liveSet', e);
|
||||
},
|
||||
stopBg() {
|
||||
this.$emit('liveSet', '');
|
||||
this.img_index = 0;
|
||||
this.bg_index = -1;
|
||||
},
|
||||
close() {
|
||||
this.listData = [];
|
||||
this.page = 1;
|
||||
this.search = '';
|
||||
this.$emit('close');
|
||||
this.popupVisible = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border-color: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background-color: #000;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background-color: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
|
||||
.foot-box {
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid;
|
||||
padding: 0 23rpx;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
}
|
||||
|
||||
.foot-box .icon.iconfont {
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.more-box {
|
||||
background: rgba(0, 0, 0, .85);
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.more-box-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
padding: 25rpx 0 53rpx 0;
|
||||
}
|
||||
|
||||
.more-box-list-item {
|
||||
width: 196rpx;
|
||||
border-radius: 10rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 47rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.item-image {
|
||||
width: 196rpx;
|
||||
height: 192rpx;
|
||||
border-radius: 10rpx;
|
||||
border: 3rpx solid rgba(0, 0, 0, 0);
|
||||
padding: 6rpx;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.more-box-list-image {
|
||||
width: 178rpx;
|
||||
height: 174rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.more-box-list-item-active {
|
||||
border: 3rpx solid #8AE4F0;
|
||||
}
|
||||
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wrap__giftPanel {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.category_list {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
height: 95rpx;
|
||||
border-bottom: 1rpx solid;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.category_item {
|
||||
flex-shrink: 0;
|
||||
margin: 0 64rpx;
|
||||
font-size: 28rpx;
|
||||
color: #DDDDDD;
|
||||
height: 95rpx;
|
||||
line-height: 95rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.category_item-active-after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 1rpx;
|
||||
left: 0;
|
||||
width: 32rpx;
|
||||
height: 5rpx;
|
||||
background: #DDDDDD;
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
|
||||
.pop-input {
|
||||
width: 702rpx;
|
||||
height: 62rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
padding: 0 30rpx;
|
||||
margin: 25rpx auto;
|
||||
}
|
||||
|
||||
.avatarUrl {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 18rpx;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 26rpx;
|
||||
font-family: PingFangSC;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
margin-right: 11rpx;
|
||||
}
|
||||
|
||||
.grade {
|
||||
font-size: 20rpx;
|
||||
font-family: PingFangSC;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
height: 106rpx;
|
||||
}
|
||||
|
||||
.record-btn {
|
||||
background-color: #E2231A;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
color: #FFFFFF;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
</style>
|
||||
591
pagesLive/live/part/spec.nvue
Normal file
591
pagesLive/live/part/spec.nvue
Normal file
@ -0,0 +1,591 @@
|
||||
<template>
|
||||
<view class="wrap__giftPanel product-popup" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap.stop="closePopup"></view>
|
||||
<view class="pop__ui_child anim-footer">
|
||||
<view class="main">
|
||||
<view class=" d-r d-e-c p20" @click="closePopup">
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<text class="icon iconfont icon-guanbi"></text>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="header">
|
||||
<image :src="form.show_sku.sku_image" mode="aspectFit" class="avt"></image>
|
||||
<view class="spec-top">
|
||||
<text class="num">¥{{form.show_sku.product_price}}</text>
|
||||
<text class="stock">库存:{{form.show_sku.stock_num}}</text>
|
||||
<text class="select_spec">{{ selectSpec}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="body">
|
||||
<!--规格-->
|
||||
<view>
|
||||
<scroll-view scroll-y="true" class="specs mt20" style="max-height: 600rpx;"
|
||||
v-if="form.specData !=null">
|
||||
<view class="specs mt20" v-for="(item_attr,attr_index) in form.specData.spec_attr"
|
||||
:key="attr_index">
|
||||
<view class="specs-hd p-20-0">
|
||||
<text class="f26 gray3">{{item_attr.group_name}}</text>
|
||||
<!-- <text class="ml10 red" v-if="form.productSpecArr[attr_index]==null">
|
||||
请选择{{item_attr.group_name}}
|
||||
</text> -->
|
||||
</view>
|
||||
<view class="specs-list">
|
||||
<button class="specs-list-button"
|
||||
:class="item.checked ? 'btn-checked' : 'btn-checke'"
|
||||
v-for="(item,item_index) in item_attr.spec_items" :key="item_index"
|
||||
@click="selectAttr(attr_index, item_index)"><text
|
||||
:class="item.checked ? 'btn-checked-text' : 'btn-checke-text'">{{item.spec_value}}</text>
|
||||
</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!--选择数量-->
|
||||
<view class="level-box count_choose">
|
||||
<text class="key mr20">数量</text>
|
||||
<view class="d-s-c d-r">
|
||||
<view class="icon-box minus d-c-c" @click="sub()" :class="{'num-wrap':!issub}">
|
||||
<text class="icon iconfont icon-jian" style="font-size: 20rpx;color: #333333;">—</text>
|
||||
</view>
|
||||
<input class="text-wrap-input" type="number" v-model="form.show_sku.sum" />
|
||||
<view class="icon-box plus d-c-c" :class="{'num-wrap':!isadd}" @click="add()">
|
||||
<text class="icon iconfont icon-jia" style="font-size: 20rpx;color: #333333;">+</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btns" style="width: 750rpx;padding:0;">
|
||||
<button class="confirm-btn" @click="confirmFunc(form)"><text class="white f32">确认</text></button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
popupVisible: false,
|
||||
activeIndex: 0,
|
||||
value: 1,
|
||||
/*表单对象*/
|
||||
form: {
|
||||
detail: {
|
||||
|
||||
},
|
||||
show_sku: {
|
||||
sku_image: ''
|
||||
},
|
||||
specData: {}
|
||||
},
|
||||
/*当前商品总库存*/
|
||||
stock: 0,
|
||||
/*选择提示*/
|
||||
selectSpec: '',
|
||||
/*是否打开过多规格选择框*/
|
||||
isOpenSpec: false,
|
||||
type: '',
|
||||
room_id:0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
/*判断增加数量*/
|
||||
isadd: function() {
|
||||
return this.form.show_sku.sum >= this.stock || this.form.show_sku.sum >= this.form.detail.limit_num;
|
||||
},
|
||||
|
||||
/*判断减少数量*/
|
||||
issub: function() {
|
||||
return this.form.show_sku.sum <= 1;
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().globalData.vueObj.font_url + "')"
|
||||
});
|
||||
console.log(getApp().globalData.vueObj.font_url);
|
||||
// #endif
|
||||
},
|
||||
watch: {
|
||||
'form.specData': {
|
||||
handler(n, o) {
|
||||
let str = '',
|
||||
select = '';
|
||||
this.isAll = true;
|
||||
if (n) {
|
||||
for (let i = 0; i < n.spec_attr.length; i++) {
|
||||
console.log(this.form.productSpecArr[i])
|
||||
if (this.form.productSpecArr[i] == null) {
|
||||
this.isAll = false;
|
||||
str += n.spec_attr[i].group_name + ' ';
|
||||
} else {
|
||||
n.spec_attr[i].spec_items.forEach(item => {
|
||||
if (this.form.productSpecArr[i] == item.item_id) {
|
||||
select += '\"' + item.spec_value + '\" ';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (!this.isAll) {
|
||||
str = '请选择: ' + str;
|
||||
} else {
|
||||
select = '已选: ' + select;
|
||||
}
|
||||
}
|
||||
this.selectSpec = this.isAll ? select : str;
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
show(e) {
|
||||
this.form = e;
|
||||
this.room_id = e.room_id;
|
||||
this.popupVisible = true;
|
||||
console.log(this.form)
|
||||
this.initShowSku();
|
||||
},
|
||||
/*初始化*/
|
||||
initShowSku() {
|
||||
this.form.show_sku.sku_image = this.form.detail.image[0].file_path;
|
||||
this.form.show_sku.product_price = this.form.detail.product_price;
|
||||
this.form.show_sku.product_sku_id = 0;
|
||||
this.form.show_sku.line_price = this.form.detail.line_price;
|
||||
this.form.show_sku.stock_num = this.form.detail.product_stock;
|
||||
this.form.show_sku.sum = 1;
|
||||
this.stock = this.form.detail.product_stock;
|
||||
},
|
||||
/*创建订单*/
|
||||
createdOrder() {
|
||||
let product_id = this.form.detail.product_id;
|
||||
let product_num = this.form.show_sku.sum;
|
||||
let product_sku_id = this.form.show_sku.product_sku_id;
|
||||
let room_id = ''
|
||||
if (this.room_id != 0 & this.room_id != '') {
|
||||
room_id = '&room_id=' + this.form.room_id;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/order/confirm-order?product_id=' + product_id + '&product_num=' + product_num +
|
||||
'&product_sku_id=' + product_sku_id + '&order_type=buy' + room_id
|
||||
})
|
||||
},
|
||||
/*确认提交*/
|
||||
confirmFunc() {
|
||||
if (this.form.specData != null) {
|
||||
for (let i = 0; i < this.form.productSpecArr.length; i++) {
|
||||
if (this.form.productSpecArr[i] == null) {
|
||||
uni.showToast({
|
||||
title: '请选择规格',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.createdOrder();
|
||||
},
|
||||
/*关闭弹窗*/
|
||||
closePopup() {
|
||||
this.room_id = 0;
|
||||
this.popupVisible = false;
|
||||
this.$emit('close',null)
|
||||
},
|
||||
/*选择属性*/
|
||||
selectAttr(attr_index, item_index) {
|
||||
let self = this;
|
||||
let items = self.form.specData.spec_attr[attr_index].spec_items;
|
||||
let curItem = items[item_index];
|
||||
if (curItem.checked) {
|
||||
curItem.checked = false;
|
||||
self.form.productSpecArr[attr_index] = null;
|
||||
} else {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
items[i].checked = false;
|
||||
}
|
||||
curItem.checked = true;
|
||||
self.form.productSpecArr[attr_index] = curItem.item_id;
|
||||
}
|
||||
|
||||
for (let i = 0; i < self.form.productSpecArr.length; i++) {
|
||||
if (self.form.productSpecArr[i] == null) {
|
||||
self.initShowSku();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 更新商品规格信息
|
||||
self.updateSpecProduct();
|
||||
},
|
||||
/*更新商品规格信息*/
|
||||
updateSpecProduct() {
|
||||
let self = this;
|
||||
let specSkuId = self.form.productSpecArr.join('_');
|
||||
// 查找skuItem
|
||||
let spec_list = self.form.specData.spec_list,
|
||||
skuItem = spec_list.find((val) => {
|
||||
return val.spec_sku_id == specSkuId;
|
||||
});
|
||||
// 记录product_sku_id
|
||||
// 更新商品价格、划线价、库存
|
||||
if (typeof skuItem === 'object') {
|
||||
self.stock = skuItem.spec_form.stock_num;
|
||||
if (self.form.show_sku.sum > self.stock) {
|
||||
self.form.show_sku.sum = self.stock > 0 ? self.stock : 1;
|
||||
}
|
||||
self.form.show_sku.product_sku_id = specSkuId;
|
||||
self.form.show_sku.product_price = skuItem.spec_form.product_price;
|
||||
self.form.show_sku.line_price = skuItem.spec_form.line_price;
|
||||
self.form.show_sku.stock_num = skuItem.spec_form.stock_num;
|
||||
if (skuItem.spec_form.image_id > 0) {
|
||||
self.form.show_sku.sku_image = skuItem.spec_form.image_path;
|
||||
} else {
|
||||
self.form.show_sku.sku_image = self.form.detail.image[0].file_path;
|
||||
}
|
||||
}
|
||||
},
|
||||
/*商品增加*/
|
||||
add() {
|
||||
if (this.stock <= 0) {
|
||||
return;
|
||||
}
|
||||
if (this.form.show_sku.sum >= this.stock) {
|
||||
uni.showToast({
|
||||
title: '数量超过了库存',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (this.form.detail.limit_num > 0 && this.form.show_sku.sum >= this.form.detail.limit_num) {
|
||||
uni.showToast({
|
||||
title: '数量超过了限购数量',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
return false;
|
||||
}
|
||||
this.form.show_sku.sum++;
|
||||
},
|
||||
/*商品减少*/
|
||||
sub() {
|
||||
if (this.stock <= 0) {
|
||||
return;
|
||||
}
|
||||
if (this.form.show_sku.sum < 2) {
|
||||
uni.showToast({
|
||||
title: '商品数量至少为1',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
return false;
|
||||
}
|
||||
this.form.show_sku.sum--;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border-color: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background-color: #000;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background-color: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
|
||||
.foot-box {
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid rgba(255, 255, 255, .1);
|
||||
padding: 0 23rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.icon.iconfont {
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.more-box {
|
||||
background: rgba(0, 0, 0, .85);
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.more-box-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 34rpx 107rpx 43rpx 134rpx;
|
||||
}
|
||||
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.icon.iconfont {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.more-icont {
|
||||
font-size: 46rpx;
|
||||
}
|
||||
|
||||
.Progress {
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
/* opacity: 0.3; */
|
||||
height: 100rpx;
|
||||
width: 700rpx;
|
||||
position: fixed;
|
||||
bottom: 370rpx;
|
||||
border-radius: 16rpx;
|
||||
left: 25rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
width: 364rpx;
|
||||
height: 75rpx;
|
||||
margin-left: 193rpx;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: auto;
|
||||
padding-top: 30rpx;
|
||||
/* background-color: red; */
|
||||
}
|
||||
|
||||
.progress-bar-slider {
|
||||
width: 364rpx;
|
||||
margin-left: 193rpx;
|
||||
}
|
||||
|
||||
.wrap__giftPanel {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.more-iconbox {
|
||||
width: 69rpx;
|
||||
height: 69rpx;
|
||||
background: rgba(255, 255, 255, .2);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.more-iconbox-active {
|
||||
background: #8AE4F0;
|
||||
}
|
||||
|
||||
.header {
|
||||
height: 200rpx;
|
||||
position: relative;
|
||||
border-bottom: 1rpx solid #EEEEEE;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
flex-direction: row;
|
||||
padding: 0 20rpx;
|
||||
}
|
||||
|
||||
.avt {
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
border: 2rpx solid #FFFFFF;
|
||||
background: #FFFFFF;
|
||||
border-radius: 12rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.stock {
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
top: 40rpx;
|
||||
right: 30rpx;
|
||||
}
|
||||
|
||||
.price {
|
||||
color: #333333;
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.num {
|
||||
font-size: 40rpx;
|
||||
}
|
||||
|
||||
.old-price {
|
||||
margin-left: 10rpx;
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.body {
|
||||
padding: 20rpx 30rpx 39rpx 30rpx;
|
||||
// max-height: 600rpx;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.level-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.key {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.icon-box {
|
||||
width: 48rpx;
|
||||
height: 40rpx;
|
||||
background: #e0e0e0;
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
color: #CCCCCC;
|
||||
}
|
||||
|
||||
.text-wrap {
|
||||
margin: 0 4rpx;
|
||||
height: 60rpx;
|
||||
border: none;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.text-wrap-input {
|
||||
padding: 0 10rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
width: 60rpx;
|
||||
font-size: 26rpx;
|
||||
text-align: center;
|
||||
margin: 0 20rpx;
|
||||
}
|
||||
|
||||
.specs-list {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.specs-list-button {
|
||||
margin-right: 10rpx;
|
||||
margin-bottom: 10rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
width: 710rpx;
|
||||
height: 80rpx;
|
||||
background-color: $dominant-color;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-bottom: 55rpx;
|
||||
color: #FFFFFF;
|
||||
line-height: 80rpx;
|
||||
font-size: 32rpx;
|
||||
border: $dominant-color 1rpx solid;
|
||||
}
|
||||
|
||||
.btn-checked {
|
||||
border: 1rpx solid;
|
||||
color: $dominant-color;
|
||||
border-color: $dominant-color;
|
||||
border-radius: 6rpx;
|
||||
font-size: 26rpx;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.btn-checked-text {
|
||||
color: $dominant-color;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.btn-checke {
|
||||
border: 1rpx solid #D9D9D9;
|
||||
border-radius: 6rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.btn-checke-text {
|
||||
color: #333333;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.count_choose {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
</style>
|
||||
374
pagesLive/live/part/user.nvue
Normal file
374
pagesLive/live/part/user.nvue
Normal file
@ -0,0 +1,374 @@
|
||||
<template>
|
||||
<view class="wrap__giftPanel" v-if="popupVisible">
|
||||
<view class="wrapgift-mask" @tap="close"></view>
|
||||
<view class="pop__ui_child anim-footer">
|
||||
<div class="more-box p-0-20" @tap.stop="">
|
||||
<input class="pop-input" type="text" confirm-type="search" @confirm="searchFunc()" v-model="search"
|
||||
placeholder="请输入用户名或者手机号搜索" />
|
||||
<scroll-view class="product_list" style="height: 800rpx;" scroll-y show-scrollbar="false"
|
||||
lower-threshold="50" @scrolltolower="scrolltolowerFunc">
|
||||
<view v-if="listData.length>0">
|
||||
<view class="product-item d-r d-s-c" v-for="(item,index) in listData" :key='index'
|
||||
@click="changeFunc(item)">
|
||||
<image class="avatarUrl" :src="item.avatarurl || ''" mode=""></image>
|
||||
<text class="name">{{item.nickName || ''}}</text>
|
||||
<text class="grade">{{item.awardTitle || ''}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 没有记录 -->
|
||||
<view class="d-c-c p30" v-if="listData.length==0 && !loading">
|
||||
<text class="f24 white">亲,暂无相关记录哦</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
img_index: 0,
|
||||
popupVisible: false,
|
||||
listData: [],
|
||||
bg_index: -1,
|
||||
search: '',
|
||||
list_rows: 10,
|
||||
last_page: 0,
|
||||
/*当前页面*/
|
||||
page: 1,
|
||||
/*底部加载*/
|
||||
loading: true,
|
||||
}
|
||||
},
|
||||
props: ['userType', 'room_id'],
|
||||
beforeCreate() {
|
||||
// #ifdef APP-PLUS
|
||||
const domModule = weex.requireModule('dom')
|
||||
domModule.addRule('fontFace', {
|
||||
fontFamily: "iconfont",
|
||||
'src': "url('" + getApp().globalData.vueObj.font_url + "')"
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
/*可滚动视图区域到底触发*/
|
||||
scrolltolowerFunc() {
|
||||
let self = this;
|
||||
self.page++;
|
||||
self.loading = true;
|
||||
if (self.page > self.last_page) {
|
||||
self.loading = false;
|
||||
self.no_more = true;
|
||||
return;
|
||||
}
|
||||
self.getData();
|
||||
},
|
||||
changeFunc(e) {
|
||||
let self = this;
|
||||
if (this.userType == 'offspe') {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要禁言该用户吗?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
self.offspe(e);
|
||||
console.log('用户点击确定');
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要踢出该用户吗?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
self.delUser(e);
|
||||
console.log('用户点击确定');
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
offspe(e) {
|
||||
let self = this;
|
||||
getApp()._get('live.room/banSay', {
|
||||
user_id: e.user_id,
|
||||
room_id: self.room_id
|
||||
}, (res) => {
|
||||
uni.showModal({
|
||||
title: '友情提示',
|
||||
content: res.msg,
|
||||
showCancel: false,
|
||||
success: function(res) {
|
||||
self.$emit('liveSet', {
|
||||
type: 'banSay',
|
||||
user_id: e.user_id
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
delUser(e) {
|
||||
let self = this;
|
||||
getApp()._get('live.room/kickPerson', {
|
||||
user_id: e.user_id,
|
||||
room_id: self.room_id
|
||||
}, (res) => {
|
||||
uni.showModal({
|
||||
title: '友情提示',
|
||||
content: res.msg,
|
||||
showCancel: false,
|
||||
success: function(res) {
|
||||
self.$emit('liveSet', {
|
||||
type: 'kickPerson',
|
||||
user_id: e.user_id
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
show() {
|
||||
this.getData();
|
||||
this.popupVisible = true;
|
||||
},
|
||||
searchFunc() {
|
||||
this.restoreData();
|
||||
this.getData();
|
||||
},
|
||||
/*还原初始化*/
|
||||
restoreData() {
|
||||
this.listData = [];
|
||||
this.page = 1;
|
||||
},
|
||||
getData() {
|
||||
let self = this;
|
||||
self.loading = true;
|
||||
console.log(self.search)
|
||||
getApp()._get('user.user/getList', {
|
||||
search: self.search,
|
||||
list_rows: self.list_rows,
|
||||
page: self.page || 1,
|
||||
}, (res) => {
|
||||
console.log(res)
|
||||
self.loading = false;
|
||||
if (res.data.list == '') {
|
||||
return
|
||||
} else {
|
||||
self.listData = self.listData.concat(res.data.list.data);
|
||||
self.last_page = res.data.list.last_page;
|
||||
if (res.data.list.last_page <= 1) {
|
||||
self.no_more = true;
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
playBgm(e, i) {
|
||||
this.bg_index = i;
|
||||
this.$emit('liveSet', e);
|
||||
},
|
||||
stopBg() {
|
||||
this.$emit('liveSet', '');
|
||||
this.img_index = 0;
|
||||
this.bg_index = -1;
|
||||
},
|
||||
close() {
|
||||
this.listData = [];
|
||||
this.page = 1;
|
||||
this.search = '';
|
||||
this.$emit('close');
|
||||
this.popupVisible = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.iconfont {
|
||||
font-family: iconfont;
|
||||
}
|
||||
|
||||
.nlv_borT {
|
||||
border-color: #ebebeb;
|
||||
border-style: solid;
|
||||
border-top-width: 1upx;
|
||||
}
|
||||
|
||||
.wrapgift-mask {
|
||||
background-color: #000;
|
||||
opacity: .1;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 201910;
|
||||
}
|
||||
|
||||
.pop__ui_child {
|
||||
background-color: #fbfbfb;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 201911;
|
||||
}
|
||||
|
||||
.foot-box {
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1rpx solid;
|
||||
padding: 0 23rpx;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
}
|
||||
|
||||
.foot-box .icon.iconfont {
|
||||
font-size: 22rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.more-box {
|
||||
background: rgba(0, 0, 0, .85);
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 9999;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.more-box-list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
padding: 25rpx 0 53rpx 0;
|
||||
}
|
||||
|
||||
.more-box-list-item {
|
||||
width: 196rpx;
|
||||
border-radius: 10rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 47rpx;
|
||||
color: #DDDDDD;
|
||||
}
|
||||
|
||||
.item-image {
|
||||
width: 196rpx;
|
||||
height: 192rpx;
|
||||
border-radius: 10rpx;
|
||||
border: 3rpx solid rgba(0, 0, 0, 0);
|
||||
padding: 6rpx;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.more-box-list-image {
|
||||
width: 178rpx;
|
||||
height: 174rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.more-box-list-item-active {
|
||||
border: 3rpx solid #8AE4F0;
|
||||
}
|
||||
|
||||
.more-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 72rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wrap__giftPanel {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.category_list {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
height: 95rpx;
|
||||
border-bottom: 1rpx solid;
|
||||
border-color: rgba(255, 255, 255, .1);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.category_item {
|
||||
flex-shrink: 0;
|
||||
margin: 0 64rpx;
|
||||
font-size: 28rpx;
|
||||
color: #DDDDDD;
|
||||
height: 95rpx;
|
||||
line-height: 95rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.category_item-active-after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 1rpx;
|
||||
left: 0;
|
||||
width: 32rpx;
|
||||
height: 5rpx;
|
||||
background: #DDDDDD;
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
|
||||
.pop-input {
|
||||
width: 702rpx;
|
||||
height: 62rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
padding: 0 30rpx;
|
||||
margin: 25rpx auto;
|
||||
}
|
||||
|
||||
.avatarUrl {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 18rpx;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 26rpx;
|
||||
font-family: PingFangSC;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
margin-right: 11rpx;
|
||||
}
|
||||
|
||||
.grade {
|
||||
font-size: 20rpx;
|
||||
font-family: PingFangSC;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
height: 106rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user