init
This commit is contained in:
@@ -83,43 +83,13 @@
|
||||
<view class="title">增收赋能咨询类</view>
|
||||
</view>
|
||||
<scroll-view class="the-flex" style="padding-top: 0;" scroll-x="true" scroll-with-animation="true"
|
||||
:scroll-into-view='defaultViewId' @click="onToast()">
|
||||
<view class="the-flex-item">
|
||||
<view class="cover"
|
||||
:style="'background-image: url(' + require('@/static/synthesize/img_07.png') + ');'"></view>
|
||||
<view class="title nowrap">巅峰销售思维</view>
|
||||
<view class="price nowrap"><text>¥</text>2980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover"
|
||||
:style="'background-image: url(' + require('@/static/synthesize/img_08.png') + ');'"></view>
|
||||
<view class="title nowrap">团队系统思维</view>
|
||||
<view class="price nowrap"><text>¥</text>3980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover"
|
||||
:style="'background-image: url(' + require('@/static/synthesize/img_09.png') + ');'"></view>
|
||||
<view class="title nowrap">领袖演说思维</view>
|
||||
<view class="price nowrap"><text>¥</text>4980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover"
|
||||
:style="'background-image: url(' + require('@/static/synthesize/img_10.png') + ');'"></view>
|
||||
<view class="title nowrap">卓越领袖能量思维</view>
|
||||
<view class="price nowrap"><text>¥</text>5980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover"
|
||||
:style="'background-image: url(' + require('@/static/synthesize/img_11.png') + ');'"></view>
|
||||
<view class="title nowrap">激发内在无限潜能</view>
|
||||
<view class="price nowrap"><text>¥</text>9980</view>
|
||||
</view>
|
||||
<view class="the-flex-item">
|
||||
<view class="cover"
|
||||
:style="'background-image: url(' + require('@/static/synthesize/img_12.png') + ');'"></view>
|
||||
<view class="title nowrap">其他赋能培训会议</view>
|
||||
<view class="price nowrap">价格另议</view>
|
||||
</view>
|
||||
:scroll-into-view='defaultViewId'>
|
||||
<view class="the-flex-item" v-for="(item, index) in empowerArr" :key="index" @click="onEmpower(item.id)">
|
||||
<view class="cover" :style="'background-image: url(' + item.cover + ');'"></view>
|
||||
<view class="title nowrap">{{item.title}}</view>
|
||||
<view class="price nowrap"><text>¥</text>{{item.price}}</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 弹窗 -->
|
||||
@@ -146,7 +116,8 @@
|
||||
<script>
|
||||
import {
|
||||
region
|
||||
} from '@/apis/interfaces/address.js'
|
||||
} from '@/apis/interfaces/address.js'
|
||||
import { lists } from '@/apis/interfaces/empower.js'
|
||||
import {
|
||||
categories,
|
||||
jf,
|
||||
@@ -177,21 +148,41 @@
|
||||
appMenus: {
|
||||
cases: [],
|
||||
service: []
|
||||
}
|
||||
},
|
||||
// 增收赋能列表
|
||||
empowerArr: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getCategory()
|
||||
this.getJf()
|
||||
this.getIndex()
|
||||
// 增收赋能
|
||||
this.getEmpower()
|
||||
},
|
||||
methods: {
|
||||
onToast() {
|
||||
uni.showToast({
|
||||
title: '即将开放,敬请期待',
|
||||
icon: 'none'
|
||||
// 查看增收赋能详情
|
||||
onEmpower(id) {
|
||||
this.$Router.push({
|
||||
name: 'EmpowerInfo',
|
||||
params: {
|
||||
id
|
||||
}
|
||||
})
|
||||
},
|
||||
// 增收赋能接口
|
||||
getEmpower() {
|
||||
lists().then(res => {
|
||||
this.empowerArr = res;
|
||||
console.log(res)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 获取金法列表
|
||||
getJf() {
|
||||
let params = {
|
||||
|
||||
Reference in New Issue
Block a user