Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
msjf-customized
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
msjf-customized
Commits
c9691499
提交
c9691499
authored
9月 14, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
。。。
上级
347c0659
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
16 行增加
和
13 行删除
+16
-13
iconfont.scss
src/common/scss/iconfont.scss
+3
-3
uploadImageVideo.vue
src/pages/customized/uploadImageVideo.vue
+8
-6
login.vue
src/pages/login/login.vue
+0
-2
api.ts
src/services/api.ts
+3
-0
request.ts
src/services/request.ts
+2
-2
没有找到文件。
src/common/scss/iconfont.scss
浏览文件 @
c9691499
@font-face
{
font-family
:
'iconfont'
;
/* Project id 3604159 */
src
:
url('//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff2?t=1662358646339')
format
(
'woff2'
)
,
url('//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff?t=1662358646339')
format
(
'woff'
)
,
url('//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.ttf?t=1662358646339')
format
(
'truetype'
);
src
:
url('
https:
//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff2?t=1662358646339')
format
(
'woff2'
)
,
url('
https:
//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff?t=1662358646339')
format
(
'woff'
)
,
url('
https:
//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.ttf?t=1662358646339')
format
(
'truetype'
);
}
.iconfont
{
...
...
src/pages/customized/uploadImageVideo.vue
浏览文件 @
c9691499
...
...
@@ -18,14 +18,14 @@
<
script
lang=
"ts"
setup
>
import
{
ref
,
watch
}
from
'vue'
;
import
{
onLoad
}
from
'@dcloudio/uni-app'
;
import
{
saveCustomPage
}
from
'@/services/api'
;
import
{
saveCustomPage
,
downLoad
}
from
'@/services/api'
;
import
{
baseURL
}
from
'@/services/request'
;
let
imageVideoData
=
ref
([]
as
any
);
// 区分通用还是空白
let
type
=
ref
();
let
templateId
=
ref
()
let
downUrl
=
'/wx/storage/fetch/'
let
templateId
=
ref
()
;
let
downUrl
=
'/wx/storage/fetch/'
;
onLoad
((
options
:
any
)
=>
{
if
(
options
)
{
...
...
@@ -35,6 +35,9 @@ onLoad((options: any) => {
let
currencyPage
=
JSON
.
parse
(
options
.
currencyPage
);
console
.
log
(
currencyPage
);
for
(
let
s
in
currencyPage
)
{
// downLoad(currencyPage[s].pageComponent).then((res: any) => {
// console.log(res, 'load');
// });
uni
.
downloadFile
({
url
:
baseURL
+
downUrl
+
currencyPage
[
s
].
pageComponent
,
success
(
res
:
any
)
{
...
...
@@ -48,7 +51,7 @@ onLoad((options: any) => {
}
else
if
(
type
==
'edit'
)
{
// 编辑模板列表
let
pageData
=
JSON
.
parse
(
options
.
pageData
);
templateId
.
value
=
JSON
.
parse
(
options
.
templateId
)
templateId
.
value
=
JSON
.
parse
(
options
.
templateId
)
;
for
(
let
s
in
pageData
)
{
uni
.
downloadFile
({
url
:
baseURL
+
downUrl
+
pageData
[
s
].
pageComponent
,
...
...
@@ -103,7 +106,7 @@ let uploadVideo = () => {
};
let
save
=
()
=>
{
if
(
templateId
)
{
if
(
templateId
)
{
let
idArr
=
[];
for
(
let
key
in
imageVideoData
.
value
)
{
uni
.
uploadFile
({
...
...
@@ -162,7 +165,6 @@ let save = () => {
});
}
}
};
// 替换图片
...
...
src/pages/login/login.vue
浏览文件 @
c9691499
...
...
@@ -19,8 +19,6 @@
import
{
ref
,
reactive
}
from
'vue'
;
import
{
login
}
from
'@/services/api'
;
import
inputLogin
from
'@/components/inputLogin.vue'
;
// let baseUrl = 'http://139.186.162.12/';
// let baseUrl = 'http://192.168.2.209:8080/';
let
inputData
=
reactive
({
inputValue
:
15616168157
,
...
...
src/services/api.ts
浏览文件 @
c9691499
...
...
@@ -23,3 +23,6 @@ export let deletePageComponent = (id: number) => request('/wx/customPage/delete'
// 查询记录
export
let
searchSnInfo
=
(
sn
:
string
)
=>
request
(
'/wx/orderSequence/searchRecordInfo'
,
'GET'
,
sn
);
// 下载接口
export
let
downLoad
=
(
imgUrl
:
string
)
=>
request
(
'/wx/storage/download/'
+
imgUrl
,
'GET'
);
src/services/request.ts
浏览文件 @
c9691499
//服务器接口地址
//
const baseURL: string = 'http://139.186.162.12';
const
baseURL
:
string
=
'http://139.186.162.12'
;
//本地调试接口地址
const
baseURL
:
string
=
'http://192.168.2.209:8080'
;
//
const baseURL: string = 'http://192.168.2.209:8080';
// 封装公共申请办法
function
request
(
url
:
string
,
method
:
'GET'
|
'POST'
|
'PUT'
|
'DELETE'
,
data
?:
object
|
any
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论