|
|
@ -5,23 +5,30 @@ |
|
|
|
<image class="content-img" :src="shopInfo.image" /> |
|
|
|
<view class="content-left"> |
|
|
|
<u-row style="margin: 10rpx;"> |
|
|
|
<u-col>{{ shopInfo.title }}</u-col> |
|
|
|
<u-col><text style="font-size: 32rpx;">{{ shopInfo.title }}</text></u-col> |
|
|
|
</u-row> |
|
|
|
<u-row justify="space-between" style="margin: 20rpx; font-size: 12px;"> |
|
|
|
<u-row justify="space-between" style="margin: 20rpx; font-size: 24rpx;"> |
|
|
|
<u-col span="6"> |
|
|
|
级别:初级 |
|
|
|
{{ shopInfo.classValue }} |
|
|
|
</u-col> |
|
|
|
<u-col span="6"> |
|
|
|
{{ shopInfo.num }}人学习 |
|
|
|
{{ shopInfo.num }}人购买 |
|
|
|
</u-col> |
|
|
|
</u-row> |
|
|
|
<u-row justify="space-between" style="margin: 10rpx; font-size: 16px;"> |
|
|
|
<u-row justify="space-between" style="margin: 10rpx; font-size: 30rpx;"> |
|
|
|
<u-col span="4" style="text-decoration:line-through"> |
|
|
|
<view style="color: #ddd;font-size: 28rpx;text-decoration:line-through;"> |
|
|
|
¥{{ shopInfo.oldPrice }} |
|
|
|
</view> |
|
|
|
</u-col> |
|
|
|
<u-col span="4"> |
|
|
|
<view style="color: #ff7800;font-size: 45rpx;"> |
|
|
|
¥{{ shopInfo.price }} |
|
|
|
</view> |
|
|
|
</u-col> |
|
|
|
<u-col span="4" style="text-decoration:line-through"> |
|
|
|
</u-row> |
|
|
|
<u-row justify="space-between" style="margin: 10rpx; font-size: 30rpx;"> |
|
|
|
<u-col span="4" style="margin-top: 30rpx;"> |
|
|
|
<view class="icon"> |
|
|
|
<u-number-box style="margin: 0 auto;" v-model="registerForm.num" :min="1"> |
|
|
|
<view slot="minus" class="minus"> |
|
|
@ -45,40 +52,47 @@ |
|
|
|
<view class="cell"> |
|
|
|
<view class="cell-box"> |
|
|
|
<view> |
|
|
|
无法查看资源内容,请购买! |
|
|
|
{{ shopInfo.titleText }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="book"> |
|
|
|
<view class="book-text"> |
|
|
|
<view style="padding-top: 20rpx;font-size: 14px;">资源介绍</view> |
|
|
|
<uv-parse :content="shopInfo.content"></uv-parse> |
|
|
|
<view style="padding-top: 20rpx;font-size: 30rpx;">资源介绍</view> |
|
|
|
</view> |
|
|
|
<uv-parse :content="shopInfo.content"></uv-parse> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="bottom-flex"> |
|
|
|
|
|
|
|
<view class="icon"> |
|
|
|
<u-icon name="server-man" size="40rpx"></u-icon> |
|
|
|
客服 |
|
|
|
</view> |
|
|
|
|
|
|
|
<button open-type="contact" |
|
|
|
class="contact"> |
|
|
|
<view class="icon"> |
|
|
|
<u-icon name="server-man" size="50rpx"></u-icon> |
|
|
|
</view> |
|
|
|
</button> |
|
|
|
|
|
|
|
<view class="button"> |
|
|
|
<view class="button-right"> |
|
|
|
<view @click="createPayOrder"> |
|
|
|
立即购买 ({{ shopInfo.price * registerForm.num }}¥) |
|
|
|
立即购买 (<text>¥{{ shopInfo.price * registerForm.num }}</text>) |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<PrivacyAgreementPoup/> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// wxf173d7bec0f1bbe0 |
|
|
|
import PrivacyAgreementPoup from '@/components/PrivacyAgreementPoup/PrivacyAgreementPoup' |
|
|
|
export default { |
|
|
|
components : { |
|
|
|
PrivacyAgreementPoup |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
registerForm: { |
|
|
@ -104,6 +118,7 @@ |
|
|
|
|
|
|
|
this.registerForm.shopId = this.shopInfo.id |
|
|
|
this.$api('createPayOrder', this.registerForm, res => { |
|
|
|
this.registerForm.num = 1 |
|
|
|
if(res.code == 200){ |
|
|
|
uni.requestPayment({ |
|
|
|
provider: 'wxpay', // 服务提提供商 |
|
|
@ -144,7 +159,7 @@ |
|
|
|
bottom: 0; |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
height: 100rpx; |
|
|
|
height: 120rpx; |
|
|
|
padding: 10rpx 0; |
|
|
|
background-color: #fff; |
|
|
|
justify-content: space-between; |
|
|
@ -158,6 +173,17 @@ |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
.contact{ |
|
|
|
background: transparent; |
|
|
|
margin: 0; |
|
|
|
padding: 0 20rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
&::after{ |
|
|
|
border: none; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -173,29 +199,27 @@ |
|
|
|
top: 20rpx; |
|
|
|
width: 100%; |
|
|
|
height: 250rpx; |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
|
|
|
|
.content-img { |
|
|
|
position: absolute; |
|
|
|
top: 20rpx; |
|
|
|
left: 20rpx; |
|
|
|
width: 220rpx; |
|
|
|
height: 160rpx; |
|
|
|
width: 270rpx; |
|
|
|
height: 200rpx; |
|
|
|
border-radius: 10rpx; |
|
|
|
margin-right: 20rpx; |
|
|
|
margin-left: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.content-left { |
|
|
|
position: absolute; |
|
|
|
color: #fff; |
|
|
|
font-size: 14px; |
|
|
|
left: 35%; |
|
|
|
top: 20rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
line-height: 50rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.cell { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
height: 140rpx; |
|
|
|
background-color: #fff; |
|
|
@ -208,32 +232,27 @@ |
|
|
|
background-color: rgb(253, 194, 4); |
|
|
|
height: 70rpx; |
|
|
|
border-radius: 10rpx; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 24rpx; |
|
|
|
margin-top: 10rpx; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
/deep/ .book { |
|
|
|
margin-top: 20rpx; |
|
|
|
min-height: 600rpx; |
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
padding: 0 20rpx; |
|
|
|
padding-bottom: 150rpx; |
|
|
|
line-height: 50rpx; |
|
|
|
font-size: 30rpx; |
|
|
|
img { |
|
|
|
width: 100% !important; |
|
|
|
border-radius: 10rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/deep/ .book-text { |
|
|
|
width: 94%; |
|
|
|
margin-left: 3%; |
|
|
|
min-height: 700rpx; |
|
|
|
font-size: 13px; |
|
|
|
line-height: 40rpx; |
|
|
|
padding-bottom: 100rpx; |
|
|
|
|
|
|
|
img { |
|
|
|
width: 100% !important; |
|
|
|
} |
|
|
|
padding-bottom: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.book-img { |
|
|
@ -268,12 +287,15 @@ |
|
|
|
align-items: center; |
|
|
|
flex: 1; |
|
|
|
height: 100%; |
|
|
|
// background-color: rgb(253, 194, 5); |
|
|
|
background-color: rgb(51, 51, 51); |
|
|
|
// border-top-right-radius: 50rpx; |
|
|
|
// border-bottom-right-radius: 50rpx; |
|
|
|
border-radius: 50rpx; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
text{ |
|
|
|
font-size: 32rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|