Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online
Commits
434815a0
提交
434815a0
authored
3月 14, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 新增CUW小程序
上级
f733759e
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
75 行增加
和
33 行删除
+75
-33
app.json
learnOnline/app.json
+1
-1
config.js
learnOnline/config.js
+4
-4
package-lock.json
learnOnline/package-lock.json
+37
-1
index.js
learnOnline/pages/login/index.js
+10
-10
project.config.json
learnOnline/project.config.json
+14
-4
project.private.config.json
learnOnline/project.private.config.json
+7
-11
util.js
learnOnline/utils/util.js
+2
-2
没有找到文件。
learnOnline/app.json
浏览文件 @
434815a0
...
...
@@ -60,7 +60,7 @@
},
"plugins"
:
{
"tencentvideo"
:
{
"version"
:
"2.
0.5
"
,
"version"
:
"2.
1.12
"
,
"provider"
:
"wxa75efa648b60994b"
}
},
...
...
learnOnline/config.js
浏览文件 @
434815a0
...
...
@@ -3,14 +3,14 @@ const env = 'production'
if
(
env
===
'production'
)
{
module
.
exports
=
{
appVersion
:
'cu_v3.3.5'
,
appVersion
:
'cu
w
_v3.3.5'
,
apiBaseURL
:
'https://wechat-api.ezijing.com'
,
// 接口请求地址
tenant
:
'c
ampbellsville
'
tenant
:
'c
uw
'
}
}
else
{
module
.
exports
=
{
appVersion
:
'cu_v3.3.5'
,
appVersion
:
'cu
w
_v3.3.5'
,
apiBaseURL
:
'https://wechat-api2.ezijing.com'
,
// 接口请求地址
tenant
:
'c
ampbellsville
'
tenant
:
'c
uw
'
}
}
learnOnline/package-lock.json
浏览文件 @
434815a0
{
"name"
:
"learn-weapp"
,
"version"
:
"1.0.0"
,
"lockfileVersion"
:
1
,
"lockfileVersion"
:
2
,
"requires"
:
true
,
"packages"
:
{
""
:
{
"name"
:
"learn-weapp"
,
"version"
:
"1.0.0"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"@vant/weapp"
:
"^1.6.5"
,
"miniprogram-computed"
:
"^2.2.0"
},
"devDependencies"
:
{}
},
"node_modules/@vant/weapp"
:
{
"version"
:
"1.6.5"
,
"resolved"
:
"https://registry.npmjs.org/@vant/weapp/-/weapp-1.6.5.tgz"
,
"integrity"
:
"sha512-7+oNnlLIcHSqcwtzAKSM2LM+feXyfNIEOedHn5yDumPQPyGPDmsY6x5vwZ88i+sZspfj4HmzfeljJQ/rtDT0cg=="
},
"node_modules/fast-deep-equal"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz"
,
"integrity"
:
"sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk="
},
"node_modules/miniprogram-computed"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/miniprogram-computed/-/miniprogram-computed-2.2.0.tgz"
,
"integrity"
:
"sha512-UlPfPh5cvBnwb2jNXToUMxNkWAmi8a7hAjtJlwdA4XF5EbFI5Q5jI9mn1U8AAxbsUfnSf1Vmsc0LhkxGdKlRkg=="
,
"dependencies"
:
{
"fast-deep-equal"
:
"^2.0.1"
,
"rfdc"
:
"^1.1.4"
}
},
"node_modules/rfdc"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmjs.org/rfdc/-/rfdc-1.2.0.tgz"
,
"integrity"
:
"sha512-ijLyszTMmUrXvjSooucVQwimGUk84eRcmCuLV8Xghe3UO85mjUtRAHRyoMM6XtyqbECaXuBWx18La3523sXINA=="
}
},
"dependencies"
:
{
"@vant/weapp"
:
{
"version"
:
"1.6.5"
,
...
...
learnOnline/pages/login/index.js
浏览文件 @
434815a0
...
...
@@ -63,22 +63,22 @@ Page({
},
// 微信登录
wechatLogin
()
{
// 获取code
// 获取code
const
p1
=
this
.
getCode
()
// 获取用户信息
const
p2
=
this
.
getUserInfo
()
Promise
.
all
([
p1
,
p2
]).
then
(([
code
,
user
])
=>
{
const
{
encryptedData
,
iv
}
=
user
api
.
wechatLogin
({
encryptedData
,
iv
,
code
,
identity
:
'cu
-mini'
}).
then
(
response
=>
{
api
.
wechatLogin
({
encryptedData
,
iv
,
code
,
identity
:
'cuw
-mini'
}).
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
this
.
handleSuccess
(
response
.
data
)
}
else
if
(
response
.
code
===
2
)
{
// 绑定手机号
this
.
setData
({
show
:
true
,
unionid
:
response
.
data
.
unionid
})
}
else
{
wx
.
showToast
({
title
:
response
.
msg
,
icon
:
'none'
})
}
})
this
.
handleSuccess
(
response
.
data
)
}
else
if
(
response
.
code
===
2
)
{
// 绑定手机号
this
.
setData
({
show
:
true
,
unionid
:
response
.
data
.
unionid
})
}
else
{
wx
.
showToast
({
title
:
response
.
msg
,
icon
:
'none'
})
}
})
})
},
// 手机号登录
...
...
learnOnline/project.config.json
浏览文件 @
434815a0
...
...
@@ -13,7 +13,7 @@
"autoAudits"
:
false
,
"showShadowRootInWxmlPanel"
:
true
,
"scopeDataCheck"
:
false
,
"uglifyFileName"
:
fals
e
,
"uglifyFileName"
:
tru
e
,
"checkInvalidKey"
:
true
,
"checkSiteMap"
:
true
,
"uploadWithSourceMap"
:
true
,
...
...
@@ -31,13 +31,14 @@
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[],
"minifyWXSS"
:
true
,
"showES6CompileOption"
:
false
"showES6CompileOption"
:
false
,
"ignoreUploadUnusedFiles"
:
true
,
"condition"
:
false
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.21.2"
,
"appid"
:
"wx
20a4d5c015a6bbb7
"
,
"appid"
:
"wx
b869e693751f22a3
"
,
"projectname"
:
"learnOnline"
,
"isGameTourist"
:
false
,
"simulatorType"
:
"wechat"
,
"simulatorPluginLibVersion"
:
{},
"condition"
:
{
...
...
@@ -96,5 +97,13 @@
}
]
}
},
"packOptions"
:
{
"ignore"
:
[],
"include"
:
[]
},
"editorSetting"
:
{
"tabIndent"
:
"insertSpaces"
,
"tabSize"
:
2
}
}
\ No newline at end of file
learnOnline/project.private.config.json
浏览文件 @
434815a0
{
"setting"
:
{},
"setting"
:
{
"urlCheck"
:
true
},
"condition"
:
{
"plugin"
:
{
"list"
:
[]
},
"game"
:
{
"list"
:
[]
},
"gamePlugin"
:
{
"list"
:
[]
},
"miniprogram"
:
{
"list"
:
[
{
...
...
@@ -80,5 +73,7 @@
}
]
}
}
},
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"libVersion"
:
"2.30.2"
}
\ No newline at end of file
learnOnline/utils/util.js
浏览文件 @
434815a0
...
...
@@ -5,14 +5,14 @@ const url_test = {
URL_PATH1
:
'https://wechat-api2.ezijing.com/api/lms'
,
// 正式域名 - 由于项目变动域名
URL_PATH2
:
'https://wechat-api2.ezijing.com/api'
,
// 正式域名 - 由于项目变动域名
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
tenant
:
'c
ampbellsville
'
,
tenant
:
'c
uw
'
,
version
:
'3.2.5'
}
const
url_online
=
{
URL_PATH1
:
'https://wechat-api.ezijing.com/api/lms'
,
// 正式域名 - 由于项目变动域名
URL_PATH2
:
'https://wechat-api.ezijing.com/api'
,
// 正式域名 - 由于项目变动域名
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
tenant
:
'c
ampbellsville
'
,
tenant
:
'c
uw
'
,
version
:
'3.2.5'
}
let
config
=
url_online
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论