Commit 3318ab07 by yuzhenWang

修改合并1

parents 4efd9f3d 4ee43272
......@@ -27,8 +27,10 @@
<view class="productBox">
<view class="productList" :style="{marginTop}">
<view class="tabBox">
<view :class="{'actived': courseClassify==4}" @click="courseClassify=4;courseList()"><text>咨询产品</text></view>
<view :class="{'actived': courseClassify==3}" @click="courseClassify=3;courseList()"><text>规划产品</text></view>
<!-- @click="courseClassify=4;courseList()" -->
<view :class="{'actived': courseClassify==4}" @click="transform('consult')"><text>咨询产品</text></view>
<!-- @click="courseClassify=3;courseList()" -->
<view :class="{'actived': courseClassify==3}" @click="transform('plan')"><text>规划产品</text></view>
</view>
<view class="productItem" v-for="item in localCourseInfos" :key="item.fileId" >
<view class="top" @click="goDetail(item)">
......@@ -206,6 +208,15 @@
}
},
methods:{
transform(value){
if(value == 'consult'){
this.courseClassify = 4
}else if(value == 'plan'){
this.courseClassify = 3
}
this.$emit('changeCourseClassify',this.courseClassify)
this.courseList()
},
gotoJoinPartner(){
dataHandling.pocessTracking(
'点击',
......
......@@ -64,7 +64,11 @@
</view>
</view> -->
<view class="productList" v-if="cffpCourseInfos.length>0">
<courselist :showFlag="false" :cffpCourseInfos="cffpCourseInfos"></courselist>
<courselist
:showFlag="false"
:cffpCourseInfos="cffpCourseInfos"
@changeCourseClassify="changeCourseClassify"
></courselist>
<view class="productListBox">
<!-- <view class="productListItem" v-for="item in cffpCourseInfos" :key="item.fileId" @click="goDetail(item)"> -->
......@@ -225,6 +229,7 @@
export default {
data() {
return {
productType: 4,
partnerStatistic:{}, //申请加盟统计
showSearch: true,
searchQuery: '',
......@@ -361,8 +366,11 @@
url: `/pages/courseDetail/courseDetail?fileId=${this.productItem.fileId}`
});
}
},
changeCourseClassify(val){
this.productType = val
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
......@@ -554,7 +562,8 @@
},
courseList() {
const param = {
queryName: this.queryName
queryName: this.queryName,
courseClassify: this.productType
}
api.courseList(param).then(res => {
if (res['success']) {
......@@ -571,6 +580,18 @@
}
})
},
getOneProduct() {
api.courseList().then(res => {
if (res['success']) {
let result = res['data']['data'];
if(result.length>0){
result.forEach(item=>{
item.coursePrice =Number(item.coursePrice).toFixed(2) || '0.00'
})
}
}
})
},
tokefu() {
let url = 'http://q.url.cn/abkzV9?_type=wpa&qidian=true' // URL是要跳转的外部地址 作为参数
// #ifdef APP-PLUS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment