Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
Harvey
/
ydu-lottery-shop-app
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0231b915
由
Harvey
编写于
2022-04-24 17:54:28 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
app分享
提建议
1 个父辈
eb942d8f
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
148 行增加
和
4 行删除
src/pages.json
src/pages/center/index.vue
src/pages/center/share.vue
src/pages/center/suggest.vue
src/pages.json
查看文件 @
0231b91
...
@@ -27,7 +27,28 @@
...
@@ -27,7 +27,28 @@
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#F1F1F1"
"navigationBarBackgroundColor"
:
"#F1F1F1"
}
}
},
{
"path"
:
"pages/center/suggest"
,
"aliasPath"
:
"/center/suggest"
,
"name"
:
"center_suggest"
,
"style"
:
{
"navigationBarTitleText"
:
"提建议"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#F1F1F1"
,
"backgroundColorBottom"
:
"#007AFF"
}
},
},
{
"path"
:
"pages/center/share"
,
"aliasPath"
:
"/center/share"
,
"name"
:
"center_share"
,
"style"
:
{
"navigationBarTitleText"
:
"APP分享"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#F1F1F1"
,
"backgroundColorBottom"
:
"#007AFF"
}
},
{
{
"path"
:
"pages/auth/login"
,
"path"
:
"pages/auth/login"
,
"aliasPath"
:
"/login"
,
"aliasPath"
:
"/login"
,
...
@@ -60,8 +81,8 @@
...
@@ -60,8 +81,8 @@
"navigationStyle"
:
""
,
"navigationStyle"
:
""
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"一定牛彩店"
,
"navigationBarTitleText"
:
"一定牛彩店"
,
"navigationBarBackgroundColor"
:
"#F
8F8F8
"
,
"navigationBarBackgroundColor"
:
"#F
1F1F1
"
,
"backgroundColor"
:
"#F
8F8F8
"
"backgroundColor"
:
"#F
1F1F1
"
},
},
"tabBar"
:
{
"tabBar"
:
{
"color"
:
"#7A7E83"
,
"color"
:
"#7A7E83"
,
...
...
src/pages/center/index.vue
查看文件 @
0231b91
...
@@ -32,14 +32,14 @@
...
@@ -32,14 +32,14 @@
to
:
''
to
:
''
},
{
},
{
name
:
'分享给好友'
,
name
:
'分享给好友'
,
to
:
''
to
:
'
/center/share
'
}],
}],
[{
[{
name
:
'联系客服'
,
name
:
'联系客服'
,
to
:
''
to
:
''
},
{
},
{
name
:
'提建议'
,
name
:
'提建议'
,
to
:
''
to
:
'
/center/suggest
'
},
{
},
{
name
:
'缓存清理'
,
name
:
'缓存清理'
,
to
:
''
to
:
''
...
...
src/pages/center/share.vue
0 → 100644
查看文件 @
0231b91
<
template
>
<view>
<view
class=
"page-content"
>
<image
mode=
"widthFix"
:src=
"src"
></image>
</view>
<view
class=
"page-tabbar"
>
<view
class=
"page-tabbar-tip red"
@
click=
"save"
>
保存海报去分享
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
src
:
'https://img2.ydniu.com/app/cd/202204122204/%E5%BF%AB%E4%B9%908%E5%9F%BA%E6%9C%AC%E8%B5%B0%E5%8A%BF%E5%9B%BE.png'
}
},
async
onLoad
(
e
)
{},
methods
:
{
save
()
{
//#ifdef H5
try
{
if
(
Android
)
{
Android
.
save2Album
(
this
.
src
)
}
}
catch
(
e
)
{
const
$h5
=
require
(
'@/static/js/h5-utils.js'
)
$h5
.
downloadIamge
(
this
.
src
)
}
//#endif
}
}
}
</
script
>
<
style
scoped
>
.page-content
{
width
:
80vw
;
padding
:
10px
5vw
44px
5vw
;
}
.page-content
image
{
width
:
90vw
;
}
.page-tabbar
{
display
:
flex
;
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
height
:
44px
;
background-color
:
#F8F8F8
;
justify-content
:
space-around
;
font-size
:
16px
;
color
:
#333333
;
}
.page-tabbar-tip
{
width
:
33vw
;
height
:
44px
;
line-height
:
44px
;
text-align
:
center
;
color
:
#E34439
;
}
</
style
>
src/pages/center/suggest.vue
0 → 100644
查看文件 @
0231b91
<
template
>
<view
class=
"page"
>
<textarea
class=
"textarea"
v-model=
"txt"
placeholder=
"可以提出您想实现的彩店功能、或者对现有产品的改进"
></textarea>
<button
type=
"default"
class=
"btn"
@
click=
"save"
>
提交
</button>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
txt
:
''
}
},
async
onLoad
(
e
)
{
// const res = await uni.$u.request.graphql({
// name: 'lottery_shop_get_my_shop_info'
// })
},
methods
:
{
save
(){
uni
.
showToast
({
title
:
'接口未实现'
})
}
}
}
</
script
>
<
style
scoped
>
body
{
max-width
:
769px
;
-webkit-tap-highlight-color
:
transparent
;
box-shadow
:
0
2px
2px
rgb
(
0
0
0
/
30%
);
}
.page
{
width
:
100vw
;
height
:
100vh
;
background-color
:
#F1F1F1
;
font-size
:
14px
;
}
.textarea
{
width
:
calc
(
100vw
-
20px
);
padding
:
10px
;
min-height
:
150px
;
background-color
:
#FFFFFF
;
}
.btn
{
height
:
44px
;
margin
:
20px
10px
;
background-color
:
#D23338
;
color
:
#FFFFFF
;
}
</
style
>
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论