forked from angelo/web-retail-h5
Compare commits
2 Commits
11938b224c
...
75388af820
| Author | SHA1 | Date |
|---|---|---|
|
|
75388af820 | |
|
|
eae0ce5f65 |
|
|
@ -9,7 +9,7 @@
|
||||||
<view class="banner" v-if="isEmpty(banners) == false">
|
<view class="banner" v-if="isEmpty(banners) == false">
|
||||||
<view class="uni-margin-wrap">
|
<view class="uni-margin-wrap">
|
||||||
<swiper
|
<swiper
|
||||||
class="swiper"
|
class="swiper swiper-s"
|
||||||
circular
|
circular
|
||||||
:indicator-dots="indicatorDots"
|
:indicator-dots="indicatorDots"
|
||||||
:autoplay="autoplay"
|
:autoplay="autoplay"
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
:duration="duration"
|
:duration="duration"
|
||||||
>
|
>
|
||||||
<swiper-item
|
<swiper-item
|
||||||
|
class="index-swiper-item"
|
||||||
v-for="(item, index) in banners"
|
v-for="(item, index) in banners"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="bannerTap(item.link)"
|
@click="bannerTap(item.link)"
|
||||||
|
|
@ -317,6 +318,12 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.uni-margin-wrap {
|
||||||
|
:v-deep .uni-swiper-wrapper {
|
||||||
|
border-radius: 10px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
// background: url('~@/static/images/fBgd.jpg') no-repeat;
|
// background: url('~@/static/images/fBgd.jpg') no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
|
@ -439,8 +446,12 @@ header {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swiper {
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
.swiper-s {
|
.swiper-s {
|
||||||
height: 495rpx;
|
// height: 495rpx;
|
||||||
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.goods-lists {
|
.goods-lists {
|
||||||
|
|
@ -533,6 +544,10 @@ header {
|
||||||
margin-left: 15rpx;
|
margin-left: 15rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.swiper {
|
||||||
|
border-radius: 10rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
:v-deep .swiper-s .swiper-items uni-image {
|
:v-deep .swiper-s .swiper-items uni-image {
|
||||||
height: 495rpx;
|
height: 495rpx;
|
||||||
|
|
@ -541,8 +556,9 @@ header {
|
||||||
.swiper-items {
|
.swiper-items {
|
||||||
// height: 495rpx;
|
// height: 495rpx;
|
||||||
// width: 340rpx;
|
// width: 340rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
image {
|
image {
|
||||||
|
border-radius: 10rpx;
|
||||||
height: 450rpx;
|
height: 450rpx;
|
||||||
width: 340rpx;
|
width: 340rpx;
|
||||||
}
|
}
|
||||||
|
|
@ -557,16 +573,17 @@ header {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
image {
|
image {
|
||||||
height: 300rpx;
|
height: 300rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
// padding: 30rpx 0 0 0;
|
padding: 10rpx 20rpx 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
margin-bottom: 20rpx;
|
// margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changeLanguages {
|
.changeLanguages {
|
||||||
|
|
|
||||||
|
|
@ -136,10 +136,10 @@
|
||||||
<u-toast ref="uToast"></u-toast>
|
<u-toast ref="uToast"></u-toast>
|
||||||
|
|
||||||
<!-- 提现引导弹窗 -->
|
<!-- 提现引导弹窗 -->
|
||||||
<WithdrawalGuide
|
<!-- <WithdrawalGuide
|
||||||
:show="showWithdrawalGuide"
|
:show="showWithdrawalGuide"
|
||||||
@confirm="onWithdrawalGuideConfirm"
|
@confirm="onWithdrawalGuideConfirm"
|
||||||
/>
|
/> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -255,10 +255,11 @@ export default {
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
})
|
})
|
||||||
|
uni.navigateBack()
|
||||||
// 显示提现引导弹窗
|
// 显示提现引导弹窗
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
this.showWithdrawalGuide = true
|
// this.showWithdrawalGuide = true
|
||||||
}, 300)
|
// }, 300)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,7 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 微信环境全屏图片显示 -->
|
<!-- 微信环境全屏图片显示 -->
|
||||||
<view
|
<view class="wechat-fullscreen-overlay" v-show="generatedImageUrl">
|
||||||
class="wechat-fullscreen-overlay"
|
|
||||||
v-show="(isWechat || userInfo.sharePosterImage) && generatedImageUrl"
|
|
||||||
>
|
|
||||||
<img class="fullscreen-image" :src="generatedImageUrl" @click.stop="" />
|
<img class="fullscreen-image" :src="generatedImageUrl" @click.stop="" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -139,16 +136,7 @@ export default {
|
||||||
})
|
})
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
|
||||||
if (this.isWechat) {
|
|
||||||
// 微信环境:设置图片供长按保存
|
|
||||||
this.generatedImageUrl = dataUrl
|
this.generatedImageUrl = dataUrl
|
||||||
} else {
|
|
||||||
// 普通浏览器环境
|
|
||||||
if (this.isSpecialScene) {
|
|
||||||
// 特殊场景:设置图片供长按保存(没有下载按钮)
|
|
||||||
this.generatedImageUrl = dataUrl
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 下载图片
|
// 下载图片
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue