Commit e49a4a37 by sunchao

页面传参app上bug修复

parent 721ac3bc
......@@ -20,9 +20,8 @@
},
name:'search',
components:{},
onLoad(){
onLoad(options){
this.queryName = options.queryName;
},
methods:{
jumpToSystemMsg(){
......@@ -61,7 +60,6 @@
},
mounted() {
this.querySystemMessage();
this.queryName = common.getQueryString('queryName');
}
}
</script>
......
......@@ -2,7 +2,7 @@
"name" : "CFFP财富中心",
"appid" : "__UNI__65C4CDC",
"description" : "",
"versionName" : "1.1.0",
"versionName" : "1.1.10",
"versionCode" : "100",
"transformPx" : false,
/* 5+App特有相关 */
......@@ -128,16 +128,16 @@
},
"devServer" : {
"proxy" : {
"/api":{
"port" : 3000, // 端口号
"target" : "https://mdev.zuihuibi.cn", //请求的目标域名
"changeOrigin" : true, //是否跨域
"secure" : false, //设置支持https协议的代理
"logLevel" : "debug",
"pathRewrite" : {
"^/api" : ""
}
}
"/api" : {
"port" : 3000, // 端口号
"target" : "https://mdev.zuihuibi.cn", //请求的目标域名
"changeOrigin" : true, //是否跨域
"secure" : false, //设置支持https协议的代理
"logLevel" : "debug",
"pathRewrite" : {
"^/api" : ""
}
}
}
}
}
......
......@@ -6,12 +6,12 @@
<view class="announcement_detail_wrapper container">
<view class="content">
<view class="title">
<view class="" v-html="announcementInfo.title"></view>
<view v-html="announcementInfo.title"></view>
</view>
<view class="date">
发布时间:{{announcementInfo.announcementAt}}
</view>
<view class="" v-html="announcementInfo.content"></view>
<view v-html="announcementInfo.content"></view>
<!-- <rich-text :nodes="announcementInfo.content"></rich-text> -->
</view>
</view>
......@@ -34,13 +34,12 @@
name:'announcement_detail',
components:{
},
onLoad(){
onLoad(options){
this.id = options.id;
this.getAnnouncementDetail();
},
methods:{
getAnnouncementDetail(){
this.id = common.getQueryString('id')
api.announcementQuery({id:this.id}).then((res)=>{
if(res['success']){
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 @@
</view>
<view class="contentItem">
<text>所属组织</text>
<input type="text" class="form-control" />
<view class="">
银盾工作室
</view>
</view>
<view class="contentItem">
<text>姓名</text>
......@@ -47,7 +49,10 @@
</view>
<view class="contentItem">
<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 class="contentItem">
<text>居住地址</text>
......@@ -55,9 +60,9 @@
</view>
</view>
</view>
<view class="fixed">
<navigator class="fixed" url="work-experience">
保存并下一步
</view>
</navigator>
</view>
</template>
......@@ -75,10 +80,11 @@
partnerLevel:'',
idType:'',
idNo:'',
birthday:'',
birthday:`${new Date().getFullYear()}-${new Date().getMonth() + 1} -${new Date().getDate()}`,
},
idTypesList:[{id:null,name:'请选择'}],
idTypeIdx:0
idTypeIdx:0,
maxDate:`${new Date().getFullYear()}-${new Date().getMonth() + 1}`,
}
},
components:{},
......@@ -101,127 +107,16 @@
},
changeIdType:function(e){
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>
<style lang="scss">
.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;
}
}
// @import 'applyCommon.css';
</style>
\ No newline at end of file
......@@ -56,6 +56,10 @@
this.authenticationList[i]['selected'] = true;
}
}
if(this.queryType == 1){
this.authenticationCode = null;
this.userName = null;
}
},
confirmSearch(){
if(this.queryType == 2){
......
......@@ -40,21 +40,19 @@
}
},
components:{},
onLoad(){
this.userName = common.getQueryString('userName')=='null'?undefined:common.getQueryString('userName');
this.authenticationCode = common.getQueryString('authenticationCode')=='null'?undefined:common.getQueryString('authenticationCode');
this.queryType = common.getQueryString('queryType');
console.log(this.queryType)
onLoad(options){
this.userName = options.userName;
this.authenticationCode = options.authenticationCode;
this.queryType = options.queryType;
this.getResult();
},
methods:{
getResult(){
const param = {
queryType:this.queryType,
queryType:(this.queryType=='null' || this.queryType=='undefined')?undefined:this.queryType,
userId:uni.getStorageSync('cffp_userId'),
userName:this.userName,
authenticationCode:this.authenticationCode
userName:(this.userName == 'null' || this.userName == 'undefined')?undefined:this.userName,
authenticationCode:(this.authenticationCode == 'null' || this.authenticationCode == 'undefined') ?undefined:this.authenticationCode
}
api.userCertificateResult(param).then((res)=>{
if(res['success']){
......
......@@ -68,12 +68,11 @@
}
},
components:{},
onLoad(){
this.fortuneDate = common.getQueryString('fortuneDate');
this.productType = common.getQueryString('productType');
this.timeFlag = common.getQueryString('timeFlag');
this.commissionType = common.getQueryString('commissionType');
onLoad(options){
this.fortuneDate = options.fortuneDate;
this.productType = options.productType;
this.timeFlag = options.timeFlag;
this.commissionType = options.commissionType;
if(this.timeFlag == 'D' || this.timeFlag == 'Y'){
this.fortuneDate = `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`
}
......
......@@ -32,12 +32,12 @@
},
name:'system_msg_detail',
components:{},
onLoad(){
onLoad(options){
this.id = options.id;
this.getSystemMsgDetail();
},
methods:{
getSystemMsgDetail(){
this.id = common.getQueryString('id');
api.querySystemMessageDetail({systemMessageId:this.id}).then((res)=>{
if(res['success']){
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