|
|
@ -33,40 +33,51 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="info" v-else> |
|
|
|
<view class="info" v-else> |
|
|
|
<view class="price"> |
|
|
|
<view class="price"> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{ product.highCoupon.discountPrice*100}} |
|
|
|
</image>{{ product.highCoupon.discountPrice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice"> |
|
|
|
<view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice"> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfh.png"> |
|
|
|
src="../../../static/img/jfh.png"> |
|
|
|
|
|
|
|
</image>{{ product.highCoupon.salesPrice*100}} |
|
|
|
</image>{{ product.highCoupon.salesPrice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</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> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
import { |
|
|
|
getCouponByDiscount, |
|
|
|
getCouponByDiscount, |
|
|
|
getDiscountByUserDiscountId |
|
|
|
getDiscountByUserDiscountId, |
|
|
|
|
|
|
|
getCmsContent |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
|
|
|
|
import xiaoVideoElement from '../../../components/yy-video-player/yy-video-player.nvue' |
|
|
|
let app = getApp(); |
|
|
|
let app = getApp(); |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
|
|
|
|
components: { |
|
|
|
|
|
|
|
xiaoVideoElement |
|
|
|
|
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
minecoupones: [], |
|
|
|
minecoupones: [], |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imgadres: 'noorder.png', |
|
|
|
imgadres: 'noorder.png', |
|
|
|
|
|
|
|
imagedess1: '/CMS/html/11641540903873.mp4', |
|
|
|
pageNum: 1, |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
isNoMoreData: false, |
|
|
|
isNoMoreData: false, |
|
|
|
couponsDetails: '', |
|
|
|
couponsDetails: '', |
|
|
|
salesEndTime: '', |
|
|
|
salesEndTime: '', |
|
|
|
couponId: '' |
|
|
|
couponId: '', |
|
|
|
|
|
|
|
videourl: '' //视频地址 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
filters: { |
|
|
@ -90,8 +101,21 @@ |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.couponId = option.id; |
|
|
|
this.couponId = option.id; |
|
|
|
this.getDiscountByUserDiscountId(); |
|
|
|
this.getDiscountByUserDiscountId(); |
|
|
|
|
|
|
|
this.getCmsContentvideo(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
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() { |
|
|
|
getDiscountByUserDiscountId() { |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|