Commit f8f35299 by 穆启卓

改小程序标题

parent e00557ac
// 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换算关系
......
......@@ -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();
......
<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> -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment