福利
This commit is contained in:
parent
627e240a04
commit
7972cb88d3
|
|
@ -429,6 +429,12 @@
|
|||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/infinite/benefit",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [{
|
||||
|
|
|
|||
449
pages/infinite/benefit.vue
Normal file
449
pages/infinite/benefit.vue
Normal file
|
|
@ -0,0 +1,449 @@
|
|||
<!-- 积分 -->
|
||||
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="title1">福利</view>
|
||||
<image :src="$img1('index/jifen.png')" style="width: 100%; margin-top: 60rpx;" mode=""></image>
|
||||
<view class="list relative">
|
||||
<view class="list-item" v-for="(item, i) in datas" :key="i" @click="items(item)">
|
||||
<view class="pic center">
|
||||
<image class="pic-img" :src="item.imgurl" lazy-load></image>
|
||||
<image :src="$img1('common/new1.png')" class="pic-new" mode="widthFix" v-if="item.new_is==1">
|
||||
</image>
|
||||
</view>
|
||||
<view class="title hang1">
|
||||
{{ item.title }}
|
||||
</view>
|
||||
<view class="price-box">
|
||||
<view class="price">
|
||||
<text>{{ item.price }}</text>
|
||||
积分
|
||||
</view>
|
||||
<view class="num-box">
|
||||
<view class="num ml10">{{ item.sale_stock }}/{{ item.stock }}</view>
|
||||
<view class="box icon">
|
||||
<image :src="$img1('index/box.png')" lazy-load></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<uni-popup ref="show" type="center">
|
||||
<view class="pop common_bg" :style="{'background-image': `url(${$img('/static/img/yf_rule_pop_bg.png')})`}">
|
||||
<view class="pop_title">购买说明</view>
|
||||
<view class="pop_con">
|
||||
<scroll-view scroll-y="true" style="height: 600rpx">
|
||||
<view v-html="guize"></view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<image @click="$refs.show.close()" class="close" :src="$img('/static/icon/close.png')"></image>
|
||||
</view>
|
||||
</uni-popup>
|
||||
<!-- <tab-bar :index="1"></tab-bar> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
current: 0,
|
||||
flga: false,
|
||||
datas: [],
|
||||
BarHeight: '',
|
||||
guize: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
items(item) {
|
||||
this.$c.to({
|
||||
url: '/pages/shouye/detail',
|
||||
query: {
|
||||
goods_id: item.id,
|
||||
type_text: '积分赏'
|
||||
}
|
||||
})
|
||||
},
|
||||
getlist(index) {
|
||||
this.current = index
|
||||
if (index == 1) {
|
||||
uni.navigateTo({
|
||||
url: 'UnlimitedOrder'
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.current = 0
|
||||
const curPages = getCurrentPages()[0]; // 获取当前页面实例
|
||||
if (typeof curPages.getTabBar === 'function' && curPages.getTabBar()) {
|
||||
this.$mp.page.getTabBar().setData({
|
||||
selected: 1
|
||||
});
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let that = this
|
||||
that.req({
|
||||
url: 'goods',
|
||||
data: {
|
||||
type: '5',
|
||||
page: 1
|
||||
},
|
||||
success(res) {
|
||||
that.datas = res.data.data
|
||||
}
|
||||
})
|
||||
// that.req({
|
||||
// url: 'danye',
|
||||
// data: {
|
||||
// type: 4
|
||||
// },
|
||||
// success: function (res) {
|
||||
// that.guize = res.data
|
||||
// }
|
||||
// })
|
||||
uni.getSystemInfo({
|
||||
success: function(res) {
|
||||
that.BarHeight = res.statusBarHeight
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.title1 {
|
||||
width: 100%;
|
||||
top: 108rpx;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 34rpx;
|
||||
justify-content: center;
|
||||
color: black;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.activeImg {
|
||||
position: absolute;
|
||||
width: 32rpx !important;
|
||||
height: 16rpx !important;
|
||||
bottom: -20rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.pop {
|
||||
width: 607rpx;
|
||||
// height: 904rpx;
|
||||
padding-top: 70rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
|
||||
.pop_title {
|
||||
font-size: 36rpx;
|
||||
font-family: zihun152hao-jijiachaojihei;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pop_con {
|
||||
padding: 30rpx 40rpx 50rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
font-size: 28rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #ffffff;
|
||||
line-height: 42rpx;
|
||||
}
|
||||
|
||||
.close {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 0;
|
||||
transform: translate(-50%, 100%);
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.status_bar {
|
||||
height: var(--status-bar-height);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.fixed {
|
||||
width: 750rpx;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
position: fixed;
|
||||
top: 0rpx;
|
||||
z-index: 15;
|
||||
}
|
||||
|
||||
.header-left-title {
|
||||
width: 104rpx;
|
||||
height: 33rpx;
|
||||
}
|
||||
|
||||
.image1 {
|
||||
width: 117rpx;
|
||||
height: 46rpx;
|
||||
background: url('https://baoku.languowangluo.cn/newindex/new.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
top: 23rpx;
|
||||
left: 18rpx;
|
||||
}
|
||||
|
||||
.gb_title {
|
||||
width: 118rpx;
|
||||
height: 46rpx;
|
||||
position: absolute;
|
||||
top: 18rpx;
|
||||
right: 18rpx;
|
||||
background: url('https://baoku.languowangluo.cn/newindex/infinite_goods_shang_bao.png');
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.qiehuan_left {
|
||||
display: flex;
|
||||
font-family: 'YouSheBiaoTiHei';
|
||||
/* border-top: 2rpx solid #333333; */
|
||||
margin-left: 30rpx;
|
||||
/* text-shadow: 0px 0px 12rpx rgba(150, 255, 254, 0.7); */
|
||||
/* font-family: 'zcq'; */
|
||||
}
|
||||
|
||||
.wzs {
|
||||
font-size: 32rpx;
|
||||
font-family: zihun152hao-jijiachaojihei;
|
||||
font-weight: 400;
|
||||
color: #9c9c9c;
|
||||
}
|
||||
|
||||
.xzs {
|
||||
font-size: 32rpx;
|
||||
font-family: zihun152hao-jijiachaojihei;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
text-shadow: 0 0 10rpx #ba39ff;
|
||||
}
|
||||
|
||||
.qiehuan_left>view {
|
||||
margin-right: 70rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dibuzhe {
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
// background: #f00;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
/* padding-top:5rpx; */
|
||||
position: absolute;
|
||||
width: calc(100% - 16rpx - 16rpx);
|
||||
left: 16rpx;
|
||||
bottom: 16rpx;
|
||||
height: 74rpx;
|
||||
align-items: center;
|
||||
border-radius: 0 0 20rpx 20rpx;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.left {
|
||||
width: 400rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-left: 22rpx;
|
||||
/* font-family: 'zcq';
|
||||
text-shadow: 0px 0px 14rpx rgba(237, 87, 255, 0.7); */
|
||||
}
|
||||
|
||||
.gb {
|
||||
color: #ffffff;
|
||||
/* font-family: 'zcq';
|
||||
text-shadow: 0px 0px 14rpx red; */
|
||||
}
|
||||
|
||||
.right {
|
||||
font-size: 28rpx;
|
||||
font-family: zihun152hao-jijiachaojihei;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
text-shadow: 0 0 10rpx #22aeff;
|
||||
padding-right: 20rpx;
|
||||
}
|
||||
|
||||
.items {
|
||||
width: 714rpx;
|
||||
height: 504rpx;
|
||||
padding: 16rpx;
|
||||
margin: 30rpx auto 0;
|
||||
position: relative;
|
||||
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/deep/ .u-tab-item {
|
||||
color: #222222 !important;
|
||||
}
|
||||
|
||||
.baibei {
|
||||
width: 720rpx;
|
||||
height: 78rpx;
|
||||
/* background: #FFFFFF; */
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
/* font-family: 'zcq'; */
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
/* padding-top: 1rpx; */
|
||||
padding-bottom: 100px;
|
||||
box-sizing: border-box;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.item_image {
|
||||
width: 100%;
|
||||
height: 472rpx;
|
||||
// margin: 17rpx auto 0;
|
||||
position: relative;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.item_image image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.page-hd {
|
||||
width: 100%;
|
||||
height: 430rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.list {
|
||||
margin-top: 20rpx;
|
||||
padding: 1rpx 30rpx 30rpx;
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: space-between;
|
||||
z-index: 10;
|
||||
|
||||
.list-item {
|
||||
width: 330rpx;
|
||||
height: 487rpx;
|
||||
background-color: #F8F8F8;
|
||||
border-radius: 16rpx;
|
||||
// background: url($imgurl+'common/goodsBg.png') no-repeat 0 0 / 100% 100%;
|
||||
margin-top: 30rpx;
|
||||
|
||||
.pic {
|
||||
width: 100%;
|
||||
height: 332rpx;
|
||||
background-color: #E4E4E4;
|
||||
position: relative;
|
||||
border-radius: 16rpx 16rpx 0rpx 0rpx;
|
||||
|
||||
.pic-img {
|
||||
// width: 290rpx;
|
||||
// height: 290rpx;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pic-type {
|
||||
padding: 0 21rpx 0 32rpx;
|
||||
height: 44rpx;
|
||||
position: absolute;
|
||||
top: 10rpx;
|
||||
right: 10rpx;
|
||||
|
||||
>text {
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #111111;
|
||||
text-shadow: 2rpx 2rpx #FFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
.pic-new {
|
||||
width: 80rpx;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
top: -10rpx;
|
||||
left: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
padding: 24rpx 26rpx 0;
|
||||
font-size: 20rpx;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.hang1 {}
|
||||
|
||||
.hot-num {
|
||||
padding: 10rpx 20rpx 0;
|
||||
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
.price-box {
|
||||
padding: 60rpx 20rpx 10rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.price {
|
||||
font-weight: 500;
|
||||
font-size: 18rpx;
|
||||
color: #333333;
|
||||
|
||||
text {
|
||||
font-size: 18rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.num-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.num {
|
||||
font-size: 18rpx;
|
||||
font-weight: 400;
|
||||
color: #6C6C6C;
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 20rpx;
|
||||
height: 17.56rpx;
|
||||
margin-left: 6rpx;
|
||||
}
|
||||
|
||||
.icon {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -2,62 +2,10 @@
|
|||
|
||||
<template>
|
||||
<view class="content">
|
||||
<!-- <view class="page-hd common_bg relative" :style="{
|
||||
backgroundImage: `url(${$img1('index/jifen.png')})`
|
||||
}"></view> -->
|
||||
<view class="title1">
|
||||
福利
|
||||
</view>
|
||||
<image :src="$img1('index/jifen.png')" style="width: 100%; margin-top: ;" mode=""></image>
|
||||
<view class="title1">福利</view>
|
||||
<image :src="$img1('index/jifen.png')" style="width: 100%; margin-top: 60rpx;" mode=""></image>
|
||||
|
||||
|
||||
<view class="list relative">
|
||||
<view class="list-item" v-for="(item, i) in datas" :key="i" @click="items(item)">
|
||||
<view class="pic center">
|
||||
<image class="pic-img" :src="item.imgurl" lazy-load></image>
|
||||
<!-- <view class="pic-type" :style="{background:'url('+ $img1('common/label1.png')+')'}">
|
||||
<text>积分赏</text>
|
||||
</view> -->
|
||||
<image :src="$img1('common/new1.png')" class="pic-new" mode="widthFix" v-if="item.new_is==1">
|
||||
</image>
|
||||
</view>
|
||||
<view class="title hang1">
|
||||
{{ item.title }}
|
||||
</view>
|
||||
<!-- <view class="hot-num">
|
||||
<template v-if="item.join_count">
|
||||
{{ item.join_count }}次参与
|
||||
</template>
|
||||
<template v-else>快去参与吧</template>
|
||||
</view> -->
|
||||
<view class="price-box">
|
||||
<view class="price">
|
||||
<text>{{ item.price }}</text>
|
||||
积分
|
||||
</view>
|
||||
<view class="num-box">
|
||||
<view class="num ml10">{{ item.sale_stock }}/{{ item.stock }}</view>
|
||||
<view class="box icon">
|
||||
<image :src="$img1('index/box.png')" lazy-load></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<uni-popup ref="show" type="center">
|
||||
<view class="pop common_bg" :style="{
|
||||
'background-image': `url(${$img('/static/img/yf_rule_pop_bg.png')})`
|
||||
}">
|
||||
<view class="pop_title">购买说明</view>
|
||||
<view class="pop_con">
|
||||
<scroll-view scroll-y="true" style="height: 600rpx">
|
||||
<view v-html="guize"></view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<image @click="$refs.show.close()" class="close" :src="$img('/static/icon/close.png')"></image>
|
||||
</view>
|
||||
</uni-popup>
|
||||
<!-- <tab-bar :index="1"></tab-bar> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -65,32 +13,10 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
current: 0,
|
||||
flga: false,
|
||||
datas: [],
|
||||
BarHeight: '',
|
||||
guize: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
items(item) {
|
||||
this.$c.to({
|
||||
url: '/pages/shouye/detail',
|
||||
query: {
|
||||
goods_id: item.id,
|
||||
type_text: '积分赏'
|
||||
}
|
||||
})
|
||||
},
|
||||
getlist(index) {
|
||||
this.current = index
|
||||
if (index == 1) {
|
||||
uni.navigateTo({
|
||||
url: 'UnlimitedOrder'
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
methods: {},
|
||||
onShow() {
|
||||
this.current = 0
|
||||
const curPages = getCurrentPages()[0]; // 获取当前页面实例
|
||||
|
|
@ -100,33 +26,7 @@
|
|||
});
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let that = this
|
||||
that.req({
|
||||
url: 'goods',
|
||||
data: {
|
||||
type: '5',
|
||||
page: 1
|
||||
},
|
||||
success(res) {
|
||||
that.datas = res.data.data
|
||||
}
|
||||
})
|
||||
// that.req({
|
||||
// url: 'danye',
|
||||
// data: {
|
||||
// type: 4
|
||||
// },
|
||||
// success: function (res) {
|
||||
// that.guize = res.data
|
||||
// }
|
||||
// })
|
||||
uni.getSystemInfo({
|
||||
success: function(res) {
|
||||
that.BarHeight = res.statusBarHeight
|
||||
}
|
||||
})
|
||||
}
|
||||
onLoad() {}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,11 @@
|
|||
<image style="width: 206rpx; height: 206rpx; position: absolute; top: -40rpx; right: 8rpx;"
|
||||
:src="$img1('my/ou.png')"></image>
|
||||
</view>
|
||||
|
||||
<view class="rbtn btn1 flex" @click="$c.to({ url: '/package/index/sign' })">
|
||||
<image class="img100" :src="$img1('my/sign.png')"></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user