Commit 0f2e43ec authored by 5359's avatar 5359

历史注册用户调整

parent 6470fb64
...@@ -492,6 +492,8 @@ ...@@ -492,6 +492,8 @@
if (res.rows) { if (res.rows) {
if (res.rows.length > 0) { if (res.rows.length > 0) {
var data = res.rows[0]; var data = res.rows[0];
var historyFlag=data.historyFlag;
if(historyFlag=='N'){
vm.cardUp = vm.cardUp =
process.env.rootPath + process.env.rootPath +
"/app/fileViewSvc?attachment_id=" + "/app/fileViewSvc?attachment_id=" +
...@@ -507,6 +509,7 @@ ...@@ -507,6 +509,7 @@
vm.showStatus = "1"; vm.showStatus = "1";
} }
} }
}
}); });
} }
}, },
......
...@@ -8,19 +8,19 @@ ...@@ -8,19 +8,19 @@
:class="['item-entry',{'add-bg-color':isClick1}]" :class="['item-entry',{'add-bg-color':isClick1}]"
@click="goPersonalPage()" @click="goPersonalPage()"
> >
<img src="../../../assets/userRegister/people.png" v-show="isHighLight" /> <img src="../../../assets/userRegister/people.png" v-show="isHighLight"/>
<img src="../../../assets/userRegister/people-light.png" v-show="!isHighLight" /> <img src="../../../assets/userRegister/people-light.png" v-show="!isHighLight"/>
<span class="text-entry">个人</span> <span class="text-entry">个人</span>
</div> </div>
<div :class="['item-entry',{'add-bg-color':isClick2}]" @click="goCompanyPage()"> <div :class="['item-entry',{'add-bg-color':isClick2}]" @click="goCompanyPage()">
<img src="../../../assets/userRegister/company.png" v-show="isHighLight1" /> <img src="../../../assets/userRegister/company.png" v-show="isHighLight1"/>
<img src="../../../assets/userRegister/company-light.png" v-show="!isHighLight1" /> <img src="../../../assets/userRegister/company-light.png" v-show="!isHighLight1"/>
<span class="text-entry">企业</span> <span class="text-entry">企业</span>
</div> </div>
</div> </div>
<div class="tips"> <div class="tips">
<p class="tips-item"> <p class="tips-item">
<img src="../../../assets/userRegister/tips.png" alt /> <img src="../../../assets/userRegister/tips.png" alt/>
<span>温馨提示:</span> <span>温馨提示:</span>
</p> </p>
<p class="tips-item">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您可选择用户类型进行用户信息注册及实名认证。</p> <p class="tips-item">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您可选择用户类型进行用户信息注册及实名认证。</p>
...@@ -32,8 +32,9 @@ ...@@ -32,8 +32,9 @@
</template> </template>
<script> <script>
import { getUrlParam } from "@/scripts/utils"; import {getUrlParam} from "@/scripts/utils";
export default {
export default {
data() { data() {
return { return {
isClick1: false, isClick1: false,
...@@ -48,7 +49,7 @@ export default { ...@@ -48,7 +49,7 @@ export default {
}; };
}, },
components: {}, components: {},
activated: function() { activated: function () {
// console.log(1111111111111111111111) // console.log(1111111111111111111111)
// if (window.localStorage.openId) { // if (window.localStorage.openId) {
// this.getUserInfo('1111'); // this.getUserInfo('1111');
...@@ -60,7 +61,8 @@ export default { ...@@ -60,7 +61,8 @@ export default {
this.getUserInfo(); this.getUserInfo();
} }
}, },
updated: function() {}, updated: function () {
},
methods: { methods: {
// 获取token // 获取token
// getToken() { // getToken() {
...@@ -174,12 +176,14 @@ export default { ...@@ -174,12 +176,14 @@ export default {
"/sign/info/hclc/query/by/openid?openId=" + "/sign/info/hclc/query/by/openid?openId=" +
window.localStorage.openId; window.localStorage.openId;
vm.hlsPopup.showLoading("请稍等"); vm.hlsPopup.showLoading("请稍等");
vm.$post(url).then(function(res) { vm.$post(url).then(function (res) {
vm.hlsPopup.hideLoading(); vm.hlsPopup.hideLoading();
if (res.rows) { if (res.rows) {
if (res.rows.length > 0) { if (res.rows.length > 0) {
console.log(res.rows); console.log(res.rows);
var results = res.rows[0]; var results = res.rows[0];
var historyFlag = data.historyFlag;
if (historyFlag == 'N') {
vm.ctitype = results.ctitype; vm.ctitype = results.ctitype;
if (results.ctitype == 1) { if (results.ctitype == 1) {
vm.userInfo = results; vm.userInfo = results;
...@@ -199,6 +203,7 @@ export default { ...@@ -199,6 +203,7 @@ export default {
} }
} }
} }
}
}); });
}, },
// 调用微信接口的基础配置 // 调用微信接口的基础配置
...@@ -223,7 +228,7 @@ export default { ...@@ -223,7 +228,7 @@ export default {
apiKey: "handexinxi", apiKey: "handexinxi",
url: clientUrl url: clientUrl
}; };
hlsHttp.post(url, param).then(function(res) { hlsHttp.post(url, param).then(function (res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
...@@ -240,18 +245,18 @@ export default { ...@@ -240,18 +245,18 @@ export default {
"hideOptionMenu" "hideOptionMenu"
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
}); });
wx.ready(function() { wx.ready(function () {
wx.hideOptionMenu(); wx.hideOptionMenu();
}); });
}); });
} }
} }
}; };
</script> </script>
<style lang="less" type="text/less"> <style lang="less" type="text/less">
@import "../../../styles/vue-1px.less"; @import "../../../styles/vue-1px.less";
.userRegister { .userRegister {
.reg-content { .reg-content {
padding: 20px; padding: 20px;
padding-top: 150px; padding-top: 150px;
...@@ -294,23 +299,23 @@ export default { ...@@ -294,23 +299,23 @@ export default {
} }
} }
} }
} }
// iPhoneX适配 // iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) { @media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios { .platform-ios {
#home { #home {
} }
} }
} }
// iPhoneX Max适配 // iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) { @media (device-width: 414px) and (device-height: 896px) {
.platform-ios { .platform-ios {
.platform-ios { .platform-ios {
#home { #home {
} }
} }
} }
} }
</style> </style>
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