main
scout 5 months ago
parent f0c19a16ce
commit 553953ebaf

@ -10,13 +10,9 @@ export default {
"Content-Type": "application/json;charset=UTF-8", "Content-Type": "application/json;charset=UTF-8",
// 'Content-Type':'application/x-www-form-urlencoded' // 'Content-Type':'application/x-www-form-urlencoded'
"Accept-Language": "Accept-Language":
navigator.language === "en" navigator.language === "zh-CN"
? "en" ? "zh-Hans"
: navigator.language === "zh-Hans" : "en",
? "zh-CN"
: navigator.language === "zh-Hant"
? "zh-TW"
: "zh-CN",
}, },
data: {}, data: {},
method: "GET", method: "GET",

@ -14,6 +14,7 @@
"usa.copySuccess": "Copy successful!", "usa.copySuccess": "Copy successful!",
"usa.back": "Back", "usa.back": "Back",
"usa.backAndCopy": "Copy and back", "usa.backAndCopy": "Copy and back",
"series.play": "Play Collections Detail Video",
"usa.cancel": "Cancel", "usa.cancel": "Cancel",
"usa.confirm": "Confirm", "usa.confirm": "Confirm",
"usa.Password": "Password", "usa.Password": "Password",

@ -14,6 +14,7 @@
"usa.copySuccess": "复制成功!", "usa.copySuccess": "复制成功!",
"usa.back": "返回", "usa.back": "返回",
"usa.backAndCopy": "复制并返回", "usa.backAndCopy": "复制并返回",
"series.play": "播放视频详情",
"usa.cancel": "取消", "usa.cancel": "取消",
"usa.confirm": "确认", "usa.confirm": "确认",
"usa.Password": "密码", "usa.Password": "密码",

