This commit is contained in:
zmr900709
2020-06-11 08:43:51 +08:00
parent 82babef77f
commit dcb19f420f
29 changed files with 1819 additions and 11 deletions

120
pageD/activity/activity.vue Normal file
View File

@@ -0,0 +1,120 @@
<template>
<view id="actives">
<!-- 活动消息推送 -->
<view class="activity" v-for="(item, index) in actives" :key="index">
<view class="times">{{item.type}}</view>
<view class="content">
<view class="title">{{item.name}}</view>
<view class="images_about">
<image :src="item.url"></image>
<view>
<text>{{item.about}}</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
actives: [
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
]
};
},
methods: {
titletext(){
console.log("22345")
}
},
components:{
}
};
</script>
<style lang="scss" scoped>
#actives{
background: #ECECEC;
height: 100%;
}
.activity{
.times{
width:100%;
font-size:28rpx;
font-weight:400;
color:rgba(102,102,102,1);
text-align: center;
padding: 39rpx 0 30rpx;
}
.content{
width:630rpx;
padding: 30rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
margin: 0 auto;
overflow: hidden;
image{
width: 137rpx;
height: 140rpx;
float: left;
}
.title{
font-size:30rpx;
color:rgba(51,51,51,1);
padding: 0rpx 0 19rpx;
}
.images_about{
overflow: hidden;
text{
display: table-cell;
height: 140rpx;
vertical-align: middle;
width: 400rpx;
padding-left: 15rpx;
line-height: 36rpx;
}
view{
display: inline-block;
float: left;
width:430rpx;
height:140rpx;
background:rgba(241,241,241,1);
}
}
}
}
</style>

View File

@@ -0,0 +1,137 @@
<template>
<view class="attention">
<view class="attention_box" v-for="(item,index) in attention" :key="index">
<view>
<image :src="item.url"></image>
</view>
<view>{{item.name}}</view>
<view>状态{{item.type}}</view>
<view class="cur_two" @click="tapClick(index)" v-if = "item.about == 1">已关注</view>
<view class="cur" @click="tapClick(index)" v-else = "item.about == 2">未关注</view>
</view>
</view>
</template>
<script>
export default {
name: "attention",
data() {
return {
rSelect:[],
type : '未关注',
attention: [{
url: '../../pageE/static/mine/1.png',
name: '达人昵称',
type: '正在直播',
about: 1
},
{
url: '../../pageE/static/mine/1.png',
name: '达人昵称',
type: '正在直播',
about: 2
},
{
url: '../../pageE/static/mine/1.png',
name: '达人昵称',
type: '正在直播',
about: 1
},
{
url: '../../pageE/static/mine/1.png',
name: '达人昵称',
type: '正在直播',
about: 1
},
{
url: '../../pageE/static/mine/1.png',
name: '达人昵称',
type: '正在直播',
about: 1
}
]
};
},
methods: {
// 点击切换颜色
tapClick(index) {
console.log(index)
if (this.rSelect.indexOf(index) == -1) {
console.log(index) //打印下标
this.rSelect.push(index); //选中添加到数组里
} else {
this.rSelect.splice(this.rSelect.indexOf(index), 1); //取消
}
}
},
components: {
}
};
</script>
<style lang="scss" scoped>
.attention {
display: flex;
flex-wrap: wrap;
justify-content: initial;
padding: 30rpx 30rpx 0 30rpx;
border-top: 1px #ECECEC solid;
.attention_box:nth-child(3n+3){
margin-right: 0;
}
.attention_box {
width: 215rpx;
height: 282rpx;
background: rgba(255, 255, 255, 1);
box-shadow: 0px 3px 7px 0px rgba(153, 153, 153, 0.35);
border-radius: 10rpx;
margin-right: 24rpx;
margin-bottom: 33rpx;
float: left;
view image {
width: 80rpx;
height: 80rpx;
display: block;
margin: 24rpx auto 0;
}
view {
text-align: center;
}
view:nth-child(2) {
font-size: 26rpx;
font-weight: 400;
color: rgba(51, 51, 51, 1);
margin: 20rpx 0;
text-align: center;
}
view:nth-child(3) {
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 400;
color: rgba(153, 153, 153, 1);
}
view:nth-child(4) {
width: 130rpx;
height: 50rpx;
line-height: 50rpx;
background: rgba(221, 221, 221, 1);
border-radius: 25rpx;
font-size: 26rpx;
color: rgba(255, 255, 255, 1);
margin: 19rpx auto;
}
}
}
// 选中的样式
.cur {
background-color: #ff5d00!important;
color: #fff!important;
}
</style>

View File

