修复展示问题等问题

This commit is contained in:
2022-08-12 14:49:06 +08:00
parent f2cb612887
commit 056be42456
14 changed files with 898 additions and 807 deletions

View File

@@ -9,8 +9,8 @@ import router from '../router'
// 基础配置 // 基础配置
const config = { const config = {
// apiUrl : 'https://api.gongli.vip/api/', // 正式环境 apiUrl : 'https://api.gongli.vip/api/', // 正式环境
apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试 // apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
timeout: 60000 timeout: 60000
} }
@@ -46,7 +46,7 @@ const request = (parameter, hideLoding = true) => {
data: parameter.data || {}, data: parameter.data || {},
method: parameter.method || 'GET', method: parameter.method || 'GET',
success: res => { success: res => {
console.log(res) // console.log(res)
if (res.header.Authorization) { if (res.header.Authorization) {
updateToken('token', res.header.Authorization) updateToken('token', res.header.Authorization)
} }

View File

@@ -58,9 +58,9 @@
position: absolute; position: absolute;
top: -40rpx; top: -40rpx;
right: -10rpx; right: -10rpx;
opacity: 0.1; opacity: 0.05;
font-size: 130rpx; font-size: 130rpx;
color: $main-color; color: #999;
z-index: 1; z-index: 1;
font-weight: bold; font-weight: bold;
} }

View File

@@ -561,7 +561,7 @@
} }
,{ ,{
"path" : "pages/store/vip/success/success", "path" : "pages/group-book/success/success",
"style" : "style" :
{ {
"navigationBarTitleText": "拼单更多", "navigationBarTitleText": "拼单更多",

View File

@@ -16,7 +16,7 @@
<!-- 详情 --> <!-- 详情 -->
<view class="main"> <view class="main">
<view class="title"> {{goods.name}} </view> <view class="title"> {{goods.name}} </view>
<view class="sub-title">{{goods.description}}</view> <view class="sub-title"><span class='vipType' v-if="shop_vip.messageTitle != ''">{{shop_vip.messageTitle}}</span>{{goods.description}}</view>
<view class="box-flex"> <view class="box-flex">
<view class="price"> <view class="price">
{{goods.price.show}}<text>DT积分</text> {{goods.price.show}}<text>DT积分</text>
@@ -377,7 +377,7 @@
}, },
applyPin() { applyPin() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/store/vip/success/success' url: '/pages/group-book/success/success'
}) })
} }
} }
@@ -446,7 +446,14 @@
border-radius: $radius $radius 0 0; border-radius: $radius $radius 0 0;
box-shadow: 0 0 10rpx 10rpx rgba($color: #000000, $alpha: .02); box-shadow: 0 0 10rpx 10rpx rgba($color: #000000, $alpha: .02);
padding-bottom: ($padding*2) + 90; padding-bottom: ($padding*2) + 90;
.vipType{
color: #fff;
font-size:28rpx;
margin-right:10rpx;
padding: 2rpx 20rpx;
background-color: #ee8000;
border-radius: 20rpx 0 20rpx 0;
}
.hr { .hr {
position: relative; position: relative;
min-height: 1rpx; min-height: 1rpx;

View File

@@ -5,29 +5,33 @@
<swiper-item class="swiper-item" v-for="item in vip" :key="item.identity_id"> <swiper-item class="swiper-item" v-for="item in vip" :key="item.identity_id">
<view class="top"> <view class="top">
<view class="left" v-if="vip.length > 1"> <view class="left" v-if="vip.length > 1">
<< 滑动获取更多 </view> <image class="left-img" src="/static/store/get-more.gif" mode="widthFix" /> 滑动获取更多
<view class="content"> </view>
<!-- 四个角标 --> <view class="content">
<block> <image class="jiao" src="../../../../static/store/vip-left-top.png" mode="widthFix" /> <image class="jiao" src="../../../../static/store/vip-right-top.png" mode="widthFix" /> <image class="jiao" src="../../../../static/store/vip-left-bottom.png" mode="widthFix" /> <image class="jiao" src="../../../../static/store/vip-right-bottom.png" mode="widthFix" /> </block> <!-- 四个角标 -->
<view class="title1"> {{item.shop.name}} </view> <block> <image class="jiao" src="/static/store/vip-left-top.png" mode="widthFix" /> <image class="jiao" src="/static/store/vip-right-top.png" mode="widthFix" /> <image class="jiao" src="/static/store/vip-left-bottom.png" mode="widthFix" /> <image class="jiao" src="/static/store/vip-right-bottom.png" mode="widthFix" /> </block>
<image class="title2" :src="item.title_cover" mode="widthFix" /> <view class="title1"> {{item.shop.name}} </view>
<view class="title3"> {{item.description}} </view> <!-- 分类 --> <image class="title2" :src="item.title_cover" mode="widthFix" />
<view class="type"> <view class="title3"> {{item.description}} </view> <!-- 分类 -->
<view class="type-item" v-for="it in item.rules" :key="it.order"> <view class="type">
<image :src="it.cover" mode="aspectFill" /> <view class="type-item" v-for="it in item.rules" :key="it.order">
<view class="title">{{it.name}}</view> <image :src="it.cover" mode="aspectFill" />
</view> <view class="title">{{it.name}}</view>
</view>
<view class="title4">---| 仅需开通 立享尊贵特权 |---</view>
</view> </view>
<view class="right" v-if="vip.length > 1"> 滑动获取更多 >> </view> </view>
<view class="title4">详情咨询可添加产品页下方客服二维码</view>
</view>
<view class="right" v-if="vip.length > 1"> 滑动获取更多 <image class="right-img" src="/static/store/get-more.gif" mode="widthFix" /> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="left"> <view class="left">
<view class="title-1">立享尊贵特权 >> </view> <view class="title-1">立享尊贵特权 >> </view>
<view class="title-2" v-if="item.vip_info.ended_at"> 到期时间{{item.vip_info.ended_at}} </view> <view class="title-2" v-if="item.vip_info.ended_at"> 到期时间{{item.vip_info.ended_at}} </view>
<view class="title-2" v-if="item.margins.days>0"> 距离{{item.margins.days}}天只需要补{{item.margins.price}}元升级 </view>
</view>
<view class="right" @click="onOpenVip(item.identity_id)">
{{item.is_vip ?'立即续费':item.margins.days>0 ? '立即升级':'立即开通'}}
</view> </view>
<view class="right" @click="onOpenVip(item.identity_id)">{{item.is_vip?'立即续费':'立即开通'}} </view>
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>
@@ -162,8 +166,19 @@
color: #999; color: #999;
text-align: right; text-align: right;
width: 100%; width: 100%;
padding-right: 20%; padding-bottom: 6%;
padding-bottom: 6%; display: flex;
flex-direction: row;
align-items: center;
box-sizing: border-box;
justify-content: flex-end;
margin-right: 20%;
box-sizing: border-box;
.right-img{
width: 50rpx;
margin-left: 10rpx;
opacity: 0.6;
}
} }
.left { .left {
@@ -171,8 +186,20 @@
color: #999; color: #999;
text-align: left; text-align: left;
width: 100%; width: 100%;
padding-left: 20%; padding-top: 6%;
padding-top: 6%; display: flex;
flex-direction: row;
align-items: center;
box-sizing: border-box;
justify-content: flex-start;
margin-left: 20%;
box-sizing: border-box;
.left-img{
width: 50rpx;
transform: rotate(180deg);
margin-right: 10rpx;
opacity: 0.6;
}
} }
.content { .content {

View File

@@ -119,7 +119,7 @@
top: 22rpx; top: 22rpx;
color: #fff; color: #fff;
right: -46rpx; right: -46rpx;
background: rgba($color: #d81e06, $alpha: 0.5); background: rgba($color: #ffaa00, $alpha: 0.9);
font-size: 30rpx; font-size: 30rpx;
padding: 2rpx 50rpx; padding: 2rpx 50rpx;
text-align: center; text-align: center;

BIN
static/store/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

BIN
static/store/get-more.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long