Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
Harvey
/
ydu-lottery-shop-app
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f50543b3
由
Harvey
编写于
2022-04-20 14:28:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
no message
1 个父辈
3dd8211d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
35 行增加
和
13 行删除
src/common/request.js
src/pages.json
src/pages/center/index.vue
src/static/css/common.css
src/static/font/uni.ttf
src/common/request.js
查看文件 @
f50543b
//const baseUrl = 'https://app.ydniu.com/graphql'
//
const baseUrl = '/test_graphql'
const
baseUrl
=
'/graphql'
const
baseUrl
=
'/test_graphql'
//
const baseUrl = '/graphql'
function
request
(
options
=
{})
{
let
header
=
Object
.
assign
({
"Accept"
:
"application/json"
"Accept"
:
"application/json"
,
"ydn-cookie"
:
'connect.sid=s%3AXYMD32sp1XaZ80WfkFHUCXY3TWDWwVFS.8vXF9rK5dFqcejYW6J15Gu%2F1woUNKrBTIwWKizrcA20'
},
options
.
header
)
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -53,10 +54,14 @@ async function graphql(options = {}) {
res
=
res
.
data
.
data
[
opts
.
name
]
if
(
res
.
Error
==
'未登录'
)
{
uni
.
navigateTo
({
url
:
`/login?from=
${
encodeURIComponent
(
getCurrentPages
()[
0
].
__page__
.
fullPath
)}
`
})
if
(
res
.
Error
==
'未登录'
)
{
try
{
Android
.
webGoBack
(
""
)
}
catch
(
e
){
uni
.
navigateTo
({
url
:
`/login?from=
${
encodeURIComponent
(
getCurrentPages
()[
0
].
__page__
.
fullPath
)}
`
})
}
return
}
...
...
src/pages.json
查看文件 @
f50543b
...
...
@@ -14,17 +14,17 @@
"name"
:
"center"
,
"style"
:
{
"navigationBarTitleText"
:
"用户中心"
,
"navigationStyle"
:
"default"
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#F1F1F1"
}
},
{
"path"
:
"pages/tv/list"
,
"aliasPath"
:
"/tv/list"
,
"name"
:
"tv_list"
,
"desc"
:
"彩店走势图"
,
"style"
:
{
"navigationBarTitleText"
:
"彩店走势图"
,
"navigationStyle"
:
"
custom
"
"navigationStyle"
:
"
default
"
}
},
{
...
...
src/pages/center/index.vue
查看文件 @
f50543b
...
...
@@ -37,9 +37,9 @@
name
:
'lottery_shop_get_my_shop_info'
})
if
(
!
(
res
&&
res
.
length
>
1
))
return
this
.
data
=
res
[
0
]
if
(
!
(
res
&&
res
.
length
>
0
))
return
const
data
=
res
[
0
]
this
.
data
.
addr
=
data
.
addr
},
methods
:
{
...
...
src/static/css/common.css
0 → 100644
查看文件 @
f50543b
@font-face
{
font-family
:
uniicons
;
font-weight
:
normal
;
font-style
:
normal
;
src
:
url('@/static/font/uni.ttf')
format
(
'truetype'
);
}
.uni-font
{
font-family
:
uniicons
;
font-size
:
24px
;
font-weight
:
normal
;
font-style
:
normal
;
line-height
:
1
;
display
:
inline-block
;
text-decoration
:
none
;
-webkit-font-smoothing
:
antialiased
;
}
\ No newline at end of file
src/static/font/uni.ttf
0 → 100644
查看文件 @
f50543b
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论