成人首页familyid缓存

This commit is contained in:
qiaocl 2022-06-02 17:14:29 +08:00
parent ad619e7636
commit 8e15d89474
30 changed files with 89 additions and 50 deletions

View File

@ -57,7 +57,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wx39cf431caa22b5c8",
"appid" : "wx3e83b37ba682faf5",
"setting" : {
"urlCheck" : true,
"minified" : true,

View File

@ -188,17 +188,15 @@
});
that.token = uni.getStorageSync('token')
console.log("首页收参", options, )
if (options && options.userId) {
that.userId = options.userId
if (options && options.userid) {
that.userId = options.userid
}
if (options && options.t) {
that.$store.commit("changeDevType", options);
}
uni.setStorageSync('familyid', 123)
await that.login()
},
onShow() {
console.log("MeasureResult", this.infoList)
this.token = uni.getStorageSync('token')
},
onTabItemTap() {
@ -220,6 +218,7 @@
methods: {
login() {
let that = this
console.log('userId', that.userId)
uni.login({
success(res) {
if (res.code) {
@ -265,13 +264,17 @@
let id = uni.getStorageSync('familyid')
that.$model.getFamilyList({}).then(res => {
that.$store.commit("changeFamilay", res)
if (id && !isNaN(id) && typeof id === "number") {
// familyId = res[0].familyid
if (id) {
if (!isNaN(id) && typeof id === "number") {
isfamily = true
} else {
isfamily = false
// familyId = id
}
} else {
console.log("3", id)
isfamily = true
}
that.$store.dispatch("getUserInfo", {
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid')
})
@ -421,6 +424,7 @@
uni.navigateToMiniProgram({
appId: that.configBox.referappid,
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
// envVersion: "develop",
extraData: {},
})
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

View File

@ -320,17 +320,15 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
that.token = uni.getStorageSync('token');
console.log("首页收参", options);
if (options && options.userId) {
that.userId = options.userId;
if (options && options.userid) {
that.userId = options.userid;
}
if (options && options.t) {
that.$store.commit("changeDevType", options);
}
uni.setStorageSync('familyid', 123);_context.next = 9;return (
that.login());case 9:case "end":return _context.stop();}}}, _callee);}))();
}_context.next = 8;return (
that.login());case 8:case "end":return _context.stop();}}}, _callee);}))();
},
onShow: function onShow() {
console.log("MeasureResult", this.infoList);
this.token = uni.getStorageSync('token');
},
onTabItemTap: function onTabItemTap() {
@ -352,6 +350,7 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
methods: {
login: function login() {
var that = this;
console.log('userId', that.userId);
uni.login({
success: function success(res) {
if (res.code) {
@ -397,13 +396,17 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
var id = uni.getStorageSync('familyid');
that.$model.getFamilyList({}).then(function (res) {
that.$store.commit("changeFamilay", res);
if (id && !isNaN(id) && typeof id === "number") {
// familyId = res[0].familyid
if (id) {
if (!isNaN(id) && typeof id === "number") {
isfamily = true;
} else {
isfamily = false;
// familyId = id
}
} else {
console.log("3", id);
isfamily = true;
}
that.$store.dispatch("getUserInfo", {
familyid: isfamily ? res[0].familyid : uni.getStorageSync('familyid') });
@ -553,6 +556,7 @@ var _vuex = __webpack_require__(/*! vuex */ 9);function _interopRequireDefault(o
uni.navigateToMiniProgram({
appId: that.configBox.referappid,
path: 'pages/index/index?userid=' + uni.getStorageSync('userid'),
// envVersion: "develop",
extraData: {} });
return;

View File

@ -5,13 +5,44 @@
},
"setting": {
"urlCheck": true,
"minified": 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",
"libVersion": "",
"appid": "wx39cf431caa22b5c8",
"appid": "wx3e83b37ba682faf5",
"projectname": "每日一称成人",
"condition": {
"search": {