@ -10,10 +10,12 @@ const messages = {
}; };
let i18nConfig = { let i18nConfig = {
locale: navigator.language === "en" ? "en" : "zh-Hans", locale:
navigator.language === "zh-CN"
? "zh-Hans"
: "en",
messages, messages,
}; };
//弹出框禁止滑动 //弹出框禁止滑动
Vue.prototype.stopScroll = function () { Vue.prototype.stopScroll = function () {
var mo = function (e) { var mo = function (e) {

@ -13,12 +13,29 @@
<view class="top-img"> <view class="top-img">
<u-album :urls="[carouselFigureImg]" :singleSize="358"></u-album> <u-album :urls="[carouselFigureImg]" :singleSize="358"></u-album>
</view> </view>
<view v-show="videoPlay" style="text-align: center;">
<video
style="width: 92%;"
controls
id="myvideo"
:src="videoUrl"
@fullscreenchange="screenChange"
x5-video-player-type="h5"
x5-video-player-fullscreen="true"
></video>
</view>
<u-button class="video-btn" @click="playVideo" type="primary" v-if="videoUrl.length>0">{{
$t("series.play")
}}</u-button>
<view <view
class="title-t" class="title-t"
:style="{ fontSize: '36rpx', color: '#434343', fontWeight: 600 }" :style="{ fontSize: '36rpx', color: '#434343', fontWeight: 600 }"
>{{ $t("basic.info") }}</view >{{ $t("basic.info") }}</view
> >
<view class="info-box" style="padding: 28rpx 32rpx 4rpx 32rpx; background: #ffffff"> <view
class="info-box"
style="padding: 28rpx 32rpx 4rpx 32rpx; background: #ffffff"
>
<view class="item"> <view class="item">
<text class="label">{{ $t("series.name") }}</text> <text class="label">{{ $t("series.name") }}</text>
<text class="value">{{ collectionsDetail.seriesName }}</text> <text class="value">{{ collectionsDetail.seriesName }}</text>
@ -29,7 +46,7 @@
</view> </view>
<view class="item"> <view class="item">
<text class="label">{{ $t("series.hash") }}</text> <text class="label">{{ $t("series.hash") }}</text>
<text class="value">{{ collectionsDetail.hash }}</text> <text class="des">{{ collectionsDetail.hash }}</text>
</view> </view>
</view> </view>
@ -72,11 +89,9 @@
>{{ $t("collection.detail") }} >{{ $t("collection.detail") }}
</view> </view>
<view class="detail-info"> <view class="detail-info">
<view v-if="detailImgList.length > 0" class="box"> <view v-if="detailImgList.length > 0" class="box">
<image <image
v-for="(img,index) in detailImgList" v-for="(img, index) in detailImgList"
:src="img" :src="img"
:key="index" :key="index"
mode="widthFix" mode="widthFix"
@ -108,25 +123,40 @@ export default {
collectionsDetail: {}, collectionsDetail: {},
carouselFigureImg: "", carouselFigureImg: "",
detailImgList: [], detailImgList: [],
containerWidth:300 , // containerWidth: 300, //
videoPlay: false,
videoUrl: "",
videoContext: null,
}; };
}, },
onLoad: function (option) { onLoad: function (option) {
this.collectionsUID = option.collectionUID; this.collectionsUID = option.collectionUID;
this.getCollectionDetail(); this.getCollectionDetail();
}, },
onReady() { onReady() {
// //
}, },
methods: { methods: {
//
screenChange(e) {
let fullScreen = e.detail.fullScreen; // truefalse退
console.log(e, "全屏");
if (!fullScreen) {
//退
this.videoPlay = false; //
}
},
playVideo() {
this.videoContext = uni.createVideoContext("myvideo", this); // this
this.videoContext.play();
setTimeout(() => {
this.videoContext.requestFullScreen();
}, 500);
this.videoPlay = true; //
},
onPageScroll(e) { onPageScroll(e) {
this.stickyShow = e.scrollTop > 5 ? true : false; this.stickyShow = e.scrollTop > 5 ? true : false;
}, },
back() { back() {
let routesRecord = getCurrentPages(); let routesRecord = getCurrentPages();
@ -146,12 +176,12 @@ export default {
if (res.status === 0) { if (res.status === 0) {
this.collectionsDetail = res.data; this.collectionsDetail = res.data;
this.carouselFigureImg = this.collectionsDetail.carouselFigureList[0]; this.carouselFigureImg = this.collectionsDetail.carouselFigureList[0];
this.videoUrl = this.collectionsDetail.carouselFigureList[1] || '';
this.detailImgList = this.collectionsDetail.detailImgList; this.detailImgList = this.collectionsDetail.detailImgList;
} else { } else {
uni.$u.toast(this.$t("load.failed")); uni.$u.toast(this.$t("load.failed"));
} }
}, },
}, },
}; };
</script> </script>
@ -163,7 +193,9 @@ page {
background-attachment: fixed; background-attachment: fixed;
height: 100vh; height: 100vh;
} }
.video-btn {
width: 92%;
}
.active { .active {
position: relative; position: relative;
@ -271,8 +303,6 @@ page {
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }

@ -97,7 +97,7 @@ page {
} }
/deep/ .u-album__row__wrapper { /deep/ .u-album__row__wrapper {
image { image {
height: 160px !important;
border-radius: 4px; border-radius: 4px;
} }
} }
@ -117,7 +117,7 @@ page {
.collectionList { .collectionList {
margin-top: 15px; margin-top: 15px;
overflow-y: scroll; overflow-y: scroll;
height: 340px; height: 130px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;

@ -559,9 +559,12 @@ page {
width: 75%; width: 75%;
color: #000000; color: #000000;
font-size: 34rpx; font-size: 34rpx;
//
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
} }
.blockchain { .blockchain {
@ -569,9 +572,12 @@ page {
font-size: 20rpx; font-size: 20rpx;
margin-top: 10rpx; margin-top: 10rpx;
width: 75%; width: 75%;
//
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
} }
} }
} }

@ -18,7 +18,7 @@
></u-avatar> ></u-avatar>
<view class="info"> <view class="info">
<view class="blockchain" <view class="blockchain"
>{{ $t("usa.adress") }}{{ seriesData.seriesAddress }}</view >{{ $t("usa.adress") }}<a>{{ seriesData.seriesAddress }}</a></view
> >
<view class="username" <view class="username"
>{{ $t("usa.remember") }}{{ seriesData.seriesMem }} >{{ $t("usa.remember") }}{{ seriesData.seriesMem }}
@ -300,6 +300,12 @@ page {
.name { .name {
font-size: 16px; font-size: 16px;
color: #000000; color: #000000;
//
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
} }
.intro { .intro {
font-size: 14px; font-size: 14px;
@ -409,10 +415,14 @@ page {
color: #000000; color: #000000;
font-size: 24rpx; font-size: 24rpx;
margin-top: 10rpx; margin-top: 10rpx;
display: flex;
overflow: hidden; a{
text-overflow: ellipsis; //
white-space: nowrap; overflow: hidden;
text-overflow: ellipsis;
width: 175px;
-webkit-box-orient: vertical;
}
} }
.check { .check {
color: #3e6944; color: #3e6944;

Loading…
Cancel
Save