Blame view
src/pages/refundment/refundment.vue
4.76 KB
45527bbc7 退款 |
1 |
<template> |
bbdb26d05 s |
2 3 4 5 6 7 8 9 10 11 12 13 |
<view class="container" v-bind:style="{height: curheight+'px'}" > <view class="refund" v-for="(items) in refund" :key="items.key" > <view class="detail"> <view class="detail_img"> <image v-bind:src="items.img"></image> |
45527bbc7 退款 |
14 |
</view> |
bbdb26d05 s |
15 16 17 18 19 20 21 |
<view class="detail2"> <view class="detail_name">{{items.name}}</view> <view class="detail_standard">规格:{{items.standard}}</view> <view class="detail_price"> <span>¥{{items.price}}</span> <span>X{{items.number}}</span> </view> |
45527bbc7 退款 |
22 |
</view> |
bbdb26d05 s |
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 |
</view> <view class="refund_price"> <span class="refund_price1">退款金额</span> <span class="refund_price2">¥{{items.refundprice}}</span> </view> <view class="refund_reason"> <span>退款原因</span> <!-- 跳转退款原因详细页 --> <view @click="Jump()">请选择<image src="/static/img/detail/xiala.png"></image> </view> </view> <view class="refund_explain"> <span>退款说明</span> <input placeholder="选填" value="" > </view> <view class="refund_img"> <span class="refund_img1">上传图片</span> <span class="refund_img2">(最多3张)</span> <view> <image v-bind:src="items.refund_img"></image> </view> </view> </view> <view class="button"> <span>提交</span> |
45527bbc7 退款 |
51 |
</view> |
bbdb26d05 s |
52 |
</view> |
45527bbc7 退款 |
53 54 55 |
</template> <script> |
45527bbc7 退款 |
56 |
export default { |
bbdb26d05 s |
57 58 59 60 61 62 63 64 |
//获取浏览器高度 beforeMount(height) { var h = document.documentElement.clientHeight || document.body.clientHeight; this.curheight = h - 44; }, methods: { Jump() { this.$router.push({ path: "refundWays" }); |
45527bbc7 退款 |
65 |
} |
bbdb26d05 s |
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
}, data() { return { curheight: 0, //浏览器高度 refund: [ { key: 0, img: "/static/img/detail/d1.png", name: "商品名称", standard: "玫瑰金/钛合金/防日光防紫外线/超薄超轻", price: 180, number: 1, refundprice: 110, refund_img: "/static/img/detail/refund_img.png" } ] }; } }; |
45527bbc7 退款 |
85 86 87 |
</script> <style lang="scss"> |
bbdb26d05 s |
88 89 90 91 |
.container { background: #f2f2f2; padding-top: 10px; box-sizing: border-box; |
45527bbc7 退款 |
92 |
} |
bbdb26d05 s |
93 94 95 96 97 98 99 100 101 |
.refund { width: 90%; height: 353px; margin: 0 auto; background: #ffffff; box-shadow: 0 0 10px 0 rgba(177, 128, 128, 0.06); border-radius: 8px; padding: 14px; box-sizing: border-box; |
45527bbc7 退款 |
102 |
} |
bbdb26d05 s |
103 104 105 106 107 108 109 110 111 |
.detail { display: flex; justify-content: space-between; font-family: PingFangSC-Regular; margin-bottom: 20px; .detail2 { width: 64%; view { margin-bottom: 8px; |
45527bbc7 退款 |
112 |
} |
bbdb26d05 s |
113 114 115 |
.detail_name { font-size: 14px; color: #333333; |
45527bbc7 退款 |
116 |
} |
bbdb26d05 s |
117 118 119 120 121 122 123 124 125 |
.detail_standard { font-size: 12px; color: #999999; } .detail_price { font-size: 14px; color: #999999; display: flex; justify-content: space-between; |
45527bbc7 退款 |
126 |
} |
bbdb26d05 s |
127 128 129 130 131 132 133 134 |
} .detail_img { width: 188rpx; height: 188rpx; border-radius: 40px; image { width: 100%; height: 100%; |
45527bbc7 退款 |
135 |
} |
bbdb26d05 s |
136 |
} |
45527bbc7 退款 |
137 |
} |
bbdb26d05 s |
138 139 140 141 142 143 |
.refund_explain, .refund_img, .refund_price, .refund_reason { margin-top: 16px; margin-bottom: 16px; |
45527bbc7 退款 |
144 |
} |
bbdb26d05 s |
145 146 147 148 149 150 151 152 153 154 155 156 157 |
.refund_price { font-family: PingFangSC-Semibold; font-size: 14px; color: #333333; letter-spacing: -0.26px; line-height: 18px; .refund_price1 { font-weight: bold; margin-right: 16px; } .refund_price2 { color: #ff6b4a; } |
45527bbc7 退款 |
158 |
} |
bbdb26d05 s |
159 160 161 162 163 164 165 166 |
.refund_reason, .refund_explain span, .refund_img1 { font-family: PingFangSC-Regular; font-size: 12px; color: #333333; letter-spacing: -0.23px; line-height: 18px; |
45527bbc7 退款 |
167 |
} |
bbdb26d05 s |
168 169 170 171 |
.refund_explain { display: flex; justify-content: space-between; align-items: center; |
45527bbc7 退款 |
172 |
} |
bbdb26d05 s |
173 174 175 176 177 178 179 |
.refund_explain input, .refund_img2 { width: 78%; font-family: PingFangSC-Regular; font-size: 12px; color: #b8b8b8; letter-spacing: -0.23px; |
45527bbc7 退款 |
180 |
} |
bbdb26d05 s |
181 182 183 184 185 186 |
.refund_reason { span { margin-right: 20px; } view { display: inline-block; |
45527bbc7 退款 |
187 188 |
font-family: PingFangSC-Regular; font-size: 12px; |
bbdb26d05 s |
189 |
color: #b8b8b8; |
45527bbc7 退款 |
190 |
letter-spacing: -0.23px; |
bbdb26d05 s |
191 192 193 194 195 196 197 |
width: 76%; image { width: 30rpx; height: 26rpx; float: right; } } |
45527bbc7 退款 |
198 |
} |
bbdb26d05 s |
199 200 201 202 203 204 205 206 207 208 209 |
.refund_img { .refund_img1 { margin-right: 10px; } view { margin-top: 20px; width: 66rpx; height: 60rpx; image { width: 100%; height: 100%; |
45527bbc7 退款 |
210 |
} |
bbdb26d05 s |
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
} } a { text-decoration: none; font-family: PingFangSC-Regular; font-size: 12px; color: #b8b8b8; letter-spacing: -0.23px; } .button { width: 100%; height: 112rpx; background: #ff6b4a; display: flex; justify-content: center; align-items: center; position: fixed; bottom: 0; span { color: #ffffff; font-family: PingFangSC-Regular; font-size: 16px; letter-spacing: -0.3px; } |
45527bbc7 退款 |
235 |
} |
45527bbc7 退款 |
236 |
</style> |