|
|
@@ -19,7 +19,7 @@
|
|
|
<image
|
|
|
v-if="activity.coverImage"
|
|
|
class="cover"
|
|
|
- :src="activity.coverImage"
|
|
|
+ :src="getImageUrl(activity.coverImage)"
|
|
|
mode="widthFix"
|
|
|
/>
|
|
|
<image v-else class="cover placeholder-cover" src="/static/default-activity.png" mode="aspectFill" />
|
|
|
@@ -254,7 +254,7 @@
|
|
|
<ContentSharePoster
|
|
|
:show="showPoster"
|
|
|
:title="activity && activity.title"
|
|
|
- :coverImage="activity && activity.coverImage"
|
|
|
+ :coverImage="activity && getImageUrl(activity.coverImage)"
|
|
|
:qrCodeBase64="posterQrCode"
|
|
|
typeLabel="活动推荐"
|
|
|
:dimensionCode="activity && activity.dimensionCode"
|
|
|
@@ -268,6 +268,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getActivityDetail, activityCheckin, cancelActivityRegistration, createActivityOrder, submitActivityFeedback, getActivityFeedbackList, getMyActivityFeedback, getFamilyMembers, getShareQrCode, getMyMembership } from '@/utils/api.js'
|
|
|
+import config from '@/config.js'
|
|
|
import shareMixin from '../../../components/share-mixin.js'
|
|
|
import MpHtml from '@/components/mp-html/mp-html.vue'
|
|
|
import ContentSharePoster from '@/components/ContentSharePoster.vue'
|
|
|
@@ -328,6 +329,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// ===== 工具方法 =====
|
|
|
+ getImageUrl: function(path) {
|
|
|
+ if (!path) return ''
|
|
|
+ if (path.indexOf('http://') === 0 || path.indexOf('https://') === 0) return path
|
|
|
+ return config.API_BASE_URL + path
|
|
|
+ },
|
|
|
checkMemberStatus: function() {
|
|
|
var that = this
|
|
|
getMyMembership().then(function(res) {
|