Commit 3c8e7d81 by gonglei

加入框架代码

1 parent 50773f20
...@@ -116,6 +116,10 @@ export default class PersonCertificationPage extends Vue { ...@@ -116,6 +116,10 @@ export default class PersonCertificationPage extends Vue {
this.formData.idCard = res.data.idCard; this.formData.idCard = res.data.idCard;
} }
}); });
const recommendCode = uni.getStorageSync('recommendCode');
if (recommendCode) {
this.formData.recommendCode = recommendCode;
}
}); });
} }
......
...@@ -107,6 +107,7 @@ import {BurialPoint} from "@/common/BurialPoint"; ...@@ -107,6 +107,7 @@ import {BurialPoint} from "@/common/BurialPoint";
import {ConfigController} from "@/api/ConfigController"; import {ConfigController} from "@/api/ConfigController";
import {BusinessConfig} from "lib/src/entity/business/domain/BusinessConfig"; import {BusinessConfig} from "lib/src/entity/business/domain/BusinessConfig";
import {FileInfo} from "lib/src/core/bean/FileInfo"; import {FileInfo} from "lib/src/core/bean/FileInfo";
import {DefaultTokenInterceptor} from "lib/src/core/http/DefaultTokenInterceptor";
@Component({ @Component({
components: {CertificationDialog, BidSuccessDialog, CustomNavBar, LikeAuctionVehicles, RecommendAuctionVehicles} components: {CertificationDialog, BidSuccessDialog, CustomNavBar, LikeAuctionVehicles, RecommendAuctionVehicles}
...@@ -168,6 +169,7 @@ export default class HomePage extends Vue { ...@@ -168,6 +169,7 @@ export default class HomePage extends Vue {
// 2. scene 需要使用 decodeURIComponent 解码 // 2. scene 需要使用 decodeURIComponent 解码
const scene = decodeURIComponent(options.scene); const scene = decodeURIComponent(options.scene);
console.log("扫码携带的参数是:", scene); console.log("扫码携带的参数是:", scene);
uni.setStorageSync('recommendCode', scene);
// 输出结果示例: "uid=1001&source=poster" // 输出结果示例: "uid=1001&source=poster"
} }
CarouselController.getMiniappCarouselByDate(this.axios).then(res => { CarouselController.getMiniappCarouselByDate(this.axios).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!