提交 7f063c74 编写于 作者: guangjun.yang's avatar guangjun.yang

no message

上级 8c779b05
......@@ -49,6 +49,7 @@
<script>
import Logo from "@/components/annual-summary/logo";
import { getWebPageUrl } from "@/utils";
import { Progress, Toast } from "vant";
export default {
components: {
Logo
......@@ -67,6 +68,10 @@ export default {
isHide: {
type: Boolean,
default: true
},
appVersion: {
type: Number | String,
default: 300 // 1: 站内; 2: 站外
}
},
data() {
......@@ -83,7 +88,11 @@ export default {
methods: {
// 保存图片
save() {
if(this.appVersion < 359) {
Toast('请下载新版本APP保存页面截图');
} else {
this.$emit("save");
}
},
// 分享按钮
......
......@@ -123,13 +123,13 @@ export default {
var btn = document.getElementById(this.wxOpenId);
if (btn != null) {
// 成功唤起事件
btn.addEventListener(
"launch",
e => {
_this.$emit("launchApp");
},
true
);
// btn.addEventListener(
// "launch",
// e => {
// _this.$emit("launchApp");
// },
// true
// );
// 唤起失败事件
btn.addEventListener(
"error",
......
......@@ -30,7 +30,7 @@
<Card5 :anualData="anualData"></Card5>
</div>
<div v-if="anualData.haveFlag" class="swiper-slide">
<Card6 :anualData="anualData" @save="savePage2Picture" @share="share" :isHide="isHide"></Card6>
<Card6 :anualData="anualData" :isHide="isHide" :appVersion="appVersion" @save="savePage2Picture" @share="share"></Card6>
</div>
</div>
<Loading v-show="showLoading" />
......@@ -72,6 +72,7 @@ export default {
isInfresh: false,
showLoading: false,
isHide: true,
activeIndex: 0,
anualData: {
orderNum: 0,
learnTime4Show: 0
......@@ -84,7 +85,6 @@ export default {
},
created() {
_this = this;
_this = this;
// 截屏时通知前端
window.__screenCaptureEvent = function() {
......@@ -106,7 +106,7 @@ export default {
window.__getUserInfoAS = function(param) {
console.log("__getUserInfoAS", param);
_this.token = param.userToken;
_this.userMobile = param.userMobile;
_this.appVersion = (param.appVersion || '').split('.').join('');
_this.setUserInfo(param);
_this.checkToken();
_this.initData();
......@@ -146,7 +146,7 @@ export default {
}, 100);
});
} else {
this.$toast(res.message);
Toast(res.message);
}
});
},
......@@ -199,12 +199,9 @@ export default {
swiperAnimate(this);
},
slideChangeTransitionEnd: function(se) {
let activeIndex = se.activeIndex;
_this.activeIndex = se.activeIndex;
swiperAnimate(this);
console.log("---2323", se);
// if (activeIndex == 1) {
// }
}
}
});
......@@ -227,7 +224,8 @@ export default {
if (res.code !== "000000") {
console.log("跳登录", this.isInfresh);
if (this.isInfresh) {
rocNative.goBack();
// rocNative.goBack();
this.$router.back(-1);
} else {
rocNative.gotoLogin();
}
......
......@@ -44,12 +44,11 @@
</template>
<script>
import Loading from "@/components/common/common-loading";
// import Card6 from "@/components/annual-summary/card-6";
import WxOpenCommon from '@/components/wx-open';
import { getWebPageUrl } from "@/utils";
import { Progress, Toast } from "vant";
export default {
components: {
// Card6,
Loading,
WxOpenCommon
},
......@@ -97,7 +96,7 @@ export default {
this.showLoading = false;
this.handlerDate(res.data || {});
} else {
this.$toast(res.message);
Toast(res.message);
}
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册