首页、已订阅产品

master
yujialong 3 years ago
parent 85416a34d0
commit 92e4cd7bd9
  1. 16
      pages.json
  2. 51
      pages/index/index.vue
  3. 72
      pages/ordered/ordered.vue
  4. BIN
      static/filter.png
  5. BIN
      static/image/course1.png
  6. BIN
      static/image/index/index1.png
  7. BIN
      static/image/index/index2.png
  8. BIN
      static/image/index/index3.png
  9. BIN
      static/image/index/index4.png
  10. BIN
      static/image/index/index5.png
  11. BIN
      static/image/index/index6.png
  12. BIN
      static/image/index/index7.png
  13. 5
      styles/common.scss

@ -1,5 +1,13 @@
{
"pages": [
{
"path" : "pages/clients/clients",
"style" :
{
"navigationBarTitleText": "客户列表",
"enablePullDownRefresh": true
}
},
{
"path": "pages/index/index",
"style": {
@ -13,14 +21,6 @@
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/clients/clients",
"style" :
{
"navigationBarTitleText": "客户列表",
"enablePullDownRefresh": true
}
},
{
"path" : "pages/invite/invite",

@ -1,9 +1,24 @@
<template>
<view class="container">
<button class="confirm-btn" @click="login1">微信授权登录</button>
<view class="v">
{{text}}
</view>
<view class="page">
<image class="banner" src="../../static/image/index/index1.png" mode="widthFix"></image>
<ul class="entry">
<li @click="$util.to('../clients/clients')">
<image class="icon" src="../../static/image/index/index3.png" mode="widthFix"></image>
<view class="text">客户</view>
</li>
<li @click="$util.to('../plans/plans')">
<image class="icon" src="../../static/image/index/index4.png" mode="widthFix"></image>
<view class="text">方案</view>
</li>
<li @click="$util.to('../orders/orders')">
<image class="icon" src="../../static/image/index/index5.png" mode="widthFix"></image>
<view class="text">订单</view>
</li>
<li>
<image class="icon" src="../../static/image/index/index6.png" mode="widthFix"></image>
<view class="text">产品</view>
</li>
</ul>
</view>
</template>
@ -37,9 +52,27 @@
}
</script>
<style>
.v {
white-space: normal;
word-wrap: break-word;
<style scoped lang="scss">
.page {
min-height: 100%;
padding: 30rpx 22rpx;
background: url(../../static/image/index/index2.png) 0 0/100% 100% no-repeat;
}
.banner {
width: 100%;
}
.entry {
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 10rpx;
text-align: center;
.icon {
width: 78rpx;
}
.text {
font-size: 28rpx;
color: #333;
}
}
</style>

@ -14,17 +14,23 @@
<ul class="list">
<li v-for="item in list" @click="toDetail">
<view class="line thead">
<view class="text">产品名称</view>
<view class="text">起止日期</view>
<view class="text">订阅状态</view>
<view class="text">产品状态</view>
<view class="pro-name">
<image class="icon" src="../../static/image/course1.png" mode="widthFix"></image>
{{ item.productName }}
</view>
<view class="line tbody">
<view class="text">{{ item.productName }}</view>
<view class="text">{{ item.startAndEndTime }}</view>
<view class="text uni-success">{{ item.status }}</view>
<view class="text uni-error">{{ item.isEnable }}</view>
<view class="info">
<view class="line">
<text class="name">起止日期</text>
<text class="val">{{ item.startAndEndTime }}</text>
</view>
<view class="line">
<text class="name">订阅状态</text>
<text class="val">{{ item.status }}</text>
</view>
<view class="line">
<text class="name">产品状态</text>
<text class="val">{{ item.isEnable }}</text>
</view>
</view>
</li>
</ul>
@ -225,31 +231,39 @@
margin-bottom: 10px;
}
.list {
background-color: #fff;
li {
padding: 20px;
border-bottom: 2px solid #f8f8f8;
padding: 0 24rpx;
margin: 16rpx 24rpx;
background-color: #fff;
border-radius: 16rpx;
}
.pro-name {
display: flex;
align-items: center;
padding: 18rpx 0;
font-size: 30rpx;
color: #333;
border-bottom: 1px solid #E6E8ED;
.icon {
width: 52rpx;
margin-right: 20rpx;
}
}
.info {
padding: 12rpx 0;
}
.line {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
padding: 12rpx 0;
}
.text {
width: 30%;
font-size: 14px;
&:first-child {
margin-right: 10px;
}
&:nth-child(3), &:last-child {
width: 20%;
text-align: center;
}
.name {
margin-right: 10rpx;
font-size: 28rpx;
color: #999;
}
.thead {
.text {
color: #767676;
}
.val {
font-size: 28rpx;
color: #333;
}
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 B

@ -66,13 +66,12 @@ page {
.tab {
display: flex;
justify-content: space-around;
padding: 10px;
margin-bottom: 10px;
background-color: #fff;
li {
padding: 0 4px;
padding: 0 10px;
font-size: 14px;
line-height: 30px;
line-height: 50px;
border-bottom: 3px solid transparent;
}
.active {

Loading…
Cancel
Save