Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
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
zong
Compass
Commits
bac032f6
Commit
bac032f6
authored
Mar 13, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
8b51d927
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
366 additions
and
207 deletions
+366
-207
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
小程序文件命名以及接口调用说明.xlsx
doc/小程序文件命名以及接口调用说明.xlsx
+0
-0
settings.inc
src/settings/settings.inc
+1
-1
api_wx_pay_notify.php
src/user/api/api_wx_pay_notify.php
+6
-3
ajax_buy_course_media.php
src/user/if/ajax_buy_course_media.php
+2
-0
ajax_get_course_detail.php
src/user/if/ajax_get_course_detail.php
+16
-1
app.wxss
src/wx/app.wxss
+29
-4
dingwei.png
src/wx/img/dingwei.png
+0
-0
circleDetails.js
src/wx/pages/circleDetails/circleDetails.js
+20
-35
circleDetails.wxml
src/wx/pages/circleDetails/circleDetails.wxml
+2
-2
getCertificate.wxml
src/wx/pages/getCertificate/getCertificate.wxml
+15
-5
getCertificate.wxss
src/wx/pages/getCertificate/getCertificate.wxss
+29
-8
joinFamilyEvent.wxml
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxml
+41
-38
joinFamilyEvent.wxss
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxss
+32
-15
joinSocialEvent.wxml
src/wx/pages/joinSocialEvent/joinSocialEvent.wxml
+41
-38
joinSocialEvent.wxss
src/wx/pages/joinSocialEvent/joinSocialEvent.wxss
+32
-15
myCertificate.wxml
src/wx/pages/myCertificate/myCertificate.wxml
+6
-4
myCertificate.wxss
src/wx/pages/myCertificate/myCertificate.wxss
+17
-4
newCircle1.js
src/wx/pages/newCircle1/newCircle1.js
+4
-5
newCircle1.wxml
src/wx/pages/newCircle1/newCircle1.wxml
+2
-2
newCircle1.wxss
src/wx/pages/newCircle1/newCircle1.wxss
+38
-11
searchCircle.wxml
src/wx/pages/searchCircle/searchCircle.wxml
+6
-2
searchCircle.wxss
src/wx/pages/searchCircle/searchCircle.wxss
+19
-6
socialUserRegister.wxml
src/wx/pages/socialUserRegister/socialUserRegister.wxml
+6
-6
socialUserRegister.wxss
src/wx/pages/socialUserRegister/socialUserRegister.wxss
+2
-2
No files found.
doc/DB/compass_db_schema.xlsx
View file @
bac032f6
No preview for this file type
doc/小程序文件命名以及接口调用说明.xlsx
View file @
bac032f6
No preview for this file type
src/settings/settings.inc
View file @
bac032f6
...
@@ -17,7 +17,7 @@ define("SERVICE_NAME", "指南针");
...
@@ -17,7 +17,7 @@ define("SERVICE_NAME", "指南针");
// 服务器配置
// 服务器配置
define
(
"DOMAIN_NAME"
,
"compass.koala-online.cn"
);
define
(
"DOMAIN_NAME"
,
"compass.koala-online.cn"
);
define
(
"HOST_NAME"
,
"compass.koala-online.cn"
);
define
(
"HOST_NAME"
,
"compass.koala-online.cn"
);
define
(
"SSL_PATH"
,
"
compass.koala-online.cn/user
"
);
define
(
"SSL_PATH"
,
"
www.koala-online.cn/compass
"
);
// 数据库配置
// 数据库配置
define
(
"COMPASS_DB"
,
"compass_develop_db"
);
define
(
"COMPASS_DB"
,
"compass_develop_db"
);
...
...
src/user/api/api_wx_pay_notify.php
View file @
bac032f6
...
@@ -36,6 +36,9 @@ class PayNotifyCallBack extends WxPayNotify
...
@@ -36,6 +36,9 @@ class PayNotifyCallBack extends WxPayNotify
$msg
=
"订单查询失败"
;
$msg
=
"订单查询失败"
;
return
false
;
return
false
;
}
}
ErrorLogger
::
doOutput
(
"Compass...api_wx_pay_notify.php.....out_trade_no="
.
$data
[
"out_trade_no"
],
0
);
$type
=
substr
(
$data
[
"out_trade_no"
],
0
,
1
);
$type
=
substr
(
$data
[
"out_trade_no"
],
0
,
1
);
switch
(
$type
){
switch
(
$type
){
...
@@ -63,7 +66,7 @@ class PayNotifyCallBack extends WxPayNotify
...
@@ -63,7 +66,7 @@ class PayNotifyCallBack extends WxPayNotify
$userPayLog
->
user_id
=
$userMst
->
id
;
$userPayLog
->
user_id
=
$userMst
->
id
;
$userPayLog
->
user_name
=
$userMst
->
name
;
$userPayLog
->
user_name
=
$userMst
->
name
;
$userPayLog
->
action_type
=
"MEDIA"
;
$userPayLog
->
action_type
=
"MEDIA"
;
$userPayLog
->
money
=
$userMediaDat
->
price
;
$userPayLog
->
money
=
$userMediaDat
->
money
;
$userPayLog
->
save
();
$userPayLog
->
save
();
break
;
break
;
...
@@ -87,7 +90,7 @@ class PayNotifyCallBack extends WxPayNotify
...
@@ -87,7 +90,7 @@ class PayNotifyCallBack extends WxPayNotify
$userDonation
->
save
();
$userDonation
->
save
();
//添加用户支付记录汇总
//添加用户支付记录汇总
$userMst
=
UserMst
::
getById
(
$user
MediaDat
->
user_id
);
$userMst
=
UserMst
::
getById
(
$user
Donation
->
user_id
);
$userPayLog
=
new
UserPayLog
();
$userPayLog
=
new
UserPayLog
();
$userPayLog
->
user_id
=
$userMst
->
id
;
$userPayLog
->
user_id
=
$userMst
->
id
;
$userPayLog
->
user_name
=
$userMst
->
name
;
$userPayLog
->
user_name
=
$userMst
->
name
;
...
@@ -114,7 +117,7 @@ class PayNotifyCallBack extends WxPayNotify
...
@@ -114,7 +117,7 @@ class PayNotifyCallBack extends WxPayNotify
$userBuyMemberDat
->
save
();
$userBuyMemberDat
->
save
();
//添加用户支付记录汇总
//添加用户支付记录汇总
$userMst
=
UserMst
::
getById
(
$user
Media
Dat
->
user_id
);
$userMst
=
UserMst
::
getById
(
$user
BuyMember
Dat
->
user_id
);
$userPayLog
=
new
UserPayLog
();
$userPayLog
=
new
UserPayLog
();
$userPayLog
->
user_id
=
$userMst
->
id
;
$userPayLog
->
user_id
=
$userMst
->
id
;
$userPayLog
->
user_name
=
$userMst
->
name
;
$userPayLog
->
user_name
=
$userMst
->
name
;
...
...
src/user/if/ajax_buy_course_media.php
View file @
bac032f6
...
@@ -46,6 +46,8 @@ $userMediaDat->order_no = $orderNo;
...
@@ -46,6 +46,8 @@ $userMediaDat->order_no = $orderNo;
$userMediaDat
->
status
=
"NEW"
;
$userMediaDat
->
status
=
"NEW"
;
$userMediaDat
->
save
();
$userMediaDat
->
save
();
ErrorLogger
::
doOutput
(
"Compass...ajax_buy_course_media.php....SetNotify_url="
.
"https://"
.
SSL_PATH
.
"/api/api_wx_pay_notify.php"
,
0
);
//调用微信支付接口
//调用微信支付接口
$tools
=
new
JsApiPay
();
$tools
=
new
JsApiPay
();
$input
=
new
WxPayUnifiedOrder
();
$input
=
new
WxPayUnifiedOrder
();
...
...
src/user/if/ajax_get_course_detail.php
View file @
bac032f6
...
@@ -54,6 +54,21 @@ if($courseMediaDat->course_id == 0) {
...
@@ -54,6 +54,21 @@ if($courseMediaDat->course_id == 0) {
$teacherProfile
=
$courseMediaDat
->
teacher_profile
;
$teacherProfile
=
$courseMediaDat
->
teacher_profile
;
$frontImage
=
$courseMediaDat
->
front_image
;
$frontImage
=
$courseMediaDat
->
front_image
;
$courseComment
=
$courseMediaDat
->
comment
;
$courseComment
=
$courseMediaDat
->
comment
;
//是否购买本视频
$courseMediaDat
->
haveBuy
=
false
;
if
(
$courseMediaDat
->
is_free
==
false
)
{
//收费课程的情况下,判断用户是否已经购买本课程
$param
=
array
();
$param
[
'user_id'
]
=
$userMst
->
id
;
$param
[
'media_id'
]
=
$courseMediaDat
->
id
;
$param
[
'is_free'
]
=
false
;
$param
[
'status'
]
=
'SUCCESS'
;
$param
[
'delete_flg'
]
=
false
;
$userMstBuyList
=
UserMediaDat
::
getList
(
$param
,
"id"
,
"desc"
,
0
,
1
);
if
(
!
empty
(
$userMstBuyList
))
{
$courseMediaDat
->
haveBuy
=
true
;
}
}
}
else
{
}
else
{
//合集视频
//合集视频
$courseMst
=
CourseMst
::
getById
(
$courseMediaDat
->
course_id
);
$courseMst
=
CourseMst
::
getById
(
$courseMediaDat
->
course_id
);
...
@@ -70,7 +85,7 @@ if($courseMediaDat->course_id == 0) {
...
@@ -70,7 +85,7 @@ if($courseMediaDat->course_id == 0) {
if
(
!
empty
(
$tmpList
))
{
if
(
!
empty
(
$tmpList
))
{
foreach
(
$tmpList
as
$tmp
)
{
foreach
(
$tmpList
as
$tmp
)
{
$tmp
->
haveBuy
=
false
;
$tmp
->
haveBuy
=
false
;
if
(
!
$tmp
->
is_free
==
false
)
{
if
(
$tmp
->
is_free
==
false
)
{
//收费课程的情况下,判断用户是否已经购买本课程
//收费课程的情况下,判断用户是否已经购买本课程
$param
=
array
();
$param
=
array
();
$param
[
'user_id'
]
=
$userMst
->
id
;
$param
[
'user_id'
]
=
$userMst
->
id
;
...
...
src/wx/app.wxss
View file @
bac032f6
...
@@ -126,6 +126,9 @@ video, live-player, live-pusher, open-data, web-view {
...
@@ -126,6 +126,9 @@ video, live-player, live-pusher, open-data, web-view {
text-align: right;
text-align: right;
box-sizing: border-box;
box-sizing: border-box;
padding-right: 5px;
padding-right: 5px;
font-size: 14px;
font-weight: bold;
color: #1e1e1e;
}
}
.formtable>view>van-cell-group{
.formtable>view>van-cell-group{
flex: 1
flex: 1
...
@@ -134,17 +137,20 @@ video, live-player, live-pusher, open-data, web-view {
...
@@ -134,17 +137,20 @@ video, live-player, live-pusher, open-data, web-view {
padding: 0;
padding: 0;
}
}
.formtable input{
.formtable input{
text-align: left;
box-sizing: border-box;
box-sizing: border-box;
padding-left: 8px;
padding-left: 8px;
height: 30px;
height: 30px;
line-height: 30px;
line-height: 30px;
border: 1px solid #ccc;
border-bottom: 1px solid #ccc;
font-size: 13px;
text-align: center;
color: #f0f0f0;
}
}
.button button{
.button button{
padding:
15px 4
0px;
padding:
20px 9
0px;
border-radius: 5px;
border-radius: 5px;
background: #ffffe2;
background: #0D76ED;
color: #fff;
}
}
.tr{
.tr{
...
@@ -316,4 +322,22 @@ video, live-player, live-pusher, open-data, web-view {
...
@@ -316,4 +322,22 @@ video, live-player, live-pusher, open-data, web-view {
}
}
.lookmore{
.lookmore{
color: #599eff!important;
color: #599eff!important;
}
.listNull{
width: 100%;
display: block!important;
box-sizing: border-box;
padding-bottom: 20px;
}
.listNull>image{
display: block;
width: 80px;
height: 80px;
margin: 0 auto;
}
.listNull>view{
width: 150px;
margin: 0 auto;
font-size: 12px;
color: #ccc;
}
}
\ No newline at end of file
src/wx/img/dingwei.png
0 → 100644
View file @
bac032f6
2.54 KB
src/wx/pages/circleDetails/circleDetails.js
View file @
bac032f6
...
@@ -6,13 +6,17 @@ Page({
...
@@ -6,13 +6,17 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
circleId
:
0
,
isOwner
:
false
,
circleDat
:
null
,
noticeDat
:
null
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
//获取圈子信息
this
.
circleinfo
()
this
.
circleinfo
()
},
},
...
@@ -31,56 +35,30 @@ Page({
...
@@ -31,56 +35,30 @@ Page({
},
},
/**
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
:
function
()
{
onShareAppMessage
:
function
()
{
},
},
//跳转到圈子成员
circleMembers
(){
circleMembers
(){
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'../circleMembers/circleMembers'
,
url
:
'../circleMembers/circleMembers'
,
});
});
wx
.
setNavigationBarTitle
({
title
:
'成员管理'
})
},
},
//圈子公告
circleNews
(){
circleNews
(){
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'../circleNotice/circleNotice'
,
url
:
'../circleNotice/circleNotice'
,
})
})
},
},
//获取圈子信息
circleinfo
()
{
circleinfo
()
{
var
that
=
this
;
var
that
=
this
;
var
config
=
wx
.
getStorageSync
(
'config'
);
var
config
=
wx
.
getStorageSync
(
'config'
);
var
jingweidu
=
wx
.
getStorageSync
(
'jingweidu'
);
wx
:
wx
.
request
({
wx
:
wx
.
request
({
url
:
app
.
url
+
'ajax_get_circle_info.php'
,
url
:
app
.
url
+
'ajax_get_circle_info.php'
,
data
:
{
data
:
{
...
@@ -94,6 +72,9 @@ Page({
...
@@ -94,6 +72,9 @@ Page({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
.
statusCode
==
200
)
{
if
(
res
.
statusCode
==
200
)
{
if
(
res
.
data
.
status
==
"OK"
)
{
}
if
(
res
.
data
.
result
.
isOwner
==
true
){
if
(
res
.
data
.
result
.
isOwner
==
true
){
}
}
...
@@ -103,12 +84,16 @@ Page({
...
@@ -103,12 +84,16 @@ Page({
complete
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
})
},
},
activefabu
(){
//发布活动
newCircleEvent
(){
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'../newCircleEvent/newCircleEvent'
,
url
:
'../newCircleEvent/newCircleEvent'
,
})
})
},
},
activeguanli
(){
//活动管理
circleEvents
(){
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'../circleEvents/circleEvents'
,
url
:
'../circleEvents/circleEvents'
,
})
})
...
...
src/wx/pages/circleDetails/circleDetails.wxml
View file @
bac032f6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<van-grid>
<van-grid>
<van-grid-item icon="photo-o" text="圈子编辑" />
<van-grid-item icon="photo-o" text="圈子编辑" />
<van-grid-item icon="photo-o" text="成员管理" bind:click="circleMembers" />
<van-grid-item icon="photo-o" text="成员管理" bind:click="circleMembers" />
<van-grid-item icon="photo-o" text="活动管理" bind:click="
activeguanli
" />
<van-grid-item icon="photo-o" text="活动管理" bind:click="
circleEvents
" />
<van-grid-item icon="photo-o" text="消息通知" bind:click="circleNews" />
<van-grid-item icon="photo-o" text="消息通知" bind:click="circleNews" />
</van-grid>
</van-grid>
</view>
</view>
...
@@ -27,5 +27,5 @@
...
@@ -27,5 +27,5 @@
<image src='../../img/1.jpg'></image>
<image src='../../img/1.jpg'></image>
</view>
</view>
</view>
</view>
<view class='activefabu' bindtap='
activefabu
'>活动发布</view>
<view class='activefabu' bindtap='
newCircleEvent
'>活动发布</view>
</view>
</view>
src/wx/pages/getCertificate/getCertificate.wxml
View file @
bac032f6
...
@@ -15,12 +15,22 @@
...
@@ -15,12 +15,22 @@
<!--添加底部弹出对话框开始-->
<!--添加底部弹出对话框开始-->
<view class='bot_myCertificate' wx:if="{{inpShow==true}}">
<view class='bot_myCertificate' wx:if="{{inpShow==true}}">
<view class='con_bot_myCertificate'>
<view class='con_bot_myCertificate'>
<input placeholder='请输入姓名' value='{{name}}' bindinput='changeName'></input>
<view class='top_myCertificate' style='justify-content: center;border-bottom:none'>请填写详细信息</view>
<input placeholder='请输入手机号' value='{{mobile}}' bindinput='changeMobile'></input>
<view>
<input placeholder='请输入收件地址' value='{{address}}' bindinput='changeAddress'></input>
<text>收件人</text>
<input placeholder='请输入姓名' value='{{name}}' bindinput='changeName'></input>
</view>
<view>
<text>手机号</text>
<input placeholder='请输入手机号' value='{{mobile}}' bindinput='changeMobile'></input>
</view>
<view>
<text>详细地址</text>
<input placeholder='请输入收件地址' value='{{address}}' bindinput='changeAddress'></input>
</view>
<view class='btnBot'>
<view class='btnBot'>
<view bindtap='backApplyCertificate'>取消</view>
<view bindtap='backApplyCertificate'
style='background:#979797;'
>取消</view>
<view style='background:#
00C56B
;' bindtap='sureApplyCertificate'>确定</view>
<view style='background:#
ed4848
;' bindtap='sureApplyCertificate'>确定</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
src/wx/pages/getCertificate/getCertificate.wxss
View file @
bac032f6
...
@@ -42,26 +42,44 @@ page{
...
@@ -42,26 +42,44 @@ page{
height: 100%;
height: 100%;
background: rgba(0,0,0,0.5)
background: rgba(0,0,0,0.5)
}
}
top_myCertificate{
width: 100%;
text-align: center;
font-size: 13px;
}
.con_bot_myCertificate{
.con_bot_myCertificate{
position: absolute;
position: absolute;
bottom: 0;
bottom: 0;
left: 0;
left: 0;
right: 0;
right: 0;
margin: auto;
margin: auto;
width:
8
0%;
width:
9
0%;
height:
150
px;
height:
265
px;
background: #fff;
background: #fff;
border-radius: 15px 15px 0 0;
border-radius: 15px 15px 0 0;
}
}
.con_bot_myCertificate>input{
.con_bot_myCertificate>view{
display: flex;
align-items: center;
width: 80%;
width: 80%;
height: 25px;
height: 50px;
border: 1px solid #ccc;
border-bottom: 1px solid #f0f0f0;
font-size: 15px;
margin: 0 auto;
}
.con_bot_myCertificate>view>text{
display: block;
width: 60px;
font-size: 14px;
}
.con_bot_myCertificate>view>input{
flex: 1;
height: 50px;
border-radius: 5px;
border-radius: 5px;
margin: 10px auto;
font-size: 12px;
box-sizing: border-box;
box-sizing: border-box;
padding-left: 15px;
padding-left: 15px;
color: #e1e1e1;
font-size: 12px;
}
}
.btnBot{
.btnBot{
position: absolute;
position: absolute;
...
@@ -75,9 +93,11 @@ page{
...
@@ -75,9 +93,11 @@ page{
justify-content: space-between;
justify-content: space-between;
}
}
.btnBot>view{
.btnBot>view{
flex: 1
;
width: 40%
;
height: 25px;
height: 25px;
text-align: center;
text-align: center;
line-height: 25px;
line-height: 25px;
font-size: 12px;
font-size: 12px;
border-radius: 15px;
color: #fff;
}
}
\ No newline at end of file
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxml
View file @
bac032f6
<!--pages/joinSocialEvent/joinSocialEvent.wxml-->
<!--pages/joinSocialEvent/joinSocialEvent.wxml-->
<view class='uploadDocuments'>
<view class='uploadDocuments'>
<view class='uploadDocuments_title'>活动名称:{{eventTitle}}</view>
<view style='width:100%;background:#fff'>
<view class='uploadDocuments_ganwu'>
<view class='uploadDocuments_title'>活动名称:<text>{{eventTitle}}</text></view>
活动感悟:<textarea class='inpGanwu' bindinput="inputComment" value='{{comment}}'></textarea>
<view class='uploadDocuments_ganwu'>
</view>
活动感悟:
<view style="width:100%;margin-top:10px;">活动图片(3张即可):</view>
</view>
<view class='uploadDocuments_img'>
<textarea class='inpGanwu' bindinput="inputComment" value='{{comment}}'></textarea>
<view style="width:90%;margin:10px auto;">活动图片:<text style='font-size:12px;color:red'>(3张即可)</text></view>
<view>
<view class='uploadDocuments_img'>
<van-uploader file-list="{{ fileList1 }}"
max-count="1"
<view>
multiple
<van-uploader file-list="{{ fileList1 }}"
bind:after-read="afterRead1"
max-count="1"
bind:before-read="beforeRead1"
multiple
use-before-read="{{ true }}"
bind:after-read="afterRead1"
bind:delete="delete1"/>
bind:before-read="beforeRead1"
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
use-before-read="{{ true }}"
</view>
bind:delete="delete1"/>
<view>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
<van-uploader file-list="{{ fileList2 }}"
</view>
max-count="1"
<view>
multiple
<van-uploader file-list="{{ fileList2 }}"
bind:after-read="afterRead2"
max-count="1"
bind:before-read="beforeRead2"
multiple
use-before-read="{{ true }}"
bind:after-read="afterRead2"
bind:delete="delete2"/>
bind:before-read="beforeRead2"
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
use-before-read="{{ true }}"
</view>
bind:delete="delete2"/>
<view>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
<van-uploader file-list="{{ fileList3 }}"
</view>
max-count="1"
<view>
multiple
<van-uploader file-list="{{ fileList3 }}"
bind:after-read="afterRead3"
max-count="1"
bind:before-read="beforeRead3"
multiple
use-before-read="{{ true }}"
bind:after-read="afterRead3"
bind:delete="delete3"/>
bind:before-read="beforeRead3"
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
use-before-read="{{ true }}"
</view>
bind:delete="delete3"/>
<text style='font-size:14px;color:#666'></text>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<text style='font-size:14px;color:#666'></text>
</view>
</view>
</view>
<view style='width:100%;display:flex;justify-content: center;'>
<view style='width:100%;display:flex;justify-content: center;'>
<view class="actionBtn" bindtap="upload">确认上传</view>
<view class="actionBtn" bindtap="upload">确认上传</view>
...
...
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxss
View file @
bac032f6
/* pages/uploadDocuments/uploadDocuments.wxss */
/* pages/uploadDocuments/uploadDocuments.wxss */
page{
width: 100%;
height: 100%;
background: #f5f5f5;
}
.uploadDocuments{
.uploadDocuments{
width:
9
0%;
width:
10
0%;
margin: 0 auto;
margin: 0 auto;
font-size: 14px;
background: #fff;
}
}
.uploadDocuments_title{
.uploadDocuments_title{
width:
10
0%;
width:
9
0%;
height:
4
0px;
height:
6
0px;
line-height: 40px;
line-height: 40px;
font-size: 16px;
font-size: 14px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f0f0;
margin: 0 auto;
}
.uploadDocuments_title>text{
color: #646464;
}
}
.uploadDocuments_ganwu{
.uploadDocuments_ganwu{
display: flex
;
width: 90%
;
margin
-top: 20px
;
margin
: 20px auto 0
;
}
}
.inpGanwu{
.inpGanwu{
flex: 1;
display: block;
width: 90%;
height: 60px;
height: 60px;
border: 1px solid #
ccc
;
border: 1px solid #
f0f0f0
;
font-size: 12px;
font-size: 12px;
padding: 5px;
padding: 5px;
margin: 15px auto;
}
}
.uploadDocuments_img{
.uploadDocuments_img{
width: 90%;
display: flex;
display: flex;
height:
240
px;
height:
126
px;
margin
-top: 10px
;
margin
: 10px auto
;
}
}
.uploadDocuments_img>view{
.uploadDocuments_img>view{
width: 100px;
width: 100px;
...
@@ -31,14 +49,14 @@
...
@@ -31,14 +49,14 @@
}
}
.actionBtn{
.actionBtn{
width: 75%;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
height: 40px;
line-height: 40px;
line-height: 40px;
text-align: center;
text-align: center;
font-size: 14px;
font-size: 14px;
margin: 10px auto;
background: #0D76ED;
background: #0D76ED;
margin-bottom: 10px;
color: #fff;
color: #fff;
border-radius: 15px;
}
}
\ No newline at end of file
src/wx/pages/joinSocialEvent/joinSocialEvent.wxml
View file @
bac032f6
<!--pages/joinSocialEvent/joinSocialEvent.wxml-->
<!--pages/joinSocialEvent/joinSocialEvent.wxml-->
<view class='uploadDocuments'>
<view class='uploadDocuments'>
<view class='uploadDocuments_title'>活动名称:{{eventTitle}}</view>
<view style='width:100%;background:#fff'>
<view class='uploadDocuments_ganwu'>
<view class='uploadDocuments_title'>活动名称:<text>{{eventTitle}}</text></view>
活动感悟:<textarea class='inpGanwu' bindinput="inputComment" value='{{comment}}'></textarea>
<view class='uploadDocuments_ganwu'>
</view>
活动感悟:
<view style="width:100%;margin-top:10px;">活动图片(3张即可):</view>
</view>
<view class='uploadDocuments_img'>
<textarea class='inpGanwu' bindinput="inputComment" value='{{comment}}'></textarea>
<view style="width:90%;margin:10px auto;">活动图片:<text style='font-size:12px;color:red'>(3张即可)</text></view>
<view>
<view class='uploadDocuments_img'>
<van-uploader file-list="{{ fileList1 }}"
max-count="1"
<view>
multiple
<van-uploader file-list="{{ fileList1 }}"
bind:after-read="afterRead1"
max-count="1"
bind:before-read="beforeRead1"
multiple
use-before-read="{{ true }}"
bind:after-read="afterRead1"
bind:delete="delete1"/>
bind:before-read="beforeRead1"
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
use-before-read="{{ true }}"
</view>
bind:delete="delete1"/>
<view>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
<van-uploader file-list="{{ fileList2 }}"
</view>
max-count="1"
<view>
multiple
<van-uploader file-list="{{ fileList2 }}"
bind:after-read="afterRead2"
max-count="1"
bind:before-read="beforeRead2"
multiple
use-before-read="{{ true }}"
bind:after-read="afterRead2"
bind:delete="delete2"/>
bind:before-read="beforeRead2"
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
use-before-read="{{ true }}"
</view>
bind:delete="delete2"/>
<view>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
<van-uploader file-list="{{ fileList3 }}"
</view>
max-count="1"
<view>
multiple
<van-uploader file-list="{{ fileList3 }}"
bind:after-read="afterRead3"
max-count="1"
bind:before-read="beforeRead3"
multiple
use-before-read="{{ true }}"
bind:after-read="afterRead3"
bind:delete="delete3"/>
bind:before-read="beforeRead3"
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
use-before-read="{{ true }}"
</view>
bind:delete="delete3"/>
<text style='font-size:14px;color:#666'></text>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<text style='font-size:14px;color:#666'></text>
</view>
</view>
</view>
<view style='width:100%;display:flex;justify-content: center;'>
<view style='width:100%;display:flex;justify-content: center;'>
<view class="actionBtn" bindtap="upload">确认上传</view>
<view class="actionBtn" bindtap="upload">确认上传</view>
...
...
src/wx/pages/joinSocialEvent/joinSocialEvent.wxss
View file @
bac032f6
/* pages/uploadDocuments/uploadDocuments.wxss */
/* pages/uploadDocuments/uploadDocuments.wxss */
page{
width: 100%;
height: 100%;
background: #f5f5f5;
}
.uploadDocuments{
.uploadDocuments{
width:
9
0%;
width:
10
0%;
margin: 0 auto;
margin: 0 auto;
font-size: 14px;
background: #fff;
}
}
.uploadDocuments_title{
.uploadDocuments_title{
width:
10
0%;
width:
9
0%;
height:
4
0px;
height:
6
0px;
line-height: 40px;
line-height: 40px;
font-size: 16px;
font-size: 14px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f0f0;
margin: 0 auto;
}
.uploadDocuments_title>text{
color: #646464;
}
}
.uploadDocuments_ganwu{
.uploadDocuments_ganwu{
display: flex
;
width: 90%
;
margin
-top: 20px
;
margin
: 20px auto 0
;
}
}
.inpGanwu{
.inpGanwu{
flex: 1;
display: block;
width: 90%;
height: 60px;
height: 60px;
border: 1px solid #
ccc
;
border: 1px solid #
f0f0f0
;
font-size: 12px;
font-size: 12px;
padding: 5px;
padding: 5px;
margin: 15px auto;
}
}
.uploadDocuments_img{
.uploadDocuments_img{
width: 90%;
display: flex;
display: flex;
height:
240
px;
height:
126
px;
margin
-top: 10px
;
margin
: 10px auto
;
}
}
.uploadDocuments_img>view{
.uploadDocuments_img>view{
width: 100px;
width: 100px;
...
@@ -31,14 +49,14 @@
...
@@ -31,14 +49,14 @@
}
}
.actionBtn{
.actionBtn{
width: 75%;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
height: 40px;
line-height: 40px;
line-height: 40px;
text-align: center;
text-align: center;
font-size: 14px;
font-size: 14px;
margin: 10px auto;
background: #0D76ED;
background: #0D76ED;
margin-bottom: 10px;
color: #fff;
color: #fff;
border-radius: 15px;
}
}
\ No newline at end of file
src/wx/pages/myCertificate/myCertificate.wxml
View file @
bac032f6
<!--pages/myCertificate/myCertificate.wxml-->
<!--pages/myCertificate/myCertificate.wxml-->
<view class='myCertificate'>
<view class='myCertificate'>
<view style='
font-size:12px;color:#666;float:right;padding-right:15px;'
>
<view style='
position: fixed;bottom: 0;left: 0;font-size:14px;color:#fff;background: #0D76ED;width: 100%;height: 40px;line-height: 40px;text-align: center;'bindtap="getCertificate"
>
<van-button type="default" size='normal' bindtap="getCertificate">申领证书</van-button>
申领证书
</view>
</view>
<view class="certificateItem" wx:for="{{certificateList}}">
<view class="certificateItem" wx:for="{{certificateList}}">
<image src='{{item.front_image}}'></image>
<view>
<text>{{item.title}}[{{item.status}}]</text>
<image src='{{item.front_image}}'></image>
<text>{{item.title}}[{{item.status}}]</text>
</view>
</view>
</view>
</view>
</view>
src/wx/pages/myCertificate/myCertificate.wxss
View file @
bac032f6
...
@@ -10,16 +10,28 @@
...
@@ -10,16 +10,28 @@
align-items:center;
align-items:center;
text-align: center;
text-align: center;
font-size: 14px;
font-size: 14px;
border-bottom: 1px solid #F0F0F0;
}
.certificateItem>view{
position: relative;
width: 100%;
}
}
.certificateItem>image{
.certificateItem>
view>
image{
width:100%;
width:100%;
}
}
.certificateItem>text{
.certificateItem>view>text{
display: block;
position: absolute;
bottom: 3px;
left: 0;
width:100%;
width:100%;
height:35px;
height:35px;
line-height: 35px;
line-height: 35px;
text-align: left;
text-align: right;
background: rgba(0,0,0,0.5);
color: #fff;
font-size: 14px;
box-sizing: border-box;
padding-right: 20px;
}
}
\ No newline at end of file
src/wx/pages/newCircle1/newCircle1.js
View file @
bac032f6
...
@@ -9,7 +9,7 @@ Page({
...
@@ -9,7 +9,7 @@ Page({
data
:
{
data
:
{
title
:
''
,
title
:
''
,
needCheck
:
false
,
needCheck
:
false
,
servicePlace
:
''
,
servicePlace
:
''
},
},
/**
/**
...
@@ -51,11 +51,10 @@ Page({
...
@@ -51,11 +51,10 @@ Page({
})
})
},
},
//获取是否需要入圈审核
//获取是否需要入圈审核
onChangeNeedCheck
(
event
)
{
onChangeNeedCheck
({
detail
})
{
console
.
log
(
event
.
detail
)
// 需要手动对 checked 状态进行更新
// 需要手动对 checked 状态进行更新
this
.
setData
({
this
.
setData
({
needCheck
:
event
.
detail
needCheck
:
detail
});
});
},
},
...
@@ -100,7 +99,7 @@ Page({
...
@@ -100,7 +99,7 @@ Page({
url
:
'../newCircle2/newCircle2?circleId='
+
circleId
,
url
:
'../newCircle2/newCircle2?circleId='
+
circleId
,
})
})
}
else
{
}
else
{
Notify
(
res
.
data
.
result
.
message
)
Notify
(
res
.
data
.
message
)
return
return
}
}
}
}
...
...
src/wx/pages/newCircle1/newCircle1.wxml
View file @
bac032f6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view class='newQuanzi'>
<view class='newQuanzi'>
<view class='top_newQuanzi'>
<view class='top_newQuanzi'>
服务区域:{{servicePlace}}
服务区域:{{servicePlace}}
<v
an-button type="default" size='mini' bindtap='reLocation'>重新定位</van-button
>
<v
iew bindtap='reLocation'><image src='../../img/dingwei.png'></image>重新定位</view
>
</view>
</view>
<view class='newQuanziname'>
<view class='newQuanziname'>
圈子名称:
圈子名称:
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
开启后成员加入需圈主审核<van-switch checked="{{ needCheck }}" bind:change="onChangeNeedCheck" size="16px" />
开启后成员加入需圈主审核<van-switch checked="{{ needCheck }}" bind:change="onChangeNeedCheck" size="16px" />
</view>
</view>
<view class='newQuanzijianli' bindtap='circleNew1'>
<view class='newQuanzijianli' bindtap='circleNew1'>
建立
确定
</view>
</view>
<van-notify id="van-notify" />
<van-notify id="van-notify" />
</view>
</view>
src/wx/pages/newCircle1/newCircle1.wxss
View file @
bac032f6
/* pages/newQuanzi/newQuanzi.wxss */
/* pages/newQuanzi/newQuanzi.wxss */
page{
width: 100%;
height: 100%;
background: #f5f5f5;
}
.newQuanzi{
.newQuanzi{
width:
85
%;
width:
100
%;
margin: 0 auto;
margin: 0 auto;
background: #fff;
}
}
.top_newQuanzi{
.top_newQuanzi{
width:
100
%;
width:
85
%;
height:
6
0px;
height:
5
0px;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
font-size: 14px;
font-size: 14px;
border-bottom: 1px solid #f5f5f5;
margin: 0 auto;
}
.top_newQuanzi>view{
font-size: 12px;
color: #0D76ED;
display: flex;
align-items: center;
}
.top_newQuanzi>view>image{
width: 13px;
height: 18px;
margin-right: 5px;
}
}
.newQuanziname{
.newQuanziname{
width:
100
%;
width:
85
%;
height: 50px;
height: 50px;
display: flex;
display: flex;
align-items: center;
align-items: center;
font-size: 14px;
font-size: 14px;
border-bottom: 1px solid #f5f5f5;
margin: 0 auto;
}
}
.newQuanziname>view{
.newQuanziname>view{
flex: 1;
flex: 1;
border: 1px solid #ccc;
height: 30px;
height: 30px;
color: #f0f0f0;
}
}
.newQuanziname>view .van-cell{
.newQuanziname>view .van-cell{
padding: 0;
padding: 0;
...
@@ -33,20 +54,25 @@
...
@@ -33,20 +54,25 @@
padding-left: 10px;
padding-left: 10px;
}
}
.shenghe{
.shenghe{
width:
100
%;
width:
85
%;
height:
4
0px;
height:
5
0px;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
font-size: 1
2
px;
font-size: 1
4
px;
color: #666;
color: #666;
border-bottom: 1px solid #f5f5f5;
margin: 0 auto;
}
}
.newQuanzijianli{
.newQuanzijianli{
width: 150px;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
height: 40px;
font-size: 14px;
font-size: 14px;
line-height: 40px;
line-height: 40px;
text-align: center;
text-align: center;
b
order: 1px solid #ccc
;
b
ackground: #0D76ED
;
margin: 200px auto 0
;
color: #fff
;
}
}
\ No newline at end of file
src/wx/pages/searchCircle/searchCircle.wxml
View file @
bac032f6
<!--pages/searchCircle/searchCircle.wxml-->
<!--pages/searchCircle/searchCircle.wxml-->
<view class='searchCircle'>
<view class='searchCircle'>
<view class='top_searchCircle'>
<view class='top_searchCircle'>
<image src='../../img/search.png'></image>
<image src='../../img/search.png'></image>
<input placeholder='输入圈子名称' focus="true" value='{{keyword}}' bindinput="changeInput"></input>
<input placeholder='输入圈子名称' focus="true" value='{{keyword}}' bindinput="changeInput"></input>
<view bindtap='searchCircle'>搜索</view>
<view bindtap='searchCircle'>搜索</view>
</view>
</view>
<scroll-view scroll-y="true" style='height:750rpx;bottom:10rpx;' bindscrolltolower='loadMore'>
<view class='listNull' wx:if="{{circleList==''}}">
<image src='../../img/null.png'></image>
<view style='width:50px'>暂无内容</view>
</view>
<scroll-view scroll-y="true" style='bottom:10rpx;' bindscrolltolower='loadMore'>
<view class='circleItem' bindtap='cicleDetails' wx:for="{{circleList}}" >
<view class='circleItem' bindtap='cicleDetails' wx:for="{{circleList}}" >
<view class='circleIitle'><image src='{{item.front_image}}'></image>{{item.title}}</view>
<view class='circleIitle'><image src='{{item.front_image}}'></image>{{item.title}}</view>
<view class='circleMemberCount'>({{item.member_count}}人)</view>
<view class='circleMemberCount'>({{item.member_count}}人)</view>
...
...
src/wx/pages/searchCircle/searchCircle.wxss
View file @
bac032f6
/* pages/searchCircle/searchCircle.wxss */
/* pages/searchCircle/searchCircle.wxss */
page{
width: 100%;
height: 100%;
background: #f5f5f5;
}
.searchCircle{
width: 100%;
background: #fff;
}
.top_searchCircle{
.top_searchCircle{
width: 94%;
width: 94%;
height: 40px;
height: 40px;
...
@@ -6,7 +15,7 @@
...
@@ -6,7 +15,7 @@
align-items: center;
align-items: center;
background: #f6f6f6;
background: #f6f6f6;
border-radius: 30px;
border-radius: 30px;
margin: 0 auto;
margin: 0 auto
20px
;
}
}
.top_searchCircle>image{
.top_searchCircle>image{
width: 25px;
width: 25px;
...
@@ -38,8 +47,9 @@
...
@@ -38,8 +47,9 @@
align-items: center;
align-items: center;
width: 94%;
width: 94%;
margin-left: 3%;
margin-left: 3%;
height:
4
0px;
height:
6
0px;
border-bottom: 1rpx solid #F0F0F0;
border-bottom: 1rpx solid #F0F0F0;
font-size: 14px;
}
}
.circleItem .circleIitle{
.circleItem .circleIitle{
...
@@ -62,10 +72,12 @@
...
@@ -62,10 +72,12 @@
line-height: 30px;
line-height: 30px;
}
}
.circleItem .circleJoin{
.circleItem .circleJoin{
width:
19%
;
width:
50px
;
height: 2
5
px;
height: 2
0
px;
line-height: 2
5
px;
line-height: 2
0
px;
text-align: center;
text-align: center;
border: 1rpx solid #F0F0F0;
border-radius: 8px;
border-radius: 8px;
font-size: 12px;
background: #0D76ED;
color: #fff;
}
}
\ No newline at end of file
src/wx/pages/socialUserRegister/socialUserRegister.wxml
View file @
bac032f6
...
@@ -3,22 +3,22 @@
...
@@ -3,22 +3,22 @@
<image src='../../img/2.jpg'></image>
<image src='../../img/2.jpg'></image>
<view class='formtable'>
<view class='formtable'>
<view>
<view>
<text>姓名:</text>
<text>
用户
姓名:</text>
<van-cell-group>
<van-cell-group>
<van-field
<van-field
value="{{ name }}"
value="{{ name }}"
placeholder="请输入姓名"
placeholder="请输入
用户
姓名"
bind:change="onChangeName"
bind:change="onChangeName"
border="{{false}}"
border="{{false}}"
/>
/>
</van-cell-group>
</van-cell-group>
</view>
</view>
<view>
<view>
<text>手机:</text>
<text>手机
号码
:</text>
<van-cell-group>
<van-cell-group>
<van-field
<van-field
value="{{ mobile }}"
value="{{ mobile }}"
placeholder="请输入手机号"
placeholder="请输入手机号
码
"
bind:change="onChangeMobile"
bind:change="onChangeMobile"
border="{{false}}"
border="{{false}}"
/>
/>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<view style='justify-content: flex-end;font-size:12px;width:280px;padding-right:30px'>
<view style='justify-content: flex-end;font-size:12px;width:280px;padding-right:30px'>
<van-checkbox value="{{ isOrganization }}" shape="square" bind:change="onChangeIsOrganization" icon-size="16px">
<van-checkbox value="{{ isOrganization }}" shape="square" bind:change="onChangeIsOrganization" icon-size="16px">
</van-checkbox>
</van-checkbox>
<text style='width:60px;color:
rgb(101,201,243);
'>认证机构</text>
<text style='width:60px;color:
#0D76ED;font-size:12px
'>认证机构</text>
</view>
</view>
<view wx:if="{{isOrganization==true}}">
<view wx:if="{{isOrganization==true}}">
<text>机构名称:</text>
<text>机构名称:</text>
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
</view>
</view>
<view class='button'>
<view class='button'>
<van-button type="default" style="margin:0 auto" open-type="getUserInfo" bind:getuserinfo="regist">注册</van-button>
<van-button type="default" style="margin:0 auto
;
" open-type="getUserInfo" bind:getuserinfo="regist">注册</van-button>
</view>
</view>
</view>
</view>
<view class='surejigou' wx:if="{{showRule==true}}">
<view class='surejigou' wx:if="{{showRule==true}}">
...
...
src/wx/pages/socialUserRegister/socialUserRegister.wxss
View file @
bac032f6
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
width: 100px;
width: 100px;
height: 100px;
height: 100px;
border-radius: 50%;
border-radius: 50%;
margin: 20px auto;
margin: 20px auto
70px
;
}
}
.formtable>view{
.formtable>view{
width: 280px;
width: 280px;
margin:
2
0px auto;
margin:
4
0px auto;
}
}
.surejigou{
.surejigou{
position: absolute;
position: absolute;
...
...
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