pointsDetaile.vue 2.7 KB
<template>
	<!-- 积分商城详情 -->
	<view>
		<u-navbar bgColor="transparent" :autoBack="true"></u-navbar>
		<view class="photo">
			<image src="/static/logo.png" mode=""></image>
		</view>
		<view class="info">
			<shopInfo :isPoints="true" />
		</view>
		<view class="lineBox flexC">
			<view class="lines"></view>
			<text>商品详情</text>
			<view class="lines"></view>
		</view>
		<!-- 底部按钮 -->
		<view class="btnBox iosAuto flexJ">
			<view class="left flexA">
				<view class="leftIc flexV" v-for="(item,index) in icList" :key="item.id" @click="btns(index)">
					<image :src="item.icon" mode=""></image>
					<text v-if="index!=1">{{item.name}}</text>
					<button v-if="index==1" open-type="contact">{{item.name}}</button>
				</view>
			</view>
			<view class="right flexC" @click="jump">我要兑换</view>
		</view>
	</view>
</template>

<script setup>
	import { reactive } from 'vue'
	import shopInfo from '@/componets/shopInfo.vue'
	const icList = reactive([{id:1,name:'店铺',icon:'/static/indexIc/shopIc.png'},
	{id:2,name:'客服',icon:'/static/indexIc/service.png'}])
	const btns = (index)=> {
		console.log(index)
	}
	// 我要兑换按钮
	const jump = ()=> {
		uni.navigateTo({
			url:`/pages/shopCar/confirmOrder?shopType=${true}`
		})
	}
</script>

<style lang="scss">
	page {
		background: #F8F8FA;
	}

	.photo {
		margin-bottom: 24rpx;
		width: 100%;
		height: 736rpx;

		image {
			width: 100%;
			height: 736rpx;
		}
	}

	.info {
		width: 702rpx;
		padding: 24rpx;
		border-radius: 16rpx;
		box-sizing: border-box;
		background-color: #fff;
		margin: 0 auto;
	}

	.lineBox {
		margin: 24rpx 0 30rpx;

		.lines {
			width: 149rpx;
			height: 1rpx;
			opacity: 1;
			border: 0 solid #979797ff;
			background: #dcdee0ff;
		}

		text {
			margin: 0 24rpx;
			color: #969799ff;
			font-size: 24rpx;
		}
	}

	.btnBox {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 120rpx;
		background: #ffffffff;
		
		.left {
			margin-left: 64rpx;
			
			.leftIc {
				margin-right: 54rpx;
				
				image {
					width: 48rpx;
					height: 48rpx;
				}
				
				text {
					 color: #323233ff;
					 font-size: 20rpx;
				}
				
				button {
					position: relative;
					background: transparent;
					width: 100%;
					height: 100%;
					color: #323233ff;
					font-size: 20rpx;
					border: none !important;
					padding: 0 !important;
					line-height: 28rpx;
					
					&::after {
						border: none;
					}
				}
			}
		}
		
		.right{
			margin-right: 32rpx;
			width: 434rpx;
			height: 80rpx;
			border-radius: 80rpx;
			color: #ffffffff;
			font-size: 30rpx;
			font-weight: 700;
			background: linear-gradient(-88deg, #fe6434ff 0%, #ff2f2fff 100%);
		}
	}
</style>