Ver código fonte

upload

product
HolyKnightIX 1 ano atrás
pai
commit
fee195a3be
7 arquivos alterados com 39 adições e 4 exclusões
  1. +1
    -0
      app.js
  2. +22
    -0
      index/index.js
  3. +8
    -0
      index/user.js
  4. +1
    -1
      index/user.ttml
  5. +5
    -1
      index/user.ttss
  6. +1
    -1
      pages2/shopSelect/shopSelect.less
  7. +1
    -1
      pages2/shopSelect/shopSelect.ttss

+ 1
- 0
app.js Ver arquivo

@@ -21,6 +21,7 @@ App({
nickName: "", //用户姓名
templateId: [], //订阅消息模板id
ifshowtab: false,
version: "2.9.1"
},
onLaunch: function () {
let that = this


+ 22
- 0
index/index.js Ver arquivo

@@ -11,6 +11,7 @@ const QR = require("../utils/memberqrcode.js");
const util = require("../utils/util");
const bgColor = require("../utils/bgColor.js")
let app = getApp();
const updateManager = tt.getUpdateManager();
Page({
data: {
userAvatarUrl: '',
@@ -915,6 +916,27 @@ Page({
that.getCouponChannelList(that.data.businessKey)
}, 1000)

setTimeout(() => {
console.log('onCheckForUpdate');
updateManager.onCheckForUpdate(res => {
console.log(res, 'onCheckForUpdate');
if (res.hasUpdate) {
updateManager.onUpdateReady((res) => {
tt.showModal({
title: "更新提示",
content: "新版本已经准备就绪,是否重新进入小程序?",
success: (res) => {
if (res.confirm) {
// 新的版本已经下载好,应用新版本并重启
updateManager.applyUpdate();
}
},
});
});
}
});
}, 2500);

},




+ 8
- 0
index/user.js Ver arquivo

@@ -11,6 +11,7 @@ Page({
avatarUrl: "",
nickName: "",
mouldType: 1,
version: ""
},
showPhoemBtn() {

@@ -119,6 +120,13 @@ Page({
// });
},
onShow: function (options) {
const version = app.globalData.version

if (version) {
this.setData({
version
})
}

this.setData({
mouldType: app.globalData.mouldType


+ 1
- 1
index/user.ttml Ver arquivo

@@ -83,7 +83,7 @@
</navigator>
</view>
</view>
<view class="version">Version 2.8.6</view>
<view class="version">Version {{ version }}</view>
<phoem showBox="{{showPhoem}}" bind:hiePhoen="setPhone" bind:heiBox="setBox"></phoem>
</view>



+ 5
- 1
index/user.ttss Ver arquivo

@@ -1,4 +1,8 @@
/* d:\fumaolianke\ttFmC\tt富茂C\pages\user\user.ttss */
page {
padding-bottom: 0;
}

.BoxBg {
/* background-image: url("https://formall.oss-accelerate.aliyuncs.com/douyin_ifomall/imgData/userBg.png"); */
/* background-size: 100% auto; */
@@ -244,7 +248,7 @@ button {

.version {
position: absolute;
bottom: 0;
bottom: 100rpx;
right: 5%;
color: #ffffffb9;
}

+ 1
- 1
pages2/shopSelect/shopSelect.less Ver arquivo

@@ -43,7 +43,7 @@ page {
margin-bottom: 30rpx;
padding: 25rpx 25rpx 25rpx 25rpx;
box-sizing: border-box !important;
background-color: #f3f3f3;
background-color: #fffffff8;
border: 1px solid #0000002d;
border-radius: 12rpx;
// box-shadow: #00000036 0px 1px 2px 2px;


+ 1
- 1
pages2/shopSelect/shopSelect.ttss Ver arquivo

@@ -40,7 +40,7 @@ page .continer .selectShop .shopList .item {
margin-bottom: 30rpx;
padding: 25rpx 25rpx 25rpx 25rpx;
box-sizing: border-box !important;
background-color: #f3f3f3;
background-color: #fffffff8;
border: 1px solid #0000002d;
border-radius: 12rpx;
}


Carregando…
Cancelar
Salvar