Kaynağa Gözat

更新提示

product
HolyKnightIX 1 yıl önce
ebeveyn
işleme
0ad11195a8
8 değiştirilmiş dosya ile 34 ekleme ve 20 silme
  1. +2
    -1
      app.js
  2. +0
    -1
      config/config.js
  3. +2
    -1
      ext.json
  4. +13
    -3
      index/index.js
  5. +2
    -0
      index/user.js
  6. +1
    -1
      index/user.ttml
  7. +13
    -13
      pages2/appointment/appointment.js
  8. +1
    -0
      pages2/shopSelect/shopSelect.js

+ 2
- 1
app.js Dosyayı Görüntüle

@@ -1,5 +1,6 @@
const Http = require("./utils/HttpBasics.js")
const config = require("./config/config.js");

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

tt.setStorageSync('locationFlag', true);
try {
var res = tt.getSystemInfoSync();


+ 0
- 1
config/config.js Dosyayı Görüntüle

@@ -1,6 +1,5 @@
const extConfig = tt.getExtConfigSync ? tt.getExtConfigSync().extConfig : {}
let weappId = extConfig.weappId;
console.log(extConfig, "configUrls");
let configUrls = extConfig.attr.configUrl;

var config = {


+ 2
- 1
ext.json Dosyayı Görüntüle

@@ -1,7 +1,8 @@
{
"ext": {
"attr": {
"configUrl": "https://ctest.malls.iformall.com/C/api"
"configUrl": "https://ctest.malls.iformall.com/C/api",
"version": "2.9.1"
},
"name": "富茂家政",
"weappId": "tt90b5e6080f896bde01"


+ 13
- 3
index/index.js Dosyayı Görüntüle

@@ -11,7 +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();
const updateManager = tt.getUpdateManager()
Page({
data: {
userAvatarUrl: '',
@@ -917,7 +917,18 @@ Page({
}, 1000)

setTimeout(() => {
console.log('onCheckForUpdate');
const getEnvInfoSync = tt.getEnvInfoSync()
const envType = getEnvInfoSync.microapp.envType
console.log(envType, 'envType');
if (envType == 'development') return

if (envType == 'preview') {
tt.showToast({
title: 'preview mode',
icon: "success"
});
}

updateManager.onCheckForUpdate(res => {
console.log(res, 'onCheckForUpdate');
if (res.hasUpdate) {
@@ -936,7 +947,6 @@ Page({
}
});
}, 2500);

},




+ 2
- 0
index/user.js Dosyayı Görüntüle

@@ -3,6 +3,8 @@ const navigationBarHeight = (getApp().statusBarHeight + 50) + "px";
const Http = require("../utils/HttpBasics");
const config = require("../config/config");
const imgurl = require("../utils/imgurl");


Page({
data: {
navigationBarHeight,


+ 1
- 1
index/user.ttml Dosyayı Görüntüle

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



+ 13
- 13
pages2/appointment/appointment.js Dosyayı Görüntüle

@@ -253,20 +253,20 @@ Page({
that.setData({
isDetail: true
})
tt.showToast({
title: '请点击右上角:更多-权限设置-开启地理位置授权',
icon: 'none',
duration: 4000,
success: () => {
setTimeout(() => {
tt.showToast({
title: '或直接填写详细地址',
icon: 'none',
duration: 3000,
});
}, 4000);
}

tt.showModal({
title: '提示',
content: '请点击右上角:更多-权限设置-开启地理位置授权,或直接填写详细地址',
showCancel: false,
confirmText: "知道了",
success: (res) => {

},
fail: (res) => {

},
});

},
complete: function (data) {}
})


+ 1
- 0
pages2/shopSelect/shopSelect.js Dosyayı Görüntüle

@@ -330,6 +330,7 @@ Page({
currentTag: id,
toView: id
})
tt.vibrateShort()
},

goSetShop(e) {


Yükleniyor…
İptal
Kaydet