|
|
@@ -477,7 +477,8 @@ import util from '../../utils/util.js';
|
|
|
async onShow() {
|
|
|
this.getConfig()
|
|
|
if (this.scene) {
|
|
|
- await this.loadCodeParams();
|
|
|
+ this.cardId = this.scene
|
|
|
+ // await this.loadCodeParams();
|
|
|
}
|
|
|
await req.silenceLogin(this.options.userId ? this.options.userId : '', '')
|
|
|
this.userInfo = req.getStorage('userInfo')
|
|
|
@@ -536,25 +537,6 @@ import util from '../../utils/util.js';
|
|
|
);
|
|
|
});
|
|
|
},
|
|
|
- loadCodeParams() {
|
|
|
- let _ts = this;
|
|
|
- return new Promise((resolve, reject) => {
|
|
|
- if (!_ts.scene) {
|
|
|
- resolve();
|
|
|
- return false;
|
|
|
- }
|
|
|
- req.getRequest(
|
|
|
- '/api/code/params', {
|
|
|
- scene: _ts.scene
|
|
|
- },
|
|
|
- data => {
|
|
|
- this.options.userId = data.userId
|
|
|
- this.cardId = data.scene
|
|
|
- resolve();
|
|
|
- }
|
|
|
- );
|
|
|
- });
|
|
|
- },
|
|
|
getImgList(url) {
|
|
|
var list = [];
|
|
|
if (url) {
|