Commit 5ad57a27 by sunerhu

1.修改了一些Bug

parent 4d7426cf
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</view> </view>
<view class="courseDetailBox"> <view class="courseDetailBox">
<view class="title"> <view class="title">
<h4>{{title}}</h4> <h4 @click="curriculumDetail()">{{title}}</h4>
<text class="detailBtn" @click="viewDetail()" v-if="isNeedViewDetail">订单详情></text> <text class="detailBtn" @click="viewDetail()" v-if="isNeedViewDetail">订单详情></text>
</view> </view>
<view class="summaryBox" v-if="summaryBox"> <view class="summaryBox" v-if="summaryBox">
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
}, },
tagList:{ tagList:{
type:Object type:Object
},
fileId:{
type: String
} }
}, },
data() { data() {
...@@ -80,6 +83,11 @@ ...@@ -80,6 +83,11 @@
url:`/pages/orderDetail/orderDetail?id=${this.orderId}&type=drop` url:`/pages/orderDetail/orderDetail?id=${this.orderId}&type=drop`
}) })
}, },
curriculumDetail(){
uni.navigateTo({
url:`/pages/courseDetail/courseDetail?fileId=${this.fileId}`
})
},
lecturerQuery(){ lecturerQuery(){
api.lecturerQuery({id:this.fileLecturerId}).then(res=>{ api.lecturerQuery({id:this.fileLecturerId}).then(res=>{
if(res['success']){ if(res['success']){
......
...@@ -379,14 +379,13 @@ ...@@ -379,14 +379,13 @@
} }
}, },
onLoad(option) { onLoad(option) {
console.log(option, 2255)
this.fileId = option.fileId; this.fileId = option.fileId;
if(option.userId){ if(option.userId){
this.userId = option.userId this.userId = option.userId
} }
let dataForm = uni.getStorageSync('userinfodataForm') let dataForm = uni.getStorageSync('userinfodataForm')
this.realName = dataForm.realName this.realName = dataForm.realName
this.switchTab(1); // this.switchTab(1);
}, },
mounted() { mounted() {
this.switchTab(1); this.switchTab(1);
......
...@@ -158,7 +158,6 @@ ...@@ -158,7 +158,6 @@
}, },
ckidentity(item){ ckidentity(item){
if(item.identity == true && this.customerBasicInfo.partnerType ==null){ if(item.identity == true && this.customerBasicInfo.partnerType ==null){
console.log('运行到了这里')
uni.showToast({ uni.showToast({
title: "您本人尚未加盟,您加盟后可邀请加盟", title: "您本人尚未加盟,您加盟后可邀请加盟",
duration: 2000, duration: 2000,
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<template v-if="userCourses && tabType===1"> <template v-if="userCourses && tabType===1">
<view class="saleOrderInfoItem" v-for="item in userCourses" :key="item.fileId"> <view class="saleOrderInfoItem" v-for="item in userCourses" :key="item.fileId">
<view class="courseInfoContent"> <view class="courseInfoContent">
<course-item :thumbnailPath="item.displayImage" :title="item.fileTitle" :summaryBox="item.fileSynopsis" :dataList="{coursePrice:item.coursePrice,salesNumber:item.salesNumber}" :fileLecturerId="item.fileLecturerId" :isNeedViewDetail="true" :orderId="item.orderId"></course-item> <course-item :thumbnailPath="item.displayImage" :fileId="item.fileId" :title="item.fileTitle" :summaryBox="item.fileSynopsis" :dataList="{coursePrice:item.coursePrice,salesNumber:item.salesNumber}" :fileLecturerId="item.fileLecturerId" :isNeedViewDetail="true" :orderId="item.orderId"></course-item>
</view> </view>
<view class="countsContent"> <view class="countsContent">
<text>实际支付:¥{{parseFloat(item.paymentAmount).toFixed(2)}}</text> <text>实际支付:¥{{parseFloat(item.paymentAmount).toFixed(2)}}</text>
......
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