update about api
This commit is contained in:
@@ -1,370 +1,357 @@
|
||||
<template>
|
||||
<view id="release">
|
||||
<u-form :model="form" ref="uForm">
|
||||
<u-form-item label="标题" label-position="right">
|
||||
<u-input v-model="form.name" placeholder="请输入标题" />
|
||||
</u-form-item>
|
||||
<u-form-item label="标题" label-position="right"><u-input v-model="form.name" placeholder="请输入标题" /></u-form-item>
|
||||
<view class="titles">图片</view>
|
||||
<u-upload :action="action" del-color="#ececec" upload-text="选择图片" del-bg-color="#fff" :file-list="fileList"></u-upload>
|
||||
<!-- 标签 -->
|
||||
<view>
|
||||
<view class="titles">标签</view>
|
||||
<view class="form-view" @click="show_add()">+ 新建标签</view>
|
||||
<view class="form-view" v-for="(item,index) in fileListes" :key="index">{{item}}</view>
|
||||
<view class="form-view" v-for="(item, index) in fileListes" :key="index">{{ item }}</view>
|
||||
</view>
|
||||
<!-- 简介 -->
|
||||
<view class="titles">简介</view>
|
||||
<view class="titles_border">
|
||||
<textarea placeholder="请输入内容..."></textarea>
|
||||
</view>
|
||||
<view class="titles_border"><textarea placeholder="请输入内容..."></textarea></view>
|
||||
<!-- 底部弹框 商品选择 -->
|
||||
<view class="show_two">
|
||||
<u-popup v-model="show_two" mode="bottom" :closeable="true">
|
||||
<view class="title">
|
||||
<text>选择商品</text>
|
||||
</view>
|
||||
<view class="title"><text>选择商品</text></view>
|
||||
<!-- 商品列表 -->
|
||||
<view class="listes_shoping" v-for="(item, index) in list" :key="index">
|
||||
<view>
|
||||
<u-checkbox-group @change="checkboxGroupChange">
|
||||
<u-checkbox @change="checkboxChange" shape="circle" active-color="#FF780F" v-model="item.checked" :name="item.id"></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll" >
|
||||
<view class="listes_shoping" v-for="(item, index) in list" :key="index">
|
||||
<view>
|
||||
<u-checkbox-group>
|
||||
<u-checkbox @change="checkboxChange" shape="circle" active-color="#FF780F" v-model="item.checked" :name="item.goods_id"></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
<view><image :src="item.goods_image" mode="widthFix"></image></view>
|
||||
<view class="contentes">{{ item.goods_name }}</view>
|
||||
</view>
|
||||
<view>
|
||||
<image :src="item.url" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="contentes">{{item.content}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 提交按钮 -->
|
||||
<view class="u-button" @click="changes()">确定</view>
|
||||
</u-popup>
|
||||
<!-- 底部选择商品列表 -->
|
||||
<view @click="show_two = true">选择商品
|
||||
<view @click="show_two = true">
|
||||
选择商品
|
||||
<image class="images" src="../../static/image/tosign/bhottom.png"></image>
|
||||
</view>
|
||||
<!-- 选择后的列表 -->
|
||||
<view class="List_tosign" v-if="List_tosign != ''">
|
||||
<view>
|
||||
<image src="../../static/image/tosign/tosigin(5).png" mode="scaleToFill"></image>
|
||||
</view>
|
||||
<view>
|
||||
木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子
|
||||
</view>
|
||||
<view>
|
||||
<image src="../../static/image/tosign/delete.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view><image src="../../static/image/tosign/tosigin(5).png" mode="scaleToFill"></image></view>
|
||||
<view>木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子</view>
|
||||
<view><image src="../../static/image/tosign/delete.png" mode="widthFix"></image></view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 提交 -->
|
||||
<u-button class="custom-style" shape="circle" size="default">发表</u-button>
|
||||
|
||||
</u-form>
|
||||
<!-- 添加标签的按钮 -->
|
||||
<u-popup v-model="show" mode="center" border-radius="14">
|
||||
<view class="text">
|
||||
创建属于你的标签吧
|
||||
</view>
|
||||
<view class="u-inputes">
|
||||
<u-input v-model="form.name" />
|
||||
</view>
|
||||
<view class="text">创建属于你的标签吧</view>
|
||||
<view class="u-inputes"><u-input v-model="form.name" /></view>
|
||||
<u-button class="custom-style-button" shape="circle" size="default">确定</u-button>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
name: '',
|
||||
intro: '',
|
||||
sex: ''
|
||||
},
|
||||
// 演示地址,请勿直接使用
|
||||
action: 'http://www.example.com/upload',
|
||||
fileList: [],
|
||||
fileListes: ["美妆", "博主穿搭", "美妆", "美妆", "美妆", "美妆", "美妆", "博主穿搭"],
|
||||
show: false,
|
||||
show_two: false,
|
||||
filesList: [],
|
||||
arres_list : [],
|
||||
checked: false,
|
||||
list: [{
|
||||
name: 'apple',
|
||||
checked: false,
|
||||
disabled: false,
|
||||
content: "木糖少女小紫薯西装领连衣裙夏季新款女装装领连衣裙夏季装领连衣裙夏季装领连衣裙夏季夏收腰格子格纹裙子",
|
||||
url: '../../static/image/tosign/tosigin(5).png',
|
||||
id : '1'
|
||||
},
|
||||
{
|
||||
name: 'apple2',
|
||||
checked: false,
|
||||
disabled: false,
|
||||
content: "木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子",
|
||||
url: '../../static/image/tosign/tosigin(5).png',
|
||||
id : '2'
|
||||
},
|
||||
{
|
||||
name: 'appl3e',
|
||||
checked: false,
|
||||
disabled: false,
|
||||
content: "木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子",
|
||||
url: '../../static/image/tosign/tosigin(5).png',
|
||||
id : '3'
|
||||
},
|
||||
],
|
||||
List_tosign : []
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
name: '',
|
||||
intro: '',
|
||||
sex: ''
|
||||
},
|
||||
// 演示地址,请勿直接使用
|
||||
action: 'http://www.example.com/upload',
|
||||
fileList: [],
|
||||
fileListes: ['美妆', '博主穿搭', '美妆', '美妆', '美妆', '美妆', '美妆', '博主穿搭'],
|
||||
show: false,
|
||||
show_two: false,
|
||||
filesList: [],
|
||||
arres_list: [],
|
||||
checked: false,
|
||||
list: [],
|
||||
List_tosign: [],
|
||||
scrollTop: 0
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
// 定义删除数组的方法
|
||||
Array.prototype.remove = function(val) {
|
||||
var index = this.indexOf(val);
|
||||
if (index > -1) {
|
||||
this.splice(index, 1);
|
||||
}
|
||||
};
|
||||
// 缓存取选择好的数据
|
||||
this.tosign();
|
||||
},
|
||||
methods: {
|
||||
changes() {
|
||||
let that = this;
|
||||
that.show_two = false;
|
||||
console.log(that.arres_list);
|
||||
// 过滤数组
|
||||
that.arres_list = [...new Set(that.arres_list)];
|
||||
console.log(that.arres_list);
|
||||
},
|
||||
show_add() {
|
||||
console.log(this.show);
|
||||
this.show = !this.show;
|
||||
},
|
||||
// 选中某个复选框时,由checkbox时触发
|
||||
checkboxChange(e) {
|
||||
let id = e.name;
|
||||
if (e.value == true) {
|
||||
this.pushes(id);
|
||||
}else{
|
||||
this.delarr(id)
|
||||
}
|
||||
console.log(this.arres_list)
|
||||
|
||||
},
|
||||
onLoad(){
|
||||
// 缓存取选择好的数据
|
||||
this.tosign()
|
||||
},
|
||||
methods: {
|
||||
changes() {
|
||||
let that = this;
|
||||
that.show_two = false;
|
||||
console.log(that.arres_list);
|
||||
// 过滤数组
|
||||
that.arres_list = [...new Set(that.arres_list)];
|
||||
console.log(that.arres_list)
|
||||
},
|
||||
show_add() {
|
||||
console.log(this.show)
|
||||
this.show = !this.show
|
||||
},
|
||||
// 选中某个复选框时,由checkbox时触发
|
||||
checkboxChange(e) {
|
||||
console.log(e);
|
||||
if(e.value == true){
|
||||
let id = e.name;
|
||||
this.pushes(id)
|
||||
}
|
||||
},
|
||||
pushes(id){
|
||||
var that = this;
|
||||
console.log(id)
|
||||
if(id == ''){
|
||||
console.log("为空")
|
||||
}else{
|
||||
that.arres_list.push(id);
|
||||
}
|
||||
},
|
||||
// 选中任一checkbox时,由checkbox-group触发
|
||||
checkboxGroupChange(e) {
|
||||
console.log(e);
|
||||
|
||||
},
|
||||
tosign(){
|
||||
console.log("111")
|
||||
this.$u.api.documentInfo({
|
||||
document_code: 'privacy'
|
||||
}).then((res)=>{
|
||||
console.log(res)
|
||||
})
|
||||
try {
|
||||
const value = uni.getStorageSync('list_tosign');
|
||||
if (value) {
|
||||
console.log(value);
|
||||
}
|
||||
} catch (e) {
|
||||
// error
|
||||
}
|
||||
// 删除直播商品
|
||||
delarr(id) {
|
||||
var that = this;
|
||||
if (id == '') {
|
||||
console.log('为空');
|
||||
} else {
|
||||
that.arres_list.remove(id);
|
||||
}
|
||||
},
|
||||
// 增加直播商品
|
||||
pushes(id) {
|
||||
var that = this;
|
||||
if (id == '') {
|
||||
console.log('为空');
|
||||
} else {
|
||||
that.arres_list.push(id);
|
||||
}
|
||||
},
|
||||
tosign() {
|
||||
console.log('111');
|
||||
this.$u.api.canselectgood({}).then(res => {
|
||||
console.log(res);
|
||||
if(res.data.live_stataes==0){
|
||||
this.$u.route({
|
||||
url: `/pages/${url}`
|
||||
});
|
||||
}else{
|
||||
let arr = res.data.list
|
||||
for(let index in arr){
|
||||
arr[index].checked=false
|
||||
}
|
||||
this.list = arr
|
||||
}
|
||||
});
|
||||
// try {
|
||||
// const value = uni.getStorageSync('list_tosign');
|
||||
// if (value) {
|
||||
// console.log(value);
|
||||
// }
|
||||
// } catch (e) {
|
||||
// // error
|
||||
// }
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#release {
|
||||
width: 690rpx;
|
||||
margin: 0 auto;
|
||||
#release {
|
||||
width: 690rpx;
|
||||
margin: 0 auto;
|
||||
|
||||
.form-view {
|
||||
background: rgba(255, 120, 15, 1);
|
||||
border-radius: 6rpx;
|
||||
margin-right: 20rpx;
|
||||
font-size: 24rpx;
|
||||
padding: 8rpx 20rpx;
|
||||
display: inline-block;
|
||||
margin-bottom: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.titles {
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.custom-style {
|
||||
background: rgba(255, 120, 15, 1) !important;
|
||||
color: #fff !important;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.custom-style-button {
|
||||
background: rgba(255, 120, 15, 1) !important;
|
||||
color: #fff !important;
|
||||
font-size: 28rpx;
|
||||
width: 200rpx;
|
||||
margin-bottom: 23rpx;
|
||||
line-height: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.show_two .title {
|
||||
width: 100%;
|
||||
border-bottom: solid 1px #ECECEC;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.show_two .title>text {
|
||||
font-size: 30rpx;
|
||||
padding: 30rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.listes_shoping {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
margin-bottom: 30rpx;
|
||||
height: 160rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.listes_shoping>view {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.listes_shoping>view:nth-child(1) {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-top: 62rpx;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
|
||||
.listes_shoping>view:nth-child(2) {
|
||||
width: 180rpx;
|
||||
height: 160rpx;
|
||||
margin: 0 31rpx 0 19rpx;
|
||||
}
|
||||
|
||||
.listes_shoping>view:nth-child(2) image {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.listes_shoping>view:nth-child(3) {
|
||||
width: 425rpx;
|
||||
margin-top: 43rpx;
|
||||
overflow: hidden;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.u-button {
|
||||
background: #FF780F;
|
||||
width: 690rpx;
|
||||
height: 98rpx;
|
||||
line-height: 98rpx;
|
||||
background: rgba(255, 120, 15, 1);
|
||||
border-radius: 49px;
|
||||
font-size: 36rpx;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
margin: 0 auto 20rpx;
|
||||
}
|
||||
.form-view {
|
||||
background: rgba(255, 120, 15, 1);
|
||||
border-radius: 6rpx;
|
||||
margin-right: 20rpx;
|
||||
font-size: 24rpx;
|
||||
padding: 8rpx 20rpx;
|
||||
display: inline-block;
|
||||
margin-bottom: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.u-mode-center-box {
|
||||
padding: 120rpx;
|
||||
|
||||
.text {
|
||||
font-size: 30rpx;
|
||||
margin-top: 74rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.scroll {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
.titles_border,
|
||||
.uni-textarea-compute {
|
||||
border: 1px #BABABA solid !important;
|
||||
padding: 10rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.u-inputes {
|
||||
margin: 30rpx 0;
|
||||
border: 1px #ececec solid;
|
||||
padding-left: 14rpx;
|
||||
width: 420rpx;
|
||||
}
|
||||
|
||||
.show_two {
|
||||
padding: 30rpx 0 70rpx 0;
|
||||
}
|
||||
|
||||
.show_two>view {
|
||||
.titles {
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
.show_two .images {
|
||||
width: 22rpx;
|
||||
height: 12rpx;
|
||||
float: right;
|
||||
top: 14rpx;
|
||||
textarea {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.List_tosign {
|
||||
|
||||
.custom-style {
|
||||
background: rgba(255, 120, 15, 1) !important;
|
||||
color: #fff !important;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.custom-style-button {
|
||||
background: rgba(255, 120, 15, 1) !important;
|
||||
color: #fff !important;
|
||||
font-size: 28rpx;
|
||||
width: 200rpx;
|
||||
margin-bottom: 23rpx;
|
||||
line-height: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.show_two .title {
|
||||
width: 100%;
|
||||
border-bottom: solid 1px #ececec;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.show_two .title > text {
|
||||
font-size: 30rpx;
|
||||
padding: 30rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.listes_shoping {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
margin-top: 21rpx;
|
||||
margin-bottom: 30rpx;
|
||||
height: 160rpx;
|
||||
position: relative;
|
||||
}
|
||||
.List_tosign > view{
|
||||
|
||||
.listes_shoping > view {
|
||||
float: left;
|
||||
}
|
||||
.List_tosign> view:nth-child(1) {
|
||||
|
||||
.listes_shoping > view:nth-child(1) {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-top: 62rpx;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
|
||||
.listes_shoping > view:nth-child(2) {
|
||||
width: 180rpx;
|
||||
height: 160rpx;
|
||||
margin-bottom: 30rpx;
|
||||
image{
|
||||
border-radius: 15rpx;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
margin: 0 31rpx 0 19rpx;
|
||||
}
|
||||
.List_tosign> view:nth-child(2) {
|
||||
width: 420rpx;
|
||||
height: 76rpx;
|
||||
margin: 43rpx 43rpx 0 21rpx;
|
||||
|
||||
.listes_shoping > view:nth-child(2) image {
|
||||
width: 100%;
|
||||
}
|
||||
.List_tosign> view:nth-child(3) {
|
||||
width: 26rpx;
|
||||
height: 27rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.listes_shoping > view:nth-child(3) {
|
||||
width: 425rpx;
|
||||
margin-top: 43rpx;
|
||||
overflow: hidden;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.u-button {
|
||||
background: #ff780f;
|
||||
width: 690rpx;
|
||||
height: 98rpx;
|
||||
line-height: 98rpx;
|
||||
background: rgba(255, 120, 15, 1);
|
||||
border-radius: 49px;
|
||||
font-size: 36rpx;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
margin: 0 auto 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.u-mode-center-box {
|
||||
padding: 120rpx;
|
||||
|
||||
.text {
|
||||
font-size: 30rpx;
|
||||
margin-top: 74rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.titles_border,
|
||||
.uni-textarea-compute {
|
||||
border: 1px #bababa solid !important;
|
||||
padding: 10rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.u-inputes {
|
||||
margin: 30rpx 0;
|
||||
border: 1px #ececec solid;
|
||||
padding-left: 14rpx;
|
||||
width: 420rpx;
|
||||
}
|
||||
|
||||
.show_two {
|
||||
padding: 30rpx 0 70rpx 0;
|
||||
}
|
||||
|
||||
.show_two > view {
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
}
|
||||
|
||||
.show_two .images {
|
||||
width: 22rpx;
|
||||
height: 12rpx;
|
||||
float: right;
|
||||
top: 14rpx;
|
||||
}
|
||||
.List_tosign {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
margin-top: 21rpx;
|
||||
position: relative;
|
||||
}
|
||||
.List_tosign > view {
|
||||
float: left;
|
||||
}
|
||||
.List_tosign > view:nth-child(1) {
|
||||
width: 180rpx;
|
||||
height: 160rpx;
|
||||
margin-bottom: 30rpx;
|
||||
image {
|
||||
border-radius: 15rpx;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.List_tosign > view:nth-child(2) {
|
||||
width: 420rpx;
|
||||
height: 76rpx;
|
||||
margin: 43rpx 43rpx 0 21rpx;
|
||||
}
|
||||
.List_tosign > view:nth-child(3) {
|
||||
width: 26rpx;
|
||||
height: 27rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -15,6 +15,37 @@
|
||||
<!-- 简介 -->
|
||||
<view class="titles">正文</view>
|
||||
<textarea placeholder="请输入内容..."></textarea>
|
||||
<view class="show_two">
|
||||
<u-popup v-model="show_two" mode="bottom" :closeable="true">
|
||||
<view class="title"><text>选择商品</text></view>
|
||||
<!-- 商品列表 -->
|
||||
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll" >
|
||||
<view class="listes_shoping" v-for="(item, index) in list" :key="index">
|
||||
<view>
|
||||
<u-checkbox-group>
|
||||
<u-checkbox @change="checkboxChange" shape="circle" active-color="#FF780F" v-model="item.checked" :name="item.goods_id"></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
<view><image :src="item.goods_image" mode="widthFix"></image></view>
|
||||
<view class="contentes">{{ item.goods_name }}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 提交按钮 -->
|
||||
<view class="u-button" @click="changes()">确定</view>
|
||||
</u-popup>
|
||||
<!-- 底部选择商品列表 -->
|
||||
<view @click="show_two = true">
|
||||
选择商品
|
||||
<image class="images" src="../../static/image/tosign/bhottom.png"></image>
|
||||
</view>
|
||||
<!-- 选择后的列表 -->
|
||||
<view class="List_tosign">
|
||||
<view><image src="../../static/image/tosign/tosigin(5).png" mode="scaleToFill"></image></view>
|
||||
<view>木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子</view>
|
||||
<view><image src="../../static/image/tosign/delete.png" mode="widthFix"></image></view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 提交 -->
|
||||
<u-button class="custom-style" shape="circle" size="default">发表</u-button>
|
||||
</u-form>
|
||||
@@ -44,17 +75,65 @@
|
||||
action: 'http://www.example.com/upload',
|
||||
fileList: [],
|
||||
fileListes:["美妆","博主穿搭","美妆","美妆","美妆","美妆","美妆","博主穿搭"],
|
||||
show: false
|
||||
show: false,
|
||||
show_two: false,
|
||||
arres_list: [],
|
||||
list: [],
|
||||
scrollTop: 0
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 定义删除数组的方法
|
||||
Array.prototype.remove = function(val) {
|
||||
var index = this.indexOf(val);
|
||||
if (index > -1) {
|
||||
this.splice(index, 1);
|
||||
}
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
show_add(){
|
||||
console.log(this.show)
|
||||
this.show = !this.show
|
||||
}
|
||||
},
|
||||
// 选择直播商品点击确定
|
||||
changes() {
|
||||
let that = this;
|
||||
that.show_two = false;
|
||||
console.log(that.arres_list);
|
||||
},
|
||||
// 选中某个复选框时,由checkbox时触发
|
||||
checkboxChange(e) {
|
||||
let id = e.name;
|
||||
if (e.value == true) {
|
||||
this.pushes(id);
|
||||
}else{
|
||||
this.delarr(id)
|
||||
}
|
||||
console.log(this.arres_list)
|
||||
|
||||
},
|
||||
// 删除直播商品
|
||||
delarr(id) {
|
||||
var that = this;
|
||||
if (id == '') {
|
||||
console.log('为空');
|
||||
} else {
|
||||
that.arres_list.remove(id);
|
||||
}
|
||||
},
|
||||
// 增加直播商品
|
||||
pushes(id) {
|
||||
var that = this;
|
||||
if (id == '') {
|
||||
console.log('为空');
|
||||
} else {
|
||||
that.arres_list.push(id);
|
||||
}
|
||||
},
|
||||
},
|
||||
components: {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -62,6 +141,125 @@
|
||||
#release{
|
||||
width: 690rpx;
|
||||
margin: 0 auto;
|
||||
.show_two {
|
||||
padding: 30rpx 0 70rpx 0;
|
||||
}
|
||||
.scroll {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
}
|
||||
.u-button {
|
||||
background: #ff780f;
|
||||
width: 690rpx;
|
||||
height: 98rpx;
|
||||
line-height: 98rpx;
|
||||
background: rgba(255, 120, 15, 1);
|
||||
border-radius: 49px;
|
||||
font-size: 36rpx;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
margin: 0 auto 20rpx;
|
||||
}
|
||||
.show_two .title {
|
||||
width: 100%;
|
||||
border-bottom: solid 1px #ececec;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.show_two .title > text {
|
||||
font-size: 30rpx;
|
||||
padding: 30rpx;
|
||||
display: block;
|
||||
}
|
||||
.show_two > view {
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
}
|
||||
|
||||
.show_two .images {
|
||||
width: 22rpx;
|
||||
height: 12rpx;
|
||||
float: right;
|
||||
top: 14rpx;
|
||||
}
|
||||
.List_tosign {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
margin-top: 21rpx;
|
||||
position: relative;
|
||||
}
|
||||
.List_tosign > view {
|
||||
float: left;
|
||||
}
|
||||
.List_tosign > view:nth-child(1) {
|
||||
width: 180rpx;
|
||||
height: 160rpx;
|
||||
margin-bottom: 30rpx;
|
||||
image {
|
||||
border-radius: 15rpx;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.List_tosign > view:nth-child(2) {
|
||||
width: 420rpx;
|
||||
height: 76rpx;
|
||||
margin: 43rpx 43rpx 0 21rpx;
|
||||
}
|
||||
.List_tosign > view:nth-child(3) {
|
||||
width: 26rpx;
|
||||
height: 27rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.listes_shoping {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
margin-bottom: 30rpx;
|
||||
height: 160rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.listes_shoping > view {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.listes_shoping > view:nth-child(1) {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-top: 62rpx;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
|
||||
.listes_shoping > view:nth-child(2) {
|
||||
width: 180rpx;
|
||||
height: 160rpx;
|
||||
margin: 0 31rpx 0 19rpx;
|
||||
}
|
||||
|
||||
.listes_shoping > view:nth-child(2) image {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.listes_shoping > view:nth-child(3) {
|
||||
width: 425rpx;
|
||||
margin-top: 43rpx;
|
||||
overflow: hidden;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
.form-view{
|
||||
background:rgba(255,120,15,1);
|
||||
border-radius:6rpx;
|
||||
|
||||
Reference in New Issue
Block a user