init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
153
Application/Vip/View/CardBag/index3.html
可执行文件
153
Application/Vip/View/CardBag/index3.html
可执行文件
@@ -0,0 +1,153 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<!--[1.8.20]-->
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>卡包</title>
|
||||
<style>
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
padding: 20px 4% 0;
|
||||
}
|
||||
|
||||
.all {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.card-bag-nav {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.card-nav-left {
|
||||
font-size: 16px;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.card-nav-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-nav-left-img > img {
|
||||
width: 18px;
|
||||
height: 14px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.card-bag-list {
|
||||
width: 100%;
|
||||
height: 90px;
|
||||
position: relative;
|
||||
margin-bottom: 15px;
|
||||
overflow: hidden;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.card-bag-list-img {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.card-bag-list-img > img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card-bag-list-txt {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
font-size: 14px;
|
||||
padding: 10px 30px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
word-break: keep-all;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.no-card {
|
||||
width: 100%;
|
||||
color: #999999;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="all" id="all" v-cloak>
|
||||
<div v-if="show_tips" class="no-card">
|
||||
<span>暂无次卡</span>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div class="card-bag-nav">
|
||||
<div class="card-nav-left">
|
||||
<div class="card-nav-left-img">
|
||||
<img src="__PUBLIC__/paper/images/card-title.png">
|
||||
</div>
|
||||
<div>卡包</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-bag-lists">
|
||||
<div class="card-bag-list" v-for="(item,index) in card_list" @click="cardDetails(item.id)">
|
||||
<div class="card-bag-list-img">
|
||||
<img :src="item.image_url ? item.image_url : '__PUBLIC__/paper/images/sub_card.png'">
|
||||
</div>
|
||||
<div class="card-bag-list-txt" :style="{color: item.card_name_color}">{{item.name}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="__PUBLIC__/vue/js/vue2.5.16.js"></script>
|
||||
<script>
|
||||
new Vue({
|
||||
el: '#all',
|
||||
data: {
|
||||
card_list: [], // 用户所有次卡
|
||||
show_tips: true, // 文字提示(暂无次卡可用)
|
||||
},
|
||||
methods: {
|
||||
// 获取用户次卡
|
||||
getUserCardList: function () {
|
||||
var that = this;
|
||||
$.ajax({
|
||||
url: "{:U('getUserCardList')}",
|
||||
type: "post",
|
||||
success: function (res) {
|
||||
if (res.status == 1) {
|
||||
that.card_list = res.card_list;
|
||||
that.show_tips = false;
|
||||
} else {
|
||||
that.show_tips = true
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 跳转(次卡详情)
|
||||
cardDetails: function (id) {
|
||||
window.location.href = "{:U('cardDetails')}?id=" + id;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getUserCardList();
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户