|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
- <view class="video-box" @click="popupShow = true">
|
|
|
+ <view class="video-box">
|
|
|
<video id="myVideo" class="my-video" :src="videoUrl" @error="videoErrorCallback" controls></video>
|
|
|
</view>
|
|
|
<view class="popup-open" @click="showGoods()">
|
|
@@ -43,7 +43,7 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- this.videoUrl = uni.getStorageSync("videoUrl")
|
|
|
+ this.videoUrl = uni.getStorageSync("videoUrl").replace("http://","https://")
|
|
|
NET.request(API.getShortGoodsDetail + options.videoId, {}, 'GET').then(res => {
|
|
|
this.goodsList = res.data
|
|
|
}).catch(res => {
|
|
@@ -62,7 +62,7 @@
|
|
|
closeGoods() {
|
|
|
this.$refs.popup.close()
|
|
|
},
|
|
|
- goToGoodDetails() {
|
|
|
+ goToGoodDetails(item) {
|
|
|
uni.navigateTo({
|
|
|
url: '/pagesGood/goodDetails?goodId=' + item.productId
|
|
|
});
|
|
@@ -79,9 +79,9 @@
|
|
|
|
|
|
.container {
|
|
|
width: 100%;
|
|
|
- height: 100;
|
|
|
+ height: 100%;
|
|
|
float: left;
|
|
|
- position: relative;
|
|
|
+
|
|
|
|
|
|
.video-box {
|
|
|
width: 100%;
|