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
a5503bd9
Commit
a5503bd9
authored
May 08, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号的名字在config里面控制了
parent
3ef3573e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
9 deletions
+20
-9
config.js
config.js
+6
-2
authorization.js
pages/authorization/authorization.js
+5
-0
authorization.wxml
pages/authorization/authorization.wxml
+4
-4
index.js
pages/index/index.js
+4
-2
index.wxml
pages/index/index.wxml
+1
-1
No files found.
config.js
View file @
a5503bd9
// const host = 'miniapp-testapi.wxatech.com';
const
host
=
'miniapp-api.wxatech.com'
;
const
content
=
'game-bsdk'
;
// 步数打卡
// const content = 'game-team_walk'; // 组队打卡
// const content = 'game-bsdk'; // 步数打卡
// const appName = '步步运动赚'; // 步数打卡
const
content
=
'game-team_walk'
;
// 组队打卡
const
appName
=
'步数运动馆'
;
// 组队打卡
const
config
=
{
// 下面的地址配合云端 Demo 工作
...
...
@@ -21,6 +24,7 @@ const config = {
reportSourceUrl
:
'https://kf.bleege.com/api/mina_source/report'
,
version
:
'1.0.0'
,
},
appName
,
//小程序的公众号名字
pixelRate
:
0.5
,
//px与rpx换算关系
platform
:
'ios'
,
//操作平台 用于适配胶囊高度
capsuleHeight
:
44
,
//胶囊高度
...
...
pages/authorization/authorization.js
View file @
a5503bd9
let
app
=
getApp
();
let
config
=
require
(
'../../config'
);
let
getAuthLoading
=
false
;
Page
({
data
:
{
userAuth
:
false
,
stepAuth
:
false
,
stepGoSetting
:
true
,
// 步数授权是否变成直接去openSetting页的按钮
appName
:
''
},
onLoad
()
{
this
.
setData
({
appName
:
config
.
appName
});
wx
.
getSetting
({
success
:(
res
)
=>
{
// 用户信息是否授权
...
...
pages/authorization/authorization.wxml
View file @
a5503bd9
<navbar showHome="{{false}}" navTitle="{{navTitle}}" navColor="#fff"></navbar>
<view class="page-container">
<image class="app-logo" src="/images/authorization/logo.png"></image>
<view class="app-name">
步步运动赚
</view>
<view class="title">请允许
步步运动赚
获取以下权限</view>
<view class="explain">以下信息仅用于您登录
步步运动赚
,我们将严格保密绝不外泄,更不会对您发送垃圾信息造成骚扰</view>
<view class="app-name">
{{appName}}
</view>
<view class="title">请允许
{{appName}}
获取以下权限</view>
<view class="explain">以下信息仅用于您登录
{{appName}}
,我们将严格保密绝不外泄,更不会对您发送垃圾信息造成骚扰</view>
<view class="authorization-container">
<image class="authorized-icon" src="/images/authorization/auth_{{userAuth?'true':'false'}}.png"></image>
<view class="authorization-title-explain">
<view class="authorization-title">获取您的公开信息(昵称、头像等)</view>
<view class="authorization-explain">需获取您的公开信息,方便您使用
步步运动赚
全部功能</view>
<view class="authorization-explain">需获取您的公开信息,方便您使用
{{appName}}
全部功能</view>
</view>
</view>
<view class="authorization-container">
...
...
pages/index/index.js
View file @
a5503bd9
var
config
=
require
(
'../../config'
);
let
config
=
require
(
'../../config'
);
let
app
=
getApp
();
Page
({
data
:
{
...
...
@@ -18,6 +18,7 @@ Page({
progressCanvasRate
:
''
,
progressCanvasImage
:
''
,
bubbleList
:
[],
appName
:
''
,
},
onShow
()
{
...
...
@@ -25,7 +26,8 @@ Page({
title
:
'获取步数中'
});
this
.
setData
({
scene
:
app
.
globalData
.
scene
scene
:
app
.
globalData
.
scene
,
appName
:
config
.
appName
});
this
.
getPageData
();
this
.
earnStep
();
...
...
pages/index/index.wxml
View file @
a5503bd9
...
...
@@ -62,7 +62,7 @@
<view class="content-text">请检查是否关注微信运动公众号,如已关注请继续行走;</view>
<view class="content-text">如未关注,则进入微信【添加好友】— 搜索【微信运动】找到公众号并关注,进入公众号后你会收到一条提示是否要让微信访问我们的活动记录点击“好”即可。</view>
<view class="content-title title2">如何参与步数打卡?</view>
<view class="content-text">关注公众号【
步步运动赚
】,点击菜单栏【打卡入口】,成功报名活动后,活动结束24点前登录小程序同步最新步数。</view>
<view class="content-text">关注公众号【
{{appName}}
】,点击菜单栏【打卡入口】,成功报名活动后,活动结束24点前登录小程序同步最新步数。</view>
<image class="activity-explain-close-btn" src="/images/index/pop_ic_close.png" bindtap="changeActivityExplainShow"></image>
</view>
</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