Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online
Commits
a5d47f04
提交
a5d47f04
authored
1月 11, 2019
作者:
GOD_ZYX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
生成带参数小程序二维码,扫码进入小程序,小程序需要特殊处理
上级
051de350
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
51 行增加
和
15 行删除
+51
-15
app.json
learnOnline/app.json
+1
-1
index.js
learnOnline/pages/index/index.js
+3
-1
index.json
learnOnline/pages/index/index.json
+1
-1
index.wxml
learnOnline/pages/index/index.wxml
+1
-1
courseContent.json
...Online/pages/learnSystem/courseContent/courseContent.json
+2
-1
home.json
learnOnline/pages/learnSystem/home/home.json
+2
-1
outSite.json
learnOnline/pages/outSite/outSite.json
+2
-1
show.json
learnOnline/pages/videoPlayer/show.json
+2
-1
project.config.json
learnOnline/project.config.json
+17
-4
util.js
learnOnline/utils/util.js
+20
-3
没有找到文件。
learnOnline/app.json
浏览文件 @
a5d47f04
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"window"
:
{
"window"
:
{
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"紫荆
-Kelley
金融课堂"
"navigationBarTitleText"
:
"紫荆金融课堂"
},
},
"tabBar"
:
{
"tabBar"
:
{
"borderStyle"
:
"#dcdcdc"
,
"borderStyle"
:
"#dcdcdc"
,
...
...
learnOnline/pages/index/index.js
浏览文件 @
a5d47f04
...
@@ -27,8 +27,10 @@ Page({
...
@@ -27,8 +27,10 @@ Page({
url
:
'/pages/learnSystem/home/home'
url
:
'/pages/learnSystem/home/home'
})
})
},
},
onload
:
function
(
query
)
{
onLoad
:
function
(
query
)
{
/* 获取扫描过来的 小程序 可以取到 绑定的 id 和 课程 */
const
scene
=
decodeURIComponent
(
query
.
scene
)
const
scene
=
decodeURIComponent
(
query
.
scene
)
wx
.
setStorageSync
(
'scene'
,
scene
)
},
},
/* 进入页面,先判断是否获取用户信息 */
/* 进入页面,先判断是否获取用户信息 */
onReady
:
function
()
{
onReady
:
function
()
{
...
...
learnOnline/pages/index/index.json
浏览文件 @
a5d47f04
{
{
"navigationBarTitleText"
:
"紫荆
-Kelley
金融课堂"
,
"navigationBarTitleText"
:
"紫荆金融课堂"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarBackgroundColor"
:
"#414141"
,
"navigationBarBackgroundColor"
:
"#414141"
,
"disableScroll"
:
true
"disableScroll"
:
true
...
...
learnOnline/pages/index/index.wxml
浏览文件 @
a5d47f04
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<view class='container'>
<view class='container'>
<image class='bg' src='./icons/bg.png' mode='aspectFill'></image>
<image class='bg' src='./icons/bg.png' mode='aspectFill'></image>
<image class='logo' src='./icons/hd-logo.png' mode='aspectFit'></image>
<image class='logo' src='./icons/hd-logo.png' mode='aspectFit'></image>
<view class='text'>紫荆
-Kelley
金融课堂</view>
<view class='text'>紫荆金融课堂</view>
<button class='btn' open-type='getUserInfo' bindgetuserinfo='getUserInfo'>登录</button>
<button class='btn' open-type='getUserInfo' bindgetuserinfo='getUserInfo'>登录</button>
<!-- <view class='test-id' bindtap='guestLogin'>游客登录</view> -->
<!-- <view class='test-id' bindtap='guestLogin'>游客登录</view> -->
<view class='userinfo'>
<view class='userinfo'>
...
...
learnOnline/pages/learnSystem/courseContent/courseContent.json
浏览文件 @
a5d47f04
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"紫荆
-Kelley
金融课堂"
"navigationBarTitleText"
:
"紫荆金融课堂"
}
}
\ No newline at end of file
learnOnline/pages/learnSystem/home/home.json
浏览文件 @
a5d47f04
{
{
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"紫荆
-Kelley
金融课堂"
"navigationBarTitleText"
:
"紫荆金融课堂"
}
}
\ No newline at end of file
learnOnline/pages/outSite/outSite.json
浏览文件 @
a5d47f04
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
"navigationBarBackgroundColor"
:
"#3f3f3f"
,
"navigationBarBackgroundColor"
:
"#3f3f3f"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
"backgroundColor"
:
"#535353"
,
"backgroundColor"
:
"#535353"
,
"navigationBarTitleText"
:
"紫荆
-Kelley
金融课堂"
"navigationBarTitleText"
:
"紫荆金融课堂"
}
}
\ No newline at end of file
learnOnline/pages/videoPlayer/show.json
浏览文件 @
a5d47f04
{
{
"navigationBarBackgroundColor"
:
"#3f3f3f"
,
"navigationBarBackgroundColor"
:
"#3f3f3f"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
"紫荆
-Kelley
金融课堂"
,
"navigationBarTitleText"
:
"紫荆金融课堂"
,
"backgroundColor"
:
"#535353"
,
"backgroundColor"
:
"#535353"
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
\ No newline at end of file
learnOnline/project.config.json
浏览文件 @
a5d47f04
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
},
},
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.3.0"
,
"libVersion"
:
"2.3.0"
,
"appid"
:
"wx
944151f4ea4203a4
"
,
"appid"
:
"wx
80b4557ad9355bdc
"
,
"projectname"
:
"learnOnline"
,
"projectname"
:
"learnOnline
-survey
"
,
"isGameTourist"
:
false
,
"isGameTourist"
:
false
,
"condition"
:
{
"condition"
:
{
"search"
:
{
"search"
:
{
...
@@ -21,13 +21,25 @@
...
@@ -21,13 +21,25 @@
"current"
:
-1
,
"current"
:
-1
,
"list"
:
[]
"list"
:
[]
},
},
"plugin"
:
{
"current"
:
-1
,
"list"
:
[]
},
"game"
:
{
"game"
:
{
"currentL"
:
-1
,
"currentL"
:
-1
,
"list"
:
[]
"list"
:
[]
},
},
"miniprogram"
:
{
"miniprogram"
:
{
"current"
:
-1
,
"current"
:
0
,
"list"
:
[]
"list"
:
[
{
"id"
:
0
,
"name"
:
"扫码编译"
,
"pathName"
:
"pages/index/index"
,
"query"
:
"scene=123%261%2C3"
,
"scene"
:
"1048"
}
]
}
}
}
}
}
}
\ No newline at end of file
learnOnline/utils/util.js
浏览文件 @
a5d47f04
...
@@ -6,7 +6,7 @@ const config = {
...
@@ -6,7 +6,7 @@ const config = {
// outSiteLink: 'https://applets.ezijing.com', // 本地测试外链
// outSiteLink: 'https://applets.ezijing.com', // 本地测试外链
// URL_PATH: 'https://api2.ezijing.com', // 测试域名
// URL_PATH: 'https://api2.ezijing.com', // 测试域名
// outSiteLink: 'https://kelley2.ezijing.com', // 测试外链
// outSiteLink: 'https://kelley2.ezijing.com', // 测试外链
URL_PATH
:
'https://api.ezijing.com/
tenant
'
,
// 正式域名 - 由于项目变动域名
URL_PATH
:
'https://api.ezijing.com/
ep
'
,
// 正式域名 - 由于项目变动域名
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
tenant
:
'zjkelley'
tenant
:
'zjkelley'
}
}
...
@@ -100,9 +100,26 @@ const miniGetInfo = (callback) => {
...
@@ -100,9 +100,26 @@ const miniGetInfo = (callback) => {
* 登录api - 获取 openId 、userName等内容
* 登录api - 获取 openId 、userName等内容
*/
*/
const
loginApi
=
(
obj
,
callback
)
=>
{
const
loginApi
=
(
obj
,
callback
)
=>
{
/* 特殊绑定 接口 跟 其他登录 接口不一致,这个主要用来 做 扫码登录使用 */
// sid 6489388550075711488
// class_id 6488300987269251072
// 6489392145194024960 公司金融
// 6489392226584494080 家族财富传承
// 6489392240857710592 金融科技:全球与本土视角
let
scene
=
wx
.
getStorageSync
(
'scene'
)
let
wenti_id
=
''
let
cids
=
''
let
semester_id
=
'6489388550075711488'
let
class_id
=
'6488300987269251072'
if
(
scene
)
{
wenti_id
=
scene
.
split
(
'&'
)[
0
]
cids
=
scene
.
split
(
'&'
)[
1
]
+
','
cids
=
cids
.
replace
(
/1,/gi
,
'6489392145194024960,'
).
replace
(
/2,/gi
,
'6489392226584494080,'
).
replace
(
/3,/gi
,
'6489392240857710592,'
)
cids
=
cids
.
substr
(
0
,
cids
.
length
-
1
)
}
wx
.
request
({
wx
.
request
({
url
:
config
.
URL_PATH
+
'/user/a
pplets-logi
n'
,
url
:
config
.
URL_PATH
+
'/user/a
uthorizatio
n'
,
data
:
{
code
:
obj
.
code
,
encrypted_data
:
obj
.
encryptedData
,
iv
:
obj
.
iv
},
method
:
'POST'
,
header
:
{
data
:
{
code
:
obj
.
code
,
encrypted_data
:
obj
.
encryptedData
,
iv
:
obj
.
iv
,
course_ids
:
cids
,
semester_id
:
semester_id
,
class_id
:
class_id
,
survey_id
:
wenti_id
,
idt
:
config
.
tenant
},
method
:
'POST'
,
header
:
{
tenant
:
config
.
tenant
tenant
:
config
.
tenant
},
},
success
:
res
=>
{
callback
(
res
,
obj
);
}
success
:
res
=>
{
callback
(
res
,
obj
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论