敢为人鲜小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

110 lines
1.8 KiB

<template>
<view class="submit">
<!-- 联系客服 -->
<view @click="$emit('service')" class="service-icon">
<image src="@/pages_order/static/productDetail/service.png" mode="widthFix" class="service-icon-img">
</image>
<view class="title">
客服
</view>
</view>
<view class="submit-btn">
<!-- <view class="l"s
v-if="detail.type == 2"
@click="$emit('addCart')">
加入购物车
</view> -->
<view class="r" @click="$emit('submit')">
{{ submiitTitle }}
</view>
</view>
</view>
</template>
<script>
export default {
name: "submit",
props: {
submiitTitle: {
default: '立即购买',
type: String,
},
detail: {
default: {}
},
},
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.submit {
position: fixed;
bottom: 0;
left: 0;
width: 100vw;
background-color: #fff;
height: 100rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 24rpx;
padding: 0rpx 20rpx;
box-sizing: border-box;
// 联系客服
.service-icon {
display: flex;
flex-direction: column;
justify-content: center;
.service-icon-img {
width: 45rpx;
height: 45rpx;
}
.title {
font-size: 26rpx;
color: #666666;
}
}
.submit-btn {
width: calc(100% - 140rpx);
height: 80rpx;
color: #fff;
border-radius: 40rpx;
font-size: 28rpx;
margin-left: 40rpx;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
.l {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
color: $uni-color;
}
.r {
background: $uni-color;
flex: 1;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
}
}
</style>