Commit 6aac49e8 authored by leiqingsong's avatar leiqingsong

修改版本下载方式

parent 1c1ba10f
# 生产环境 部署生产环境放开这个
# VUE_APP_BASE_URL = "http://app.xitiansen.com"
VUE_APP_BASE_URL = "http://app.xitiansen.com"
# 测试环境 部署测试环境放开这个
VUE_APP_BASE_URL = "http://8.131.244.76:81"
\ No newline at end of file
# VUE_APP_BASE_URL = "http://8.131.244.76:81"
\ No newline at end of file
......@@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css";
import "amfe-flexible";
import "@/plugins/vant-ui.js";
import "@/plugins/echarts-plugins.js";
import Vconsole from "vconsole";
// import Vconsole from "vconsole";
import bridgeToAppFun from "@/utils/bridgeToAppFun";
Vue.prototype.$bridgeToAppFun = new bridgeToAppFun();
/*生产环境请注释掉 */
Vue.prototype.$vConsole = new Vconsole();
// Vue.prototype.$vConsole = new Vconsole();
Vue.use(MiniRefreshTools);
Vue.config.productionTip = false;
......
......@@ -62,7 +62,7 @@ export default {
this.imgSrc = `${process.env.VUE_APP_BASE_URL}/shop-mall/api/user/registerByQrCode?height=150&userId=${userId}&width=150`;
this.btnTimer = setTimeout(() => {
this.showBtn = true;
}, 800);
}, 1500);
},
getUserPhoto(res) {
let uInt8Array = new Uint8Array(res);
......
<template>
<div class="invitee">
<div class="baseInfo">
<img class="avatar" src="@/assets/images/avatar.png" alt="用户头像" />
<img class="avatar" :src="imageUrl + inviteeItem.headImage" alt="用户头像" />
<span class="userName">{{ inviteeItem.userId }}</span>
</div>
<div class="detail">
......@@ -29,6 +29,11 @@ export default {
type: Object,
default: () => {}
}
},
data() {
return {
imageUrl: process.env.VUE_APP_BASE_URL
}
}
};
</script>
......
......@@ -71,8 +71,8 @@
</div>
<div v-if="title == '注册失败'" class="tip">{{ tip }}</div>
<div v-else class="tip">
<a :href="androidUrl">下载安卓版App</a> |
<a :href="iosUrl">下载IOS版App</a>
<p>安卓版App: {{ androidUrl }}</p>
<P>IOS版App: {{ iosUrl }} </P>
</div>
<van-button @click="show = false">确定</van-button>
</div>
......@@ -169,6 +169,11 @@ export default {
console.log(res);
});
},
test() {
this.show = true;
this.title = "注册成功";
this.getDownUrl();
},
handleResister() {
// 校验文本框必填项
const _this = this;
......@@ -278,7 +283,7 @@ export default {
top: 50%;
left: 50%;
transform: translate(-50%, -60%);
padding: 30px 0;
padding: 20px 0;
text-align: center;
box-sizing: border-box;
border-radius: 4px;
......@@ -291,7 +296,7 @@ export default {
color: #333333;
}
.success-tip {
margin: 25px auto;
margin: 10px auto;
img {
width: 72px;
height: 72px;
......@@ -340,8 +345,11 @@ export default {
background-color: #88c678;
border-radius: 18px;
color: #ffffff;
margin-top: 25px;
margin-top: 15px;
}
}
p {
margin: 5px;
}
}
}
......
......@@ -101,11 +101,12 @@ export default {
},
methods: {
onUpdateVersion() {
if (this.needUpdate) {
location.href = this.downAppUrl;
} else {
// if (this.needUpdate) {
// location.href = this.downAppUrl;
// } else {
// this.versionShow = false;
// }
this.versionShow = false;
}
},
updateVersion() {
const params = {
......@@ -120,7 +121,7 @@ export default {
} else if (res.code == 0) {
this.downAppUrl = res.data;
this.updateResult = "最新版App下载地址:" + res.data;
this.updateBtn = "下载最新版App";
// this.updateBtn = "下载最新版App";
this.needUpdate = true;
}
});
......
......@@ -4,7 +4,7 @@ const name = "西田森App";
module.exports = {
publicPath: "/front",
// outputDir: "front",
outputDir: "front",
devServer: {
proxy: {
'/shop-mall': {
......
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