|
@@ -762,7 +762,7 @@ function populateParameters(result) {var _result$brand =
|
|
|
|
|
|
var parameters = {
|
|
|
appId: "__UNI__1C40FB4",
|
|
|
- appName: "mdapp",
|
|
|
+ appName: "房票科技",
|
|
|
appVersion: "1.0.0",
|
|
|
appVersionCode: "100",
|
|
|
appLanguage: getAppLanguage(hostLanguage),
|
|
@@ -871,7 +871,7 @@ var getAppBaseInfo = {
|
|
|
|
|
|
result = sortObject(Object.assign(result, {
|
|
|
appId: "__UNI__1C40FB4",
|
|
|
- appName: "mdapp",
|
|
|
+ appName: "房票科技",
|
|
|
appVersion: "1.0.0",
|
|
|
appVersionCode: "100",
|
|
|
appLanguage: getAppLanguage(hostLanguage),
|
|
@@ -1400,7 +1400,7 @@ function initData(vueOptions, context) {
|
|
|
try {
|
|
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
|
|
} catch (e) {
|
|
|
- if (Object({"VUE_APP_NAME":"mdapp","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
|
}
|
|
|
}
|
|
@@ -5309,7 +5309,7 @@ function _broadcast(componentName, eventName, params) {
|
|
|
var formatRegExp = /%[sdj%]/g;
|
|
|
var warning = function warning() {}; // don't print warning message when in production env or node runtime
|
|
|
|
|
|
-if (typeof process !== 'undefined' && Object({"VUE_APP_NAME":"mdapp","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
|
|
|
+if (typeof process !== 'undefined' && Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
|
|
|
'undefined' && typeof document !== 'undefined') {
|
|
|
warning = function warning(type, errors) {
|
|
|
if (typeof console !== 'undefined' && console.warn) {
|
|
@@ -13663,7 +13663,7 @@ function type(obj) {
|
|
|
|
|
|
function flushCallbacks$1(vm) {
|
|
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
|
|
- if (Object({"VUE_APP_NAME":"mdapp","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
|
@@ -13684,14 +13684,14 @@ function nextTick$1(vm, cb) {
|
|
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
|
|
//2.nextTick 之前存在 render watcher
|
|
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
|
|
- if(Object({"VUE_APP_NAME":"mdapp","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:nextVueTick');
|
|
|
}
|
|
|
return nextTick(cb, vm)
|
|
|
}else{
|
|
|
- if(Object({"VUE_APP_NAME":"mdapp","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance$1 = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
|
|
']:nextMPTick');
|
|
@@ -13777,7 +13777,7 @@ var patch = function(oldVnode, vnode) {
|
|
|
});
|
|
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
|
|
if (Object.keys(diffData).length) {
|
|
|
- if (Object({"VUE_APP_NAME":"mdapp","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_NAME":"房票科技","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
|
|
']差量更新',
|
|
|
JSON.stringify(diffData));
|
|
@@ -14350,18 +14350,23 @@ var Http = function Http() {var options = arguments.length > 0 && arguments[0] !
|
|
|
case 404:
|
|
|
case 405:
|
|
|
uni.removeStorageSync('MD_userInfo');
|
|
|
- uni.removeStorageSync('MD_token');
|
|
|
- // 差一个补是否绑定微信
|
|
|
- if (uni.getStorageSync('APP_token')) {
|
|
|
+ var u2 = uni.getStorageSync('MD_userInfo2');
|
|
|
+ if (u2.bind_wechat === '1' && uni.getStorageSync('MD_token')) {
|
|
|
uni.login({
|
|
|
success: function success(res) {
|
|
|
if (res.code) {
|
|
|
uni.api.base.apiwxautologin({ code: res.code }).then(function (cData) {
|
|
|
if (cData.token === 'error') {
|
|
|
- uni.removeStorageSync('APP_token');
|
|
|
+ uni.removeStorageSync('MD_token');
|
|
|
} else {
|
|
|
- uni.setStorageSync('APP_userInfo', cData);
|
|
|
- uni.setStorageSync('APP_token', cData.token);
|
|
|
+ uni.setStorageSync('MD_userInfo', cData);
|
|
|
+ uni.setStorageSync('MD_token', cData.token);
|
|
|
+ uni.api.base.apiuserinfo().then(function (res2) {
|
|
|
+ uni.setStorageSync('MD_userInfo2', res2);
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pages/index/index' });
|
|
|
+
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -14372,10 +14377,10 @@ var Http = function Http() {var options = arguments.length > 0 && arguments[0] !
|
|
|
title: "\u8BF7\u5148\u767B\u5F55~",
|
|
|
icon: 'none' });
|
|
|
|
|
|
- }
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/user/login/login' });
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/user/login/login' });
|
|
|
|
|
|
+ }
|
|
|
break;
|
|
|
default:
|
|
|
uni.showModal({
|