parent
c347578bef
commit
60661dab23
@ -1,204 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="container">
|
|
||||||
<view v-if="isLoading" class="loading">
|
|
||||||
<u-loading-icon mode="circle"></u-loading-icon>
|
|
||||||
</view>
|
|
||||||
<view v-else class="field-body" @click="handleSelect()">
|
|
||||||
<view class="field-value oneline-hide">{{ valueText ? valueText: placeholder }}</view>
|
|
||||||
</view>
|
|
||||||
<u-picker :show="show" keyName="label" :columns="options" @cancel="show = false" @change="changeRegion" @confirm="onConfirm"></u-picker>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import Emitter from 'uview-ui/libs/util/emitter'
|
|
||||||
import regionData from '@/mock/region.json';
|
|
||||||
// import RegionModel from '@/common/model/Region'
|
|
||||||
|
|
||||||
// 根据选中的value集获取索引集keys
|
|
||||||
// 用于设置默认选中
|
|
||||||
const findOptionsKey = (data, searchValue, deep = 1, keys = []) => {
|
|
||||||
const index = data.findIndex(item => item.value === searchValue[deep - 1])
|
|
||||||
if (index > -1) {
|
|
||||||
keys.push(index)
|
|
||||||
if (data[index].children) {
|
|
||||||
findOptionsKey(data[index].children, searchValue, ++deep, keys)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return keys
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'SelectRegion',
|
|
||||||
mixins: [Emitter],
|
|
||||||
model: {
|
|
||||||
prop: 'value',
|
|
||||||
event: 'change'
|
|
||||||
},
|
|
||||||
props: {
|
|
||||||
// v-model 指定选中项
|
|
||||||
value: {
|
|
||||||
type: Array,
|
|
||||||
default: () => {
|
|
||||||
return []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 未选中时的提示文字
|
|
||||||
placeholder: {
|
|
||||||
type: String,
|
|
||||||
default: '请选择省/市/区'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// 正在加载
|
|
||||||
isLoading: true,
|
|
||||||
// 是否显示
|
|
||||||
show: false,
|
|
||||||
// 默认选中的值
|
|
||||||
defaultValue: [],
|
|
||||||
// 选中项内容(文本展示)
|
|
||||||
valueText: '',
|
|
||||||
// 级联选择器数据
|
|
||||||
options: []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
// 监听v-model
|
|
||||||
value(val) {
|
|
||||||
// 设置默认选中的值
|
|
||||||
this.valueText = val.map(item => item.label).join('/')
|
|
||||||
this.setDefaultValue(val)
|
|
||||||
// 将当前的值发送到 u-form-item 进行校验
|
|
||||||
this.dispatch('u-form-item', 'on-form-change', val)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
// 获取地区数据
|
|
||||||
this.getTreeData()
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
// 打开选择器
|
|
||||||
handleSelect() {
|
|
||||||
this.show = true
|
|
||||||
},
|
|
||||||
|
|
||||||
// 获取地区数据
|
|
||||||
getTreeData() {
|
|
||||||
const app = this
|
|
||||||
app.isLoading = true;
|
|
||||||
this.options = [[
|
|
||||||
{
|
|
||||||
label : '北京',
|
|
||||||
id : 11000000,
|
|
||||||
children : [
|
|
||||||
{
|
|
||||||
label : '东城',
|
|
||||||
id : 11100000
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label : '西城',
|
|
||||||
id : 11200000
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label : '湖南',
|
|
||||||
id : 43000000,
|
|
||||||
children : [
|
|
||||||
{
|
|
||||||
label : '长沙',
|
|
||||||
id : 11100000
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label : '邵阳',
|
|
||||||
id : 11200000
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],[{
|
|
||||||
label : '东城',
|
|
||||||
id : 11100000
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label : '西城',
|
|
||||||
id : 11200000
|
|
||||||
}]];
|
|
||||||
app.isLoading = false;
|
|
||||||
// RegionModel.getTreeData()
|
|
||||||
// .then(regions => {
|
|
||||||
// // 格式化级联选择器数据
|
|
||||||
// this.options = this.getOptions(regions)
|
|
||||||
// })
|
|
||||||
// .finally(() => app.isLoading = false)
|
|
||||||
},
|
|
||||||
changeRegion(val){
|
|
||||||
this.options = [this.options[0],val.value[0].children]
|
|
||||||
},
|
|
||||||
// 确认选择后的回调
|
|
||||||
onConfirm(value) {
|
|
||||||
// 绑定到v-model执行的值
|
|
||||||
this.$emit('input', value)
|
|
||||||
this.$emit('change', value)
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置默认选中的值
|
|
||||||
* 该操作是为了每次打开选择器时聚焦到上次选择
|
|
||||||
* @param {Object} value
|
|
||||||
*/
|
|
||||||
setDefaultValue(value) {
|
|
||||||
const values = value.map(item => item.value)
|
|
||||||
const options = this.options
|
|
||||||
this.defaultValue = findOptionsKey(options, values)
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 格式化级联选择器数据
|
|
||||||
* @param {*} regions 地区数据
|
|
||||||
*/
|
|
||||||
getOptions(regions) {
|
|
||||||
const { getOptions, getChildren } = this
|
|
||||||
const options = []
|
|
||||||
for (const index in regions) {
|
|
||||||
const item = regions[index]
|
|
||||||
const children = getChildren(item)
|
|
||||||
const optionItem = {
|
|
||||||
value: item.id,
|
|
||||||
label: item.name
|
|
||||||
}
|
|
||||||
if (children !== false) {
|
|
||||||
optionItem.children = getOptions(children)
|
|
||||||
}
|
|
||||||
options.push(optionItem)
|
|
||||||
}
|
|
||||||
return options
|
|
||||||
},
|
|
||||||
|
|
||||||
// 获取子集地区
|
|
||||||
getChildren(item) {
|
|
||||||
if (item.city) {
|
|
||||||
return item.city
|
|
||||||
}
|
|
||||||
if (item.region) {
|
|
||||||
return item.region
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.container {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading {
|
|
||||||
padding-left: 10rpx;
|
|
||||||
// text-align: center;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -0,0 +1,107 @@
|
|||||||
|
<template>
|
||||||
|
<!-- 商品图片 -->
|
||||||
|
<view class="images-swiper">
|
||||||
|
<swiper class="swiper-box" :autoplay="autoplay" :duration="duration"
|
||||||
|
:indicator-dots="indicatorDots" :interval="interval" :circular="true"
|
||||||
|
@change="setCurrent">
|
||||||
|
<!-- 轮播图片 -->
|
||||||
|
<swiper-item v-for="(item, index) in images" :key="index"
|
||||||
|
@click="onPreviewImages(index)" >
|
||||||
|
<view class="slide-image">
|
||||||
|
<image class="image" :draggable="false" :src="item"></image>
|
||||||
|
</view>
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
// 图片轮播
|
||||||
|
images: {
|
||||||
|
type: Array,
|
||||||
|
default: [],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
indicatorDots: true, // 是否显示面板指示点
|
||||||
|
autoplay: true, // 是否自动切换
|
||||||
|
interval: 4000, // 自动切换时间间隔
|
||||||
|
duration: 800, // 滑动动画时长
|
||||||
|
currentIndex: 1, // 轮播图指针
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
// 设置轮播图当前指针 数字
|
||||||
|
setCurrent({ detail }) {
|
||||||
|
this.currentIndex = detail.current + 1;
|
||||||
|
},
|
||||||
|
|
||||||
|
// 浏览商品图片
|
||||||
|
onPreviewImages(index) {
|
||||||
|
uni.previewImage({
|
||||||
|
current: index,
|
||||||
|
urls: this.images,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
// swiper组件
|
||||||
|
.images-swiper {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swiper-box {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vw;
|
||||||
|
|
||||||
|
/* #ifdef H5 */
|
||||||
|
max-width: 480px;
|
||||||
|
max-height: 480px;
|
||||||
|
margin: 0 auto;
|
||||||
|
/* #endif */
|
||||||
|
|
||||||
|
// 主图视频
|
||||||
|
.slide-video {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.video {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 图片轮播
|
||||||
|
.slide-image {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.image {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// swiper计数
|
||||||
|
.swiper-count {
|
||||||
|
position: absolute;
|
||||||
|
right: 36rpx;
|
||||||
|
bottom: 72rpx;
|
||||||
|
padding: 2rpx 18rpx;
|
||||||
|
background: rgba(0, 0, 0, 0.363);
|
||||||
|
border-radius: 50rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,446 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
.dis-flex{
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
// 配送信息
|
|
||||||
.flow-delivery {
|
|
||||||
padding: 34rpx 30rpx;
|
|
||||||
background: #fff url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAANCAYAAADVGpDCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3Yjk4M2ExYy1jMDhkLTQ1OTktYTI0Ny1kZjNjYzdiYTQ5ZTgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDQwNkY3RkU5N0NGMTFFNUI3N0M4NTU4MzM2RjlFODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDQwNkY3RkQ5N0NGMTFFNUI3N0M4NTU4MzM2RjlFODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowNzgwZWI1NS03OGFhLTQzOTUtODQ4OC1lOWI5YmVlYTY1ZDciIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo1OTRiYzUyMy1jMzc3LTExNzgtYTdkZS04NGY3YmM1ZGIxMDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz556PLxAAACBElEQVR42tyaSyhEYRTHP48imlKibDQeSSlkSlEWLCRFsZNH5FE2FqQ8ErIRC9lIkTwXSpMkWWChhEJCSnlkoUZGSsr78f98n43CMFPu/Z/6NZuZ2zn33/+cb869XkmLx8IDEQaGQJbgiytQDSY3MyL+LYnL/HxPXSoHDIJQQq2WQQk4Dbbb/yUB29LJ+6e3B66VB3ZITbUIEqSpCGoJBP1ghtBUD6ARpEtTGSEhXzd+awE9oJzQUPegWdf3QlBPMhgDMYRa7YNisGWkpP5qrBQtVBShUHugUE9hs4fUtwG0utlEjRivoA/Ug1sj3vjffr8FNJEK1auPFHcE9UTq5pdK2PwcoAzMG7mjuRrRYEIfK9jiDJSCBZJ6ynSTsBBqNQ0qgdPISbq6vJCFbJOaagrEk5gqWNczRGiqG1Ah1LLMafRkf5pYIUKtZnMJDXUNasAIST2ZYFioRx9ssQaKwJFZEv5uYmWDXVJTrYBEElP562PfPKGpnkAbSDOTqb6aWAGgW6iHol5kQj2CdtAJngnqkc1hHMQRNr9DPaXWzZj8Z2PZtFCxhEIdaKE2CGqRJ4060AH8CLUaALX6f5VpBZLhI9SaeZXQVHKNLt84SCIxVbhQi5YuQlNd6OVElZlN9TGxrGBUn2PZ4lyoTdIsST0FQj0UDSLUak6ot3gcBLVY3wQYAJoVXxmNERajAAAAAElFTkSuQmCC') bottom left repeat-x;
|
|
||||||
background-size: 120rpx auto;
|
|
||||||
|
|
||||||
.detail-location {
|
|
||||||
font-size: 36rpx;
|
|
||||||
}
|
|
||||||
.detail-content {
|
|
||||||
padding: 0 20rpx;
|
|
||||||
.detail-content__title-phone {
|
|
||||||
margin-left: 10rpx;
|
|
||||||
}
|
|
||||||
.detail-content__describe {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.detail-content__title {
|
|
||||||
margin-bottom: 6rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 买家留言
|
|
||||||
.flow-all-money {
|
|
||||||
.ipt-wrapper {
|
|
||||||
input {
|
|
||||||
font-size: 28rpx;
|
|
||||||
width: 100%;
|
|
||||||
height: 75rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 商品列表
|
|
||||||
.checkout_list {
|
|
||||||
padding: 20rpx 30rpx 4rpx 30rpx;
|
|
||||||
background: #fff;
|
|
||||||
border-bottom: 1rpx solid rgb(248, 248, 248);
|
|
||||||
.flow-shopList {
|
|
||||||
padding: 5rpx 0 10rpx;
|
|
||||||
border-bottom: 1rpx solid rgb(248, 248, 248);
|
|
||||||
&:last-child {
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.flow-header-left {
|
|
||||||
padding-left: 90rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 会员价 */
|
|
||||||
.flow-shopList {
|
|
||||||
|
|
||||||
.flow-list-right {
|
|
||||||
.flow-cont {
|
|
||||||
|
|
||||||
&.price-delete {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #777;
|
|
||||||
text-decoration: line-through;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.grade-price {
|
|
||||||
padding-top: 8rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #ff495e;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.goods-name{
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 优惠券选择 */
|
|
||||||
.popup__coupon {
|
|
||||||
width: 750rpx;
|
|
||||||
background: #fff;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 30rpx;
|
|
||||||
|
|
||||||
.coupon__do_not {
|
|
||||||
.control {
|
|
||||||
width: 90%;
|
|
||||||
height: 72rpx;
|
|
||||||
margin-bottom: 24rpx;
|
|
||||||
color: #888;
|
|
||||||
border: 1rpx solid #e3e3e3;
|
|
||||||
border-radius: 10rpx;
|
|
||||||
/* #ifdef H5 */
|
|
||||||
max-width: 1120rpx;
|
|
||||||
/* #endif */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.coupon__title {
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 30rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.coupon-list {
|
|
||||||
/* #ifdef H5 */
|
|
||||||
max-width: 1120rpx;
|
|
||||||
margin: 0 auto;
|
|
||||||
/* #endif */
|
|
||||||
}
|
|
||||||
|
|
||||||
.coupon-item {
|
|
||||||
overflow: hidden;
|
|
||||||
margin-bottom: 22rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.item-wrapper {
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 8rpx;
|
|
||||||
color: #fff;
|
|
||||||
height: 180rpx;
|
|
||||||
|
|
||||||
.coupon-type {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
z-index: 10;
|
|
||||||
width: 128rpx;
|
|
||||||
padding: 6rpx 0;
|
|
||||||
background: #a771ff;
|
|
||||||
font-size: 20rpx;
|
|
||||||
text-align: center;
|
|
||||||
color: #ffffff;
|
|
||||||
transform: rotate(45deg);
|
|
||||||
transform-origin: 64rpx 64rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.color-blue {
|
|
||||||
background: linear-gradient(-125deg, #57bdbf, #2f9de2);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.color-red {
|
|
||||||
background: linear-gradient(-128deg, #ff6d6d, #ff3636);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.color-violet {
|
|
||||||
background: linear-gradient(-113deg, #ef86ff, #b66ff5);
|
|
||||||
|
|
||||||
.coupon-type {
|
|
||||||
background: #55b5ff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.color-yellow {
|
|
||||||
background: linear-gradient(-141deg, #f7d059, #fdb054);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.color-gray {
|
|
||||||
background: linear-gradient(-113deg, #bdbdbd, #a2a1a2);
|
|
||||||
|
|
||||||
.coupon-type {
|
|
||||||
background: #9e9e9e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
flex: 1;
|
|
||||||
padding: 30rpx 20rpx;
|
|
||||||
border-radius: 16rpx 0 0 16rpx;
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 32rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bottom {
|
|
||||||
.time {
|
|
||||||
font-size: 24rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.receive {
|
|
||||||
height: 46rpx;
|
|
||||||
width: 122rpx;
|
|
||||||
line-height: 46rpx;
|
|
||||||
text-align: center;
|
|
||||||
border: 1rpx solid #fff;
|
|
||||||
border-radius: 30rpx;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 24rpx;
|
|
||||||
|
|
||||||
&.state {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tip {
|
|
||||||
position: relative;
|
|
||||||
flex: 0 0 32%;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 0 16rpx 16rpx 0;
|
|
||||||
|
|
||||||
.money {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 52rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pay-line {
|
|
||||||
font-size: 22rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.split-line {
|
|
||||||
position: relative;
|
|
||||||
flex: 0 0 0;
|
|
||||||
border-left: 4rpx solid #fff;
|
|
||||||
margin: 0 10rpx 0 6rpx;
|
|
||||||
background: #fff;
|
|
||||||
|
|
||||||
&:before,
|
|
||||||
{
|
|
||||||
border-radius: 0 0 16rpx 16rpx;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
border-radius: 16rpx 16rpx 0 0;
|
|
||||||
bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:before,
|
|
||||||
&:after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
width: 24rpx;
|
|
||||||
height: 12rpx;
|
|
||||||
background: #f7f7f7;
|
|
||||||
left: -14rpx;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 积分抵扣 */
|
|
||||||
.points {
|
|
||||||
|
|
||||||
.title {
|
|
||||||
margin-right: 5rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-help {
|
|
||||||
font-size: 28rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.points-money {
|
|
||||||
margin-right: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
/* 支付方式 */
|
|
||||||
.pay-method {
|
|
||||||
|
|
||||||
.pay-item {
|
|
||||||
padding: 20rpx 0;
|
|
||||||
font-size: 28rpx;
|
|
||||||
border-bottom: 1rpx solid rgb(248, 248, 248);
|
|
||||||
|
|
||||||
.item-left_icon {
|
|
||||||
margin-right: 20rpx;
|
|
||||||
font-size: 32rpx;
|
|
||||||
|
|
||||||
&.wechat {
|
|
||||||
color: #00c800;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.balance {
|
|
||||||
color: #ff9700;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-balance {
|
|
||||||
margin-left: 20rpx;
|
|
||||||
font-size: 26rpx;
|
|
||||||
// color: #464646;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// 商品规格
|
|
||||||
.goods-props {
|
|
||||||
padding-top: 10rpx;
|
|
||||||
font-size: 24rpx;
|
|
||||||
color: #999;
|
|
||||||
|
|
||||||
.goods-props-item {
|
|
||||||
float: left;
|
|
||||||
.group-name {
|
|
||||||
margin-right: 6rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 右侧箭头
|
|
||||||
.right-arrow {
|
|
||||||
margin-left: 16rpx;
|
|
||||||
// color: #777;
|
|
||||||
font-size: 26rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 底部操作栏
|
|
||||||
.flow-fixed-footer {
|
|
||||||
position: fixed;
|
|
||||||
bottom: var(--window-bottom);
|
|
||||||
left: var(--window-left);
|
|
||||||
right: var(--window-right);
|
|
||||||
// width: 100%;
|
|
||||||
background: #fff;
|
|
||||||
border-top: 1px solid #eee;
|
|
||||||
z-index: 11;
|
|
||||||
|
|
||||||
.chackout-left {
|
|
||||||
font-size: 28rpx;
|
|
||||||
line-height: 92rpx;
|
|
||||||
color: #777;
|
|
||||||
flex: 4;
|
|
||||||
padding-left: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chackout-right {
|
|
||||||
font-size: 34rpx;
|
|
||||||
flex: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 提交按钮
|
|
||||||
.flow-btn {
|
|
||||||
background: linear-gradient(to right, #f9211c, #ff6335);
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 92rpx;
|
|
||||||
display: block;
|
|
||||||
font-size: 28rpx;
|
|
||||||
// 禁用按钮
|
|
||||||
&.disabled {
|
|
||||||
background: #ff9779;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 积分说明
|
|
||||||
.points-content {
|
|
||||||
padding: 30rpx 48rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
line-height: 50rpx;
|
|
||||||
text-align: left;
|
|
||||||
color: #606266;
|
|
||||||
height: 620rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 共几件商品 */
|
|
||||||
.flow-num-box {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #777;
|
|
||||||
padding: 16rpx 24rpx;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* app.scss */
|
|
||||||
.flow-shopList {
|
|
||||||
padding: 18rpx 0;
|
|
||||||
|
|
||||||
.flow-list-left {
|
|
||||||
margin-right: 20rpx;
|
|
||||||
|
|
||||||
image {
|
|
||||||
width: 180rpx;
|
|
||||||
height: 180rpx;
|
|
||||||
border: 1rpx solid #eee;
|
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.flow-list-right {
|
|
||||||
|
|
||||||
.flow-cont {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #fa2209;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flow-list-cont {
|
|
||||||
padding-top: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.flow-all-money {
|
|
||||||
padding: 0 24rpx;
|
|
||||||
color: #444;
|
|
||||||
|
|
||||||
.flow-all-list {
|
|
||||||
font-size: 28rpx;
|
|
||||||
padding: 20rpx 0;
|
|
||||||
border-bottom: 1rpx solid rgb(248, 248, 248);
|
|
||||||
}
|
|
||||||
|
|
||||||
.flow-all-list:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flow-all-list-cont {
|
|
||||||
font-size: 28rpx;
|
|
||||||
padding: 10rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flow-arrow {
|
|
||||||
justify-content: flex-end;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 869 B |
After Width: | Height: | Size: 983 B |
Loading…
Reference in new issue