初始化万家商超用户端仓库
This commit is contained in:
180
pages/hd/eventDetails/eventDetails.vue
Normal file
180
pages/hd/eventDetails/eventDetails.vue
Normal file
@ -0,0 +1,180 @@
|
||||
<template>
|
||||
<view class="page" :style="themeColor">
|
||||
<view class="flex benben-position-layout flex flex-wrap align-center eventDetails_flex_0"
|
||||
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
|
||||
<view class='flex flex-wrap align-center justify-between flex-sub eventDetails_fd0_0'>
|
||||
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
|
||||
<text class='fu-iconfont2 eventDetails_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
|
||||
data-url="1"></text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-stretch justify-center flex-sub'>
|
||||
<text class='eventDetails_fd0_0_c1_c0'>{{name}}</text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center eventDetails_fd0_0_c2'>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
|
||||
<!---flex布局flex布局开始-->
|
||||
<view class="flex benben-flex-layout flex-wrap align-center eventDetails_flex_1">
|
||||
<jyf-parser class='eventDetails_fd1_0' :html="parser | richTextFormat">
|
||||
</jyf-parser>
|
||||
</view>
|
||||
|
||||
<!---flex布局flex布局结束-->
|
||||
<view class="flex flex-direction flex-wrap align-center benben-position-layout flex eventDetails_flex_2">
|
||||
<button class='eventDetails_fd2_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dpxq/storeDetails/storeDetails?id=${sid}`">进店看看</button>
|
||||
|
||||
</view>
|
||||
<view :style="{height: '128rpx'}"></view>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
components: {},
|
||||
|
||||
|
||||
data() {
|
||||
return {
|
||||
id: "",
|
||||
name: "",
|
||||
parser: '',
|
||||
sid: ''
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
themeColor() {
|
||||
return this.$store.getters.themeColor
|
||||
},
|
||||
|
||||
},
|
||||
watch: {},
|
||||
onLoad(options) {
|
||||
let {
|
||||
id,
|
||||
name
|
||||
} = options
|
||||
if (id !== undefined) this.id = id
|
||||
if (name !== undefined) this.name = name
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
onReady() {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.getPromotionDetail();
|
||||
},
|
||||
onHide() {
|
||||
|
||||
},
|
||||
onResize() {
|
||||
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
onReachBottom(e) {
|
||||
|
||||
},
|
||||
onPageScroll(e) {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getPromotionDetail() {
|
||||
this.$api.post(global.apiUrls.getPromotionDetail, {
|
||||
aid: this.id
|
||||
})
|
||||
.then(res => {
|
||||
if (res.data.code == 1) {
|
||||
this.sid = res.data.data.store_id;
|
||||
this.parser = res.data.data.content;
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
width: 100vw;
|
||||
overflow-x: hidden;
|
||||
min-height: calc(100vh - var(--window-bottom));
|
||||
background: rgba(255, 255, 255, 1);
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.eventDetails_flex_0 {
|
||||
background: #fff;
|
||||
width: 750rpx;
|
||||
height: 88rpx;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
top: 0rpx;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.eventDetails_fd0_0_c2 {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.eventDetails_fd0_0_c1_c0 {
|
||||
font-size: 36rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 88rpx;
|
||||
}
|
||||
|
||||
.eventDetails_fd0_0_c0_c0 {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 88rpx;
|
||||
}
|
||||
|
||||
.eventDetails_fd0_0 {
|
||||
margin: 0rpx 32rpx 0rpx 32rpx;
|
||||
}
|
||||
|
||||
.eventDetails_flex_1 {
|
||||
padding: 32rpx 32rpx 0rpx 32rpx;
|
||||
}
|
||||
|
||||
::v-deep .eventDetails_fd1_0 {
|
||||
background: rgba(246, 247, 249, 1);
|
||||
width: 100%;
|
||||
background-size: 100% auto !important;
|
||||
padding: 32rpx 24rpx 32rpx 24rpx;
|
||||
}
|
||||
|
||||
.eventDetails_flex_2 {
|
||||
padding-top: 32rpx;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
width: 750rpx;
|
||||
height: 148rpx;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
bottom: calc(0rpx + var(--window-bottom));
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.eventDetails_fd2_0 {
|
||||
background: rgba(255, 147, 0, 1);
|
||||
border-radius: 44rpx 44rpx 44rpx 44rpx;
|
||||
font-size: 32rpx;
|
||||
color: #fff;
|
||||
width: 686rpx;
|
||||
height: 88rpx;
|
||||
line-height: 88rpx;
|
||||
font-weight: 400;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user