|
@@ -1,8 +1,11 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="act-deltail-main" :style="{paddingBottom: `${footerHeight}rpx`}">
|
|
|
|
|
|
|
+ <view class="act-deltail-main"
|
|
|
|
|
+ :style="{paddingBottom: `${footerHeight}rpx`}">
|
|
|
<network-error />
|
|
<network-error />
|
|
|
<view class="over-view">
|
|
<view class="over-view">
|
|
|
- <image class="detail-img" :src="detail.imgs" mode="aspectFill"></image>
|
|
|
|
|
|
|
+ <image class="detail-img"
|
|
|
|
|
+ :src="detail.imgs"
|
|
|
|
|
+ mode="aspectFill"></image>
|
|
|
<view class="detail-over">
|
|
<view class="detail-over">
|
|
|
<text class="detail-title u-line-2 u-font-40 line-56 u-tips-color bold">【{{detail.activity_type | activityTyepFilter}}】{{detail.title}}</text>
|
|
<text class="detail-title u-line-2 u-font-40 line-56 u-tips-color bold">【{{detail.activity_type | activityTyepFilter}}】{{detail.title}}</text>
|
|
|
<view class="u-flex u-col-bottom u-p-t-24 u-p-b-14 u-border-bottom">
|
|
<view class="u-flex u-col-bottom u-p-t-24 u-p-b-14 u-border-bottom">
|
|
@@ -21,7 +24,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="u-flex u-row-between u-p-t-22 line-34">
|
|
<view class="u-flex u-row-between u-p-t-22 line-34">
|
|
|
<text class="u-content-color">{{detail.join_number}}已参与</text>
|
|
<text class="u-content-color">{{detail.join_number}}已参与</text>
|
|
|
- <button class="share-btn u-primary-color u-font-24 line-34" open-type="share">分享活动</button>
|
|
|
|
|
|
|
+ <button class="share-btn u-primary-color u-font-24 line-34"
|
|
|
|
|
+ open-type="share">分享活动</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -30,7 +34,8 @@
|
|
|
<view class="u-flex">
|
|
<view class="u-flex">
|
|
|
<view class="u-flex-1 u-p-r-32">
|
|
<view class="u-flex-1 u-p-r-32">
|
|
|
<text class="shop-name u-font-28 u-tips-color line-40 u-line-1">【{{detail.plat_type | platFilter}}】{{detail.shop_name}}</text>
|
|
<text class="shop-name u-font-28 u-tips-color line-40 u-line-1">【{{detail.plat_type | platFilter}}】{{detail.shop_name}}</text>
|
|
|
- <view class="u-flex" @click="openMap">
|
|
|
|
|
|
|
+ <view class="u-flex"
|
|
|
|
|
+ @click="openMap">
|
|
|
<view class="icon-map-wh icon-map"></view>
|
|
<view class="icon-map-wh icon-map"></view>
|
|
|
<view class="u-content-color u-m-l-8 u-m-r-16">{{(detail.distance / 1000).toFixed(1)}}km</view>
|
|
<view class="u-content-color u-m-l-8 u-m-r-16">{{(detail.distance / 1000).toFixed(1)}}km</view>
|
|
|
<text class="shop-address u-flex-1 u-content-color u-line-1">{{detail.shop_address}}</text>
|
|
<text class="shop-address u-flex-1 u-content-color u-line-1">{{detail.shop_address}}</text>
|
|
@@ -38,13 +43,15 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="divider-right"></view>
|
|
<view class="divider-right"></view>
|
|
|
<block v-if="detail.plat_type === 8">
|
|
<block v-if="detail.plat_type === 8">
|
|
|
- <view class="to-btn u-p-l-28" @click="openOtherApplte(8)">
|
|
|
|
|
|
|
+ <view class="to-btn u-p-l-28"
|
|
|
|
|
+ @click="openOtherApplte(8)">
|
|
|
<view class="icon-mt-wh icon-elm"></view>
|
|
<view class="icon-mt-wh icon-elm"></view>
|
|
|
<view class="u-m-t-2 u-font-22 u-content-color line-32">打开饿了么</view>
|
|
<view class="u-m-t-2 u-font-22 u-content-color line-32">打开饿了么</view>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-if="detail.plat_type === 9">
|
|
<block v-if="detail.plat_type === 9">
|
|
|
- <view class="to-btn u-p-l-28" @click="openOtherApplte(9)">
|
|
|
|
|
|
|
+ <view class="to-btn u-p-l-28"
|
|
|
|
|
+ @click="openOtherApplte(9)">
|
|
|
<view class="icon-mt-wh icon-mt"></view>
|
|
<view class="icon-mt-wh icon-mt"></view>
|
|
|
<view class="u-m-t-2 u-font-22 u-content-color line-32">打开美团</view>
|
|
<view class="u-m-t-2 u-font-22 u-content-color line-32">打开美团</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -56,7 +63,8 @@
|
|
|
<view class="u-flex">
|
|
<view class="u-flex">
|
|
|
<text class="u-flex-1 u-content-color line-40 u-line-2 u-p-r-32">{{businessHours}}营业时间可用(当天参与报名,需当天提交资料才能有效返款)</text>
|
|
<text class="u-flex-1 u-content-color line-40 u-line-2 u-p-r-32">{{businessHours}}营业时间可用(当天参与报名,需当天提交资料才能有效返款)</text>
|
|
|
<view class="divider-right"></view>
|
|
<view class="divider-right"></view>
|
|
|
- <button class="to-btn contact-btn u-p-l-28" open-type="contact">
|
|
|
|
|
|
|
+ <button class="to-btn contact-btn u-p-l-28"
|
|
|
|
|
+ open-type="contact">
|
|
|
<view class="icon-phone-wh icon-phone"></view>
|
|
<view class="icon-phone-wh icon-phone"></view>
|
|
|
<view class="u-m-t-2 u-font-22 u-content-color line-32">联系客服</view>
|
|
<view class="u-m-t-2 u-font-22 u-content-color line-32">联系客服</view>
|
|
|
</button>
|
|
</button>
|
|
@@ -64,15 +72,14 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="act-desc u-m-t-16">
|
|
<view class="act-desc u-m-t-16">
|
|
|
<view class="act-tabs u-border-bottom">
|
|
<view class="act-tabs u-border-bottom">
|
|
|
- <u-tabs
|
|
|
|
|
- :is-scroll="false"
|
|
|
|
|
- :list="[{name: '活动规则'}, {name: '评价要求'}]"
|
|
|
|
|
- :current="currentTab"
|
|
|
|
|
- height="104"
|
|
|
|
|
- font-size="30"
|
|
|
|
|
- active-color="#FF6632"
|
|
|
|
|
- inactive-color="#111111"
|
|
|
|
|
- :bar-style="{
|
|
|
|
|
|
|
+ <u-tabs :is-scroll="false"
|
|
|
|
|
+ :list="[{name: '活动规则'}, {name: '评价要求'}]"
|
|
|
|
|
+ :current="currentTab"
|
|
|
|
|
+ height="104"
|
|
|
|
|
+ font-size="30"
|
|
|
|
|
+ active-color="#FF6632"
|
|
|
|
|
+ inactive-color="#111111"
|
|
|
|
|
+ :bar-style="{
|
|
|
bottom: '-4rpx',
|
|
bottom: '-4rpx',
|
|
|
marginLeft: '-40rpx',
|
|
marginLeft: '-40rpx',
|
|
|
width: '120rpx',
|
|
width: '120rpx',
|
|
@@ -80,18 +87,20 @@
|
|
|
borderRadius: 0,
|
|
borderRadius: 0,
|
|
|
backgroundColor: 'linear-gradient(270deg, #FFB76B 0%, #FE4028 100%)'
|
|
backgroundColor: 'linear-gradient(270deg, #FFB76B 0%, #FE4028 100%)'
|
|
|
}"
|
|
}"
|
|
|
- @change="changeTab"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @change="changeTab">
|
|
|
</u-tabs>
|
|
</u-tabs>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="u-m-b-18 u-p-t-32 u-p-b-32">
|
|
<view class="u-m-b-18 u-p-t-32 u-p-b-32">
|
|
|
<block v-if="currentTab === 0">
|
|
<block v-if="currentTab === 0">
|
|
|
- <block v-for="(item, index) in detail.content" :key="index">
|
|
|
|
|
- <img-text :value="item.content" :type="item.contentType"></img-text>
|
|
|
|
|
|
|
+ <block v-for="(item, index) in detail.content"
|
|
|
|
|
+ :key="index">
|
|
|
|
|
+ <img-text :value="item.content"
|
|
|
|
|
+ :type="item.contentType"></img-text>
|
|
|
</block>
|
|
</block>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
- <img-text :value="detail.requirement" type="1"></img-text>
|
|
|
|
|
|
|
+ <img-text :value="detail.requirement"
|
|
|
|
|
+ type="1"></img-text>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -104,12 +113,15 @@
|
|
|
<view class="u-font-20 u-content-color line-28">{{remainingTime}}</view>
|
|
<view class="u-font-20 u-content-color line-28">{{remainingTime}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<block v-if="status * 1 === 1">
|
|
<block v-if="status * 1 === 1">
|
|
|
- <button class="sign-up-btn u-font-30 bold line-42" @click="join">我要报名</button>
|
|
|
|
|
|
|
+ <button class="sign-up-btn u-font-30 bold line-42"
|
|
|
|
|
+ @click="join">我要报名</button>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-if="status * 1 === 2">
|
|
<block v-if="status * 1 === 2">
|
|
|
<view class="u-flex">
|
|
<view class="u-flex">
|
|
|
- <button class="canel-btn u-font-28 line-40" @click="cancelJoin">取消报名</button>
|
|
|
|
|
- <button class="submit-btn u-font-28 line-40 u-m-l-16" @click="toSubmiteOrder">提交结果</button>
|
|
|
|
|
|
|
+ <button class="canel-btn u-font-28 line-40"
|
|
|
|
|
+ @click="cancelJoin">取消报名</button>
|
|
|
|
|
+ <button class="submit-btn u-font-28 line-40 u-m-l-16"
|
|
|
|
|
+ @click="toSubmiteOrder">提交结果</button>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
</block>
|
|
</block>
|
|
@@ -126,19 +138,22 @@
|
|
|
<view class="u-font-20 u-content-color line-28">返利金额将在第二日到账</view>
|
|
<view class="u-font-20 u-content-color line-28">返利金额将在第二日到账</view>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
- <button class="sign-up-btn u-font-30 bold line-42" disabled>已提交</button>
|
|
|
|
|
|
|
+ <button class="sign-up-btn u-font-30 bold line-42"
|
|
|
|
|
+ disabled>已提交</button>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-if="status * 1 === 5">
|
|
<block v-if="status * 1 === 5">
|
|
|
<view class="u-flex-1">
|
|
<view class="u-flex-1">
|
|
|
<view class="line-34 bold">审核驳回:</view>
|
|
<view class="line-34 bold">审核驳回:</view>
|
|
|
- <view class="u-font-20 u-content-color line-28">审核驳回理由审核驳回理由审核驳回理由</view>
|
|
|
|
|
|
|
+ <view class="u-font-20 u-content-color line-28">{{detail.reject_reason}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-if="status * 1 === 6">
|
|
<block v-if="status * 1 === 6">
|
|
|
- <button class="end-btn u-m-l-12" disabled>已结束</button>
|
|
|
|
|
|
|
+ <button class="end-btn u-m-l-12"
|
|
|
|
|
+ disabled>已结束</button>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-if="status * 1 === 7">
|
|
<block v-if="status * 1 === 7">
|
|
|
- <button class="end-btn u-m-l-12" disabled>已抢光</button>
|
|
|
|
|
|
|
+ <button class="end-btn u-m-l-12"
|
|
|
|
|
+ disabled>已抢光</button>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
</fixed-bottom>
|
|
</fixed-bottom>
|
|
@@ -162,6 +177,7 @@ export default {
|
|
|
footerHeight: 0,
|
|
footerHeight: 0,
|
|
|
currentTab: 0,
|
|
currentTab: 0,
|
|
|
activityId: '',
|
|
activityId: '',
|
|
|
|
|
+ recordId: '',
|
|
|
detail: {
|
|
detail: {
|
|
|
imgs: '',
|
|
imgs: '',
|
|
|
activity_type: '',
|
|
activity_type: '',
|
|
@@ -234,6 +250,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
onLoad (options) {
|
|
onLoad (options) {
|
|
|
this.activityId = options.id
|
|
this.activityId = options.id
|
|
|
|
|
+ this.recordId = options.record_id
|
|
|
},
|
|
},
|
|
|
onShow () {
|
|
onShow () {
|
|
|
if (!this.userId) {
|
|
if (!this.userId) {
|
|
@@ -298,6 +315,9 @@ export default {
|
|
|
lng: location.longitude,
|
|
lng: location.longitude,
|
|
|
lat: location.latitude
|
|
lat: location.latitude
|
|
|
}
|
|
}
|
|
|
|
|
+ if (this.recordId) {
|
|
|
|
|
+ params.record_id = this.recordId
|
|
|
|
|
+ }
|
|
|
const { code, data } = await getActivityDetail(params)
|
|
const { code, data } = await getActivityDetail(params)
|
|
|
if (code === 200) {
|
|
if (code === 200) {
|
|
|
this.detail = data
|
|
this.detail = data
|
|
@@ -414,7 +434,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .act-able-time, .shop-info {
|
|
|
|
|
|
|
+ .act-able-time,
|
|
|
|
|
+ .shop-info {
|
|
|
padding: 32px 40px 28px;
|
|
padding: 32px 40px 28px;
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
.shop-name {
|
|
.shop-name {
|
|
@@ -442,7 +463,9 @@ export default {
|
|
|
width: 20px;
|
|
width: 20px;
|
|
|
height: 24px;
|
|
height: 24px;
|
|
|
}
|
|
}
|
|
|
- .icon-phone-wh, .icon-elm-wh, .icon-mt-wh {
|
|
|
|
|
|
|
+ .icon-phone-wh,
|
|
|
|
|
+ .icon-elm-wh,
|
|
|
|
|
+ .icon-mt-wh {
|
|
|
width: 56px;
|
|
width: 56px;
|
|
|
height: 56px;
|
|
height: 56px;
|
|
|
}
|
|
}
|
|
@@ -469,7 +492,8 @@ export default {
|
|
|
background-color: $u-type-primary;
|
|
background-color: $u-type-primary;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
}
|
|
}
|
|
|
- .canel-btn, .submit-btn {
|
|
|
|
|
|
|
+ .canel-btn,
|
|
|
|
|
+ .submit-btn {
|
|
|
padding: 16px 40px;
|
|
padding: 16px 40px;
|
|
|
width: 192px;
|
|
width: 192px;
|
|
|
height: 72px;
|
|
height: 72px;
|
|
@@ -480,7 +504,7 @@ export default {
|
|
|
color: $u-type-primary;
|
|
color: $u-type-primary;
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
&::after {
|
|
&::after {
|
|
|
- content: "";
|
|
|
|
|
|
|
+ content: '';
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
width: 200%;
|
|
width: 200%;
|
|
@@ -504,8 +528,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
button[disabled] {
|
|
button[disabled] {
|
|
|
- color: #fff!important;
|
|
|
|
|
- background-color: #D3D4D5!important;
|
|
|
|
|
|
|
+ color: #fff !important;
|
|
|
|
|
+ background-color: #d3d4d5 !important;
|
|
|
}
|
|
}
|
|
|
button[disabled]::after {
|
|
button[disabled]::after {
|
|
|
border-color: transparent;
|
|
border-color: transparent;
|
|
@@ -513,7 +537,7 @@ button[disabled]::after {
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|
|
|
<style >
|
|
<style >
|
|
|
- .act-tabs >>> .u-tab-item + .u-tab-item {
|
|
|
|
|
- margin-left: 42px;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+.act-tabs >>> .u-tab-item + .u-tab-item {
|
|
|
|
|
+ margin-left: 42px;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|