|
@@ -7,16 +7,59 @@ definePage({
|
|
|
navigationBarTitleText: '加油',
|
|
navigationBarTitleText: '加油',
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
-function handleClick() {
|
|
|
|
|
- console.log('拉起支付')
|
|
|
|
|
- uni.navigateTo({ url: 'https://static.am.xiaojukeji.com/cf-terminal/oil/thanos-fe-oil/pages/open-energy-h5-pay/index.html?orderId=3521815091009230279&tradeId=20260227c9070e26dcd3a66aa6e022d41b37a4a321538314' })
|
|
|
|
|
-}
|
|
|
|
|
|
|
+const staticUrl = import.meta.env.VITE_STATIC_BASE_URL
|
|
|
|
|
+const tabList = ref([
|
|
|
|
|
+ { label: '距离优先', value: 1 },
|
|
|
|
|
+ { label: '价格从低到高', value: 2 },
|
|
|
|
|
+])
|
|
|
|
|
+const currentTab = ref(1)
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
- <view>
|
|
|
|
|
- <button @click="handleClick">
|
|
|
|
|
- 拉起支付
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <view class="px24rpx py20px">
|
|
|
|
|
+ <view class="w132rpx">
|
|
|
|
|
+ 轮播图展位
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx flex items-center">
|
|
|
|
|
+ <view v-for="item in tabList" :key="item.value" class="mr28rpx rounded-24rpx px16rpx py8rpx text-24rpx" :class="[currentTab === item.value ? 'bg-[var(--them-color)] text-white ' : 'bg-white']" @click="currentTab = item.value">
|
|
|
|
|
+ {{ item.label }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-for="item in 10" :key="item" class="relative mt20rpx rounded-16rpx bg-white p24rpx">
|
|
|
|
|
+ <view class="mt80rpx flex items-center justify-between">
|
|
|
|
|
+ <view class="text-36rpx font-semibold">
|
|
|
|
|
+ 中国石化 | 富源加油站
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="flex items-center text-24rpx">
|
|
|
|
|
+ <image :src="`${staticUrl}/smqjh-jy-dh.png`" class="mr3 h18.34rpx w18.34rpx" /> 1.9km
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx text-#aaa">
|
|
|
|
|
+ 西湖区文三路100号
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt20rpx flex items-center justify-between">
|
|
|
|
|
+ <view class="flex items-center rounded-8rpx bg-#FF4A39 px12rpx py8rpx">
|
|
|
|
|
+ <image :src="`${staticUrl}/smqjh-jy-idicon.png`" class="h30rpx w30rpx" />
|
|
|
|
|
+ <view class="text-22rpx text-white">
|
|
|
|
|
+ 满200前100升半价
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="flex items-center">
|
|
|
|
|
+ <view class="text-28rpx">
|
|
|
|
|
+ 92#
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mx8rpx ml12rpx flex items-center text-#ff4d3a">
|
|
|
|
|
+ 特惠价 <view class="font-semibold">
|
|
|
|
|
+ <text class="text-20rpx">
|
|
|
|
|
+ ¥
|
|
|
|
|
+ </text> <text class="text-36rpx">
|
|
|
|
|
+ 7.36L
|
|
|
|
|
+ </text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <image :src="`${staticUrl}/smqjh-jy-cz.png`" class="absolute left-0 top-0 h80rpx w234rpx" />
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|