Commit db4be20a authored by 任建锋's avatar 任建锋

在异步图片后面跟时间戳,解决ios加载图片缓存问题

parent c3bc6f5d
...@@ -24,8 +24,8 @@ class TuiaAutoUpload { ...@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var _this = this; var _this = this;
this.client = new OSS({ this.client = new OSS({
region: 'oss-cn-hangzhou', region: 'oss-cn-hangzhou',
accessKeyId: 'LTAIqO2wblIxQvwc', accessKeyId: 'LTAI4Fw25WcfcGv7FvcHoiHK',
accessKeySecret: '4brsaSRbRpjxw3oDIxJi6bNMcndIR6', accessKeySecret: 'NZk1NtT9J5HFaAolNbtQdzTzLLvLYm',
bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba' bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba'
}); });
this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), { this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), {
......
...@@ -74,7 +74,7 @@ export default class RankListPanel extends Panel { ...@@ -74,7 +74,7 @@ export default class RankListPanel extends Panel {
public img: eui.Image; public img: eui.Image;
public label: eui.Label; public label: eui.Label;
dataChanged() { dataChanged() {
this.img.source = this.data.icon; this.img.source = this.data.icon+"?state="+Date.now();
this.label.text = `第${this.data.startRank}-${this.data.endRank}名`; this.label.text = `第${this.data.startRank}-${this.data.endRank}名`;
} }
} }
......
...@@ -28,7 +28,7 @@ export default class WinningPanel extends Panel { ...@@ -28,7 +28,7 @@ export default class WinningPanel extends Panel {
this.labelScore.text = this.data.score.toString() + "/e分"; this.labelScore.text = this.data.score.toString() + "/e分";
let text = typeof this.data.highestScore == "number" ? this.data.highestScore.toString() + "/e分" : "-"; let text = typeof this.data.highestScore == "number" ? this.data.highestScore.toString() + "/e分" : "-";
this.labelHighestScore.text = text; this.labelHighestScore.text = text;
this.imgReward.source = this.data.rewardImgUrl; this.imgReward.source = this.data.rewardImgUrl+"?state="+Date.now();;
this.labelCoinNum.text = this.data.rewardName + "已入账"; this.labelCoinNum.text = this.data.rewardName + "已入账";
} }
} }
\ No newline at end of file
...@@ -51,7 +51,7 @@ export default class StartScene extends Scene { ...@@ -51,7 +51,7 @@ export default class StartScene extends Scene {
resolve(); resolve();
}); });
} }
countVcon=0;
onSkinComplete() { onSkinComplete() {
super.onSkinComplete(); super.onSkinComplete();
...@@ -120,8 +120,22 @@ export default class StartScene extends Scene { ...@@ -120,8 +120,22 @@ export default class StartScene extends Scene {
Buried.doClickBuried(4); Buried.doClickBuried(4);
}); });
this.btnRule.onTap(this, () => { this.btnRule.onTap(this, () => {
PanelCtrl.instance.show(RulePanel, { msg: MConfigs.rule }); PanelCtrl.instance.show(RulePanel, { msg: MConfigs.rule });
this.countVcon++
if(this.countVcon==10){
var oHead = document.querySelector('body');
var oScript = document.createElement('script');
oScript.type = 'text/javascript';
oScript.src = '//yun.duiba.com.cn/webapp/js/vconsole.min.js';
oHead.appendChild(oScript);
oScript.onload = function() {
var vConsole = new window["VConsole"]();
}
}
}); });
this.btnProps.onTap(this, () => { this.btnProps.onTap(this, () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment