正在显示
39 个修改的文件
包含
1078 行增加
和
88 行删除
1 | /**app.wxss**/ | 1 | /**app.wxss**/ |
2 | -.container { | ||
3 | - height: 100%; | ||
4 | - display: flex; | ||
5 | - flex-direction: column; | ||
6 | - align-items: center; | ||
7 | - justify-content: space-between; | ||
8 | - padding: 200rpx 0; | ||
9 | - box-sizing: border-box; | 2 | + |
3 | +@font-face { | ||
4 | + font-family: 'iconfont'; /* project id 1064555 */ | ||
5 | + src: url('//at.alicdn.com/t/font_1064555_yx59k1gs2ch.eot'); | ||
6 | + src: url('//at.alicdn.com/t/font_1064555_yx59k1gs2ch.eot?#iefix') format('embedded-opentype'), | ||
7 | + url('//at.alicdn.com/t/font_1064555_yx59k1gs2ch.woff2') format('woff2'), | ||
8 | + url('//at.alicdn.com/t/font_1064555_yx59k1gs2ch.woff') format('woff'), | ||
9 | + url('//at.alicdn.com/t/font_1064555_yx59k1gs2ch.ttf') format('truetype'), | ||
10 | + url('//at.alicdn.com/t/font_1064555_yx59k1gs2ch.svg#iconfont') format('svg'); | ||
11 | +} | ||
12 | +.iconfont { | ||
13 | + font-family: "iconfont" !important; | ||
14 | + font-size: 16px; | ||
15 | + font-style: normal; | ||
16 | + -webkit-font-smoothing: antialiased; | ||
17 | + -moz-osx-font-smoothing: grayscale; | ||
18 | +} | ||
19 | + | ||
20 | +.icon-fenxiang:before { | ||
21 | + content: "\e600"; | ||
22 | +} | ||
23 | + | ||
24 | +.icon-yanjing:before { | ||
25 | + content: "\e6bc"; | ||
26 | +} | ||
27 | + | ||
28 | +.icon-pinglun:before { | ||
29 | + content: "\e61f"; | ||
30 | +} | ||
31 | + | ||
32 | +.icon-renzheng:before { | ||
33 | + content: "\e625"; | ||
34 | +} | ||
35 | + | ||
36 | +.icon-xing:before { | ||
37 | + content: "\e60e"; | ||
38 | +} | ||
39 | + | ||
40 | +.icon-zan2:before { | ||
41 | + content: "\e601"; | ||
42 | +} | ||
43 | + | ||
44 | +.icon-yanjing1:before { | ||
45 | + content: "\e644"; | ||
46 | +} | ||
47 | + | ||
48 | +.icon-zan21:before { | ||
49 | + content: "\e63f"; | ||
50 | +} | ||
51 | + | ||
52 | +.icon-pinglun1:before { | ||
53 | + content: "\e602"; | ||
54 | +} | ||
55 | + | ||
56 | +.icon-gengduo:before { | ||
57 | + content: "\e670"; | ||
58 | +} | ||
59 | + | ||
60 | +.icon-gengduo1:before { | ||
61 | + content: "\e651"; | ||
62 | +} | ||
63 | + | ||
64 | +.icon-favorite_diss:before { | ||
65 | + content: "\e603"; | ||
66 | +} | ||
67 | + | ||
68 | +.icon-renzheng1:before { | ||
69 | + content: "\e8fd"; | ||
70 | +} | ||
71 | + | ||
72 | +.icon-go:before { | ||
73 | + content: "\e604"; | ||
74 | +} | ||
75 | + | ||
76 | +.icon-zan:before { | ||
77 | + content: "\e6aa"; | ||
78 | +} | ||
79 | + | ||
80 | +.icon-jia1:before { | ||
81 | + content: "\e642"; | ||
82 | +} | ||
83 | + | ||
84 | +.icon-shanchu:before { | ||
85 | + content: "\e674"; | ||
86 | +} | ||
87 | + | ||
88 | +.icon-wodetiezi:before { | ||
89 | + content: "\e605"; | ||
90 | +} | ||
91 | + | ||
92 | +.icon-bianji:before { | ||
93 | + content: "\e656"; | ||
94 | +} | ||
95 | + | ||
96 | +.icon-bianji1:before { | ||
97 | + content: "\e607"; | ||
98 | +} | ||
99 | + | ||
100 | +.icon-bianji2:before { | ||
101 | + content: "\e60f"; | ||
102 | +} | ||
103 | + | ||
104 | +.icon-yuanzhang-di:before { | ||
105 | + content: "\e606"; | ||
106 | +} | ||
107 | + | ||
108 | +.icon-tongzhi:before { | ||
109 | + content: "\e608"; | ||
10 | } | 110 | } |
images/01_nav_fill@2x.png
0 → 100644
292 字节
images/02_nav@2x.png
0 → 100644
1.7 KB
images/02_nav_fill@2x.png
0 → 100644
1.8 KB
images/03_nav@2x.png
0 → 100644
1.1 KB
images/03_nav_fill@2x.png
0 → 100644
1.2 KB
images/04_nav@2x.png
0 → 100644
1.4 KB
images/04_nav_fill@2x.png
0 → 100644
1.4 KB
images/guangfang@2x.png
0 → 100644
747 字节
images/huifujishi@2x.png
0 → 100644
7.8 KB
images/huifuyiban@2x.png
0 → 100644
7.8 KB
images/huifuzhihuan @3x.png
0 → 100644
8.3 KB
images/img.jpg
0 → 100644
25.0 KB
images/ren@2x.png
0 → 100644
596 字节
images/shiliang@2x.png
0 → 100644
314 字节
images/tishi@2x.png
0 → 100644
688 字节
images/weidu@2x.png
0 → 100644
639 字节
images/weirenzheng@2x.png
0 → 100644
13.5 KB
images/zuire@2x.png
0 → 100644
506 字节
pages/interact/interact.js
0 → 100644
1 | +// pages/interact/interact.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + | ||
9 | + }, | ||
10 | + | ||
11 | + /** | ||
12 | + * 生命周期函数--监听页面加载 | ||
13 | + */ | ||
14 | + onLoad: function (options) { | ||
15 | + | ||
16 | + }, | ||
17 | + | ||
18 | + /** | ||
19 | + * 生命周期函数--监听页面初次渲染完成 | ||
20 | + */ | ||
21 | + onReady: function () { | ||
22 | + | ||
23 | + }, | ||
24 | + | ||
25 | + /** | ||
26 | + * 生命周期函数--监听页面显示 | ||
27 | + */ | ||
28 | + onShow: function () { | ||
29 | + | ||
30 | + }, | ||
31 | + | ||
32 | + /** | ||
33 | + * 生命周期函数--监听页面隐藏 | ||
34 | + */ | ||
35 | + onHide: function () { | ||
36 | + | ||
37 | + }, | ||
38 | + | ||
39 | + /** | ||
40 | + * 生命周期函数--监听页面卸载 | ||
41 | + */ | ||
42 | + onUnload: function () { | ||
43 | + | ||
44 | + }, | ||
45 | + | ||
46 | + /** | ||
47 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | + */ | ||
49 | + onPullDownRefresh: function () { | ||
50 | + | ||
51 | + }, | ||
52 | + | ||
53 | + /** | ||
54 | + * 页面上拉触底事件的处理函数 | ||
55 | + */ | ||
56 | + onReachBottom: function () { | ||
57 | + | ||
58 | + }, | ||
59 | + | ||
60 | + /** | ||
61 | + * 用户点击右上角分享 | ||
62 | + */ | ||
63 | + onShareAppMessage: function () { | ||
64 | + | ||
65 | + } | ||
66 | +}) |
pages/interact/interact.json
0 → 100644
pages/interact/interact.wxml
0 → 100644
pages/interact/interact.wxss
0 → 100644
1 | +/* pages/interact/interact.wxss */ |
pages/interact/interactPost/interactPost.js
0 → 100644
1 | +// pages/interact/interactPost/interactPost.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + images: ['/images/huifujishi@2x.png', '/images/huifuyiban@2x.png'], | ||
9 | + }, | ||
10 | + | ||
11 | + /** | ||
12 | + * 生命周期函数--监听页面加载 | ||
13 | + */ | ||
14 | + onLoad: function (options) { | ||
15 | + | ||
16 | + }, | ||
17 | + | ||
18 | + /** | ||
19 | + * 生命周期函数--监听页面初次渲染完成 | ||
20 | + */ | ||
21 | + onReady: function () { | ||
22 | + | ||
23 | + }, | ||
24 | + | ||
25 | + /** | ||
26 | + * 生命周期函数--监听页面显示 | ||
27 | + */ | ||
28 | + onShow: function () { | ||
29 | + | ||
30 | + }, | ||
31 | + | ||
32 | + /** | ||
33 | + * 生命周期函数--监听页面隐藏 | ||
34 | + */ | ||
35 | + onHide: function () { | ||
36 | + | ||
37 | + }, | ||
38 | + | ||
39 | + /** | ||
40 | + * 生命周期函数--监听页面卸载 | ||
41 | + */ | ||
42 | + onUnload: function () { | ||
43 | + | ||
44 | + }, | ||
45 | + | ||
46 | + /** | ||
47 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | + */ | ||
49 | + onPullDownRefresh: function () { | ||
50 | + | ||
51 | + }, | ||
52 | + | ||
53 | + /** | ||
54 | + * 页面上拉触底事件的处理函数 | ||
55 | + */ | ||
56 | + onReachBottom: function () { | ||
57 | + | ||
58 | + }, | ||
59 | + | ||
60 | + /** | ||
61 | + * 用户点击右上角分享 | ||
62 | + */ | ||
63 | + onShareAppMessage: function () { | ||
64 | + | ||
65 | + } | ||
66 | +}) |
1 | +<!--pages/interact/interactPost/interactPost.wxml--> | ||
2 | +<view class='box'> | ||
3 | + <view class='banner_box'> | ||
4 | + <view class='type_box' bindtap="showPicker"> | ||
5 | + <view> | ||
6 | + <input placeholder='输入主题...' placeholder-class='input_size' value='{{title}}' bindinput='setTitle'></input> | ||
7 | + </view> | ||
8 | + </view> | ||
9 | + <view class='textarea_box'> | ||
10 | + <textarea class='textarea' placeholder='输入内容...' placeholder-class='input_size' maxlength='{{max2}}' value='{{text}}' bindinput='setText'> | ||
11 | + </textarea> | ||
12 | + </view> | ||
13 | + <view class='upload_box'> | ||
14 | + <block wx:for="{{images}}" wx:for-item="image" wx:key="index"> | ||
15 | + <view class='upload_img'> | ||
16 | + <view class='icon_box'> | ||
17 | + <view class='iconfont icon-shanchu' catchtap="deleteImg" data-index="{{index}}"></view> | ||
18 | + </view> | ||
19 | + <image src='{{image}}' data-index="{{index}}" mode="aspectFill" bindtap="previewImg"></image> | ||
20 | + </view> | ||
21 | + </block> | ||
22 | + <view class='upload_img' bindtap="choose"> | ||
23 | + <view class='iconfont icon-jia1'></view> | ||
24 | + </view> | ||
25 | + </view> | ||
26 | + </view> | ||
27 | + <view class='bottom_btn'>发表帖子</view> | ||
28 | +</view> |
1 | +/* pages/interact/interactPost/interactPost.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f7f7f7; | ||
5 | +} | ||
6 | + | ||
7 | +.box { | ||
8 | + padding: 30rpx; | ||
9 | + box-sizing: border-box; | ||
10 | +} | ||
11 | + | ||
12 | +.banner_box { | ||
13 | + background: #fff; | ||
14 | + padding: 30rpx; | ||
15 | +} | ||
16 | + | ||
17 | +.textarea_box { | ||
18 | + width: 100%; | ||
19 | + min-height: 200rpx; | ||
20 | +} | ||
21 | + | ||
22 | +.textarea { | ||
23 | + width: 100%; | ||
24 | + min-height: 200rpx; | ||
25 | + padding: 20rpx 0; | ||
26 | + position: relative; | ||
27 | + font-size: 28rpx; | ||
28 | +} | ||
29 | + | ||
30 | +.number { | ||
31 | + position: absolute; | ||
32 | + bottom: 0; | ||
33 | + right: 0; | ||
34 | + color: #a5a6a8; | ||
35 | + font-size: 28rpx; | ||
36 | +} | ||
37 | + | ||
38 | +.textarea_size { | ||
39 | + font-size: 32rpx; | ||
40 | + color: #808080; | ||
41 | +} | ||
42 | + | ||
43 | +.upload_box { | ||
44 | + display: flex; | ||
45 | + flex-wrap: wrap; | ||
46 | + align-items: center; | ||
47 | +} | ||
48 | + | ||
49 | +.upload_img { | ||
50 | + width: 187rpx; | ||
51 | + height: 187rpx; | ||
52 | + border: 1rpx dashed #ebebeb; | ||
53 | + display: flex; | ||
54 | + align-items: center; | ||
55 | + justify-content: center; | ||
56 | + position: relative; | ||
57 | + margin-right: 20rpx; | ||
58 | + margin-bottom: 20rpx; | ||
59 | +} | ||
60 | + | ||
61 | +.icon-jia1 { | ||
62 | + color: #ebebeb; | ||
63 | + font-size: 100rpx; | ||
64 | +} | ||
65 | + | ||
66 | +.upload_img:nth-child(5), .upload_img:nth-child(10) { | ||
67 | + margin-right: 0; | ||
68 | +} | ||
69 | + | ||
70 | +.upload_img image { | ||
71 | + width: 100%; | ||
72 | + height: 100%; | ||
73 | +} | ||
74 | + | ||
75 | +.icon_box { | ||
76 | + display: flex; | ||
77 | + align-items: center; | ||
78 | + justify-content: center; | ||
79 | + position: absolute; | ||
80 | + right: -12rpx; | ||
81 | + top: -12rpx; | ||
82 | +} | ||
83 | + | ||
84 | +.icon-shanchu { | ||
85 | + font-size: 40rpx; | ||
86 | + color: #f70e0e; | ||
87 | +} | ||
88 | + | ||
89 | +.type_box { | ||
90 | + width: 100%; | ||
91 | + height: 86rpx; | ||
92 | + display: flex; | ||
93 | + align-items: center; | ||
94 | + justify-content: space-between; | ||
95 | + border-bottom: 1rpx solid #f5f5f5; | ||
96 | +} | ||
97 | + | ||
98 | +.type_box input { | ||
99 | + font-size: 28rpx; | ||
100 | +} | ||
101 | + | ||
102 | +.type_info { | ||
103 | + font-size: 32rpx; | ||
104 | + color: RGBA(102, 102, 102, 0.6); | ||
105 | +} | ||
106 | + | ||
107 | +.list_input { | ||
108 | + width: 100%; | ||
109 | + height: 86rpx; | ||
110 | + display: flex; | ||
111 | + align-items: center; | ||
112 | +} | ||
113 | + | ||
114 | +.input_box input { | ||
115 | + font-size: 32rpx; | ||
116 | +} | ||
117 | + | ||
118 | +.add-border { | ||
119 | + border-bottom: 1rpx solid #ebebeb; | ||
120 | +} | ||
121 | + | ||
122 | + | ||
123 | +.input_size { | ||
124 | + font-size: 32rpx; | ||
125 | + color: #ccc; | ||
126 | +} | ||
127 | + | ||
128 | +.areas { | ||
129 | + width: 100%; | ||
130 | + height: 100%; | ||
131 | + font-size: 26rpx; | ||
132 | + position: relative; | ||
133 | +} | ||
134 | + | ||
135 | +.bottom_btn { | ||
136 | + width: 100%; | ||
137 | + height: 96rpx; | ||
138 | + background: #000; | ||
139 | + background: linear-gradient(336deg, rgba(0, 128, 255, 1) 0%, rgba(0, 194, 255, 1) 100%); | ||
140 | + border-radius: 8rpx; | ||
141 | + font-size: 34rpx; | ||
142 | + font-weight: bold; | ||
143 | + color: #fff; | ||
144 | + display: flex; | ||
145 | + align-items: center; | ||
146 | + justify-content: center; | ||
147 | + margin: 150rpx auto 0 auto; | ||
148 | +} |
pages/matrix/matrix.js
0 → 100644
1 | +// pages/matrix/matrix.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + current:0, | ||
9 | + }, | ||
10 | + tabCharge(e) { | ||
11 | + let that = this; | ||
12 | + that.setData({ | ||
13 | + current: e.currentTarget.dataset.current, | ||
14 | + }) | ||
15 | + | ||
16 | + }, | ||
17 | + | ||
18 | + /** | ||
19 | + * 生命周期函数--监听页面加载 | ||
20 | + */ | ||
21 | + onLoad: function(options) { | ||
22 | + | ||
23 | + }, | ||
24 | + | ||
25 | + /** | ||
26 | + * 生命周期函数--监听页面初次渲染完成 | ||
27 | + */ | ||
28 | + onReady: function() { | ||
29 | + | ||
30 | + }, | ||
31 | + | ||
32 | + /** | ||
33 | + * 生命周期函数--监听页面显示 | ||
34 | + */ | ||
35 | + onShow: function() { | ||
36 | + | ||
37 | + }, | ||
38 | + | ||
39 | + /** | ||
40 | + * 生命周期函数--监听页面隐藏 | ||
41 | + */ | ||
42 | + onHide: function() { | ||
43 | + | ||
44 | + }, | ||
45 | + | ||
46 | + /** | ||
47 | + * 生命周期函数--监听页面卸载 | ||
48 | + */ | ||
49 | + onUnload: function() { | ||
50 | + | ||
51 | + }, | ||
52 | + | ||
53 | + /** | ||
54 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
55 | + */ | ||
56 | + onPullDownRefresh: function() { | ||
57 | + | ||
58 | + }, | ||
59 | + | ||
60 | + /** | ||
61 | + * 页面上拉触底事件的处理函数 | ||
62 | + */ | ||
63 | + onReachBottom: function() { | ||
64 | + | ||
65 | + }, | ||
66 | + | ||
67 | + /** | ||
68 | + * 用户点击右上角分享 | ||
69 | + */ | ||
70 | + onShareAppMessage: function() { | ||
71 | + | ||
72 | + } | ||
73 | +}) |
pages/matrix/matrix.json
0 → 100644
pages/matrix/matrix.wxml
0 → 100644
1 | +<!--pages/matrix/matrix.wxml--> | ||
2 | +<view class='tab_content'> | ||
3 | + <view class='tab_box'> | ||
4 | + <view class="tab_item {{current==0?'active':''}}" data-current='0' bindtap='tabCharge'>全部</view> | ||
5 | + <view class="tab_item {{current==1?'active':''}}" data-current="1" bindtap='tabCharge'>科技商务</view> | ||
6 | + <view class="tab_item {{current==2?'active':''}}" data-current='2' bindtap='tabCharge'>智能制造</view> | ||
7 | + <view class="tab_item {{current==3?'active':''}}" data-current="3" bindtap='tabCharge'>数字创意</view> | ||
8 | + <view class="tab_item {{current==4?'active':''}}" data-current="4" bindtap='tabCharge'>大健康</view> | ||
9 | + <view class='iconfont icon-gengduo1'></view> | ||
10 | + </view> | ||
11 | +</view> | ||
12 | +<view class='content_box'> | ||
13 | + <view class='item_list' bindtap='listDetail'> | ||
14 | + <image class='label_img' src='/images/zuire@2x.png'></image> | ||
15 | + <text class='label_info'>热门</text> | ||
16 | + <image class='list_img' src='/images/huifujishi@2x.png'></image> | ||
17 | + <view class='list_left'> | ||
18 | + <view> | ||
19 | + <view class='list_title'>金沃斯英语在线教育</view> | ||
20 | + <view class='list_info'>22</view> | ||
21 | + </view> | ||
22 | + <view class='iconfont icon-go'></view> | ||
23 | + </view> | ||
24 | + </view> | ||
25 | +</view> | ||
26 | + | ||
27 | +<view class='content_box content_box2'> | ||
28 | + <view class='list_item' wx:for='{{[1,2,3]}}'> | ||
29 | + <image src='/images/img.jpg'></image> | ||
30 | + <view class='list_content_box'> | ||
31 | + <view class='list_title_box'> | ||
32 | + <image src='/images/huifujishi@2x.png'></image> | ||
33 | + <text>金沃斯英语</text> | ||
34 | + </view> | ||
35 | + <view class='list_content'>金沃斯在线英语教育是来自加拿大的在线教育...</view> | ||
36 | + <view class='iconfont icon-gengduo'></view> | ||
37 | + </view> | ||
38 | + </view> | ||
39 | +</view> |
pages/matrix/matrix.wxss
0 → 100644
1 | +/* pages/matrix/matrix.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f7f7f7; | ||
5 | +} | ||
6 | + | ||
7 | +.tab_content { | ||
8 | + padding: 30rpx 20rpx; | ||
9 | + background: #fff; | ||
10 | +} | ||
11 | + | ||
12 | +.tab_box { | ||
13 | + display: flex; | ||
14 | + align-items: center; | ||
15 | + justify-content: space-between; | ||
16 | +} | ||
17 | + | ||
18 | +.tab_item { | ||
19 | + font-size: 26rpx; | ||
20 | + color: #999; | ||
21 | + position: relative; | ||
22 | +} | ||
23 | + | ||
24 | +.tab_item.active { | ||
25 | + font-size: 26rpx; | ||
26 | + color: #169bd5; | ||
27 | +} | ||
28 | + | ||
29 | +.tab_item.active::after { | ||
30 | + content: ""; | ||
31 | + width: 62rpx; | ||
32 | + height: 4rpx; | ||
33 | + background: #169bd5; | ||
34 | + position: absolute; | ||
35 | + bottom: -30rpx; | ||
36 | + left: 50%; | ||
37 | + transform: translateX(-50%); | ||
38 | +} | ||
39 | + | ||
40 | +.icon-gengduo1 { | ||
41 | + color: #169bd5; | ||
42 | + border-left: 1rpx solid #f5f5f5; | ||
43 | + padding-left: 20rpx; | ||
44 | +} | ||
45 | + | ||
46 | +.content_box { | ||
47 | + padding: 30rpx; | ||
48 | +} | ||
49 | + | ||
50 | +.item_list { | ||
51 | + background: #fff; | ||
52 | + border-radius: 8rpx; | ||
53 | + margin-bottom: 20rpx; | ||
54 | + font-size: 28rpx; | ||
55 | + color: #000; | ||
56 | + display: flex; | ||
57 | + align-items: center; | ||
58 | + padding: 30rpx 20rpx; | ||
59 | + position: relative; | ||
60 | +} | ||
61 | + | ||
62 | +.label_img { | ||
63 | + position: absolute; | ||
64 | + right: 0; | ||
65 | + top: 10rpx; | ||
66 | + width: 80rpx; | ||
67 | + height: 32rpx; | ||
68 | +} | ||
69 | + | ||
70 | +.label_info { | ||
71 | + position: absolute; | ||
72 | + right: 0; | ||
73 | + top: 10rpx; | ||
74 | + width: 80rpx; | ||
75 | + height: 32rpx; | ||
76 | + font-size: 20rpx; | ||
77 | + color: #fff; | ||
78 | + text-align: center; | ||
79 | +} | ||
80 | + | ||
81 | +.list_img { | ||
82 | + width: 128rpx; | ||
83 | + height: 128rpx; | ||
84 | + border-radius: 50%; | ||
85 | + margin-right: 20rpx; | ||
86 | +} | ||
87 | + | ||
88 | +.list_left { | ||
89 | + width: 78%; | ||
90 | + display: flex; | ||
91 | + align-items: center; | ||
92 | + justify-content: space-between; | ||
93 | +} | ||
94 | + | ||
95 | +.list_title { | ||
96 | + font-size: 30rpx; | ||
97 | + font-weight: bold; | ||
98 | + color: #333; | ||
99 | +} | ||
100 | + | ||
101 | +.list_info { | ||
102 | + font-size: 30rpx; | ||
103 | + color: #999; | ||
104 | + margin-top: 10rpx; | ||
105 | + display: -webkit-box; | ||
106 | + -webkit-box-orient: vertical; | ||
107 | + -webkit-line-clamp: 2; | ||
108 | + overflow: hidden; | ||
109 | + text-overflow: ellipsis; | ||
110 | +} | ||
111 | + | ||
112 | +.icon-go { | ||
113 | + color: #ccc; | ||
114 | +} | ||
115 | + | ||
116 | +/* */ | ||
117 | + | ||
118 | +.content_box2 { | ||
119 | + display: flex; | ||
120 | + align-items: center; | ||
121 | + justify-content: space-between; | ||
122 | + flex-wrap: wrap; | ||
123 | +} | ||
124 | + | ||
125 | +.list_item { | ||
126 | + width: 48%; | ||
127 | + border-radius: 8rpx; | ||
128 | + overflow: hidden; | ||
129 | + background: #fff; | ||
130 | + margin-bottom: 20rpx; | ||
131 | + box-shadow: 0 10rpx 0 0 #62bae0; | ||
132 | +} | ||
133 | + | ||
134 | +.list_content_box { | ||
135 | + padding: 20rpx 16rpx; | ||
136 | +} | ||
137 | + | ||
138 | +.list_item image { | ||
139 | + width: 100%; | ||
140 | + height: 336rpx; | ||
141 | +} | ||
142 | + | ||
143 | +.list_title_box { | ||
144 | + display: flex; | ||
145 | + align-items: center; | ||
146 | + font-size: 32rpx; | ||
147 | + font-weight: bold; | ||
148 | + color: #333; | ||
149 | +} | ||
150 | + | ||
151 | +.list_title_box image { | ||
152 | + width: 32rpx; | ||
153 | + height: 32rpx; | ||
154 | + border-radius: 50%; | ||
155 | + margin-right: 15rpx; | ||
156 | +} | ||
157 | + | ||
158 | +.list_content { | ||
159 | + font-size: 26rpx; | ||
160 | + color: #666; | ||
161 | + margin-top: 4rpx; | ||
162 | + display: -webkit-box; | ||
163 | + -webkit-box-orient: vertical; | ||
164 | + -webkit-line-clamp: 2; | ||
165 | + overflow: hidden; | ||
166 | + text-overflow: ellipsis; | ||
167 | +} | ||
168 | + | ||
169 | +.icon-gengduo { | ||
170 | + width: 100%; | ||
171 | + text-align: right; | ||
172 | + font-size: 40rpx; | ||
173 | + color: #333; | ||
174 | + margin-top: 10rpx; | ||
175 | +} |
1 | <!--pages/my/my.wxml--> | 1 | <!--pages/my/my.wxml--> |
2 | <view class='banner_box'> | 2 | <view class='banner_box'> |
3 | - <view class='head_img'> | ||
4 | - <image src='{{user_info.avatar}}'></image> | 3 | + <view class='banner_info_box'> |
4 | + <image class='head_img' src='/images/weirenzheng@2x.png'></image> | ||
5 | + <view class='banner_right'> | ||
6 | + <view class='banner_info'> | ||
7 | + <text>认证企业:金沃斯在线英语</text> | ||
8 | + <image src='/images/guangfang@2x.png'></image> | ||
5 | </view> | 9 | </view> |
6 | - <view class='head_info_box'> | ||
7 | - <view class='user_name'>{{user_info.name}} | ||
8 | - <image wx:if='{{user_info.approve==1}}' src='/images/verify.png'></image> | 10 | + <view class='banner_label'> |
11 | + <image src='/images/ren@2x.png'></image> | ||
12 | + <text>雨晨似墨</text> | ||
9 | </view> | 13 | </view> |
10 | - <view>{{user_info.mobile}}</view> | ||
11 | - <view>{{user_info.work}}</view> | ||
12 | - <view>{{user_info.work_post}}</view> | ||
13 | </view> | 14 | </view> |
14 | - <view class='edit_box' bindtap='editInfo' wx:if='{{user_type!=2}}'> | ||
15 | - <view class='iconfont icon-xiugai'></view> | ||
16 | - <view>修改个人资料</view> | ||
17 | - </view> | ||
18 | - <view class='edit_box edit2' bindtap='charge' wx:if='{{user_type==4}}'> | ||
19 | - <view>身份切换</view> | ||
20 | </view> | 15 | </view> |
21 | </view> | 16 | </view> |
22 | -<!-- 顾问个人中心 --> | ||
23 | -<view class='content_box' wx:if='{{user_type==3||temp_UserType==3}}'> | 17 | +<!-- --> |
18 | +<view class='content_box' wx:if=''> | ||
24 | <view class='item_list' bindtap='TB'> | 19 | <view class='item_list' bindtap='TB'> |
25 | <view class='list_icon'> | 20 | <view class='list_icon'> |
26 | - <text class='iconfont icon-kakou'></text> | 21 | + <text class='iconfont icon-wodetiezi'></text> |
27 | </view> | 22 | </view> |
28 | <view class='list_item_box'> | 23 | <view class='list_item_box'> |
29 | - <view>T币交易记录</view> | ||
30 | - <view class='iconfont icon-jinru'></view> | 24 | + <view>我的帖子</view> |
25 | + <view class='iconfont icon-go'></view> | ||
31 | </view> | 26 | </view> |
32 | </view> | 27 | </view> |
33 | <view class='item_list' bindtap='vipCharge'> | 28 | <view class='item_list' bindtap='vipCharge'> |
34 | <view class='list_icon'> | 29 | <view class='list_icon'> |
35 | - <text class='iconfont icon-gray-crown'></text> | 30 | + <text class='iconfont icon-xing'></text> |
36 | </view> | 31 | </view> |
37 | <view class='list_item_box'> | 32 | <view class='list_item_box'> |
38 | - <view>会员充值</view> | ||
39 | - <view class='list_info'> | ||
40 | - <text>{{counselor.end_time}}{{counselor.end_time!=''?'到期':''}}</text> | ||
41 | - <text class='iconfont icon-jinru'></text> | ||
42 | - </view> | 33 | + <view>我的关注</view> |
34 | + <text class='iconfont icon-go'></text> | ||
43 | </view> | 35 | </view> |
44 | </view> | 36 | </view> |
45 | <view class='item_list' bindtap='reportList'> | 37 | <view class='item_list' bindtap='reportList'> |
46 | <view class='list_icon'> | 38 | <view class='list_icon'> |
47 | - <text class='iconfont icon-baogao'></text> | ||
48 | - </view> | ||
49 | - <view class='list_item_box'> | ||
50 | - <view>报告浏览记录</view> | ||
51 | - <view class='iconfont icon-jinru'></view> | ||
52 | - </view> | ||
53 | - </view> | ||
54 | - <view class='item_list' bindtap='articlList'> | ||
55 | - <view class='list_icon'> | ||
56 | - <text class='iconfont icon-baogao1'></text> | 39 | + <text class='iconfont icon-zan21'></text> |
57 | </view> | 40 | </view> |
58 | <view class='list_item_box'> | 41 | <view class='list_item_box'> |
59 | - <view>文章浏览记录</view> | ||
60 | - <view class='iconfont icon-jinru'></view> | 42 | + <view>我的点赞</view> |
43 | + <view class='iconfont icon-go'></view> | ||
61 | </view> | 44 | </view> |
62 | </view> | 45 | </view> |
63 | - <view class='item_list' bindtap='suggest'> | ||
64 | - <view class='list_icon'> | ||
65 | - <text class='iconfont icon-jianyi'></text> | ||
66 | - </view> | ||
67 | - <view class='list_item_box'> | ||
68 | - <view>建议预设</view> | ||
69 | - <view class='iconfont icon-jinru'></view> | ||
70 | - </view> | ||
71 | - </view> | ||
72 | - <view class='item_list' bindtap='project'> | ||
73 | - <view class='list_icon'> | ||
74 | - <text class='iconfont icon-fangan'></text> | ||
75 | - </view> | ||
76 | - <view class='list_item_box'> | ||
77 | - <view>方案预设</view> | ||
78 | - <view class='iconfont icon-jinru'></view> | ||
79 | - </view> | ||
80 | - </view> | ||
81 | - <view class='item_list' bindtap='share'> | ||
82 | - <view class='list_icon'> | ||
83 | - <text class='iconfont icon-fenxiang1'></text> | ||
84 | - </view> | ||
85 | - <view class='list_item_box'> | ||
86 | - <view>分享赚T币</view> | ||
87 | - <view class='iconfont icon-jinru'></view> | ||
88 | - </view> | ||
89 | - </view> | ||
90 | - <view class='item_list' bindtap='twoCode' data-imgurl='{{counselor.wechat_code}}'> | 46 | + <view class='item_list' bindtap='reportList'> |
91 | <view class='list_icon'> | 47 | <view class='list_icon'> |
92 | - <text class='iconfont icon-xiazai'></text> | 48 | + <text class='iconfont icon-pinglun1'></text> |
93 | </view> | 49 | </view> |
94 | <view class='list_item_box'> | 50 | <view class='list_item_box'> |
95 | - <view>下载专属二维码</view> | ||
96 | - <view class='iconfont icon-jinru'></view> | 51 | + <view>我的评论</view> |
52 | + <view class='iconfont icon-go'></view> | ||
97 | </view> | 53 | </view> |
98 | </view> | 54 | </view> |
99 | - <view class='item_list' bindtap='inviteList'> | 55 | + <view class='item_list' bindtap='articlList'> |
100 | <view class='list_icon'> | 56 | <view class='list_icon'> |
101 | - <text class='iconfont icon-yaoqing'></text> | 57 | + <text class='iconfont icon-tongzhi'></text> |
102 | </view> | 58 | </view> |
103 | <view class='list_item_box'> | 59 | <view class='list_item_box'> |
104 | - <view>邀请名单</view> | ||
105 | - <view class='iconfont icon-jinru'></view> | 60 | + <view>发文通知</view> |
61 | + <view class='list_icon2'> | ||
62 | + <view class='list_point'>1</view> | ||
63 | + <view class='iconfont icon-go'></view> | ||
106 | </view> | 64 | </view> |
107 | </view> | 65 | </view> |
108 | - <view class='item_list' bindtap='remind'> | ||
109 | - <view class='list_icon'> | ||
110 | - <text class='iconfont icon-YDUI-naozhong'></text> | ||
111 | - </view> | ||
112 | - <view class='list_item_box'> | ||
113 | - <view>7天到期提醒</view> | ||
114 | - <view class='iconfont icon-jinru'></view> | ||
115 | </view> | 66 | </view> |
67 | +</view> | ||
68 | +<view class='null_data_box'> | ||
69 | + <view class='data_box'> | ||
70 | + <image src='/images/weirenzheng@2x.png'></image> | ||
71 | + <view class='list_btn'>开通企业认证 ></view> | ||
72 | + <view> ~~ 企业认证后开启更多服务 ~~</view> | ||
116 | </view> | 73 | </view> |
117 | </view> | 74 | </view> |
1 | /* pages/my/my.wxss */ | 1 | /* pages/my/my.wxss */ |
2 | + | ||
3 | +page { | ||
4 | + background: #f5f5fa; | ||
5 | +} | ||
6 | + | ||
7 | +.banner_box { | ||
8 | + width: 100%; | ||
9 | + height: 113rpx; | ||
10 | + background: #169bd5; | ||
11 | + display: flex; | ||
12 | + align-items: center; | ||
13 | + padding: 30rpx; | ||
14 | +} | ||
15 | + | ||
16 | +.banner_info_box { | ||
17 | + width: 92%; | ||
18 | + height: 240rpx; | ||
19 | + background: rgba(255, 255, 255, 1); | ||
20 | + box-shadow: 0rpx 3rpx 20rpx rgba(0, 34, 255, 0.08); | ||
21 | + opacity: 1; | ||
22 | + border-radius: 4rpx; | ||
23 | + position: relative; | ||
24 | + top: 80rpx; | ||
25 | + margin-bottom: 60rpx; | ||
26 | + display: flex; | ||
27 | + align-items: center; | ||
28 | + padding: 30rpx; | ||
29 | + box-sizing: border-box; | ||
30 | +} | ||
31 | + | ||
32 | +.head_img { | ||
33 | + width: 112rpx; | ||
34 | + height: 112rpx; | ||
35 | + border-radius: 50%; | ||
36 | + margin-right: 20rpx; | ||
37 | +} | ||
38 | + | ||
39 | +.banner_info { | ||
40 | + position: relative; | ||
41 | + font-size: 32rpx; | ||
42 | + font-weight: bold; | ||
43 | + color: #333; | ||
44 | + display: inline-block; | ||
45 | +} | ||
46 | + | ||
47 | +.banner_info image { | ||
48 | + width: 18rpx; | ||
49 | + height: 22rpx; | ||
50 | + position: absolute; | ||
51 | + right: -15rpx; | ||
52 | + top: -15rpx; | ||
53 | +} | ||
54 | + | ||
55 | +.banner_label { | ||
56 | + width: 160rpx; | ||
57 | + font-size: 22rpx; | ||
58 | + color: #169bd5; | ||
59 | + background: rgba(22, 155, 213, 0.2); | ||
60 | + border-radius: 24rpx; | ||
61 | + padding: 5rpx 10rpx; | ||
62 | + display: flex; | ||
63 | + align-items: center; | ||
64 | + justify-content: center; | ||
65 | + margin-top: 14rpx; | ||
66 | +} | ||
67 | + | ||
68 | +.banner_label image { | ||
69 | + width: 19rpx; | ||
70 | + height: 23rpx; | ||
71 | + margin-right: 15rpx; | ||
72 | +} | ||
73 | + | ||
74 | +.content_box { | ||
75 | + background: #fff; | ||
76 | + position: relative; | ||
77 | + margin-top: 160rpx; | ||
78 | +} | ||
79 | + | ||
80 | +.item_list { | ||
81 | + display: flex; | ||
82 | + align-items: center; | ||
83 | +} | ||
84 | + | ||
85 | +.list_icon { | ||
86 | + display: flex; | ||
87 | + align-items: center; | ||
88 | + justify-content: center; | ||
89 | + font-size: 28rpx; | ||
90 | + color: #169bd5; | ||
91 | + margin: 0 30rpx; | ||
92 | +} | ||
93 | + | ||
94 | +.list_item_box { | ||
95 | + width: 84%; | ||
96 | + display: flex; | ||
97 | + align-items: center; | ||
98 | + justify-content: space-between; | ||
99 | + border-bottom: 1rpx solid #ebebeb; | ||
100 | + padding: 30rpx 30rpx 30rpx 0; | ||
101 | + font-size: 30rpx; | ||
102 | + color: #1a1a1a; | ||
103 | +} | ||
104 | + | ||
105 | +.item_list:last-child .list_item_box { | ||
106 | + border: 0; | ||
107 | +} | ||
108 | + | ||
109 | +.icon-go { | ||
110 | + color: #ccc; | ||
111 | +} | ||
112 | + | ||
113 | +.list_icon2 { | ||
114 | + display: flex; | ||
115 | + align-items: center; | ||
116 | + justify-content: flex-end; | ||
117 | +} | ||
118 | + | ||
119 | +.list_point { | ||
120 | + width: 32rpx; | ||
121 | + height: 32rpx; | ||
122 | + background: rgba(232, 4, 4, 1); | ||
123 | + border-radius: 50%; | ||
124 | + font-size: 26rpx; | ||
125 | + color: #fff; | ||
126 | + display: flex; | ||
127 | + align-items: center; | ||
128 | + justify-content: center; | ||
129 | +} | ||
130 | + | ||
131 | +/* */ | ||
132 | + | ||
133 | +.null_data_box { | ||
134 | + width: 100%; | ||
135 | + height: 100%; | ||
136 | + font-size: 22rpx; | ||
137 | + color: #ccc; | ||
138 | + text-align: center; | ||
139 | + position: fixed; | ||
140 | + top: 00rpx; | ||
141 | + left: 0; | ||
142 | + display: flex; | ||
143 | + align-items: center; | ||
144 | + justify-content: center; | ||
145 | + flex-wrap: wrap; | ||
146 | +} | ||
147 | + | ||
148 | +.null_data_box image { | ||
149 | + width: 315rpx; | ||
150 | + height: 227rpx; | ||
151 | + margin: 0 auto; | ||
152 | +} | ||
153 | + | ||
154 | +.data_box { | ||
155 | + width: 100%; | ||
156 | +} | ||
157 | + | ||
158 | +.list_btn { | ||
159 | + width: 352rpx; | ||
160 | + height: 80rpx; | ||
161 | + background: linear-gradient(319deg, rgba(22, 155, 213, 1) 0%, rgba(0, 211, 255, 1) 100%); | ||
162 | + border-radius: 8rpx; | ||
163 | + font-size: 30rpx; | ||
164 | + color: #fff; | ||
165 | + display: flex; | ||
166 | + align-items: center; | ||
167 | + justify-content: center; | ||
168 | + margin: 40rpx auto; | ||
169 | +} |
pages/my/myAttention/myAttention.js
0 → 100644
1 | +// pages/my/myAttention/myAttention.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + | ||
9 | + }, | ||
10 | + | ||
11 | + /** | ||
12 | + * 生命周期函数--监听页面加载 | ||
13 | + */ | ||
14 | + onLoad: function (options) { | ||
15 | + | ||
16 | + }, | ||
17 | + | ||
18 | + /** | ||
19 | + * 生命周期函数--监听页面初次渲染完成 | ||
20 | + */ | ||
21 | + onReady: function () { | ||
22 | + | ||
23 | + }, | ||
24 | + | ||
25 | + /** | ||
26 | + * 生命周期函数--监听页面显示 | ||
27 | + */ | ||
28 | + onShow: function () { | ||
29 | + | ||
30 | + }, | ||
31 | + | ||
32 | + /** | ||
33 | + * 生命周期函数--监听页面隐藏 | ||
34 | + */ | ||
35 | + onHide: function () { | ||
36 | + | ||
37 | + }, | ||
38 | + | ||
39 | + /** | ||
40 | + * 生命周期函数--监听页面卸载 | ||
41 | + */ | ||
42 | + onUnload: function () { | ||
43 | + | ||
44 | + }, | ||
45 | + | ||
46 | + /** | ||
47 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | + */ | ||
49 | + onPullDownRefresh: function () { | ||
50 | + | ||
51 | + }, | ||
52 | + | ||
53 | + /** | ||
54 | + * 页面上拉触底事件的处理函数 | ||
55 | + */ | ||
56 | + onReachBottom: function () { | ||
57 | + | ||
58 | + }, | ||
59 | + | ||
60 | + /** | ||
61 | + * 用户点击右上角分享 | ||
62 | + */ | ||
63 | + onShareAppMessage: function () { | ||
64 | + | ||
65 | + } | ||
66 | +}) |
pages/my/myAttention/myAttention.json
0 → 100644
pages/my/myAttention/myAttention.wxml
0 → 100644
1 | +<!--pages/my/myAttention/myAttention.wxml--> | ||
2 | +<view class='box'> | ||
3 | + <view class='item_list' wx:for='{{[1,2]}}'> | ||
4 | + <image src='/images/weirenzheng@2x.png'></image> | ||
5 | + <view class='list_right'> | ||
6 | + <view> | ||
7 | + <view class='user_name'>马晓上</view> | ||
8 | + <view class='list_time'> | ||
9 | + <text>今天</text> | ||
10 | + <text>21:00</text> | ||
11 | + </view> | ||
12 | + </view> | ||
13 | + <view class='list_btn'>已关注</view> | ||
14 | + </view> | ||
15 | + </view> | ||
16 | +</view> |
pages/my/myAttention/myAttention.wxss
0 → 100644
1 | +/* pages/my/myAttention/myAttention.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #f7f7f7; | ||
5 | +} | ||
6 | + | ||
7 | +.box { | ||
8 | + padding: 0 30rpx; | ||
9 | + box-sizing: border-box; | ||
10 | +} | ||
11 | + | ||
12 | +.item_list { | ||
13 | + display: flex; | ||
14 | + align-items: center; | ||
15 | + padding: 16rpx; | ||
16 | + box-sizing: border-box; | ||
17 | + background: #fff; | ||
18 | + margin-bottom: 16rpx; | ||
19 | + | ||
20 | +} | ||
21 | + | ||
22 | +.item_list image { | ||
23 | + width: 96rpx; | ||
24 | + height: 96rpx; | ||
25 | + border-radius: 50%; | ||
26 | + margin-right: 20rpx; | ||
27 | +} | ||
28 | + | ||
29 | +.user_name { | ||
30 | + font-size: 30rpx; | ||
31 | + font-weight: bold; | ||
32 | + color: #333; | ||
33 | +} | ||
34 | + | ||
35 | +.list_time { | ||
36 | + font-size: 22rpx; | ||
37 | + color: #ccc; | ||
38 | + margin-top: 10rpx; | ||
39 | +} | ||
40 | + | ||
41 | +.list_right { | ||
42 | + width: 80%; | ||
43 | + display: flex; | ||
44 | + align-items: center; | ||
45 | + justify-content: space-between; | ||
46 | +} | ||
47 | + | ||
48 | +.list_btn { | ||
49 | + width: 144rpx; | ||
50 | + height: 48rpx; | ||
51 | + background: rgba(204, 204, 204, 1); | ||
52 | + border-radius: 8rpx; | ||
53 | + font-size: 24rpx; | ||
54 | + color: #fff; | ||
55 | + display: flex; | ||
56 | + align-items: center; | ||
57 | + justify-content: center; | ||
58 | +} |
-
请 注册 或 登录 后发表评论