Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小刘28
xz-uniapp
提交
350cb4b1
xz-uniapp
项目概览
小刘28
/
xz-uniapp
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
xz-uniapp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
350cb4b1
编写于
8月 27, 2022
作者:
小刘28
💬
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
0c18a6e4
9f5b5c6b
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
120 addition
and
79 deletion
+120
-79
App.vue
App.vue
+12
-12
package-lock.json
package-lock.json
+5
-0
pages.json
pages.json
+12
-13
pages/template/template-2-web.vue
pages/template/template-2-web.vue
+4
-1
pages/template/template-4-live.vue
pages/template/template-4-live.vue
+2
-1
static/logo_1024_1024.png
static/logo_1024_1024.png
+0
-0
static/logo_300_300.png
static/logo_300_300.png
+0
-0
store/index.js
store/index.js
+34
-1
utils/validate/xz-reg.js
utils/validate/xz-reg.js
+51
-51
未找到文件。
App.vue
浏览文件 @
350cb4b1
...
...
@@ -22,18 +22,18 @@
/*全局css*/
/* CDN 服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
@font-face
{
src
:
url("//at.alicdn.com/wf/webfont/aXB2ZFAWvyPD/hJJfts5L2YJFOx7YyH3OJ.woff2")
format
(
"woff2"
)
,
url("//at.alicdn.com/wf/webfont/aXB2ZFAWvyPD/5-PszYxf_h5WEDLYDDHHG.woff")
format
(
"woff"
);
font-family
:
"思源黑体 Light"
;
font-weight
:
300
;
font-display
:
swap
;
}
//
@font-face {
//
src: url("//at.alicdn.com/wf/webfont/aXB2ZFAWvyPD/hJJfts5L2YJFOx7YyH3OJ.woff2") format("woff2"),
//
url("//at.alicdn.com/wf/webfont/aXB2ZFAWvyPD/5-PszYxf_h5WEDLYDDHHG.woff") format("woff");
//
font-family: "思源黑体 Light";
//
font-weight: 300;
//
font-display: swap;
//
}
body
{
font-family
:
'思源黑体 Light'
;
word-break
:
break-all
;
line-height
:
48rpx
;
}
//
body{
//
font-family: '思源黑体 Light';
//
word-break: break-all;
//
line-height: 48rpx;
//
}
</
style
>
package-lock.json
0 → 100644
浏览文件 @
350cb4b1
{
"name"
:
"xz-uniapp"
,
"version"
:
"1.0.0"
,
"lockfileVersion"
:
1
}
pages.json
浏览文件 @
350cb4b1
{
"pages"
:
[
//
{
//
"path"
:
"pages/login/login"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"登录页面"
,
//
"enablePullDownRefresh"
:
false
//
}
//
},
{
"path"
:
"pages/template/template-2-web"
,
"style"
:
{
"navigationBarTitleText"
:
"template-2-web"
}
},
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/tabbar-a/tabbar-a"
,
...
...
@@ -55,12 +54,12 @@
"navigationBarTitleText"
:
"template-1"
}
},
{
"path"
:
"pages/template/template-2-web"
,
"style"
:
{
"navigationBarTitleText"
:
"template-2-web"
}
},
//
{
//
"path"
:
"pages/template/template-2-web"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"template-2-web"
//
}
//
},
{
"path"
:
"pages/template/template-3-list"
,
"style"
:
{
...
...
pages/template/template-2-web.vue
浏览文件 @
350cb4b1
...
...
@@ -26,7 +26,10 @@
}
},
onLoad
(
options
)
{
this
.
webSrc
=
options
.
src
||
'
http://www.baidu.com
'
;
// this.webSrc = options.src|| 'http://www.baidu.com';
this
.
webSrc
=
options
.
src
||
'
https://yongling8808.github.io/test/video_demo/video_fullscreen_event.html
'
;
},
methods
:{
...
...
pages/template/template-4-live.vue
浏览文件 @
350cb4b1
...
...
@@ -9,7 +9,8 @@
<
template
>
<view
class=
""
>
<!-- #ifdef APP-PLUS || MP-WEIXIN -->
<video
src=
"https://gcalic.v.myalicdn.com/gc/ztd_1/index.m3u8?contentid=2820180516001"
:controls=
"false"
></video>
<!--
<video
src=
"http://39.134.115.163:8080/PLTV/88888910/224/3221225732/index.m3u8"
:controls=
"false"
></video>
-->
<video
style=
"width: 100%;"
src=
"https://gccncc.v.wscdns.com/gc/yxlcyt_1/index.m3u8?contentid=2820180516001"
></video>
<!-- #endif -->
</view>
</
template
>
...
...
static/logo_1024_1024.png
已删除
100644 → 0
浏览文件 @
0c18a6e4
389.1 KB
static/logo_300_300.png
0 → 100644
浏览文件 @
350cb4b1
57.4 KB
store/index.js
浏览文件 @
350cb4b1
...
...
@@ -8,7 +8,10 @@ Vue.use(Vuex);
const
store
=
new
Vuex
.
Store
({
state
:
{
//存放状态
user
:
uni
.
getStorageSync
(
'
user
'
)
||
{},
token
:
uni
.
getStorageSync
(
'
token
'
)
||
''
token
:
uni
.
getStorageSync
(
'
token
'
)
||
''
,
isLogin
:
uni
.
getStorageSync
(
'
isLogin
'
)
||
false
,
roles
:
uni
.
getStorageSync
(
'
roles
'
)
||
{},
premiss
:
uni
.
getStorageSync
(
'
premiss
'
)
||
[],
},
mutations
:
{
M_updateUser
(
state
,
payload
)
{
...
...
@@ -22,6 +25,18 @@ const store = new Vuex.Store({
M_updateToken
(
state
,
payload
)
{
state
.
token
=
payload
;
uni
.
setStorageSync
(
'
token
'
,
state
.
token
);
},
M_updateIsLogin
(
state
,
payload
)
{
state
.
isLogin
=
payload
;
uni
.
setStorageSync
(
'
isLogin
'
,
state
.
isLogin
);
},
M_updateRoles
(
state
,
payload
)
{
state
.
roles
=
payload
;
uni
.
setStorageSync
(
'
roles
'
,
state
.
roles
);
},
M_updatePremiss
(
state
,
payload
)
{
state
.
premiss
=
payload
;
uni
.
setStorageSync
(
'
premiss
'
,
state
.
premiss
);
}
},
actions
:
{
...
...
@@ -30,6 +45,15 @@ const store = new Vuex.Store({
},
A_updateToken
(
context
,
payload
)
{
context
.
commit
(
'
M_updateToken
'
,
payload
);
},
A_updateIsLogin
(
context
,
payload
)
{
context
.
commit
(
'
M_updateIsLogin
'
,
payload
);
},
A_updateRoles
(
context
,
payload
)
{
context
.
commit
(
'
M_updateRoles
'
,
payload
);
},
A_updatePremiss
(
context
,
payload
)
{
context
.
commit
(
'
M_updatePremiss
'
,
payload
);
}
},
getters
:
{
...
...
@@ -38,6 +62,15 @@ const store = new Vuex.Store({
},
getToken
(
state
)
{
return
state
.
token
;
},
getIsLogin
(
state
)
{
return
state
.
isLogin
;
},
getRoles
(
state
)
{
return
state
.
roles
;
},
getPremiss
(
state
)
{
return
state
.
premiss
;
}
},
modules
:
{
...
...
utils/validate/xz-reg.js
浏览文件 @
350cb4b1
/**
* @Author: xiaozuo28
* @Date: 2022年5月13日08:05:20
* @LastEditors: xiaozuo28
* @LastEditTime: 2022年7月17日08:42:42
* @Description: 正则表达式处理
**/
* @Author: xiaozuo28
* @Date: 2022年5月13日08:05:20
* @LastEditors: xiaozuo28
* @LastEditTime: 2022年7月17日08:42:42
* @Description: 正则表达式处理
**/
export
default
{
/**
* @Description 校验字符串是否为空
* @Date 2022年5月19日10:45:51
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:为空,false:不为空
**/
isStringEmpty
(
string
=
''
){
if
(
string
===
undefined
||
string
===
null
){
return
true
;
}
if
(
string
.
trim
().
length
===
0
){
return
true
;
}
else
{
return
false
;
}
},
/**
* @Description 校验字符串是否为身份证号
* @Date 2022年5月19日10:56:51
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:是,false:不是
**/
isIDCard
(
string
=
''
){
let
reg
=
/
(
^
\d{15}
$
)
|
(
^
\d{18}
$
)
|
(
^
\d{17}(\d
|X|x
)
$
)
/
;
return
reg
.
test
(
string
);
},
/**
* @Description 校验字符串是否为手机号码
* @Date 2022年5月19日11:17:23
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:是,false:不是
**/
isPhone
(
string
=
''
){
let
reg
=
/^
[
1
][
3,4,5,6,7,8,9
][
0-9
]{9}
$/
;
return
reg
.
test
(
string
);
},
/**
* @Description 校验字符串是否为Email
* @Date 2022年5月19日11:17:23
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:是,false:不是
**/
isEmail
(
string
=
''
){
let
reg
=
/^
\w
+
([
-+.
]\w
+
)
*@
\w
+
([
-.
]\w
+
)
*
\.\w
+
([
-.
]\w
+
)
*$/
;
return
reg
.
test
(
string
);
/**
* @Description 校验字符串是否为空
* @Date 2022年5月19日10:45:51
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:为空,false:不为空
**/
isStringEmpty
(
string
=
''
)
{
if
(
string
===
undefined
||
string
===
null
)
{
return
true
;
}
if
(
string
.
trim
(
).
length
===
0
)
{
return
true
;
}
else
{
return
false
;
}
},
/**
* @Description 校验字符串是否为身份证号
* @Date 2022年5月19日10:56:51
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:是,false:不是
**/
isIDCard
(
string
=
''
)
{
let
reg
=
/
(
^
\d{15}
$
)
|
(
^
\d{18}
$
)
|
(
^
\d{17}(\d
|X|x
)
$
)
/
;
return
reg
.
test
(
string
);
},
/**
* @Description 校验字符串是否为手机号码
* @Date 2022年5月19日11:17:23
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:是,false:不是
**/
isPhone
(
string
=
''
)
{
let
reg
=
/^
[
1
][
3,4,5,6,7,8,9
][
0-9
]{9}
$/
;
return
reg
.
test
(
string
);
},
/**
* @Description 校验字符串是否为Email
* @Date 2022年5月19日11:17:23
* @Param {String} sting 待校验字符串
* @Return {Boolean} true:是,false:不是
**/
isEmail
(
string
=
''
)
{
let
reg
=
/^
\w
+
([
-+.
]\w
+
)
*@
\w
+
([
-.
]\w
+
)
*
\.\w
+
([
-.
]\w
+
)
*$/
;
return
reg
.
test
(
string
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录