@@ -0,0 +1,158 @@
<template>
<view>
<u-navbar :is-back="false" :title-size="36" title="消息">
<view class="slot-wrap">
<image src="../../static/pageD/info(3).png"></image>
<image src="../../static/pageD/info(2).png"></image>
</view>
</u-navbar>
<view class="content">
<!-- 正文内容 -->
</view>
<view class="sousuo"></view>
<view class="backes">
<titles></titles>
</view>
<!-- 消息通知 -->
<view class="backes">
<view id="information">
<view class="information_dl" v-for="(item,index) in information_dl">
<view>
<image :src="item.url"></image>
</view>
<view class="title">{{item.text}}</view>
<view class="contentes">{{item.contentes}}</view>
<view class="times">{{item.title}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
import titles from "@/components/informations/titles/titles"
export default {
data() {
return {
// 通知消息
information_dl: [{
id: 0,
url: '../../static/pageD/info(11).png',
text : '通知消息',
contentes : '亲,您购物车中的 [新鲜盆栽] 降价4.00元。',
title : '2020-7-21'
},
{
id: 0,
url: '../../static/pageD/info(11).png',
text : '通知消息',
contentes : '亲,您购物车中的 [新鲜盆栽] 降价4.00元。',
title : '2020-7-21'
},
{
id: 0,
url: '../../static/pageD/info(11).png',
text : '通知消息',
contentes : '亲,您购物车中的 [新鲜盆栽] 降价4.00元。',
title : '2020-7-21'
},
],
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
},
},
components:{
titles,
}
};
</script>
<style lang="scss" scoped>
.sousuo {
height: 113rpx;
border: 1px #f00 solid;
}
.slot-wrap {
display: flex;
align-items: center;
/* 如果您想让slot内容占满整个导航栏的宽度 */
/* flex: 1; */
/* 如果您想让slot内容与导航栏左右有空隙 */
/* padding: 0 30rpx; */
image{
width: 60rpx;
height: 60rpx;
position: absolute;
right: 90rpx;
}
image:nth-child(2){
width: 34rpx;
height: 40rpx;
position: absolute;
right: 30rpx;
}
}
.backes{
background: #fff;
margin-bottom: 10rpx;
}
.information_dl{
width: 710rpx;
margin: 0 auto;
overflow: hidden;
zoom: 1;
position: relative;
padding-bottom: 23rpx;
border-bottom: 1px #ececec solid;
padding: 20rpx 5rpx 23rpx 5rpx;
image{
width: 84rpx;
height: 84rpx;
margin-right: 16rpx;
}
view{
float: left;
display: block;
}
.title{
font-size: 30rpx;
color: #333;
width: 600rpx;
margin-bottom: 15rpx;
margin-top: 9rpx;
}
.contentes{
font-size: 20rpx;
color: #999;
width: 600rpx;
}
}
.times{
position: absolute;
top: 30rpx;
right: 0;
color: #333333;
font-size:20rpx;
}
uni-page-wrapper{
}
page {
background: #ececec!important;
}
</style>

View File

@@ -0,0 +1,156 @@
<template>
<view id="actives">
<!-- 活动消息推送 -->
<view class="activity" v-for="(item, index) in actives" :key="index">
<view class="times">{{item.type}}</view>
<view class="content">
<view class="store_name">
<image src="../../pageE/static/mine/1.png"></image>
<view>小时代</view>
</view>
<view class="xiantiao"></view>
<view class="title">{{item.name}}</view>
<view class="images_about">
<image :src="item.url"></image>
<view>
<text>{{item.about}}</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
actives: [
{
url: '../../pageE/static/mine/1.png',
name: '您的订单已发货',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
{
url: '../../pageE/static/mine/1.png',
name: '百元趋势新品',
type: '2020-05-14 20:11',
about: '百搭休闲格纹裙!你值得有用!'
},
]
};
},
methods: {
titletext(){
console.log("22345")
}
},
components:{
}
};
</script>
<style lang="scss" scoped>
#actives{
background: #ECECEC;
height: 100%;
}
.activity{
.times{
width:100%;
font-size:28rpx;
font-weight:400;
color:rgba(102,102,102,1);
text-align: center;
padding: 39rpx 0 30rpx;
}
.content{
width:630rpx;
padding: 30rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
margin: 0 auto;
overflow: hidden;
image{
width: 137rpx;
height: 140rpx;
float: left;
}
.title{
font-size:30rpx;
color:rgba(51,51,51,1);
padding: 0rpx 0 19rpx;
font-weight: bold;
}
.images_about{
overflow: hidden;
text{
display: table-cell;
height: 140rpx;
vertical-align: middle;
width: 400rpx;
padding-left: 15rpx;
line-height: 36rpx;
font-size: 26rpx;
}
view{
display: inline-block;
float: left;
width:430rpx;
height:140rpx;
background:rgba(241,241,241,1);
}
}
.content{
}
.xiantiao{
width: 630rpx;
border-top: 1px #ececec solid;
margin-left: -30rpx;
margin-bottom: 20rpx;
}
// 店铺
.store_name{
overflow: hidden;
zoom: 1;
padding: 0rpx 0 20rpx 0;
image{
width: 60rpx;
height: 60rpx;
border-radius: 50%;
float: left;
}
view{
font-size:26rpx;
color:rgba(51,51,51,1);
float: left;
display: table-cell;
line-height: 60rpx;
display: inline-block;
margin-left: 21rpx;
}
}
}
}
</style>

31
pageD/notice/notice.vue Normal file
View File

@@ -0,0 +1,31 @@
<template>
<view>
<!-- 公告咨询 -->
<notice></notice>
</view>
</template>
<script>
import notice from "@/components/informations/notice/notice"
export default {
data() {
return {
};
},
methods: {
titletext(){
console.log("22345")
}
},
components:{
notice,
}
};
</script>
<style lang="scss" scoped>
.sousuo {
height: 113rpx;
border: 1px #f00 solid;
}
</style>