Commit eb30ff78 authored by Mac's avatar Mac

1

parent 106cdeb9
......@@ -58,7 +58,7 @@
v-if='IsEducation==1'
mode="aspectFill"
style="width: 116px;height: 64px;margin-left: 30rpx;border-radius: 5px;box-shadow:0 4px 10px 1px #D2D2D2;"
@click="clickHandler(item.GoodsId)"
@click="clickHandler2(item.GoodsId)"
/>
<view class="item-r" :style="{'width':IsEducation!=1?'440rpx':item_r,'height':IsEducation!=1?'150rpx':'65px', }">
......@@ -224,6 +224,9 @@ export default {
this.showAuth = true;
}else{
this.init();
this.TotalPrice=0;
this.checkCount=0;
}
},
mounted() {
......@@ -593,6 +596,9 @@ export default {
url: '/pages/goods/goods?id=' + id
});
},
clickHandler2(id){//购物车跳到课程详情
uni.navigateTo({ url: "/pages/school/courseInfo?GoodsId=" + id });
},
goUrl(url) {
console.log(url)
uni.navigateTo({
......
......@@ -614,12 +614,12 @@
.coursesubmit .store-list{
width: 100%;
background: #FFF;
padding:0 15px;
padding: 0 15px ;
margin-top: 15px;
}
.coursesubmit .good{
background: #fff;
padding: 10px 0px ;
padding: 15px 0;
display: flex;
flex-direction: row;
font-family: aa;
......
......@@ -19,10 +19,10 @@
<text>{{studytext}}</text>
</view>
</view>
<view v-if="selectcourse.Type!=1" class="studyimg">
<image @click="previewImage(index)"
<view v-if="selectcourse && selectcourse.Type!=1" class="studyimg">
<image @click="previewImage()"
v-if="selectcourse && selectcourse.ImageList.length>0 && selectcourse.ImageList[0].Path"
style="width:100%;height:100%;" :src="selectcourse.ImageList[0].Path" mode=""></image>
style="width:100%;height:100%;" :src="selectcourse.ImageList[0].Path" mode="aspectFill"></image>
<image style="width:100%;height:100%;" v-else src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/xuexibanner%20.png" mode=""></image>
</view>
......@@ -70,11 +70,15 @@
<view class="cb-l-bt" :style="{border:index==ci?'0.5px solid #00D6A6':(cl.IsRead==1&& cl.IsPay==1?'0.5px solid #999999':'0.5px solid #121212')}">{{cl.TypeName}}</view>
</view>
{{cl.SortName}}:{{cl.Name}}
{{cl.SortName}}{{cl.Name}}
</view>
<!-- IsPay 0不可看 1已付款 2已下单 -->
<view :style="{color:mc}" class="catalog-box-r" v-if="cl.IsPay!=1">
{{cl.IsTrySee==1?'可试看':'购买'}}
<view :style="{color:mc}" class="catalog-box-r" v-if="cl.IsPay!=1 && cl.IsTrySee==1">
可试看
</view>
<view class="catalog-box-r" v-if="cl.IsPay!=1 && cl.IsTrySee==2">
<image style="width:15px;height:15px;" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/suo.png" mode=""></image>
</view>
</view>
<u-loadmore :status="status" :load-text="loadText" :font-size="24" :margin-top="20"
......@@ -200,7 +204,7 @@
},
//图片预览和文档的打开
previewImage(index=0) {
console.log(this.selectcourse)
if(this.selectcourse.IsPay!=1){
if(this.img.length>0){
uni.previewImage({
......
......@@ -153,11 +153,15 @@
<view class="cb-l-bt" >{{cl.TypeName}}</view>
</view>
{{cl.SortName}}:{{cl.Name}}
{{cl.SortName}}{{cl.Name}}
</view>
<!-- IsPay 0不可看 1已付款 2已下单 -->
<view :style="{color:mc}" class="catalog-box-r" v-if="cl.IsPay!=1">
{{cl.IsTrySee==1?'可试看':'购买'}}
<view :style="{color:mc}" class="catalog-box-r" v-if="cl.IsPay!=1 && cl.IsTrySee==1">
可试看
</view>
<view class="catalog-box-r" v-if="cl.IsPay!=1 && cl.IsTrySee==2">
<image style="width:15px;height:15px;" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/suo.png" mode=""></image>
</view>
</view>
<view class="ckcatalog" v-if="courseShow ==true" @click="gocourse({IsTrySee:1},0)">
......
......@@ -118,7 +118,7 @@
{{x.TripSTime}}
</view>
<view style="text-align: right;margin-top:15px;">
<text style="color:#9A9A9A;font-size:12px;">实付:</text>
<!-- <text style="color:#9A9A9A;font-size:12px;">实付:</text> -->
<text style="font-size:15px;color:#121212">¥{{x.Unit_Price}}</text>
</view>
</view>
......
......@@ -149,7 +149,7 @@ export default {
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多商品了",
nomore: "没有更多了",
},
showLoading: false,
g: [],
......
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