Commit e49a4a37 by sunchao

页面传参app上bug修复

parent 721ac3bc
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
}, },
name:'search', name:'search',
components:{}, components:{},
onLoad(){ onLoad(options){
this.queryName = options.queryName;
}, },
methods:{ methods:{
jumpToSystemMsg(){ jumpToSystemMsg(){
...@@ -61,7 +60,6 @@ ...@@ -61,7 +60,6 @@
}, },
mounted() { mounted() {
this.querySystemMessage(); this.querySystemMessage();
this.queryName = common.getQueryString('queryName');
} }
} }
</script> </script>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name" : "CFFP财富中心", "name" : "CFFP财富中心",
"appid" : "__UNI__65C4CDC", "appid" : "__UNI__65C4CDC",
"description" : "", "description" : "",
"versionName" : "1.1.0", "versionName" : "1.1.10",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
}, },
"devServer" : { "devServer" : {
"proxy" : { "proxy" : {
"/api":{ "/api" : {
"port" : 3000, // 端口号 "port" : 3000, // 端口号
"target" : "https://mdev.zuihuibi.cn", //请求的目标域名 "target" : "https://mdev.zuihuibi.cn", //请求的目标域名
"changeOrigin" : true, //是否跨域 "changeOrigin" : true, //是否跨域
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<view class="announcement_detail_wrapper container"> <view class="announcement_detail_wrapper container">
<view class="content"> <view class="content">
<view class="title"> <view class="title">
<view class="" v-html="announcementInfo.title"></view> <view v-html="announcementInfo.title"></view>
</view> </view>
<view class="date"> <view class="date">
发布时间:{{announcementInfo.announcementAt}} 发布时间:{{announcementInfo.announcementAt}}
</view> </view>
<view class="" v-html="announcementInfo.content"></view> <view v-html="announcementInfo.content"></view>
<!-- <rich-text :nodes="announcementInfo.content"></rich-text> --> <!-- <rich-text :nodes="announcementInfo.content"></rich-text> -->
</view> </view>
</view> </view>
...@@ -34,13 +34,12 @@ ...@@ -34,13 +34,12 @@
name:'announcement_detail', name:'announcement_detail',
components:{ components:{
}, },
onLoad(){ onLoad(options){
this.id = options.id;
this.getAnnouncementDetail(); this.getAnnouncementDetail();
}, },
methods:{ methods:{
getAnnouncementDetail(){ getAnnouncementDetail(){
this.id = common.getQueryString('id')
api.announcementQuery({id:this.id}).then((res)=>{ api.announcementQuery({id:this.id}).then((res)=>{
if(res['success']){ if(res['success']){
this.announcementInfo = res['data']['announcementInfoList'][0]; this.announcementInfo = res['data']['announcementInfoList'][0];
......
.container {
font-size: 36rpx;
background: #fff;
min-height: 100%;
.title{
padding: 20rpx 30rpx 0 30rpx;
display: flex;
justify-content: space-between;
font-weight: bold;
align-items: center;
font-size: 36rpx;
view {
display: flex;
align-items: center;
.line{
width: 10rpx;
height: 36rpx;
display: inline-block;
background: #FA882F;
margin-right: 10rpx;
}
}
}
.content {
padding: 10px 5px;
position: relative;
.contentDetail {
.contentItem {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 8px 5px 8px;
> span:first-child{
white-space: nowrap;
}
input.form-control,select.form-control {
display: inline-block;
// width: 60%;
margin: 0 5px;
background: none;
outline: none;
border: none;
text-align: right;
box-shadow: none;
display: flex;
flex-wrap: wrap;
font-size: 18px;
}
select.form-control{
direction: rtl;
}
input[type="date"]{
margin-right: -4.5%;
direction: rtl;
}
.sexWrapper {
display: flex;
width: 60%;
justify-content: flex-end;
padding-right: 3px;
.form-control.sex {
width: 20%;
margin-left: 5px;
border: none;
box-shadow: none;
}
.form-control.sex.sexBtn {
border: 1px #0767bf solid;
}
.form-control[disabled] {
background-color: transparent;
opacity: 1;
}
}
span{
position: relative;
sub{
position: absolute;
margin-right: 5px;
font-weight: bold;
color: #e10d0d;
top: 13px;
left: -8px;
}
}
}
.contentItem:last-child {
border-bottom: none;
}
}
.contentDetail.employ .contentItem{
padding: 10px 0;
border-bottom: 1px #e8e8e8 solid;
margin: 0 8px 0 8px;
}
}
.fixed {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 100rpx;
line-height:100rpx;
border-radius: 0;
z-index: 0;
margin: 0 auto;
width: 70%;
background: #20269B;
color: #fff;
font-size: 36rpx;
font-weight: 700;
text-align: center;
border-radius: 60rpx;
}
}
\ No newline at end of file
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
</view> </view>
<view class="contentItem"> <view class="contentItem">
<text>所属组织</text> <text>所属组织</text>
<input type="text" class="form-control" /> <view class="">
银盾工作室
</view>
</view> </view>
<view class="contentItem"> <view class="contentItem">
<text>姓名</text> <text>姓名</text>
...@@ -47,7 +49,10 @@ ...@@ -47,7 +49,10 @@
</view> </view>
<view class="contentItem"> <view class="contentItem">
<text>出生日期</text> <text>出生日期</text>
<view><input type="text" class="form-control" /></view> <picker mode="date" :value="applyParam.birthday" @change="bindBirthday"
:end="maxDate">
<view class="uni-input">{{this.applyParam.birthday}}</view>
</picker>
</view> </view>
<view class="contentItem"> <view class="contentItem">
<text>居住地址</text> <text>居住地址</text>
...@@ -55,9 +60,9 @@ ...@@ -55,9 +60,9 @@
</view> </view>
</view> </view>
</view> </view>
<view class="fixed"> <navigator class="fixed" url="work-experience">
保存并下一步 保存并下一步
</view> </navigator>
</view> </view>
</template> </template>
...@@ -75,10 +80,11 @@ ...@@ -75,10 +80,11 @@
partnerLevel:'', partnerLevel:'',
idType:'', idType:'',
idNo:'', idNo:'',
birthday:'', birthday:`${new Date().getFullYear()}-${new Date().getMonth() + 1} -${new Date().getDate()}`,
}, },
idTypesList:[{id:null,name:'请选择'}], idTypesList:[{id:null,name:'请选择'}],
idTypeIdx:0 idTypeIdx:0,
maxDate:`${new Date().getFullYear()}-${new Date().getMonth() + 1}`,
} }
}, },
components:{}, components:{},
...@@ -101,127 +107,16 @@ ...@@ -101,127 +107,16 @@
}, },
changeIdType:function(e){ changeIdType:function(e){
this.idTypeIdx = e.detail.value; this.idTypeIdx = e.detail.value;
this.applyParam.idType = this.idTypesList[this.idTypeIdx]['idType']; this.applyParam.idType = this.idTypesList[this.idTypeIdx]['id'];
} console.log(this.applyParam.idType)
},
bindBirthday: function(e) {
this.applyParam.birthday = e.detail.value;
},
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.container { // @import 'applyCommon.css';
font-size: 36rpx;
background: #fff;
min-height: 100%;
.title{
padding: 20rpx 30rpx 0 30rpx;
display: flex;
justify-content: space-between;
font-weight: bold;
align-items: center;
font-size: 36rpx;
view {
display: flex;
align-items: center;
.line{
width: 10rpx;
height: 36rpx;
display: inline-block;
background: #FA882F;
margin-right: 10rpx;
}
}
}
.content {
padding: 10px 5px;
position: relative;
.contentDetail {
.contentItem {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 8px 5px 8px;
> span:first-child{
white-space: nowrap;
}
input.form-control,select.form-control {
display: inline-block;
// width: 60%;
margin: 0 5px;
background: none;
outline: none;
border: none;
text-align: right;
box-shadow: none;
display: flex;
flex-wrap: wrap;
font-size: 18px;
}
select.form-control{
direction: rtl;
}
input[type="date"]{
margin-right: -4.5%;
direction: rtl;
}
.sexWrapper {
display: flex;
width: 60%;
justify-content: flex-end;
padding-right: 3px;
.form-control.sex {
width: 20%;
margin-left: 5px;
border: none;
box-shadow: none;
}
.form-control.sex.sexBtn {
border: 1px #0767bf solid;
}
.form-control[disabled] {
background-color: transparent;
opacity: 1;
}
}
span{
position: relative;
sub{
position: absolute;
margin-right: 5px;
font-weight: bold;
color: #e10d0d;
top: 13px;
left: -8px;
}
}
}
.contentItem:last-child {
border-bottom: none;
}
}
.contentDetail.employ .contentItem{
padding: 10px 0;
border-bottom: 1px #e8e8e8 solid;
margin: 0 8px 0 8px;
}
}
.fixed {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 100rpx;
line-height:100rpx;
border-radius: 0;
z-index: 0;
margin: 0 auto;
width: 70%;
background: #20269B;
color: #fff;
font-size: 36rpx;
font-weight: 700;
text-align: center;
border-radius: 60rpx;
}
}
</style> </style>
\ No newline at end of file
...@@ -56,6 +56,10 @@ ...@@ -56,6 +56,10 @@
this.authenticationList[i]['selected'] = true; this.authenticationList[i]['selected'] = true;
} }
} }
if(this.queryType == 1){
this.authenticationCode = null;
this.userName = null;
}
}, },
confirmSearch(){ confirmSearch(){
if(this.queryType == 2){ if(this.queryType == 2){
......
...@@ -40,21 +40,19 @@ ...@@ -40,21 +40,19 @@
} }
}, },
components:{}, components:{},
onLoad(){ onLoad(options){
this.userName = options.userName;
this.userName = common.getQueryString('userName')=='null'?undefined:common.getQueryString('userName'); this.authenticationCode = options.authenticationCode;
this.authenticationCode = common.getQueryString('authenticationCode')=='null'?undefined:common.getQueryString('authenticationCode'); this.queryType = options.queryType;
this.queryType = common.getQueryString('queryType');
console.log(this.queryType)
this.getResult(); this.getResult();
}, },
methods:{ methods:{
getResult(){ getResult(){
const param = { const param = {
queryType:this.queryType, queryType:(this.queryType=='null' || this.queryType=='undefined')?undefined:this.queryType,
userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userName:this.userName, userName:(this.userName == 'null' || this.userName == 'undefined')?undefined:this.userName,
authenticationCode:this.authenticationCode authenticationCode:(this.authenticationCode == 'null' || this.authenticationCode == 'undefined') ?undefined:this.authenticationCode
} }
api.userCertificateResult(param).then((res)=>{ api.userCertificateResult(param).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -68,12 +68,11 @@ ...@@ -68,12 +68,11 @@
} }
}, },
components:{}, components:{},
onLoad(){ onLoad(options){
this.fortuneDate = options.fortuneDate;
this.fortuneDate = common.getQueryString('fortuneDate'); this.productType = options.productType;
this.productType = common.getQueryString('productType'); this.timeFlag = options.timeFlag;
this.timeFlag = common.getQueryString('timeFlag'); this.commissionType = options.commissionType;
this.commissionType = common.getQueryString('commissionType');
if(this.timeFlag == 'D' || this.timeFlag == 'Y'){ if(this.timeFlag == 'D' || this.timeFlag == 'Y'){
this.fortuneDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}` this.fortuneDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`
} }
......
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
}, },
name:'system_msg_detail', name:'system_msg_detail',
components:{}, components:{},
onLoad(){ onLoad(options){
this.id = options.id;
this.getSystemMsgDetail(); this.getSystemMsgDetail();
}, },
methods:{ methods:{
getSystemMsgDetail(){ getSystemMsgDetail(){
this.id = common.getQueryString('id');
api.querySystemMessageDetail({systemMessageId:this.id}).then((res)=>{ api.querySystemMessageDetail({systemMessageId:this.id}).then((res)=>{
if(res['success']){ if(res['success']){
this.systemMsgInfo = res['data']['systemMessageInfo'] this.systemMsgInfo = res['data']['systemMessageInfo']
......
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