Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_wx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
穆启卓
walk_daka_wx
Commits
f8f35299
Commit
f8f35299
authored
May 13, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改小程序标题
parent
e00557ac
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
config.js
config.js
+7
-0
index.js
pages/index/index.js
+3
-1
index.wxml
pages/index/index.wxml
+1
-1
No files found.
config.js
View file @
f8f35299
// wx035eac0d4d63b3e4 步数打卡-步步运动赚
// wx41d6ac4f57b878d2 组队打卡-步数运动馆
// const host = 'miniapp-testapi.wxatech.com';
const
host
=
'miniapp-api.wxatech.com'
;
...
...
@@ -5,12 +8,15 @@ const host = 'miniapp-api.wxatech.com';
const
content
=
'game-team_walk'
;
// 组队打卡
let
appName
=
''
;
let
appTitle
=
''
;
let
appLogo
=
''
;
if
(
content
===
'game-bsdk'
)
{
// 步数打卡
appName
=
'步步运动赚'
;
appTitle
=
'步数打卡'
;
appLogo
=
'logo1'
;
}
else
if
(
content
===
'game-team_walk'
)
{
// 组队打卡
appName
=
'步数运动馆'
;
appTitle
=
'组队打卡'
;
appLogo
=
'logo2'
;
}
...
...
@@ -33,6 +39,7 @@ const config = {
version
:
'1.0.0'
,
},
appName
,
//小程序的公众号名字
appTitle
,
//小程序的标题
appLogo
,
//授权页用到的logo
pixelRate
:
0.5
,
//px与rpx换算关系
...
...
pages/index/index.js
View file @
f8f35299
...
...
@@ -19,6 +19,7 @@ Page({
progressCanvasImage
:
''
,
bubbleList
:
[],
appName
:
''
,
appTitle
:
''
,
},
onShow
()
{
...
...
@@ -27,7 +28,8 @@ Page({
});
this
.
setData
({
scene
:
app
.
globalData
.
scene
,
appName
:
config
.
appName
appName
:
config
.
appName
,
appTitle
:
config
.
appTitle
});
this
.
getPageData
();
this
.
earnStep
();
...
...
pages/index/index.wxml
View file @
f8f35299
<navbar showExit="{{true}}" showBtnBg="{{false}}" navTitle="{{
'步数打卡'
}}" titleColor="{{'#fff'}}" showMargin="{{false}}"></navbar>
<navbar showExit="{{true}}" showBtnBg="{{false}}" navTitle="{{
appTitle
}}" titleColor="{{'#fff'}}" showMargin="{{false}}"></navbar>
<view class="page-container">
<view class="today-step-container">
<!-- <view class="continuity-days">连续打卡5天</view> -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment