|
@@ -7,17 +7,15 @@
|
|
|
}"
|
|
}"
|
|
|
@touchstart="touchstart"
|
|
@touchstart="touchstart"
|
|
|
@touchend="touchend"
|
|
@touchend="touchend"
|
|
|
- data-method="detail"
|
|
|
|
|
>
|
|
>
|
|
|
<view class="flex-between">
|
|
<view class="flex-between">
|
|
|
<view>
|
|
<view>
|
|
|
<view class="flex flex-align-center">
|
|
<view class="flex flex-align-center">
|
|
|
- <view class="fs-32 fw-bold">{{ title }}</view>
|
|
|
|
|
- <view class="coupon-box ml-5"
|
|
|
|
|
|
|
+ <view class="fs-32 fw-bold" @click.stop="detail">{{ title }}</view>
|
|
|
|
|
+ <view class="coupon-box ml-5" @click.stop="toCouponCenter"
|
|
|
v-if="activityList&&activityList.length>0"
|
|
v-if="activityList&&activityList.length>0"
|
|
|
@touchstart="touchstart"
|
|
@touchstart="touchstart"
|
|
|
@touchend.stop="touchend"
|
|
@touchend.stop="touchend"
|
|
|
- data-method="toCouponCenter"
|
|
|
|
|
>
|
|
>
|
|
|
<!-- <image src="/static/images/coupon-center.png" mode="widthFix" style="width:42rpx"/>-->
|
|
<!-- <image src="/static/images/coupon-center.png" mode="widthFix" style="width:42rpx"/>-->
|
|
|
<text>领券</text>
|
|
<text>领券</text>
|
|
@@ -28,7 +26,7 @@
|
|
|
<view v-if="tag">
|
|
<view v-if="tag">
|
|
|
<view class="flex-center tag">{{ tagMap[tag] }}</view>
|
|
<view class="flex-center tag">{{ tagMap[tag] }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else class="fs-22" style="color: rgba(0, 0, 0, 0.5)"
|
|
|
|
|
|
|
+ <view v-else @click.stop="detail" class="fs-22" style="color: rgba(0, 0, 0, 0.5)"
|
|
|
>{{ address }} | {{ distance }}km
|
|
>{{ address }} | {{ distance }}km
|
|
|
</view
|
|
</view
|
|
|
>
|
|
>
|
|
@@ -43,7 +41,7 @@
|
|
|
<text>导航</text>
|
|
<text>导航</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="mt-20 flex">
|
|
|
|
|
|
|
+ <view class="mt-20 flex" @click.stop="detail">
|
|
|
<view class="status flex-column flex-grow">
|
|
<view class="status flex-column flex-grow">
|
|
|
<view class="flex-align-center" v-if="price">
|
|
<view class="flex-align-center" v-if="price">
|
|
|
<text class="fs-32 fw-600" style="color: var(--color-warning)">{{
|
|
<text class="fs-32 fw-600" style="color: var(--color-warning)">{{
|
|
@@ -114,13 +112,16 @@
|
|
|
>
|
|
>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <station-coupon ref="station_coupon_ref"></station-coupon>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import {addCollectList, fetchCollectList} from "../../api/user";
|
|
import {addCollectList, fetchCollectList} from "../../api/user";
|
|
|
|
|
+import StationCoupon from "@/components/station-coupon/station-coupon.vue";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ components: {StationCoupon},
|
|
|
props: {
|
|
props: {
|
|
|
sId: {
|
|
sId: {
|
|
|
type: String,
|
|
type: String,
|
|
@@ -182,6 +183,7 @@ export default {
|
|
|
// uni.navigateTo({
|
|
// uni.navigateTo({
|
|
|
// url: `/pages-charge/coupon-center/coupon-center?title=${this.title}&id=${this.sId}`,
|
|
// url: `/pages-charge/coupon-center/coupon-center?title=${this.title}&id=${this.sId}`,
|
|
|
// });
|
|
// });
|
|
|
|
|
+ this.$refs.station_coupon_ref?.open(this.sId);
|
|
|
},
|
|
},
|
|
|
detail() {
|
|
detail() {
|
|
|
const {address, latitude, longitude, activityList} = this;
|
|
const {address, latitude, longitude, activityList} = this;
|
|
@@ -234,9 +236,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
touchend(e: any) {
|
|
touchend(e: any) {
|
|
|
const current = new Date().getTime();
|
|
const current = new Date().getTime();
|
|
|
- if (current - this.touchtime < 100) {
|
|
|
|
|
- this[e.currentTarget.dataset.method]();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (current - this.touchtime < 100) {
|
|
|
|
|
+ // this[e.currentTarget.dataset.method]();
|
|
|
|
|
+ // }
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
@@ -309,53 +311,6 @@ export default {
|
|
|
font-size: 18rpx;
|
|
font-size: 18rpx;
|
|
|
border-radius: 4rpx;
|
|
border-radius: 4rpx;
|
|
|
padding: 0rpx 6rpx;
|
|
padding: 0rpx 6rpx;
|
|
|
-
|
|
|
|
|
- /* background: linear-gradient(
|
|
|
|
|
- -135deg,
|
|
|
|
|
- transparent 12rpx,
|
|
|
|
|
- #fff 22rpx,
|
|
|
|
|
- #dd524d 100%
|
|
|
|
|
- )
|
|
|
|
|
- top right,
|
|
|
|
|
- linear-gradient(
|
|
|
|
|
- -45deg,
|
|
|
|
|
- transparent 12rpx,
|
|
|
|
|
- #fff 22rpx,
|
|
|
|
|
- #dd524d 100%
|
|
|
|
|
- )
|
|
|
|
|
- bottom right;
|
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
|
- background-repeat: no-repeat;*/
|
|
|
|
|
-
|
|
|
|
|
- /*flex-shrink: 0;
|
|
|
|
|
- background-size: 70% 70%;
|
|
|
|
|
- background-image: radial-gradient(
|
|
|
|
|
- circle at 100% 100%,
|
|
|
|
|
- transparent 0,
|
|
|
|
|
- transparent 12px,
|
|
|
|
|
- #2179f5 13px
|
|
|
|
|
- ),
|
|
|
|
|
- radial-gradient(
|
|
|
|
|
- circle at 0 0,
|
|
|
|
|
- transparent 0,
|
|
|
|
|
- transparent 12px,
|
|
|
|
|
- #2179f5 13px
|
|
|
|
|
- ),
|
|
|
|
|
- radial-gradient(
|
|
|
|
|
- circle at 100% 0,
|
|
|
|
|
- transparent 0,
|
|
|
|
|
- transparent 12px,
|
|
|
|
|
- #2179f5 13px
|
|
|
|
|
- ),
|
|
|
|
|
- radial-gradient(
|
|
|
|
|
- circle at 0 100%,
|
|
|
|
|
- transparent 0,
|
|
|
|
|
- transparent 12px,
|
|
|
|
|
- #2179f5 13px
|
|
|
|
|
- );
|
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
|
- background-position: right bottom, left top, right top, left bottom;
|
|
|
|
|
-*/
|
|
|
|
|
text {
|
|
text {
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
}
|
|
}
|