pointsDetaile.vue
2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<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>