mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 23:26:44 +08:00
开门红方案
This commit is contained in:
@@ -27,3 +27,12 @@ export function getComPerformance(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 开门红方案图片查询
|
||||
export function getSchemePics(data) {
|
||||
return request({
|
||||
url: getUrl('/app/code/getCodeValue', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ const PerformanceReport = () => import('@/views/ebiz/goodStart/PerformanceReport
|
||||
const Prefecture = () => import('@/views/ebiz/goodStart/Prefecture')
|
||||
const Treasure = () => import('@/views/ebiz/goodStart/Treasure')
|
||||
const TreasureDetail = () => import('@/views/ebiz/goodStart/TreasureDetail')
|
||||
const GoodStartScheme = () => import('@/views/ebiz/goodStart/GoodStartScheme')
|
||||
|
||||
const spreadParams = function(route) {
|
||||
const params = {}
|
||||
@@ -43,5 +44,10 @@ export default [
|
||||
name: 'TreasureDetail',
|
||||
component: TreasureDetail,
|
||||
props: route => spreadParams(route)
|
||||
},
|
||||
{
|
||||
path: '/goodStart/goodStartScheme',
|
||||
name: 'GoodStartScheme',
|
||||
component: GoodStartScheme
|
||||
}
|
||||
]
|
||||
|
||||
54
src/views/ebiz/goodStart/GoodStartScheme.vue
Normal file
54
src/views/ebiz/goodStart/GoodStartScheme.vue
Normal file
@@ -0,0 +1,54 @@
|
||||
<template>
|
||||
<div class="good-start-scheme bg-white">
|
||||
<van-grid>
|
||||
<van-grid-item v-for="(pic, i) in pics" :key="i">
|
||||
<van-image height="200" :src="$assetsUrl + pic.picUrl" @click="prevImg(pic)" />
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Grid, GridItem, Image as VanImage, ImagePreview } from 'vant'
|
||||
import { getSchemePics } from '@/api/ebiz/goodStart'
|
||||
export default {
|
||||
components: {
|
||||
[Grid.name]: Grid,
|
||||
[GridItem.name]: GridItem,
|
||||
[VanImage.name]: VanImage,
|
||||
[ImagePreview.name]: ImagePreview
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
pics: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getSchemePics()
|
||||
},
|
||||
methods: {
|
||||
async getSchemePics() {
|
||||
const param = { operateType: 'goodStart_scheme' }
|
||||
const result = await getSchemePics(param)
|
||||
if (result.result === '0') {
|
||||
this.pics = result.content
|
||||
} else {
|
||||
this.$toast(result.resultMessage)
|
||||
}
|
||||
},
|
||||
prevImg(pic) {
|
||||
ImagePreview([this.$assetsUrl + pic.picUrl])
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.good-start-scheme {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/deep/ .van-grid-item__content {
|
||||
padding: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
{ name: '上头条', icon: 'images/goodStart/topOne.png', route: '/congratulation/congratulationTop' },
|
||||
{ name: '大单榜', icon: 'images/goodStart/bigOrder.png', route: '/congratulation/congratulationList' },
|
||||
{ name: '微信头像生成器', icon: 'images/goodStart/wechat.png', route: '/my/userWxHead2' },
|
||||
{ name: '开门红方案', icon: 'images/goodStart/goodStart.png', route: '/goodStart/treasure' },
|
||||
{ name: '开门红方案', icon: 'images/goodStart/goodStart.png', route: '/goodStart/goodStartScheme' },
|
||||
{ name: '百宝箱', icon: 'images/goodStart/treasure.png', route: '/goodStart/treasure' }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ export default {
|
||||
async getMenus() {
|
||||
const param = { operateType: 'treasure_menus' }
|
||||
const result = await getTreasureMenus(param)
|
||||
console.dir(result)
|
||||
if (result.result === '0') {
|
||||
this.menus = result.content
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user