pidu
This commit is contained in:
317
src/project/pidu/AppPointsChange/AppPointsChange.vue
Normal file
317
src/project/pidu/AppPointsChange/AppPointsChange.vue
Normal file
@@ -0,0 +1,317 @@
|
||||
<template>
|
||||
<div class="AppPointsChange">
|
||||
<AiTopFixed>
|
||||
<div class="header">
|
||||
<div class="header-left">
|
||||
<span>★</span>
|
||||
积分余额:428
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<div @click="toMyOrder">我的订单</div>
|
||||
</div>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="list-content">
|
||||
<div class="select">
|
||||
<div class="active">最新上架</div>
|
||||
<div class="price active">价格<span class="top active">⏶</span><span class="bottom">⏷</span></div>
|
||||
<div class="sure active">可兑换的
|
||||
<img src="./components/imgs/check-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="type">
|
||||
<div class="type-item" :class="index == typeIndex ? 'active' : ''" v-for="(item, index) in typeList" :key="index" @click="typeClick(index)">{{item}}</div>
|
||||
</div>
|
||||
<div class="item" @click="toDetail()">
|
||||
<div class="left">
|
||||
<img src="./components/imgs/check-icon.png" alt="">
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>天薇抽纸天然无香纸巾天薇抽纸天然无香纸巾天薇抽纸天然无香纸巾可湿水天薇抽纸天然无香纸巾可湿水</p>
|
||||
<h3>10<span>积分</span></h3>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item lack-item">
|
||||
<div class="left">
|
||||
<img src="./components/imgs/check-icon.png" alt="">
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>天薇抽纸天然无香纸巾天薇抽纸天然无香纸巾天薇抽纸天然无香纸巾可湿水天薇抽纸天然无香纸巾可湿水</p>
|
||||
<h3>10<span>积分</span></h3>
|
||||
|
||||
</div>
|
||||
<img src="./components/imgs/lack-icon.png" alt="" class="status" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- <AiEmpty v-else></AiEmpty> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: 'AppPointsChange',
|
||||
appName: '积分兑换',
|
||||
data() {
|
||||
return {
|
||||
current: 1,
|
||||
list: [],
|
||||
typeList: ['全部', '100分以下', '500分以下', '1000分以下', '5000分以下', '10000分以下'],
|
||||
typeIndex: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onLoad() {
|
||||
// this.getList()
|
||||
// uni.$on('reload', () => {
|
||||
// this.getListInit()
|
||||
// })
|
||||
},
|
||||
onShow() {
|
||||
document.title = '积分兑换'
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post('/app/apppartyintegralinfo/list', null, {
|
||||
params: {
|
||||
size: 20,
|
||||
current: this.current,
|
||||
partyName: this.partyName
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
getListInit() {
|
||||
this.current = 1
|
||||
this.datas = []
|
||||
this.getList()
|
||||
},
|
||||
typeClick(index) {
|
||||
this.typeIndex = index
|
||||
},
|
||||
toDetail() {
|
||||
uni.navigateTo({url:'./detail'})
|
||||
},
|
||||
toMyOrder() {
|
||||
uni.navigateTo({url:`./myOrder`})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppPointsChange {
|
||||
min-height: 100%;
|
||||
::v-deep .AiTopFixed .content {
|
||||
background: #F2F2F2 !important;
|
||||
padding: 24px 16px;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 28px 24px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background: #FFF;
|
||||
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.02);
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28px;
|
||||
color: #CA906A;
|
||||
.header-left {
|
||||
line-height: 56px;
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
line-height: 36px;
|
||||
text-align: center;
|
||||
background: #CA906A;
|
||||
border-radius: 50%;
|
||||
color: #fff;
|
||||
font-size: 30px;
|
||||
margin-right: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.header-right {
|
||||
div {
|
||||
width: 176px;
|
||||
height: 56px;
|
||||
text-align: center;
|
||||
line-height: 56px;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #CA906A;
|
||||
border-radius: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list-content{
|
||||
padding: 4px 32px 16px;
|
||||
background-color: #fff;
|
||||
border-top-left-radius: 16px;
|
||||
border-top-right-radius: 16px;
|
||||
.select {
|
||||
display: flex;
|
||||
div {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
height: 88px;
|
||||
line-height: 88px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 28px;
|
||||
color: #666;
|
||||
}
|
||||
.active {
|
||||
color: #CA906A;
|
||||
}
|
||||
.price {
|
||||
position: relative;
|
||||
span {
|
||||
position: absolute;
|
||||
left: 140px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
color: #999;
|
||||
}
|
||||
.top {
|
||||
top: -10px;
|
||||
}
|
||||
.bottom {
|
||||
top: 6px;
|
||||
}
|
||||
.active {
|
||||
color: #CA906A;
|
||||
}
|
||||
}
|
||||
.sure {
|
||||
img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-left: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
.type {
|
||||
width: 100%;
|
||||
padding: 16px 0;
|
||||
box-sizing: border-box;
|
||||
overflow-x: scroll;
|
||||
display: flex;
|
||||
word-break: keep-all;
|
||||
.type-item{
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
background: #F2F2F2;
|
||||
border-radius: 24px;
|
||||
padding: 0 16px;
|
||||
margin-right: 16px;
|
||||
font-size: 26px;
|
||||
color: #333;
|
||||
border: 1px solid #F2F2F2;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.active {
|
||||
color: #CA906A;
|
||||
background-color: #fff;
|
||||
border: 1px solid #CA906A;
|
||||
}
|
||||
}
|
||||
.item{
|
||||
width: 100%;
|
||||
padding: 32px 0 40px 0;
|
||||
display: flex;
|
||||
position: relative;
|
||||
.left {
|
||||
img {
|
||||
width: 168px;
|
||||
height: 176px;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
width: calc(100% - 168px);
|
||||
padding-left: 24px;
|
||||
box-sizing: border-box;
|
||||
p {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
line-height: 40px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
h3 {
|
||||
line-height: 60px;
|
||||
font-family: PingFangSC-SNaNpxibold;
|
||||
font-weight: 600;
|
||||
font-size: 44px;
|
||||
color: #FF6900;
|
||||
span {
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.status {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
}
|
||||
|
||||
}
|
||||
.lack-item {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
.height-144{
|
||||
height: 144px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
background: #3975C6;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
src/project/pidu/AppPointsChange/components/imgs/check-icon.png
Normal file
BIN
src/project/pidu/AppPointsChange/components/imgs/check-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1012 B |
BIN
src/project/pidu/AppPointsChange/components/imgs/lack-icon.png
Normal file
BIN
src/project/pidu/AppPointsChange/components/imgs/lack-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
124
src/project/pidu/AppPointsChange/detail.vue
Normal file
124
src/project/pidu/AppPointsChange/detail.vue
Normal file
@@ -0,0 +1,124 @@
|
||||
<template>
|
||||
<div class="detail">
|
||||
<div class="goods-img">
|
||||
<u-swiper :list="list" mode="none" img-mode="aspectFit" height="750" bg-color="#fff"></u-swiper>
|
||||
</div>
|
||||
<div class="goods-title">
|
||||
天薇抽纸天然无香纸巾天薇抽纸天然无香纸巾天薇抽纸天然无香纸巾可湿水…
|
||||
</div>
|
||||
<div class="goods-point">
|
||||
<h3>10<span>积分</span></h3>
|
||||
<div>库存100</div>
|
||||
</div>
|
||||
<div class="goods-btn status-lack">
|
||||
<div class="text">积分余额:438</div>
|
||||
<div class="btn" @click="toOrder()">立即兑换</div>
|
||||
<!-- <div class="btn lack-btn">积分不足</div> -->
|
||||
<!-- <div class="btn lack-btn">缺货</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: 'detail',
|
||||
data() {
|
||||
return {
|
||||
list: [
|
||||
{ image: 'https://cdn.uviewui.com/uview/swiper/1.jpg'},
|
||||
{ image: 'https://cdn.uviewui.com/uview/swiper/2.jpg'},
|
||||
{ image: 'https://cdn.uviewui.com/uview/swiper/3.jpg'}
|
||||
],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onShow() {
|
||||
document.title = '商品详情'
|
||||
},
|
||||
methods: {
|
||||
toOrder() {
|
||||
uni.navigateTo({url:'./order'})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
uni-page-body {
|
||||
background-color: #fff;
|
||||
}
|
||||
.detail {
|
||||
.goods-img {
|
||||
width: 100%;
|
||||
}
|
||||
.goods-title {
|
||||
padding: 32px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
word-break: break-all;
|
||||
}
|
||||
.goods-point{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 32px;
|
||||
h3 {
|
||||
line-height: 60px;
|
||||
font-family: PingFangSC-SNaNpxibold;
|
||||
font-weight: 600;
|
||||
font-size: 44px;
|
||||
color: #FF6900;
|
||||
span {
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
div {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 26px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
.goods-btn {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
background: #FFF;
|
||||
border-top: 1px solid #ddd;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
.text {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28px;
|
||||
color: #CA906A;
|
||||
}
|
||||
.btn {
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
width: 224px;
|
||||
text-align: center;
|
||||
background-image: linear-gradient(90deg, #FFA044 0%, #FF8436 100%);
|
||||
border-radius: 52px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #FFF;
|
||||
margin-top: 16px;
|
||||
}
|
||||
.lack-btn {
|
||||
background-image: linear-gradient(90deg, #ddd 0%, #ddd 100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
226
src/project/pidu/AppPointsChange/myOrder.vue
Normal file
226
src/project/pidu/AppPointsChange/myOrder.vue
Normal file
@@ -0,0 +1,226 @@
|
||||
<template>
|
||||
<div class="myOrder">
|
||||
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="tabIndex == index? 'active': ''" v-for="(item,index) in tabList" :key="index" @click="toCheck(index)">{{ item }}<span></span></div>
|
||||
</div>
|
||||
|
||||
<div class="card-List" v-if="orderList.length">
|
||||
<div class="item" v-for="(item,index) in orderList" :key="index">
|
||||
<div @click="$linkTo(`./detail?id=${item.id}`)">
|
||||
<div class="title">
|
||||
<div>{{ item.createTime }}</div>
|
||||
<div :style="{color: item.orderStatus==0? '#FF883C':item.orderStatus==1? '#42D784': '#999999'}">{{ item.orderStatus | format }}</div>
|
||||
</div>
|
||||
<div class="list" v-for="(e,indexs) in item.merchandiseList" :key="indexs">
|
||||
<div class="list-item">
|
||||
<div class="picture">
|
||||
<img :src="JSON.parse(e.merchandisePhoto)[0].url" alt="">
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="name">{{ e.merchandiseName }}</div>
|
||||
<div class="info-num">
|
||||
<div class="num">x<span>{{ e.merchandiseNumber }}</span></div>
|
||||
<div class="integral"><span>{{ e.merchandiseNumber * e.costIntegral }}</span>积分</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn" v-if="item.orderStatus == 0">
|
||||
<div class="cancel" @click="cancelBtn(item.id)">取消订单</div>
|
||||
<div class="confirm" @click="confirmBtn(item.id)">核销码:</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "myOrder",
|
||||
data() {
|
||||
return {
|
||||
tabIndex: 0,
|
||||
tabList: ['全部','待收货','已完成','已取消'],
|
||||
orderList: [],
|
||||
current: 1,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// this.getOrderList()
|
||||
document.title = '我的订单'
|
||||
},
|
||||
methods: {
|
||||
toCheck(index) {
|
||||
this.orderList = []
|
||||
this.current = 1
|
||||
this.tabIndex = index
|
||||
// this.getOrderList()
|
||||
},
|
||||
getOrderList() {
|
||||
this.$instance.post('/appvillagerintegralshoporder/listForWx',null,{
|
||||
params: {
|
||||
current: this.current,
|
||||
orderStatus: this.tabIndex == 0 ? '' : this.tabIndex == 1? 0 : this.tabIndex ==2? 1:2
|
||||
}
|
||||
}).then(res=>{
|
||||
if(res?.data) {
|
||||
this.orderList = this.current == 1? res.data.records : [...this.orderList,...res.data.records]
|
||||
}
|
||||
})
|
||||
},
|
||||
cancelBtn(id) {
|
||||
this.$dialog.confirm({ content: '确定要关闭该订单吗?' }).then(() => {
|
||||
this.$instance.post('/appvillagerintegralshoporder/overOrderForWx',null,{
|
||||
params: {
|
||||
orderId: id
|
||||
}
|
||||
}).then(res=>{
|
||||
if(res.code==0) {
|
||||
this.$u.toast('关闭成功')
|
||||
this.$store.commit('getUserInfo')
|
||||
setTimeout(() => {
|
||||
this.getOrderList()
|
||||
},600)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
filters: {
|
||||
format(num) {
|
||||
if(num == 0) {
|
||||
return '预约中'
|
||||
}else if(num == 1) {
|
||||
return '已完成'
|
||||
}else if(num == 2) {
|
||||
return '已关闭'
|
||||
}
|
||||
},
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current ++
|
||||
this.getOrderList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.myOrder {
|
||||
.tab-select {
|
||||
width: 100%;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: #3975C6;
|
||||
display: flex;
|
||||
z-index: 999;
|
||||
.item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 30px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.active {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
span {
|
||||
width: 50px;
|
||||
height: 6px;
|
||||
background: #FFFFFF;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 14px;
|
||||
margin-left: -24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.card-List {
|
||||
font-size: 28px;
|
||||
box-sizing: border-box;
|
||||
padding: 128px 32px 32px 32px;
|
||||
.item {
|
||||
width: 100%;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.04);
|
||||
border-radius: 16px;
|
||||
margin-bottom: 16px;
|
||||
.title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 104px;
|
||||
line-height: 104px;
|
||||
padding: 0 32px;
|
||||
border-bottom: 1px solid #EEEEEE;
|
||||
}
|
||||
.list {
|
||||
padding: 0 32px;
|
||||
.list-item {
|
||||
display: flex;
|
||||
padding: 32px 0;
|
||||
border-bottom: 1px solid #EEEEEE;
|
||||
.picture {
|
||||
width: 176px;
|
||||
height: 176px;
|
||||
margin-right: 16px;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.info {
|
||||
width: calc(100% - 192px);
|
||||
.name {}
|
||||
.info-num {
|
||||
margin-top: 24px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.num {
|
||||
color: #999999;
|
||||
}
|
||||
.integral {
|
||||
color: #FF6900;
|
||||
span {
|
||||
font-size: 44px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
height: 128px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 0 20px;
|
||||
div {
|
||||
margin-top: 32px;
|
||||
width: 176px;
|
||||
height: 64px;
|
||||
line-height: 64px;
|
||||
border: 1px solid #DDDDDD;
|
||||
border-radius: 52px;
|
||||
text-align: center;
|
||||
}
|
||||
div:first-child {
|
||||
margin-right: 32px;
|
||||
}
|
||||
div:last-child {
|
||||
color: #FFFFFF;
|
||||
background: linear-gradient(90deg, #FFA044 0%, #FF8436 100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .emptyWrap .emptyImg {
|
||||
margin-top: 100px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
175
src/project/pidu/AppPointsChange/order.vue
Normal file
175
src/project/pidu/AppPointsChange/order.vue
Normal file
@@ -0,0 +1,175 @@
|
||||
<template>
|
||||
<div class="order">
|
||||
<div class="goods">
|
||||
<div class="left">
|
||||
<img src="./components/imgs/check-icon.png" alt="">
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>天薇抽纸天然无香纸巾天薇抽纸天然无香纸巾天薇抽纸可湿水面巾纸1天薇抽纸天</p>
|
||||
<div class="flex">
|
||||
<h3>10<span>积分</span></h3>
|
||||
<div class="num">
|
||||
<u-number-box v-model="value" @change="valChange" :min="1" :max="200"></u-number-box>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-item item-mar-b24">
|
||||
<div class="label">备注</div>
|
||||
<div class="value">
|
||||
<u-input v-model="remark" type="text" maxlength="20" input-align="right" placeholder="0/20" height="44" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-item border">
|
||||
<div class="label">积分余额</div>
|
||||
<div class="value color-333">484</div>
|
||||
</div>
|
||||
<div class="flex-item">
|
||||
<div class="label">支付积分</div>
|
||||
<div class="value color-ff6900">-10</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div>提交订单</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: 'order',
|
||||
data() {
|
||||
return {
|
||||
value: 1,
|
||||
remark: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onShow() {
|
||||
document.title = '提交订单'
|
||||
},
|
||||
methods: {
|
||||
valChange(e) {
|
||||
console.log('当前值为: ' + e.value)
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
uni-page-body {
|
||||
background-color: #f5f6f7;
|
||||
}
|
||||
.order {
|
||||
.goods {
|
||||
width: calc(100% - 32px);
|
||||
background-color: #fff;
|
||||
margin: 16px 0 16px 16px;
|
||||
padding: 32px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
border-radius: 32px;
|
||||
.left {
|
||||
img {
|
||||
width: 176px;
|
||||
height: 176px;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
width: calc(100% - 176px);
|
||||
padding-left: 24px;
|
||||
box-sizing: border-box;
|
||||
p {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
line-height: 40px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.num {
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
h3 {
|
||||
line-height: 60px;
|
||||
font-family: PingFangSC-SNaNpxibold;
|
||||
font-weight: 600;
|
||||
font-size: 44px;
|
||||
color: #FF6900;
|
||||
span {
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.flex-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: calc(100% - 32px);
|
||||
padding: 44px 32px;
|
||||
line-height: 42px;
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
margin-left: 16px;
|
||||
.label {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 30px;
|
||||
color: #666;
|
||||
}
|
||||
.color-333{
|
||||
color: #333;
|
||||
}
|
||||
.color-ff6900 {
|
||||
color: #FF6900;
|
||||
}
|
||||
}
|
||||
.item-mar-b24 {
|
||||
border-radius: 32px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.border {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.footer{
|
||||
width: 100%;
|
||||
background: #FFF;
|
||||
border-top: 1px solid #ddd;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 16px 32px;
|
||||
box-sizing: border-box;
|
||||
div {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
text-align: center;
|
||||
background-image: linear-gradient(90deg, #FFA044 0%, #FF8436 100%);
|
||||
border-radius: 52px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user