Commit 112a6cf2 by sunerhu

1.修改了一些Bug

parent 7cd97c70
......@@ -60,7 +60,7 @@
"sdkConfigs" : {
"share" : {
"weixin" : {
"appid" : "wxec09b9be6cff4eb3",
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : ""
}
},
......@@ -71,13 +71,13 @@
},
"weixin" : {
"__platform__" : [ "ios", "android" ],
"appid" : "wxec09b9be6cff4eb3",
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : ""
}
},
"oauth" : {
"weixin" : {
"appid" : "wxec09b9be6cff4eb3",
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : ""
}
}
......
......@@ -153,21 +153,26 @@
identityArr: ['工作室', '事业伙伴'],
applyIdentity: 0,
index: 0,
isCross: true,
isCross: false,
inviteLists: [],
orgList: [],
orgdataList:[],
orgdataList: [],
queryorgList: [],
shareId: ''
};
},
onLoad() {
this.getqueryOrgList()
console.log(uni.getStorageSync('userinfodataForm'),74174)
let dataForm = uni.getStorageSync('userinfodataForm')
},
methods: {
queryorgchange(e) {
this.orgindex = e.detail.value
},
bindPChange(){
console.log('1')
},
// 查询组织list
getqueryOrgList() {
let CffpAreaQueryReqVO = {
......@@ -180,7 +185,7 @@
this.queryorgList = res.data.cffpAreaQuerys
this.orgList = res.data.cffpAreaQuerys
this.changeorgkey()
// this.orgList = res.data.cffpAreaQuerys.map((x) => x.areaName)
// console.log(this.orgList, 22225)
}
......@@ -196,22 +201,23 @@
this.applyIdentity = e.detail.value
this.changeorgkey()
},
changeorgkey(){
changeorgkey() {
let that = this
let orgKey = that.applyIdentity == 0 ? 'B1' : 'A1'
that.orgdataList = []
for(var i=0; i< that.orgList.length; i++){
if (that.orgList[i].partnerLevel == orgKey || that.orgList[i].partnerLevel == 'All') {
return that.orgdataList.push(that.orgList[i].areaName)
console.log(that.orgList, 1115)
const list = that.orgList.map(item => {
if(item.partnerLevel == orgKey || item.partnerLevel == 'ALL'){
return item
}
});
for (var i = 0; i < list.length; i++) {
if (list[i] == undefined) {
list.splice(i,1)
}
}
// this.orgdataList = this.orgList.filter((x) => {
// if (x.partnerLevel == orgKey || x.partnerLevel == 'All') {
// return x.areaName
// }
// })
// this.orgList = this.orgdataList.map((x) => x.areaName)
that.orgdataList = list.map((x) => x.areaName)
},
// 发起邀请事件
shareToggle() {
......@@ -272,8 +278,8 @@
type: 0,
href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId,
title: "uni-app分享",
summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
title: "CFFP家庭财务策划师联盟邀您加入",
summary: `我是家庭财务策划师${uni.getStorageSync('cffp_userId')}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
success: function(res) {
console.log("success:" + JSON.stringify(res));
......@@ -289,8 +295,8 @@
type: 0,
href: "https://mdev.zuihuibi.cn/cffp/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId,
title: "uni-app分享",
summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
title: "CFFP家庭财务策划师联盟邀您加入",
summary: "我是家庭财务策划师***正在使用CFFP财富中心,点击下载即刻加入!",
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
success: function(res) {
console.log("success:" + JSON.stringify(res));
......
......@@ -12,13 +12,15 @@
<!-- <view class="isUnder" style="border: 2rpx solid #3671F4;" v-if="certifyItem.isAdopt=='1'">
认证中
</view> -->
<view :class="certifyItem.isAdopt=='1' ? 'isUnder' : 'isAdopt'" >
<view :class="certifyItem.isAdopt=='1' ? 'isUnder' : certifyItem.isAdopt=='3' ? 'isAdopt' : ''" >
<span v-if="certifyItem.isAdopt=='1'">认证中</span>
<span v-if="certifyItem.isAdopt=='3'">通过认证</span>
</view>
<image :src="certifyItem.cerLogoUrl" mode="widthFix"></image>
<text class="certify_name">{{certifyItem.cerName}}</text>
<view class="view_btn" @click="switchDetail(certifyItem)">{{certifyItem.isAdopt=='2'?'查看证书':'认证详情'}}</view>
<view class="view_btn" @click="switchDetail(certifyItem)">
<span>{{certifyItem.isAdopt=='3'?'查看证书':'认证详情'}}</span>
</view>
</view>
</view>
<view class="title">
......@@ -71,7 +73,8 @@
planFaqs:[],
boutiqueWelfares:[],
mask_flag:false,
qrCode:null
qrCode:null,
userId:uni.getStorageSync('cffp_userId')
}
},
components:{},
......@@ -80,7 +83,7 @@
},
methods:{
getLearnCertifyList(){
api.queryCertificateList({userId:uni.getStorageSync('cffp_userId')}).then((res)=>{
api.queryCertificateList({userId: 1}).then((res)=>{
console.log(res)
if(res['success']){
this.certificates = res['data']['certificates'];
......@@ -95,13 +98,13 @@
},
switchDetail(certifyItem){
//2通过跳到证书页,1跳到证书详情
if(certifyItem.isAdopt == 1){
if(certifyItem.isAdopt == 3){
uni.navigateTo({
url:`../certifyDetail/certifyDetail?certificateId=${certifyItem.certificateId}&userSignupId=null`
url:`../authentication-query/authentication-result?queryType=1`
})
}else if(certifyItem.isAdopt == 2){
}else{
uni.navigateTo({
url:`../authentication-query/authentication-result?queryType=1`
url:`../certifyDetail/certifyDetail?certificateId=${certifyItem.certificateId}&userSignupId=null&status=${certifyItem.isAdopt}`
})
}
},
......
......@@ -184,6 +184,7 @@
},
userStudyTime(){
api.userStudyTime({userId:this.userId,month:this.month}).then(res=>{
console.log(res, 2555)
if(res['success']){
this.userStudyTimeList = res['data']['studyInfos'];
this.$nextTick(() => {
......
......@@ -58,7 +58,7 @@
tabType:1,
signupInfos:[],
userCertificates:[],
userId: uni.getStorageSync('user_mobile')
userId: uni.getStorageSync('user_mobile')
};
},
methods:{
......@@ -71,7 +71,7 @@
}
},
querySignupList(){
api.querySignupList({userId:this.userId}).then(res=>{
api.querySignupList({userId:1}).then(res=>{
console.log(res);
if(res['success']){
this.signupInfos = res['data']['signupInfos']
......
......@@ -62,7 +62,7 @@
showCancel: true,
success: function(res) {
if (res.confirm) {
uni.removeStorageSync('isLogin')
uni.clearStorageSync();
uni.reLaunch({
url:'/components/login/login'
})
......
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