成人首页familyid缓存
This commit is contained in:
parent
ad619e7636
commit
8e15d89474
|
|
@ -57,7 +57,7 @@
|
||||||
"quickapp" : {},
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin" : {
|
"mp-weixin" : {
|
||||||
"appid" : "wx39cf431caa22b5c8",
|
"appid" : "wx3e83b37ba682faf5",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : true,
|
"urlCheck" : true,
|
||||||
"minified" : true,
|
"minified" : true,
|
||||||
|
|
|
||||||
|
|
@ -188,17 +188,15 @@
|
||||||
});
|
});
|
||||||
that.token = uni.getStorageSync('token')
|
that.token = uni.getStorageSync('token')
|
||||||
console.log("首页收参", options, )
|
console.log("首页收参", options, )
|
||||||
if (options && options.userId) {
|
if (options && options.userid) {
|
||||||
that.userId = options.userId
|
that.userId = options.userid
|
||||||
}
|
}
|
||||||
if (options && options.t) {
|
if (options && options.t) {
|
||||||
that.$store.commit("changeDevType", options);
|
that.$store.commit("changeDevType", options);
|
||||||
}
|
}
|
||||||
uni.setStorageSync('familyid', 123)
|
|
||||||
await that.login()
|
await that.login()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
console.log("MeasureResult", this.infoList)
|
|
||||||
this.token = uni.getStorageSync('token')
|
this.token = uni.getStorageSync('token')
|
||||||
},
|
},
|
||||||
onTabItemTap() {
|
onTabItemTap() {
|
||||||
|
|
@ -220,6 +218,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
login() {
|
login() {
|
||||||
let that = this
|
let that = this
|
||||||
|
console.log('userId', that.userId)
|
||||||
uni.login({
|
uni.login({
|
||||||
success(res) {
|
success(res) {
|
||||||
if (res.code) {
|
if (res.code) {
|
||||||
|
|
@ -265,13 +264,17 @@
|
||||||
let id = uni.getStorageSync('familyid')
|
let id = uni.getStorageSync('familyid')
|
||||||
that.$model.getFamilyList({}).then(res => {
|
that.$model.getFamilyList({}).then(res => {
|
||||||
that.$store.commit("changeFamilay", res)
|
that.$store.commit("changeFamilay", res)
|
||||||
if (id && !isNaN(id) && typeof id === "number") {
|
if (id) {
|
||||||
// familyId = res[0].familyid
|
if (!isNaN(id) && typeof id === "number") {
|
||||||
isfamily = true
|
isfamily = true
|
||||||
|
} else {
|
||||||
|
isfamily = false
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
isfamily = false
|
console.log("3", id)
|
||||||
// familyId = id
|
isfamily = true
|
||||||
}
|
}
|
||||||
|
|
||||||
that.$store.dispatch("getUserInfo", {
|
that.$store.dispatch("getUserInfo", {
|
||||||
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid')
|
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid')
|
||||||
})
|
})
|
||||||
|
|
@ -421,6 +424,7 @@
|
||||||
uni.navigateToMiniProgram({
|
uni.navigateToMiniProgram({
|
||||||
appId: that.configBox.referappid,
|
appId: that.configBox.referappid,
|
||||||
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
|
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
|
||||||
|
// envVersion: "develop",
|
||||||
extraData: {},
|
extraData: {},
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -320,17 +320,15 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
|
||||||
|
|
||||||
that.token = uni.getStorageSync('token');
|
that.token = uni.getStorageSync('token');
|
||||||
console.log("首页收参", options);
|
console.log("首页收参", options);
|
||||||
if (options && options.userId) {
|
if (options && options.userid) {
|
||||||
that.userId = options.userId;
|
that.userId = options.userid;
|
||||||
}
|
}
|
||||||
if (options && options.t) {
|
if (options && options.t) {
|
||||||
that.$store.commit("changeDevType", options);
|
that.$store.commit("changeDevType", options);
|
||||||
}
|
}_context.next = 8;return (
|
||||||
uni.setStorageSync('familyid', 123);_context.next = 9;return (
|
that.login());case 8:case "end":return _context.stop();}}}, _callee);}))();
|
||||||
that.login());case 9:case "end":return _context.stop();}}}, _callee);}))();
|
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
console.log("MeasureResult", this.infoList);
|
|
||||||
this.token = uni.getStorageSync('token');
|
this.token = uni.getStorageSync('token');
|
||||||
},
|
},
|
||||||
onTabItemTap: function onTabItemTap() {
|
onTabItemTap: function onTabItemTap() {
|
||||||
|
|
@ -352,6 +350,7 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
|
||||||
methods: {
|
methods: {
|
||||||
login: function login() {
|
login: function login() {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
console.log('userId', that.userId);
|
||||||
uni.login({
|
uni.login({
|
||||||
success: function success(res) {
|
success: function success(res) {
|
||||||
if (res.code) {
|
if (res.code) {
|
||||||
|
|
@ -397,13 +396,17 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
|
||||||
var id = uni.getStorageSync('familyid');
|
var id = uni.getStorageSync('familyid');
|
||||||
that.$model.getFamilyList({}).then(function (res) {
|
that.$model.getFamilyList({}).then(function (res) {
|
||||||
that.$store.commit("changeFamilay", res);
|
that.$store.commit("changeFamilay", res);
|
||||||
if (id && !isNaN(id) && typeof id === "number") {
|
if (id) {
|
||||||
// familyId = res[0].familyid
|
if (!isNaN(id) && typeof id === "number") {
|
||||||
isfamily = true;
|
isfamily = true;
|
||||||
|
} else {
|
||||||
|
isfamily = false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
isfamily = false;
|
console.log("3", id);
|
||||||
// familyId = id
|
isfamily = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
that.$store.dispatch("getUserInfo", {
|
that.$store.dispatch("getUserInfo", {
|
||||||
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid') });
|
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid') });
|
||||||
|
|
||||||
|
|
@ -553,6 +556,7 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
|
||||||
uni.navigateToMiniProgram({
|
uni.navigateToMiniProgram({
|
||||||
appId: that.configBox.referappid,
|
appId: that.configBox.referappid,
|
||||||
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
|
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
|
||||||
|
// envVersion: "develop",
|
||||||
extraData: {} });
|
extraData: {} });
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,44 @@
|
||||||
},
|
},
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": true,
|
"urlCheck": true,
|
||||||
"minified": true,
|
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"postcss": true
|
"enhance": true,
|
||||||
|
"postcss": true,
|
||||||
|
"preloadBackgroundData": false,
|
||||||
|
"minified": true,
|
||||||
|
"newFeature": false,
|
||||||
|
"coverView": true,
|
||||||
|
"nodeModules": false,
|
||||||
|
"autoAudits": false,
|
||||||
|
"showShadowRootInWxmlPanel": true,
|
||||||
|
"scopeDataCheck": false,
|
||||||
|
"uglifyFileName": false,
|
||||||
|
"checkInvalidKey": true,
|
||||||
|
"checkSiteMap": true,
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
"compileHotReLoad": false,
|
||||||
|
"lazyloadPlaceholderEnable": false,
|
||||||
|
"useMultiFrameRuntime": true,
|
||||||
|
"useApiHook": true,
|
||||||
|
"useApiHostProcess": true,
|
||||||
|
"babelSetting": {
|
||||||
|
"ignore": [],
|
||||||
|
"disablePlugins": [],
|
||||||
|
"outputPath": ""
|
||||||
|
},
|
||||||
|
"useIsolateContext": true,
|
||||||
|
"userConfirmedBundleSwitch": false,
|
||||||
|
"packNpmManually": false,
|
||||||
|
"packNpmRelationList": [],
|
||||||
|
"minifyWXSS": true,
|
||||||
|
"disableUseStrict": false,
|
||||||
|
"showES6CompileOption": false,
|
||||||
|
"useCompilerPlugins": false,
|
||||||
|
"ignoreUploadUnusedFiles": true
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "",
|
"libVersion": "",
|
||||||
"appid": "wx39cf431caa22b5c8",
|
"appid": "wx3e83b37ba682faf5",
|
||||||
"projectname": "每日一称成人",
|
"projectname": "每日一称成人",
|
||||||
"condition": {
|
"condition": {
|
||||||
"search": {
|
"search": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue