Merge branch 'master' of http://git.luyuan.tk/luyuan/demingshangjia into xbx
69
components/complaint-item/index.vue
Normal file
@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<view class="item">
|
||||
<image></image>
|
||||
<view class="people">
|
||||
<view class="status">已受理</view>
|
||||
<view class="goods-name u-line-1">心机小黑裙连衣裙赫本风夏季爆款...</view>
|
||||
<view class="info">
|
||||
<view class="name">骑手:李先生</view>
|
||||
<view class="price">¥199.9</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
methods: {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.item {
|
||||
width: 690rpx;
|
||||
height: 220rpx;
|
||||
background: rgba(255,255,255,1);
|
||||
border-radius: 10rpx;
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
> image {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 25rpx;
|
||||
background-color: aqua;
|
||||
}
|
||||
.people {
|
||||
.status {
|
||||
text-align: right;
|
||||
font-size: 26rpx;
|
||||
color: rgba(255,49,49,1);
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.goods-name {
|
||||
width: 439rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 26rpx;
|
||||
color: rgba(102,102,102,1);
|
||||
.name {
|
||||
font-size: 26rpx;
|
||||
color: rgba(101,101,101,1);
|
||||
margin-right: auto;
|
||||
}
|
||||
.price {
|
||||
color: #FF780F;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
124
components/content-item/index.vue
Normal file
@ -0,0 +1,124 @@
|
||||
<template>
|
||||
<view class="content-item">
|
||||
<view class="image">
|
||||
<image class="cover"></image>
|
||||
<image src="/static/image/user/5.png" class="play-icon" v-if="cur==1"></image>
|
||||
</view>
|
||||
<view class="right" @click="toDetailsPage">
|
||||
<u-icon name="close" color="#999999" size="27" @click.stop="showPopup"></u-icon>
|
||||
<view class="tags u-line-2">#配饰就该这么搭#</view>
|
||||
<view class="data">
|
||||
<view>
|
||||
<image src="/static/image/user/2.png"></image>
|
||||
<text>2.5w</text>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/user/3.png"></image>
|
||||
<text>2.5w</text>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/user/4.png"></image>
|
||||
<text>2.5w</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
props: {
|
||||
cur: [Number, String],
|
||||
delItem: {
|
||||
type: Function,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showPopup() {
|
||||
this.delItem();
|
||||
},
|
||||
toDetailsPage() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/contentDetails?current=' + this.cur
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.content-item {
|
||||
display: flex;
|
||||
padding: 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
margin-bottom: 2rpx;
|
||||
.image {
|
||||
margin-right: 25rpx;
|
||||
position: relative;
|
||||
.cover {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: aqua;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.play-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 58rpx;
|
||||
height: 58rpx;
|
||||
z-index: 9;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.u-icon {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.tags {
|
||||
margin: 10rpx 0 auto;
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
}
|
||||
.data {
|
||||
margin-bottom: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
@mixin image-class($width) {
|
||||
> image {
|
||||
width: $width;
|
||||
height: 26rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
> view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
&:not(:last-child) {
|
||||
margin-right: 35rpx;
|
||||
}
|
||||
&:first-child {
|
||||
@include image-class(31rpx);
|
||||
}
|
||||
&:nth-child(2) {
|
||||
@include image-class(26rpx);
|
||||
}
|
||||
&:last-child {
|
||||
@include image-class(20rpx);
|
||||
}
|
||||
> text {
|
||||
font-size: 24rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
41
components/fans-item/index.vue
Normal file
@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<view class="fans-item">
|
||||
<image></image>
|
||||
<view class="name">兽兽</view>
|
||||
<view class="date">2017-10-14</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.fans-item {
|
||||
width: 750rpx;
|
||||
height: 100rpx;
|
||||
background: rgba(255,255,255,1);
|
||||
padding: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 2rpx;
|
||||
> image {
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: aqua;
|
||||
margin-right: 30rpx;
|
||||
}
|
||||
.name {
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-right: auto;
|
||||
}
|
||||
.date {
|
||||
font-size: 24rpx;
|
||||
color: rgba(153,153,153,1);
|
||||
}
|
||||
}
|
||||
</style>
|
101
components/release/tap.vue
Normal file
@ -0,0 +1,101 @@
|
||||
<template>
|
||||
<view id="release">
|
||||
<!-- 标签 -->
|
||||
<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>
|
||||
<!-- 添加标签的按钮 -->
|
||||
<u-popup v-model="show" mode="center" border-radius="14" :closeable="true">
|
||||
<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
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
show_add(){
|
||||
console.log(this.show)
|
||||
this.show = !this.show
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#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;
|
||||
}
|
||||
}
|
||||
.u-mode-center-box{
|
||||
padding: 120rpx;
|
||||
.text{
|
||||
font-size: 30rpx;
|
||||
margin-top: 74rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
.u-inputes{
|
||||
margin: 30rpx 0;
|
||||
border: 1px #ececec solid;
|
||||
padding-left: 14rpx;
|
||||
width: 420rpx;
|
||||
}
|
||||
</style>
|
125
components/release/tap_tosign.vue
Normal file
@ -0,0 +1,125 @@
|
||||
<template>
|
||||
<view id="release">
|
||||
<!-- 标签 -->
|
||||
<view>
|
||||
<view class="titles">标签</view>
|
||||
<view class="form-view" @click="show_add()">+ 新建标签</view>
|
||||
<view class="form-view" :class=" {'cur': rSelect.indexOf(index)!=-1} " @tap="tapInfo(index)" v-for="(item,index) in fileListes"
|
||||
:key="index">{{item}}</view>
|
||||
</view>
|
||||
<!-- 添加标签的按钮 -->
|
||||
<u-popup v-model="show" mode="center" border-radius="14" :closeable="true">
|
||||
<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,
|
||||
rSelect: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
show_add() {
|
||||
console.log(this.show)
|
||||
this.show = !this.show
|
||||
},
|
||||
// 颜色切换
|
||||
tapInfo(e) {
|
||||
if (this.rSelect.indexOf(e) == -1) {
|
||||
console.log(e) //打印下标
|
||||
this.rSelect.push(e); //选中添加到数组里
|
||||
} else {
|
||||
this.rSelect.splice(this.rSelect.indexOf(e), 1); //取消
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#release {
|
||||
width: 690rpx;
|
||||
margin: 0 auto;
|
||||
|
||||
.form-view {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
border-radius: 6rpx;
|
||||
margin-right: 20rpx;
|
||||
font-size: 24rpx;
|
||||
padding: 8rpx 20rpx;
|
||||
display: inline-block;
|
||||
margin-bottom: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.titles {
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.custom-style {
|
||||
background: rgba(255, 120, 15, 1) !important;
|
||||
font-size: 36rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.cur {
|
||||
color: white;
|
||||
background-color: #ff5d00;
|
||||
}
|
||||
}
|
||||
|
||||
.u-mode-center-box {
|
||||
padding: 120rpx;
|
||||
|
||||
.text {
|
||||
font-size: 30rpx;
|
||||
margin-top: 74rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.u-inputes {
|
||||
margin: 30rpx 0;
|
||||
border: 1px #ececec solid;
|
||||
padding-left: 14rpx;
|
||||
width: 420rpx;
|
||||
}
|
||||
</style>
|
@ -1,29 +0,0 @@
|
||||
<template>
|
||||
<view class="nav">
|
||||
<text>dsadasdas</text>
|
||||
<image></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"navs"
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.nav{
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
padding: 30rpx;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 30rpx;
|
||||
margin-bottom: 2rpx;
|
||||
color:#333;
|
||||
background-color: #fff;
|
||||
>image{
|
||||
width: 13rpx;
|
||||
height: 25rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
127
pages.json
@ -2,7 +2,19 @@
|
||||
"easycom": {
|
||||
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
|
||||
},
|
||||
"pages": [
|
||||
"pages": [
|
||||
{
|
||||
"path": "pages/release/tosign",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"app-plus": {
|
||||
"titleNView": false,
|
||||
"backgroundColor": "#f00",
|
||||
"animationType": "slide-in-bottom"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
@ -25,8 +37,46 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
,
|
||||
},
|
||||
{
|
||||
"path": "pages/login/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"app-plus": {
|
||||
"titleNView": false,
|
||||
"animationType": "slide-in-bottom"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/release/video",
|
||||
"style": {
|
||||
"navigationBarTitleText": "发布视频",
|
||||
"app-plus": {
|
||||
"titleSize": "36px",
|
||||
"titleColor": "#333333",
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/release/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "发布图文",
|
||||
"app-plus": {
|
||||
"titleSize": "36px",
|
||||
"titleColor": "#333333",
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
"path": "pages/user/index",
|
||||
"style": {
|
||||
@ -50,6 +100,77 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/updatePassword",
|
||||
"style": {
|
||||
"navigationBarTitleText": "修改密码",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"titleColor": "#333333"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/fans",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的粉丝",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"titleColor": "#333333"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/content",
|
||||
"style": {
|
||||
"navigationBarTitleText": "内容管理",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"titleColor": "#333333"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/contentDetails",
|
||||
"style": {
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"titleColor": "#333333"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/complaint",
|
||||
"style": {
|
||||
"navigationBarTitleText": "骑手投诉",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"titleColor": "#333333"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/complaintDetails",
|
||||
"style": {
|
||||
"navigationBarTitleText": "骑手投诉详情",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"titleColor": "#333333"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
|
@ -68,7 +68,7 @@
|
||||
</swiper>
|
||||
<view class="release-btn" @click="publish">
|
||||
<image src="/static/home/1.png"></image>
|
||||
<view class="text">发布</view>
|
||||
<view class="text" @click="release()">发布</view>
|
||||
</view>
|
||||
<u-select v-model="showSelect" mode="mutil-column-auto" :list="workerList" @confirm="setWorker"></u-select>
|
||||
<u-popup v-model="showComplaint" mode="center" border-radius="10">
|
||||
@ -177,6 +177,12 @@ export default {
|
||||
name: e[1].label
|
||||
}
|
||||
},
|
||||
// 发布页面跳转
|
||||
release(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/release/tosign'
|
||||
});
|
||||
},
|
||||
tabsChange(index) {
|
||||
this.swiperCurrent = index;
|
||||
},
|
||||
@ -295,7 +301,6 @@ export default {
|
||||
height: 36rpx;
|
||||
flex-shrink: 0;
|
||||
margin-bottom: 2rpx;
|
||||
background-color: aqua;
|
||||
}
|
||||
.text {
|
||||
font-size: 20rpx;
|
||||
|
322
pages/login/login.vue
Normal file
@ -0,0 +1,322 @@
|
||||
<template>
|
||||
<!-- login页面 -->
|
||||
<view>
|
||||
<view class="login">
|
||||
<image class="images" src=""></image>
|
||||
<view class="backes"></view>
|
||||
<view class="content">
|
||||
<view class="title_top">德铭阳光在线-商家端</view>
|
||||
<view class="title">账号登录</view>
|
||||
<view class="labales">
|
||||
<image src=""></image>
|
||||
<input type="tel" placeholder="请输入账号" />
|
||||
</view>
|
||||
<view class="labales">
|
||||
<image src=""></image>
|
||||
<input type="password" placeholder="请输入密码" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- denglu QQ weixin -->
|
||||
<u-button>{{login}}</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [{
|
||||
checked: false,
|
||||
disabled: false
|
||||
}],
|
||||
value: '',
|
||||
login: '登录',
|
||||
show: false,
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// 选中某个复选框时,由checkbox时触发
|
||||
checkboxChange(e) {
|
||||
//console.log(e);
|
||||
},
|
||||
// 选中任一checkbox时,由checkbox-group触发
|
||||
checkboxGroupChange(e) {
|
||||
// console.log(e);
|
||||
},
|
||||
mask_u(){
|
||||
this.show = !this.show
|
||||
},
|
||||
// 获取验证码倒计时
|
||||
getCode(){
|
||||
console.log("11")
|
||||
this.loading()
|
||||
},
|
||||
loading(){
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.login {
|
||||
|
||||
// background: url(../../static/pageA/loginbackground.png) no-repeat!important;
|
||||
.images {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.backes {
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
|
||||
}
|
||||
|
||||
text {
|
||||
z-index: 9;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.more_Login {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
width: 630rpx;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.more_Login text {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
float: left;
|
||||
font-size: 30rpx;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
line-height: 36px;
|
||||
margin: 97rpx 0;
|
||||
}
|
||||
|
||||
.more_Login .other {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
margin-bottom: 150rpx;
|
||||
color: #fff;
|
||||
letter-spacing: 3rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 630rpx;
|
||||
z-index: 99999;
|
||||
margin: 0 auto;
|
||||
padding-top: 300rpx;
|
||||
|
||||
.labales text {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.labales {
|
||||
border-bottom: 1px #fff solid;
|
||||
margin-bottom: 180rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
position: relative;
|
||||
input{
|
||||
width: 80%;
|
||||
margin-left: 60rpx;
|
||||
color: #fff;
|
||||
letter-spacing: 2rpx;
|
||||
background-color: none;
|
||||
}
|
||||
}
|
||||
.labales image{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 39rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
.labales:nth-child(3) {
|
||||
position: relative;
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
|
||||
.identifying {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
color: rgba(255, 120, 15, 1);
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
.uni-input-input, .uni-input-placeholder{
|
||||
color:#fff!important;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
.pact text {
|
||||
font-size: 22rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
.pact_text {
|
||||
font-size: 22px;
|
||||
font-weight: 400;
|
||||
color: rgba(129, 188, 253, 1) !important;
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
//单选框的样式
|
||||
.pact {
|
||||
position: relative;
|
||||
padding-left: 40rpx;
|
||||
overflow:hidden; //超出的文本隐藏
|
||||
text-overflow:ellipsis; //溢出用省略号显示
|
||||
white-space:nowrap; //溢出不换行
|
||||
}
|
||||
|
||||
.u-checkbox-group {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.u-checkbox__icon--square {
|
||||
border-radius: 50rpx !important;
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
}
|
||||
|
||||
.u-btn {
|
||||
width: 628rpx;
|
||||
height: 98rpx;
|
||||
background: rgba(255, 120, 15, 1) !important;
|
||||
border-radius: 49rpx;
|
||||
margin: 0 auto;
|
||||
font-size: 36rpx;
|
||||
color: rgba(255, 255, 255, 1) !important;
|
||||
line-height: 36px;
|
||||
border: 1px #ff780f solid;
|
||||
outline: none;
|
||||
border-color: rgba(255, 120, 15, 1) !important;
|
||||
}
|
||||
|
||||
.warp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.rect {
|
||||
width: 558rpx;
|
||||
height: 300rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap:wrap;
|
||||
display: -webkit-flex; /* Safari */
|
||||
.rect_view{
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
.image{
|
||||
width: 45rpx;
|
||||
height: 53rpx;
|
||||
display: inline-block;
|
||||
|
||||
}
|
||||
flex:1;
|
||||
margin-top: 77rpx;
|
||||
}
|
||||
.rect_view:nth-child(2) image{
|
||||
width: 57rpx;
|
||||
height: 45rpx;
|
||||
}
|
||||
|
||||
.rect_butoon{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
height: 85rpx;
|
||||
text-align: center;
|
||||
line-height: 85rpx;
|
||||
border-top: 1px #999999 solid;
|
||||
}
|
||||
view{
|
||||
color: #666;
|
||||
font-size:24rpx;
|
||||
margin-top: 30rpx;
|
||||
|
||||
}
|
||||
}
|
||||
.rect_view:nth-child(1) image,.rect_view:nth-child(1) view{
|
||||
float: right;
|
||||
}
|
||||
.rect_view:nth-child(1) image{
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.rect_view:nth-child(1){
|
||||
position: relative;
|
||||
margin-right: 79rpx;
|
||||
}
|
||||
.rect_view:nth-child(1) view{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
.rect_view:nth-child(2) image,.rect_view:nth-child(2) view{
|
||||
float: left;
|
||||
}
|
||||
.rect_view:nth-child(2) image{
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.rect_view:nth-child(2){
|
||||
position: relative;
|
||||
}
|
||||
.rect_view:nth-child(2) view{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
.title_top {
|
||||
position: fixed;
|
||||
top: 36rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
font-size:36rpx;
|
||||
color:rgba(255,255,255,1);
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
/* 如果您想让slot内容占满整个导航栏的宽度 */
|
||||
/* flex: 1; */
|
||||
/* 如果您想让slot内容与导航栏左右有空隙 */
|
||||
/* padding: 0 30rpx; */
|
||||
background: none;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
</style>
|
113
pages/release/index.vue
Normal file
@ -0,0 +1,113 @@
|
||||
<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>
|
||||
<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>
|
||||
<!-- 简介 -->
|
||||
<view class="titles">正文</view>
|
||||
<textarea placeholder="请输入内容..."></textarea>
|
||||
<!-- 提交 -->
|
||||
<u-button class="custom-style" shape="circle" size="default">发表</u-button>
|
||||
</u-form>
|
||||
<!-- 添加标签的按钮 -->
|
||||
<u-popup v-model="show" mode="center" border-radius="14" :closeable="true">
|
||||
<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
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
show_add(){
|
||||
console.log(this.show)
|
||||
this.show = !this.show
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#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;
|
||||
}
|
||||
}
|
||||
.u-mode-center-box{
|
||||
padding: 120rpx;
|
||||
.text{
|
||||
font-size: 30rpx;
|
||||
margin-top: 74rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
.u-inputes{
|
||||
margin: 30rpx 0;
|
||||
border: 1px #ececec solid;
|
||||
padding-left: 14rpx;
|
||||
width: 420rpx;
|
||||
}
|
||||
</style>
|
428
pages/release/tosign.vue
Normal file
@ -0,0 +1,428 @@
|
||||
<template>
|
||||
<!-- tosign页面 -->
|
||||
<view>
|
||||
<view class="tosign">
|
||||
<image class="images" src="../../static/image/login/login(2).png"></image>
|
||||
<view class="backes"></view>
|
||||
<!-- z自定义导航卡 -->
|
||||
<u-navbar title="" class="content" :background="background" :is-back="false" :border-bottom="false">
|
||||
<image src="../../static/image/tosign/tosigin(4).png"></image>
|
||||
<image src="../../static/image/tosign/tosigin(1).png"></image>
|
||||
</u-navbar>
|
||||
|
||||
<view id="content_tosign">
|
||||
<u-form :model="form" ref="uForm">
|
||||
<u-form-item label-position="right">
|
||||
<u-input v-model="max" placeholder="优秀的标题可以卖的更好哦~" />
|
||||
</u-form-item>
|
||||
<view class="values"><text>{{this.titleMaxLength - this.max.length}}</text>/20</view>
|
||||
<u-form-item label-position="right">
|
||||
<u-input v-model="form.text" placeholder="请填写直播简介" />
|
||||
</u-form-item>
|
||||
<view class="values"><text>{{max_two}}</text>/20</view>
|
||||
<u-form-item label-position="right">
|
||||
<u-input v-model="form.values" placeholder="我的售货袋" />
|
||||
<view class="rightes">售货袋</view>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
<!-- 标签的引入 -->
|
||||
<tap_tosign></tap_tosign>
|
||||
<view class="titles">直播封面图</view>
|
||||
<u-upload :max-count="1" :show-progress="true" del-color="#ececec" upload-text="上传" del-bg-color="#fff"></u-upload>
|
||||
</view>
|
||||
<view class="button-uview">
|
||||
<u-button>{{relerest}}</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import tap_tosign from '@/components/release/tap_tosign.vue'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [{
|
||||
checked: false,
|
||||
disabled: false
|
||||
}],
|
||||
background: {backgroundColor: 'none'},
|
||||
form: {
|
||||
name: '',
|
||||
intro: '',
|
||||
sex: ''
|
||||
},
|
||||
value: '',
|
||||
max_two : '20',
|
||||
max : '优秀的标题可以卖的更好哦~',
|
||||
titleMaxLength : '20',
|
||||
show: false,
|
||||
relerest: '开始直播'
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// 选中某个复选框时,由checkbox时触发
|
||||
checkboxChange(e) {
|
||||
//console.log(e);
|
||||
},
|
||||
// 选中任一checkbox时,由checkbox-group触发
|
||||
checkboxGroupChange(e) {
|
||||
// console.log(e);
|
||||
},
|
||||
mask_u() {
|
||||
this.show = !this.show
|
||||
},
|
||||
// 获取验证码倒计时
|
||||
getCode() {
|
||||
this.loading()
|
||||
},
|
||||
loading() {
|
||||
|
||||
}
|
||||
},
|
||||
components: {
|
||||
tap_tosign,
|
||||
},
|
||||
watch:{
|
||||
max(){
|
||||
if (this.max.length > this.titleMaxLength) {
|
||||
this.max = String(this.max).slice(0, this.titleMaxLength);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#content_tosign {
|
||||
width: 690rpx;
|
||||
margin: 0 auto;
|
||||
.values{
|
||||
color: #fff;
|
||||
text-align: right;
|
||||
font-size: 24rpx;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
.rightes{
|
||||
color: #fff;
|
||||
}
|
||||
// 输入文字的颜色
|
||||
.uni-input-input,.uni-input-input{
|
||||
color: #fff!important;
|
||||
}
|
||||
}
|
||||
|
||||
u-upload {
|
||||
border-radius: unset;
|
||||
}
|
||||
.u-input__input{
|
||||
color: #fff!important;
|
||||
}
|
||||
.tosign {
|
||||
.titles {
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
// background: url(../../static/pageA/tosignbackground.png) no-repeat!important;
|
||||
.images {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.backes {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
|
||||
}
|
||||
|
||||
text {
|
||||
z-index: 9;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.more_tosign {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
width: 630rpx;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.more_tosign text {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
float: left;
|
||||
font-size: 30rpx;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
line-height: 36px;
|
||||
margin: 97rpx 0;
|
||||
}
|
||||
|
||||
.more_tosign .other {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
margin-bottom: 150rpx;
|
||||
color: #fff;
|
||||
letter-spacing: 3rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 630rpx;
|
||||
z-index: 99999;
|
||||
margin: 0 auto;
|
||||
padding-top: 14rpx;
|
||||
|
||||
.labales text {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
image:nth-child(1) {
|
||||
width: 36rpx;
|
||||
height: 35rpx;
|
||||
position: absolute;
|
||||
right: 110rpx;
|
||||
}
|
||||
|
||||
image:nth-child(2) {
|
||||
width: 36rpx;
|
||||
height: 35rpx;
|
||||
position: absolute;
|
||||
right: 48rpx;
|
||||
}
|
||||
|
||||
.labales {
|
||||
border-bottom: 1px #fff solid;
|
||||
margin-bottom: 180rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
position: relative;
|
||||
|
||||
input {
|
||||
width: 80%;
|
||||
margin-left: 60rpx;
|
||||
color: #fff;
|
||||
letter-spacing: 2rpx;
|
||||
background-color: none;
|
||||
}
|
||||
}
|
||||
|
||||
.labales image {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 39rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
|
||||
.labales:nth-child(3) {
|
||||
position: relative;
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
|
||||
.identifying {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
color: rgba(255, 120, 15, 1);
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-input-input,
|
||||
.uni-input-placeholder {
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
.pact text {
|
||||
font-size: 22rpx;
|
||||
font-weight: 400;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
.pact_text {
|
||||
font-size: 22px;
|
||||
font-weight: 400;
|
||||
color: rgba(129, 188, 253, 1) !important;
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
//单选框的样式
|
||||
.pact {
|
||||
position: relative;
|
||||
padding-left: 40rpx;
|
||||
overflow: hidden; //超出的文本隐藏
|
||||
text-overflow: ellipsis; //溢出用省略号显示
|
||||
white-space: nowrap; //溢出不换行
|
||||
}
|
||||
|
||||
.u-checkbox-group {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.u-checkbox__icon--square {
|
||||
border-radius: 50rpx !important;
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
}
|
||||
|
||||
.u-btn {
|
||||
width: 628rpx;
|
||||
height: 98rpx;
|
||||
background: rgba(255, 120, 15, 1) !important;
|
||||
border-radius: 49rpx;
|
||||
margin: 0 auto;
|
||||
font-size: 36rpx;
|
||||
color: rgba(255, 255, 255, 1) !important;
|
||||
line-height: 36px;
|
||||
border: 1px #ff780f solid;
|
||||
outline: none;
|
||||
border-color: rgba(255, 120, 15, 1) !important;
|
||||
}
|
||||
|
||||
.warp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.rect {
|
||||
width: 558rpx;
|
||||
height: 300rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
display: -webkit-flex;
|
||||
|
||||
/* Safari */
|
||||
.rect_view {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
|
||||
.image {
|
||||
width: 45rpx;
|
||||
height: 53rpx;
|
||||
display: inline-block;
|
||||
|
||||
}
|
||||
|
||||
flex:1;
|
||||
margin-top: 77rpx;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(2) image {
|
||||
width: 57rpx;
|
||||
height: 45rpx;
|
||||
}
|
||||
|
||||
.rect_butoon {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
height: 85rpx;
|
||||
text-align: center;
|
||||
line-height: 85rpx;
|
||||
border-top: 1px #999999 solid;
|
||||
}
|
||||
|
||||
view {
|
||||
color: #666;
|
||||
font-size: 24rpx;
|
||||
margin-top: 30rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.rect_view:nth-child(1) image,
|
||||
.rect_view:nth-child(1) view {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(1) image {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(1) {
|
||||
position: relative;
|
||||
margin-right: 79rpx;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(1) view {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(2) image,
|
||||
.rect_view:nth-child(2) view {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(2) image {
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(2) {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.rect_view:nth-child(2) view {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.title_top {
|
||||
position: fixed;
|
||||
top: 36rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
font-size: 36rpx;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
/* 如果您想让slot内容占满整个导航栏的宽度 */
|
||||
/* flex: 1; */
|
||||
/* 如果您想让slot内容与导航栏左右有空隙 */
|
||||
/* padding: 0 30rpx; */
|
||||
background: none;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
.button-uview {
|
||||
position: fixed;
|
||||
bottom: 40rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
116
pages/release/video.vue
Normal file
@ -0,0 +1,116 @@
|
||||
<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>
|
||||
<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>
|
||||
<!-- 简介 -->
|
||||
<view class="titles">正文</view>
|
||||
<textarea placeholder="请输入内容..."></textarea>
|
||||
<!-- 提交 -->
|
||||
<u-button class="custom-style" shape="circle" size="default">发表</u-button>
|
||||
</u-form>
|
||||
<!-- 添加标签的按钮 -->
|
||||
<u-popup v-model="show" mode="center" border-radius="14" :closeable="true">
|
||||
<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
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
show_add(){
|
||||
console.log(this.show)
|
||||
this.show = !this.show
|
||||
}
|
||||
},
|
||||
components: {
|
||||
uniBadge
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#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;
|
||||
}
|
||||
}
|
||||
.u-mode-center-box{
|
||||
padding: 120rpx;
|
||||
.text{
|
||||
font-size: 30rpx;
|
||||
margin-top: 74rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
.u-inputes{
|
||||
margin: 30rpx 0;
|
||||
border: 1px #ececec solid;
|
||||
padding-left: 14rpx;
|
||||
width: 420rpx;
|
||||
}
|
||||
</style>
|
32
pages/user/complaint.vue
Normal file
@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<view class="complaint">
|
||||
<view class="complaint-item" v-for="(item, index) in 4" :key="index" @click="toDetailsPage">
|
||||
<ComplaintItem></ComplaintItem>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import ComplaintItem from '@/components/complaint-item/index'
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
components: {
|
||||
ComplaintItem
|
||||
},
|
||||
methods: {
|
||||
toDetailsPage() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/complaintDetails'
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.complaint {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
padding: 20rpx 30rpx;
|
||||
}
|
||||
</style>
|
117
pages/user/complaintDetails.vue
Normal file
@ -0,0 +1,117 @@
|
||||
<template>
|
||||
<view class="details">
|
||||
<view class="goods-info">
|
||||
<image></image>
|
||||
<view class="text">
|
||||
<view class="name u-line-1">心机小黑裙连衣裙赫本风夏季爆款dlk...</view>
|
||||
<view class="num">共一件商品</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="worker-info">
|
||||
<view class="title">骑手信息</view>
|
||||
<view class="item">
|
||||
<view>
|
||||
<view class="item-title">姓名</view>
|
||||
<view class="value">李先生</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="item-title">手机号</view>
|
||||
<view class="value">1561</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="item-title">公司名称</view>
|
||||
<view class="value">申通快递公司</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="reason">
|
||||
<view class="title">投诉原因</view>
|
||||
<view class="value u-line-4">太慢了太慢了!!!!</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.details {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
.goods-info {
|
||||
padding: 30rpx;
|
||||
margin: 2rpx 0 20rpx;
|
||||
background-color: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
> image {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
background-color: aqua;
|
||||
border-radius: 10rpx;
|
||||
margin-right: 25rpx;
|
||||
}
|
||||
.text {
|
||||
.name {
|
||||
width: 440rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-bottom: 35rpx;
|
||||
}
|
||||
.num {
|
||||
font-size: 26rpx;
|
||||
color: rgba(102,102,102,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
.worker-info {
|
||||
padding: 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
margin-bottom: 20rpx;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
.item {
|
||||
> view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: rgba(51,51,51,1);
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
.item-title {
|
||||
width: 120rpx;
|
||||
margin-right: 40rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.value {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.reason {
|
||||
padding: 30rpx {
|
||||
bottom: 60rpx;
|
||||
};
|
||||
background-color: #FFFFFF;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
.value {
|
||||
font-size: 26rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
line-height: 36rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
109
pages/user/content.vue
Normal file
@ -0,0 +1,109 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="tab-swiper">
|
||||
<u-tabs-swiper ref="uTabs" :list="list" :current="current" @change="tabsChange" active-color="#FF780F" inactive-color="#333333" font-size="30" gutter="317" height="98" :show-bar="false" swiperWidth="750" :is-scroll=false></u-tabs-swiper>
|
||||
</view>
|
||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish">
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;" class="list">
|
||||
<view v-for="(item, index) in 5" :key="index">
|
||||
<ContentItem :cur="current" :delItem="showPopup"></ContentItem>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;" class="video-list">
|
||||
<view v-for="(item, index) in 5" :key="index">
|
||||
<ContentItem :cur="current" :delItem="showPopup"></ContentItem>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<u-popup v-model="show" mode="center">
|
||||
<view class="close-popup">
|
||||
<view class="tips">确定要删除该视频吗</view>
|
||||
<view class="btn">
|
||||
<view class="cancel" @click="show=false">取消</view>
|
||||
<view class="confirm">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import ContentItem from '@/components/content-item/index'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
current: 0,
|
||||
swiperCurrent: 0,
|
||||
list: [{
|
||||
name: '图文'
|
||||
}, {
|
||||
name: '视频'
|
||||
}],
|
||||
}
|
||||
},
|
||||
components: {
|
||||
ContentItem
|
||||
},
|
||||
methods: {
|
||||
showPopup() {
|
||||
this.show = true;
|
||||
},
|
||||
tabsChange(index) {
|
||||
this.swiperCurrent = index;
|
||||
},
|
||||
animationfinish(e) {
|
||||
let current = e.detail.current;
|
||||
// this.$refs.uTabs.setFinishCurrent(current);
|
||||
this.swiperCurrent = current;
|
||||
this.current = current;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.content {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> uni-swiper {
|
||||
flex: 1;
|
||||
}
|
||||
.tab-swiper {
|
||||
margin: 2rpx 0 20rpx 0;
|
||||
}
|
||||
.close-popup {
|
||||
background:rgba(255,255,255,1);
|
||||
border-radius: 10rpx;
|
||||
.tips {
|
||||
width: 420rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(102,102,102,1);
|
||||
text-align: center;
|
||||
padding: 38rpx 0;
|
||||
}
|
||||
.btn {
|
||||
width: 420rpx;
|
||||
border-top: 2rpx #ECECEC solid;
|
||||
display: flex;
|
||||
> view {
|
||||
font-size: 26rpx;
|
||||
flex: 1;
|
||||
line-height: 98rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.cancel {
|
||||
color: #333333;
|
||||
border-right: 2rpx #ECECEC solid;
|
||||
}
|
||||
.confirm {
|
||||
color: #FF780F;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
173
pages/user/contentDetails.vue
Normal file
@ -0,0 +1,173 @@
|
||||
<template>
|
||||
<view class="details">
|
||||
<view class="main"></view>
|
||||
<view></view>
|
||||
<view class="data-list">
|
||||
<view>
|
||||
<image src="/static/image/user/2.png"></image>
|
||||
<text>2.5w</text>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/user/3.png" v-if="0"></image>
|
||||
<image src="/static/image/user/7.png" v-else></image>
|
||||
<text>2.5w</text>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/user/4.png" v-if="0"></image>
|
||||
<image src="/static/image/user/6.png" v-else></image>
|
||||
<text>2.5w</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="comment-list">
|
||||
<view class="item" v-for="(item, index) in 4" :key="index">
|
||||
<view class="info">
|
||||
<image></image>
|
||||
<view class="center">
|
||||
<view class="name">用户1</view>
|
||||
<view class="time">6小时前</view>
|
||||
</view>
|
||||
<view class="btn" @click="showChat=true">回复</view>
|
||||
</view>
|
||||
<view class="content u-line-1">德铭阳光赞德铭阳光赞德铭阳光赞</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup v-model="showChat" mode="bottom" :mask=false>
|
||||
<view class="chat">
|
||||
<view class="input-box">
|
||||
<input type="text">
|
||||
<view class="btn">发送</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showChat: false
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.setNavTitle(option.current);
|
||||
},
|
||||
methods: {
|
||||
setNavTitle(current) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: current == 0 ? "图文详情" : "视频详情"
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.details {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
.main {
|
||||
height: 740rpx;
|
||||
margin: 2rpx 0rpx;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.comment-list {
|
||||
.item {
|
||||
background-color: #FFFFFF;
|
||||
padding: 30rpx;
|
||||
margin-bottom: 2rpx;
|
||||
.info {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
margin-bottom: 20rpx;
|
||||
> image {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 20rpx;
|
||||
background-color: aqua;
|
||||
}
|
||||
.center {
|
||||
margin-right: auto;
|
||||
.name {
|
||||
font-size: 26rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-bottom: auto;
|
||||
}
|
||||
.time {
|
||||
font-size: 22rpx;
|
||||
color: rgba(153,153,153,1);
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
font-size: 26rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
}
|
||||
}
|
||||
.content {
|
||||
margin-left: 80rpx;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
.data-list {
|
||||
background-color: #FFFFFF;
|
||||
display: flex;
|
||||
height: 88rpx;
|
||||
padding: 0 30rpx;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@mixin image-class($width) {
|
||||
> image {
|
||||
width: $width;
|
||||
height: 40rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
> view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
&:first-child {
|
||||
@include image-class(45rpx);
|
||||
}
|
||||
&:nth-child(2) {
|
||||
@include image-class(40rpx);
|
||||
}
|
||||
&:last-child {
|
||||
@include image-class(32rpx);
|
||||
}
|
||||
> text {
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
.chat {
|
||||
background-color: #ECECEC;
|
||||
width: 100%;
|
||||
height: 98rpx;
|
||||
padding: 19rpx 30rpx;
|
||||
.input-box {
|
||||
background-color: #FFFFFF;
|
||||
width: 690rpx;
|
||||
height: 60rpx;
|
||||
background: rgba(255,255,255,1);
|
||||
border-radius: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
> input {
|
||||
flex: 1;
|
||||
padding: 10rpx 30rpx;
|
||||
}
|
||||
.btn {
|
||||
width: 90rpx;
|
||||
background: rgba(255,120,15,1);
|
||||
border-radius: 25rpx;
|
||||
font-size: 26rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
line-height: 50rpx;
|
||||
text-align: center;
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
44
pages/user/fans.vue
Normal file
@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<view class="fans">
|
||||
<view class="lately">
|
||||
<view class="title">最新</view>
|
||||
<view class="items">
|
||||
<view v-for="(item, index) in 3" :key="index">
|
||||
<FansItem></FansItem>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="before">
|
||||
<view class="title">早前</view>
|
||||
<view class="items">
|
||||
<view v-for="(item, index) in 13" :key="index">
|
||||
<FansItem></FansItem>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import FansItem from '@/components/fans-item/index'
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
components: {
|
||||
FansItem
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.fans {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background: #ececec;
|
||||
.lately, .before {
|
||||
.title {
|
||||
font-size: 26rpx;
|
||||
color:rgba(101,101,101,1);
|
||||
padding: 20rpx 30rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -1,37 +1,46 @@
|
||||
<template>
|
||||
<view class="user">
|
||||
<view class="head">
|
||||
<view class="head" @click="toOthersPage('info')">
|
||||
<view class="info">
|
||||
<image></image>
|
||||
<view class="name">
|
||||
<text>萨大赛</text>
|
||||
<text>dasasd</text>
|
||||
<text>asdasd</text>
|
||||
<text>账号:123456789</text>
|
||||
<text>个性签名:为梦努力</text>
|
||||
</view>
|
||||
</view>
|
||||
<image></image>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
</view>
|
||||
<navs></navs>
|
||||
<navs></navs>
|
||||
<navs></navs>
|
||||
<view class="nav" @click="toOthersPage('fans')">
|
||||
<text>我的粉丝</text>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
</view>
|
||||
<view class="nav" @click="toOthersPage('content')">
|
||||
<text>内容管理</text>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
</view>
|
||||
<view class="nav" @click="toOthersPage('complaint')">
|
||||
<text>骑手投诉</text>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import navs from "@/components/user/navs"
|
||||
export default {
|
||||
name:"user" ,
|
||||
components:{
|
||||
navs
|
||||
}
|
||||
name:"user",
|
||||
methods: {
|
||||
toOthersPage(url) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/' + url
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
/deep/image{
|
||||
background-color: #0f0;
|
||||
}
|
||||
|
||||
.user{
|
||||
background-color: #ececec;
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background: #ececec;
|
||||
.head{
|
||||
width: 100%;
|
||||
height: 220rpx;
|
||||
@ -48,6 +57,7 @@ export default {
|
||||
width: 110rpx;
|
||||
height: 110rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #0f0;
|
||||
}
|
||||
.name{
|
||||
font-size: 24rpx;
|
||||
@ -70,5 +80,21 @@ export default {
|
||||
height: 20rpx;
|
||||
}
|
||||
}
|
||||
.nav{
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
padding: 30rpx;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 30rpx;
|
||||
margin-bottom: 2rpx;
|
||||
color:#333;
|
||||
background-color: #fff;
|
||||
>image{
|
||||
width: 13rpx;
|
||||
height: 25rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -1,25 +1,59 @@
|
||||
<template>
|
||||
<view class="info">
|
||||
<view class="head">
|
||||
<view class="head" @click="showImage=true">
|
||||
<image></image>
|
||||
<text>更换头像</text>
|
||||
</view>
|
||||
<view class="item">
|
||||
<text></text>
|
||||
<text></text>
|
||||
<text class="title">用户名</text>
|
||||
<text class="value">兽兽</text>
|
||||
</view>
|
||||
<view class="item">
|
||||
<text class="title">个性签名</text>
|
||||
<text class="value">变瘦变高变有钱</text>
|
||||
</view>
|
||||
<view class="password" @click="updatePwd">
|
||||
<text>修改密码</text>
|
||||
<image src="/static/image/user/1.png"></image>
|
||||
</view>
|
||||
<u-popup v-model="showImage" mode="bottom">
|
||||
<view class="image-popup">
|
||||
<view @click="chooseImage('camera')">拍摄新照片</view>
|
||||
<view @click="chooseImage('album')">从相册选取</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"info"
|
||||
name:"info",
|
||||
data() {
|
||||
return {
|
||||
showImage: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
chooseImage(sourceType) {
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: [sourceType],
|
||||
success: function (res) {
|
||||
console.log(JSON.stringify(res.tempFilePaths));
|
||||
}
|
||||
});
|
||||
},
|
||||
updatePwd() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/updatePassword'
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
image{
|
||||
background-color: #0f0;
|
||||
}
|
||||
.info{
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background: #ececec;
|
||||
.head{
|
||||
height: 202rpx;
|
||||
@ -28,10 +62,12 @@ image{
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #fff;
|
||||
margin-bottom: 2rpx;
|
||||
>image{
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #0f0;
|
||||
}
|
||||
>text{
|
||||
font-size: 24rpx;
|
||||
@ -40,6 +76,52 @@ image{
|
||||
}
|
||||
margin-bottom: 2rpx;
|
||||
}
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 98rpx;
|
||||
background: rgba(255,255,255,1);
|
||||
padding: 0 30rpx;
|
||||
margin-bottom: 2rpx;
|
||||
.title {
|
||||
width: 120rpx;
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-right: 120rpx;
|
||||
}
|
||||
.value {
|
||||
font-size: 30rpx;
|
||||
color: rgba(101,101,101,1);
|
||||
}
|
||||
}
|
||||
.password {
|
||||
margin-top: 20rpx;
|
||||
padding: 0 30rpx;
|
||||
height: 98rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: rgba(255,255,255,1);
|
||||
> text {
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
}
|
||||
> image {
|
||||
width: 11rpx;
|
||||
height: 22rpx;
|
||||
}
|
||||
}
|
||||
.image-popup {
|
||||
padding: 0 30rpx;
|
||||
> view {
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
line-height: 98rpx;
|
||||
text-align: center;
|
||||
&:first-child {
|
||||
border-bottom: 2rpx solid #EBEBEB;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
60
pages/user/updatePassword.vue
Normal file
@ -0,0 +1,60 @@
|
||||
<template>
|
||||
<view class="password">
|
||||
<view class="form-class">
|
||||
<u-form :model="model" ref="uForm">
|
||||
<u-form-item label="原密码" label-width="160" prop="password">
|
||||
<u-input type="password" :password="true" v-model="model.password" placeholder="请输入原密码"></u-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="新密码" label-width="160" prop="newPassword">
|
||||
<u-input type="password" :password="true" v-model="model.newPassword" placeholder="请输入新密码"></u-input>
|
||||
</u-form-item>
|
||||
<!-- right-icon="eye-off" -->
|
||||
<u-form-item label="确认新密码" label-width="160" prop="rePassword">
|
||||
<u-input type="password" :password="true" v-model="model.rePassword" placeholder="请再次输入新密码"></u-input>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
</view>
|
||||
<text class="tips">密码必须是8-16位,至少含数字/字母/字符两种组合</text>
|
||||
<view class="btn">确定</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
model: {
|
||||
password: '',
|
||||
newPassword: '',
|
||||
rePassword: ''
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.password {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background: #ececec;
|
||||
.form-class {
|
||||
background-color: #ffffff;
|
||||
padding: 0 30rpx;
|
||||
margin-bottom: 25rpx;
|
||||
}
|
||||
.tips {
|
||||
margin: 0 30rpx;
|
||||
font-size: 24rpx;
|
||||
color: rgba(101,101,101,1);
|
||||
}
|
||||
.btn {
|
||||
margin: 120rpx auto 0;
|
||||
width: 690rpx;
|
||||
height: 98rpx;
|
||||
background: rgba(255,119,15,1);
|
||||
border-radius: 49rpx;
|
||||
line-height: 98rpx;
|
||||
text-align: center;
|
||||
font-size: 36rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
}
|
||||
}
|
||||
</style>
|
BIN
static/image/login/login(1).png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
static/image/login/login(2).png
Normal file
After Width: | Height: | Size: 2.5 MiB |
BIN
static/image/login/login(3).png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
static/image/tosign/tosigin(1).png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
static/image/tosign/tosigin(2).png
Normal file
After Width: | Height: | Size: 260 B |
BIN
static/image/tosign/tosigin(3).png
Normal file
After Width: | Height: | Size: 854 B |
BIN
static/image/tosign/tosigin(4).png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
static/image/tosign/tosigin(5).png
Normal file
After Width: | Height: | Size: 268 KiB |
BIN
static/image/user/1.png
Normal file
After Width: | Height: | Size: 706 B |
BIN
static/image/user/2.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/image/user/3.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
static/image/user/4.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
static/image/user/5.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
static/image/user/6.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
static/image/user/7.png
Normal file
After Width: | Height: | Size: 2.9 KiB |