|
|
|
@ -33,40 +33,51 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="info" v-else> |
|
|
|
|
<view class="price"> |
|
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
|
</image>{{ product.highCoupon.discountPrice*100}} |
|
|
|
|
</view> |
|
|
|
|
<view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice"> |
|
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
|
src="../../../static/img/jfh.png"> |
|
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfh.png"> |
|
|
|
|
</image>{{ product.highCoupon.salesPrice*100}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width90 mart10 fcor666" v-if="videourl != ''">视频教程</view> |
|
|
|
|
<view class="width80 mart10 marb30" v-if="videourl != ''"> |
|
|
|
|
<yy-video-player :auto-play="false" :url="imageUrl+imagedess1" :poster="poster" :show-back-btn="true"> |
|
|
|
|
</yy-video-player> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
getCouponByDiscount, |
|
|
|
|
getDiscountByUserDiscountId |
|
|
|
|
getDiscountByUserDiscountId, |
|
|
|
|
getCmsContent |
|
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
|
import xiaoVideoElement from '../../../components/yy-video-player/yy-video-player.nvue' |
|
|
|
|
let app = getApp(); |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
xiaoVideoElement |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
minecoupones: [], |
|
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
|
imgadres: 'noorder.png', |
|
|
|
|
imagedess1: '/CMS/html/11641540903873.mp4', |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 10, |
|
|
|
|
isNoMoreData: false, |
|
|
|
|
couponsDetails: '', |
|
|
|
|
salesEndTime: '', |
|
|
|
|
couponId: '' |
|
|
|
|
couponId: '', |
|
|
|
|
videourl: '' //视频地址 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
filters: { |
|
|
|
@ -90,8 +101,21 @@ |
|
|
|
|
onLoad(option) { |
|
|
|
|
this.couponId = option.id; |
|
|
|
|
this.getDiscountByUserDiscountId(); |
|
|
|
|
this.getCmsContentvideo(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//获取视频资料 |
|
|
|
|
getCmsContentvideo() { |
|
|
|
|
let params = { |
|
|
|
|
regionId: app.globalData.cityId, |
|
|
|
|
categoryCode: 'CMS_H5_VIDEO' |
|
|
|
|
} |
|
|
|
|
getCmsContent(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.videourl = res.return_data; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//获取卡券详情 |
|
|
|
|
getDiscountByUserDiscountId() { |
|
|
|
|
let params = { |
|
|
|
|