Commit c388e94d authored by 郑秀明's avatar 郑秀明
parents 1b2dc769 5057d0e8
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "shop_mobile_uni", "name": "shop_mobile_uni",
"appid": "__UNI__F904656", "appid": "__UNI__F904656",
"description": "", "description": "",
"versionName": "1.0.17", "versionName": "1.0.18",
"versionCode": "100", "versionCode": "100",
"transformPx": false, "transformPx": false,
"app-plus": { "app-plus": {
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"mode": "history", "mode": "history",
"base": "/uni" "base": "/uni"
}, },
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/mirror/1.0.17/", "publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/mirror/1.0.18/",
"optimization": { "optimization": {
"treeShaking": { "treeShaking": {
"enable": true "enable": true
......
{ {
"name": "shop_mobile_uni", "name": "shop_mobile_uni",
"version": "1.0.16", "version": "1.0.18",
"description": "谛宝多多商城", "description": "谛宝多多商城",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<text class="title2">花积分:</text> <text class="title2">花积分:</text>
<text class="tab" style="margin-left: 0;">兑好礼</text> <text class="tab" style="margin-left: 0;">兑好礼</text>
<text class="tab">兑权益</text> <text class="tab">兑权益</text>
<text class="tab">支付抵扣</text> <!-- <text class="tab">支付抵扣</text> -->
</view> </view>
</view> </view>
<view class="content"> <view class="content">
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
<text class="eosfont" @click="$jump(`/pages/signRecord/signRecord?sign_id=${sign_id}&sign_days_continues=${sign_days_continues}`,2)">我的签到记录&#xe744;</text> <text class="eosfont" @click="$jump(`/pages/signRecord/signRecord?sign_id=${sign_id}&sign_days_continues=${sign_days_continues}`,2)">我的签到记录&#xe744;</text>
</view> </view>
<view class="days"> <view class="days">
<view class="day_item" v-for="(item, index) in sign_list" :key="index"> <view class="day_item" v-for="(item, index) in sign_list" :key="index" :style="[(index+1)%7 === 0 ? {'margin-right': '0'} : null]">
<view v-if="item.sign_goods_logo" class="item_bg" style="background-color: transparent;"> <view v-if="item.sign_goods_logo" class="item_bg" style="background-color: transparent;">
<image :src="item.sign_goods_logo"></image> <image :src="item.sign_goods_logo"></image>
</view> </view>
<view class="item_bg" v-else :class="{act: item.is_sign === '1'}">+{{item.point}}</view> <view class="item_bg" v-else :class="{act: item.is_sign === '1'}">+{{item.point}}</view>
<view class="day" v-if="item.date_diff !== '0'" :class="{seven: index === 6}">第{{index+1}}</view> <view class="day" v-if="item.date_diff !== '0'" :class="{seven: index === sign_list.length-1}">第{{index+1}}</view>
<view class="day actDay" v-else>今天</view> <view class="day actDay" v-else>今天</view>
</view> </view>
</view> </view>
...@@ -296,13 +296,12 @@ ...@@ -296,13 +296,12 @@
} }
.sign_content { .sign_content {
width: 702rpx; width: 702rpx;
height: 396rpx;
background: #fff; background: #fff;
border-radius: 16rpx; border-radius: 16rpx;
margin: 0 auto; margin: 0 auto;
overflow: hidden; overflow: hidden;
box-shadow:0px 4px 16px 0px rgba(0,0,0,0.04); box-shadow:0px 4px 16px 0px rgba(0,0,0,0.04);
padding: 0 26rpx; padding: 0 26rpx 32rpx;
box-sizing: border-box; box-sizing: border-box;
.content_flex { .content_flex {
display: flex; display: flex;
...@@ -324,7 +323,8 @@ ...@@ -324,7 +323,8 @@
} }
.days { .days {
display: flex; display: flex;
justify-content: space-between; justify-content: center;
flex-wrap: wrap;
align-items: center; align-items: center;
margin: 40rpx auto 30rpx; margin: 40rpx auto 30rpx;
} }
...@@ -359,6 +359,7 @@ ...@@ -359,6 +359,7 @@
} }
} }
.day_item { .day_item {
margin: 0 20rpx 24rpx 0;
.item_bg { .item_bg {
background: url('https://dbc-static.oss-cn-beijing.aliyuncs.com/static/3881593574115_.pic.jpg') no-repeat; background: url('https://dbc-static.oss-cn-beijing.aliyuncs.com/static/3881593574115_.pic.jpg') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
...@@ -408,7 +409,7 @@ ...@@ -408,7 +409,7 @@
.day_item2 { .day_item2 {
margin-right: 36rpx; margin-right: 36rpx;
} }
.day_item2:nth-of-type(4), .day_item2:last-child { .day_item2:nth-of-type(4n) {
margin-right: 0; margin-right: 0;
} }
.benefit_title { .benefit_title {
...@@ -549,14 +550,13 @@ ...@@ -549,14 +550,13 @@
} }
.dialog_content { .dialog_content {
width: 100%; width: 100%;
height: 532rpx;
border-radius: 40rpx; border-radius: 40rpx;
background-color: #fff; background-color: #fff;
margin-top: 40rpx; margin-top: 40rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
padding: 48rpx 0 0; padding: 48rpx 0 20rpx;
} }
.dialog_btn { .dialog_btn {
width: 480rpx; width: 480rpx;
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
<view class="top_title">当前等级权益</view> <view class="top_title" v-if="titleFlag">当前等级权益</view>
<view class="now_benefit" v-for="(val, key) in member_list" v-if="key === index" :key="key" :style="[heightFlag ? {'height': height+'rpx'} : null]" :class="val.grade_list.length > 4 ? 'height1' : 'height2'"> <view class="now_benefit" v-for="(val, key) in member_list" v-if="key === index && val.grade_list !==null" :key="key" :style="[heightFlag ? {'height': height+'rpx'} : null]" :class="val.grade_list.length > 4 ? 'height1' : 'height2'">
<view class="benefit_item" v-for="(item, k) in val.grade_list" :key="k" :style="[key != 0 ? {color: 'rgba(255,255,255,0.4)'} : null]"> <view class="benefit_item" v-for="(item, k) in val.grade_list" :key="k" :style="[key != 0 ? {color: 'rgba(255,255,255,0.4)'} : null]">
{{item.short_title}} {{item.short_title}}
<text class="dia" v-if="key === 0"></text> <text class="dia" v-if="key === 0"></text>
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
}], }],
index: 0, index: 0,
moreFlag: true, moreFlag: true,
titleFlag: true,
php: php php: php
} }
}, },
...@@ -116,6 +117,12 @@ ...@@ -116,6 +117,12 @@
}, },
changeHeight(data, index) { changeHeight(data, index) {
this.index = index; this.index = index;
if(data === null) {
this.moreFlag = false;
this.titleFlag = false;
return
}
this.titleFlag = true;
if(data.length > 8) { if(data.length > 8) {
this.moreFlag = true; this.moreFlag = true;
} else { } else {
...@@ -128,6 +135,12 @@ ...@@ -128,6 +135,12 @@
swiperChange(e) { swiperChange(e) {
var current = e.detail.current; var current = e.detail.current;
this.index = current; this.index = current;
if(this.member_list[current].grade_list === null) {
this.moreFlag = false;
this.titleFlag = false;
return
}
this.titleFlag = true;
let length = this.member_list[current].grade_list.length; let length = this.member_list[current].grade_list.length;
if(length > 8) { if(length > 8) {
this.moreFlag = true; this.moreFlag = true;
...@@ -151,7 +164,7 @@ ...@@ -151,7 +164,7 @@
background-color: #2D3239; background-color: #2D3239;
overflow: hidden; overflow: hidden;
margin-top: -8rpx; margin-top: -8rpx;
padding: 0 24rpx; padding: 0 24rpx 24rpx;
border-radius: 0 0 24rpx 24rpx; border-radius: 0 0 24rpx 24rpx;
} }
.swiper_content { .swiper_content {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment