Commit b4531d6e authored by Mac's avatar Mac

修改列表

parent 258829e6
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
<image mode="aspectFill" :src="x.CardBagIco" style="width: 100%;height: 100%;border-radius: 6px;"></image> <image mode="aspectFill" :src="x.CardBagIco" style="width: 100%;height: 100%;border-radius: 6px;"></image>
<view class="bj"></view> <view class="bj"></view>
<view class="btext"> <view class="btext">
<text>{{x.Name}}</text> <text class="btext-l">{{x.CardNo}}</text>
<text class="btext-r">{{x.Name}}</text>
</view> </view>
<view class="bj2" v-if="x.IsOver==1"></view> <view class="bj2" v-if="x.IsOver==1"></view>
<image mode="aspectFill" v-if="x.IsOver==1" class="imgs" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/studycardgq.png" ></image> <image mode="aspectFill" v-if="x.IsOver==1" class="imgs" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/studycardgq.png" ></image>
...@@ -50,6 +51,18 @@ ...@@ -50,6 +51,18 @@
<u-loading mode="flower" size="48">></u-loading> <u-loading mode="flower" size="48">></u-loading>
<Text style="color: #fff; margin-top: 10rpx;">加载中...</Text> <Text style="color: #fff; margin-top: 10rpx;">加载中...</Text>
</view> </view>
<view v-if="show==true" class="pu" @click="show=false">
<view class="pu-box">
<image mode="widthFix" :src="selectobj.CardBagIco" style="width: 100%;height: 100%;"></image>
<view class="pu-btoom">
<view>{{selectobj.CardNo}}</view>
<view style="margin-top: 12px;font-size: 12px;display: flex;flex-direction: row;align-items: center;">
<view style="margin-right: 10px;max-width: 100px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{useName}}</view>
{{selectobj.EndDate.split('T')[0].split('-')[1]+'/'+selectobj.EndDate.split('T')[0].split('-')[0].toString().substr(2, 2)}}
</view>
</view>
</view>
</view>
<!-- 取消提示 --> <!-- 取消提示 -->
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
...@@ -67,10 +80,10 @@ export default { ...@@ -67,10 +80,10 @@ export default {
pageTitle: "会员卡", pageTitle: "会员卡",
showAuth:false, showAuth:false,
u:{}, u:{},
show:false,
mainColor: "", mainColor: "",
contentHeight: 0, contentHeight: 0,
msg:{ msg:{
pageIndex: 1, pageIndex: 1,
pageSize:10, pageSize:10,
...@@ -84,11 +97,14 @@ export default { ...@@ -84,11 +97,14 @@ export default {
loading: "努力加载中", loading: "努力加载中",
nomore: "没有更多了", nomore: "没有更多了",
}, },
selectobj:{},
useName:'',
}; };
}, },
created() { created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px"; this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.useName = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").Name:''
}, },
mounted() { mounted() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
...@@ -158,11 +174,13 @@ export default { ...@@ -158,11 +174,13 @@ export default {
uni.navigateBack() uni.navigateBack()
}, },
gocoupon(item){ gocoupon(item){
if(item.IsOver==0){ this.selectobj = item;
uni.navigateTo({ this.show=true
url: "/pages/reserve/personal/vipDetail?ID="+item.ID, // if(item.IsOver==0){
}) // uni.navigateTo({
} // url: "/pages/reserve/personal/vipDetail?ID="+item.ID,
// })
// }
} }
...@@ -227,10 +245,12 @@ export default { ...@@ -227,10 +245,12 @@ export default {
left: 0; left: 0;
top: 0; top: 0;
font-size: 12px; font-size: 12px;
padding: 15px;
color: #FFF; color: #FFF;
display: flex; display: flex;
flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: space-between;
} }
.bj2{ .bj2{
width: 100%; width: 100%;
...@@ -248,5 +268,46 @@ export default { ...@@ -248,5 +268,46 @@ export default {
position: absolute;top: 0px; position: absolute;top: 0px;
right: 0px; right: 0px;
} }
.btext-l{
width: 1;
flex:1;
margin-right: 20px;
font-size: 18px;
}
.btext-r{
width: 100px;
text-align: right;
overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
}
.myVipList .pu{
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.9);
position: fixed;
left: 0;
top: 0;
z-index: 999;
display: flex;
align-items: center;
justify-content: center;
}
.pu-box{
width: 100%;
/* height: 230px; */
position: relative;
}
.pu-btoom{
width: 100%;
height: 100%;
color: #FFF;font-size: 15px;
position: absolute;
padding: 15px;
left: 0;
top: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
</style> </style>
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