|
|
|
<template>
|
|
|
|
<view class="browsing">
|
|
|
|
<view class="browsing-hd">
|
|
|
|
<view class="do">{{isToggle?'操作':'编辑'}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="browsing-bd">
|
|
|
|
<view class="li" v-for="i in 2" :key="i">
|
|
|
|
<view class="a">今天</view>
|
|
|
|
<u-swipe-action class="b" v-for="k in 5" :key="i" @click="clickItem(11)" :options="options">
|
|
|
|
<view class="item u-border-bottom">
|
|
|
|
<view class="select" v-if="isToggle">
|
|
|
|
<image mode="aspectFill" v-if="true" src="@/static/invoice/select.png" />
|
|
|
|
<image mode="aspectFill" v-else src="@/static/invoice/select-on.png" />
|
|
|
|
</view>
|
|
|
|
<view class="pic">
|
|
|
|
<image mode="aspectFill" src="@/static/home/phone.jpg" />
|
|
|
|
</view>
|
|
|
|
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
|
|
|
<view class="info title-wrap">
|
|
|
|
<view class="title">荣耀畅玩 40 Plus 全网通5G版 绿8GB+128GB</view>
|
|
|
|
<view class="sku">
|
|
|
|
<view class="box">绿 8GB+128GB选服务</view><u-icon style="margin-left: 10rpx;" name="arrow-down"></u-icon>
|
|
|
|
</view>
|
|
|
|
<view class="fd">
|
|
|
|
<view class="price">¥<text>1120</text></view>
|
|
|
|
<image class="icon" src="@/static/news/icon-recycling-08.png"></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</u-swipe-action>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="browsing-fd">
|
|
|
|
<view class="a">
|
|
|
|
<image mode="aspectFill" v-if="true" src="@/static/invoice/select.png" />
|
|
|
|
<image mode="aspectFill" v-else src="@/static/invoice/select-on.png" />全选
|
|
|
|
</view>
|
|
|
|
<view class="b">共<text>0</text>件商品</view>
|
|
|
|
<view class="c">删除</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import * as GoodsApi from '@/api/goods'
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
isToggle: false,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
text: '删除',
|
|
|
|
style: {
|
|
|
|
backgroundColor: '#FF564A'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
timestamp: 24*3600*1000,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
onReady() {
|
|
|
|
this.getBrowseHistoryList();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
/**
|
|
|
|
* 获取浏览记录列表
|
|
|
|
*/
|
|
|
|
async getBrowseHistoryList(pageNo = 1) {
|
|
|
|
const app = this
|
|
|
|
const {} = await GoodsApi.browseHistory({})
|
|
|
|
|
|
|
|
},
|
|
|
|
clickItem(e){
|
|
|
|
console.log(e)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.browsing{
|
|
|
|
padding: 0 0 130rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
&-fd{
|
|
|
|
width: 100%;
|
|
|
|
padding: 20rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 999;
|
|
|
|
background-color: #fff;
|
|
|
|
.a{
|
|
|
|
margin-right: 20rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #313131;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
image{
|
|
|
|
width: 40rpx;
|
|
|
|
height: 40rpx;
|
|
|
|
margin-right: 10rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.b{
|
|
|
|
text{
|
|
|
|
color: #ED2B00;
|
|
|
|
padding: 0 10rpx;
|
|
|
|
}
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #A2A2A2;
|
|
|
|
margin-right: 20rpx;
|
|
|
|
}
|
|
|
|
.c{
|
|
|
|
width: 408rpx;
|
|
|
|
line-height: 80rpx;
|
|
|
|
background: #FF564A;
|
|
|
|
border-radius: 80rpx;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-hd{
|
|
|
|
padding: 30rpx;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
&-bd{
|
|
|
|
overflow: hidden;
|
|
|
|
.li{
|
|
|
|
padding: 0 30rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: #fff;
|
|
|
|
.a{
|
|
|
|
overflow: hidden;
|
|
|
|
font-size: 32rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #303030;
|
|
|
|
}
|
|
|
|
.item{
|
|
|
|
padding: 25rpx 0;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
.select{
|
|
|
|
width: 40rpx;
|
|
|
|
height: 40rpx;
|
|
|
|
margin-right: 20rpx;
|
|
|
|
image{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.pic{
|
|
|
|
width: 190rpx;
|
|
|
|
height: 190rpx;
|
|
|
|
margin-right: 20rpx;
|
|
|
|
image{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.info{
|
|
|
|
flex: 1;
|
|
|
|
margin-right: 20rpx;
|
|
|
|
.title{
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #000000;
|
|
|
|
height: 80rpx;
|
|
|
|
}
|
|
|
|
.sku{
|
|
|
|
width: 320rpx;
|
|
|
|
padding: 0 10rpx;
|
|
|
|
line-height: 48rpx;
|
|
|
|
background: #F7F8FA;
|
|
|
|
border-radius: 48rpx;
|
|
|
|
margin-top: 10rpx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.box{
|
|
|
|
width: 260rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.fd{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-top: 10rpx;
|
|
|
|
.price{
|
|
|
|
font-size: 20rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #ED2B00;
|
|
|
|
text{
|
|
|
|
font-size: 32rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon{
|
|
|
|
width: 40rpx;
|
|
|
|
height: 40rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|