Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fk_xcx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李静静
fk_xcx
Commits
803bf593
Commit
803bf593
authored
Jan 07, 2022
by
李静静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.学习群可配置
2.添加联系我插件
parent
d29c5dd7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
17 deletions
+53
-17
app.json
app.json
+4
-0
index.js
pages/freeCourse/index.js
+4
-1
index.json
pages/freeCourse/index.json
+3
-1
index.wxml
pages/freeCourse/index.wxml
+25
-9
index.wxss
pages/freeCourse/index.wxss
+14
-4
request.js
utils/request.js
+3
-2
No files found.
app.json
View file @
803bf593
...
...
@@ -7,6 +7,10 @@
"chatGroupPlugin"
:
{
"version"
:
"1.0.5"
,
"provider"
:
"wx4d2deeab3aed6e5a"
},
"contactPlugin"
:
{
"version"
:
"1.4.4"
,
"provider"
:
"wx104a1a20c3f81ec2"
}
},
"window"
:
{
...
...
pages/freeCourse/index.js
View file @
803bf593
...
...
@@ -83,7 +83,10 @@ Page({
if
(
res
.
data
&&
res
.
data
.
code
===
0
){
console
.
log
(
res
.
data
.
data
.
list
)
this
.
setData
({
group_list
:
res
.
data
.
data
.
list
group_list
:
res
.
data
.
data
.
list
,
picture_list
:
res
.
data
.
data
.
picture_list
,
text
:
res
.
data
.
data
.
text
,
btn_pic
:
res
.
data
.
data
.
btn_pic
,
})
}
}
...
...
pages/freeCourse/index.json
View file @
803bf593
{
"usingComponents"
:
{
"cell"
:
"plugin://chatGroupPlugin/cell"
"chatGroupCell"
:
"plugin://chatGroupPlugin/cell"
,
"contactCell"
:
"plugin://contactPlugin/cell"
}
}
\ No newline at end of file
pages/freeCourse/index.wxml
View file @
803bf593
<!--index.wxml-->
<view class="container">
<view class="header">
<
!-- <
view class="header">
<image src="../../images/logo.png" class="logo"/>
</view>
<view class="content">
</view>
-->
<
!-- <
view class="content">
<view class="content-h3">在专属社群你可以获得:</view>
<view class="content-item">
...
...
@@ -38,16 +38,25 @@
<text class="content-p">群内特设每日一题,相互讨论,共同进步。</text>
</view>
</view>
</view>
<view class="join-btn" bindtap="showModal">
<image src="../../images/Button_Background@2x.png" class="join-btn-bg"/>
<view class="join-btn-text" >加入专属备考群</view>
</view> -->
<view class="img_list">
<image
wx:for="{{picture_list}}"
src="{{item.url}}"
class="img_item"
style="height:{{item.height}}rpx"
></image>
</view>
<view wx:if="{{btn_pic}}" class="join-btn" bindtap="showModal">
<image src="{{btn_pic.url}}" class="join-btn-bg" />
<!-- <view class="join-btn-text" >加入专属备考群</view> -->
</view>
<view wx:if="{{modal}}" class="modal" >
<view class="modal-content">
<view class="modal-close" bindtap="modalClose"></view>
<view class="modal-h4">
请选择你的备考状态
</view>
<view class="modal-h4">
{{text}}
</view>
<view wx:if="{{isLowerVersion}}" class="modal-version-tips">
<view>检测到你的微信版本过低,可能造成无法加群,</view>
<view>建议升级微信最新版本</view>
...
...
@@ -64,12 +73,19 @@
<!-- url='https://work.weixin.qq.com/gm/24e84fe11d990cd99fa67ccd99f1aa4b'
url='https://work.weixin.qq.com/gm/{{item.uniq_code}}'
-->
<cell
<c
hatGroupC
ell
paddingStyle="80"
wx:if="{{item.type===1}}"
url='{{item.uniq_code}}'
bind:startmessage="startmessage"
bind:completemessage="completemessage"
/>
<contactCell
paddingStyle="80"
wx:if="{{item.type===2}}"
plugid='{{item.uniq_code}}'
/>
</view>
</view>
</scroll-view>
...
...
pages/freeCourse/index.wxss
View file @
803bf593
/**index.wxss**/
.header{
/*
.header{
box-sizing: border-box;
padding-top: 80rpx;
width: 100%;
...
...
@@ -61,17 +61,27 @@
line-height:36rpx;
color:#999;
}
*/
.img_list{
width: 100%;
padding-bottom: 176rpx;
}
.img_item{
display: block;
width: 100%;
}
.join-btn{
position: fixed;
left:0;
bottom:0;
width: 100%;
height:176rpx;
line-height: 176rpx;
text-align: center;
color:#fff;
font-size: 30rpx;
font-weight: 600;
z-index:
1
;
z-index:
5
;
}
.join-btn-bg{
position: absolute;
...
...
@@ -85,12 +95,12 @@
}
/* modal */
.modal{
position:
absolute
;
position:
fixed
;
left: 0;
top: 0;
bottom: 0;
right: 0;
z-index:
2
;
z-index:
6
;
background:rgba(0, 0, 0, 0.4);
display: flex;
align-items: flex-end;
...
...
utils/request.js
View file @
803bf593
//const host='http://ljj.dev.neoteched.com' //开发
const
host
=
'https://winterfell-alpha.neoteched.com'
//测试
const
host
=
'http://ljj.dev.neoteched.com'
//开发
//const host='https://winterfell-alpha.neoteched.com' //测试
//const host='https://sk2.shenlancity.com' //线上
export
const
request
=
({
url
,
method
,
header
,
success
,
fail
})
=>
{
if
(
!
url
){
console
.
error
(
'url不能为空'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment