Browse Source

'修改视频播放视角。修复查看品牌按钮显示不全'

master
Lj 2 weeks ago
parent
commit
71e91da757
4 changed files with 116 additions and 37 deletions
  1. +1
    -1
      config.js
  2. +2
    -3
      pages/component/home.vue
  3. +111
    -31
      pages/component/recycle.vue
  4. +2
    -2
      pages/subcomponent/wallet.vue

+ 1
- 1
config.js View File

@ -1,5 +1,5 @@
// config.js
const type = 'local'
const type = 'prod'
const config = {
local: {


+ 2
- 3
pages/component/home.vue View File

@ -444,15 +444,14 @@
if (!this.videoPlayingStates[index]) {
//
this.$set(this.videoPlayingStates, index, true);
//
this.$nextTick(() => {
setTimeout(() => {
const videoContext = uni.createVideoContext(`video-${index}`, this);
if (videoContext) {
//
//
videoContext.requestFullScreen({
direction: -1 //
direction: 0 // 01-1
});
}
}, 200);


+ 111
- 31
pages/component/recycle.vue View File

@ -87,10 +87,10 @@
</view>
<text class="goods-desc">{{item.service}}</text>
<view class="rules-brand-row">
<view class="rules-link" @click="showRules(item)">
<view class="rules">
<text>回收规则</text>
<uni-icons type="right" size="14" color="#999"></uni-icons>
<view class="rules-link" @click="showRules(item)">
<view class="rules">
<text>回收规则</text>
<uni-icons type="right" size="14" color="#999"></uni-icons>
</view>
</view>
<view class="brand-check-placeholder" v-if="item.isPin === 'Y'">
@ -768,24 +768,24 @@ export default {
showRules(item) {
// isPin=Y: isPin=N:
if (item.isPin === 'Y') {
//
if (this.viewedRuleItems.has(item.id)) {
//
this.isWaitingForBrandSelection = false;
this.getGoodsBrandList(item.id);
this.showBrandPopup = true;
return;
//
if (this.viewedRuleItems.has(item.id)) {
//
this.isWaitingForBrandSelection = false;
this.getGoodsBrandList(item.id);
this.showBrandPopup = true;
return;
}
//
this.hasScrolledToBottom = false;
//
this.$api('getGoodsRecycleRule', { goodsId: item.id }, res => {
if (res.code === 200 && res.result) {
this.ruleHtml = res.result
} else {
this.ruleHtml = '<p>暂无回收规则</p>'
}
//
this.hasScrolledToBottom = false;
//
this.$api('getGoodsRecycleRule', { goodsId: item.id }, res => {
if (res.code === 200 && res.result) {
this.ruleHtml = res.result
} else {
this.ruleHtml = '<p>暂无回收规则</p>'
}
this.showRulePopup = true
this.showRulePopup = true
// closeRulePopup
})
} else {
@ -800,7 +800,7 @@ export default {
this.showRulePopup = true
//
this.isWaitingForBrandSelection = false;
})
})
}
},
showMore() {
@ -1186,15 +1186,14 @@ export default {
if (!this.videoPlayingStates[index]) {
//
this.$set(this.videoPlayingStates, index, true);
//
this.$nextTick(() => {
setTimeout(() => {
const videoContext = uni.createVideoContext(`recycle-video-${index}`, this);
if (videoContext) {
//
//
videoContext.requestFullScreen({
direction: -1 //
direction: 0 // 01-1
});
}
}, 200);
@ -1584,7 +1583,7 @@ export default {
.goods-content {
flex: 1;
height: 100%;
padding: 0 30rpx 180rpx 30rpx; /* 添加底部padding,为固定底部栏预留空间 */
padding: 0 0 180rpx 0; /* 添加底部padding,为固定底部栏预留空间 */
background: #ffffff;
width: 70%;
margin: 1rpx;
@ -1683,6 +1682,7 @@ export default {
align-items: center;
flex-wrap: nowrap;
gap: 10rpx;
margin-top: 10rpx;
}
.price-info {
@ -1757,11 +1757,11 @@ export default {
margin-top: 0;
.rules {
display: inline-flex;
align-items: center;
font-family: PingFang SC;
font-weight: 400;
font-size: 12px;
color: #666;
align-items: center;
font-family: PingFang SC;
font-weight: 400;
font-size: 12px;
color: #666;
white-space: nowrap;
}
}
@ -2727,4 +2727,84 @@ export default {
font-size: 28rpx;
color: #222;
}
.rules-link {
min-width: 90rpx;
padding: 0 12rpx;
.rules {
font-size: 15px;
white-space: normal;
overflow: visible;
}
}
// ... existing code ...
.rules-brand-row {
display: flex;
align-items: center;
margin-top: 20rpx;
gap: 24rpx; //
.rules-link {
margin-top: 0;
}
.brand-check-placeholder {
margin-left: 16rpx;
}
}
// ... existing code ...
.price-info {
display: flex;
align-items: baseline;
white-space: nowrap;
flex-shrink: 0;
gap: 12rpx; //
.price-symbol {
font-size: 32rpx; //
color: #ff7a0e;
}
.price-value {
font-size: 44rpx; //
color: #ff7a0e;
font-weight: bold;
margin: 0 6rpx;
white-space: nowrap;
}
.price-unit {
font-size: 28rpx;
color: #999;
white-space: nowrap;
}
}
.quantity-control {
display: flex;
align-items: center;
flex-shrink: 0;
white-space: nowrap;
gap: 16rpx; //
button {
width: 72rpx; //
height: 72rpx;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 36rpx; //
color: #666;
background: #ffffff;
border: none;
border-radius: 50%;
&::after {
border: none;
}
&:active {
opacity: 0.8;
}
}
.quantity {
width: 60rpx;
text-align: center;
font-size: 36rpx; //
color: #333;
}
}
</style>

+ 2
- 2
pages/subcomponent/wallet.vue View File

@ -387,9 +387,9 @@ export default {
setTimeout(() => {
const videoContext = uni.createVideoContext(`wallet-video-${index}`, this);
if (videoContext) {
//
//
videoContext.requestFullScreen({
direction: -1 //
direction: 0 // 01-1
});
}
}, 200);


Loading…
Cancel
Save