Commit 282f5ac0 by sunerhu

1.修改邀请加盟Bug --修改未完成

parent f5908be6
{
"version" : "1",
"prompt" : "template",
"title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=1\">《服务协议》</a>和<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=2\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意",
"second" : {
"title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=1\">《服务协议》</a>和<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=2\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用"
},
"styles" : {
"backgroundColor" : "#ffffff",
"borderRadius" : "5px",
"title" : {
"color" : "#333333"
},
"buttonAccept" : {
"color" : "#333333"
},
"buttonRefuse" : {
"color" : "#9B9AB5"
}
}
}
......@@ -317,7 +317,6 @@
api.checkToken().then(res=>{
if(res['success']){}else{
api.obtainToken().then(res=>{
console.log(res,222222)
if(res.success){
uni.setStorageSync('uni-token',res.data['token']);
}
......@@ -346,7 +345,7 @@
.wrapper{
background: #20279B;
overflow: auto;
height: 100%;
height: 100vh;
.logo{
text-align: center;
color: #fff;
......
......@@ -57,6 +57,7 @@
"schemes" : "cffpapp,hbuilder",
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
},
// "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
/* ios打包配置 */
"ios" : {
"dSYMs" : false,
......
......@@ -29,30 +29,65 @@
<view class="result" v-if="this.partnerLevel=='B1' && approvalStatus==3">
欢迎您加入{{areaName}}
</view>
<navigator url="../index/index">
返回首页 >
</navigator>
<view class="">
<view class="" style="text-align: center;color: #20269B;" v-if="isH5">
<text>请前往应用商店下载App</text>
</view>
<view class="" v-else>
<navigator url="../index/index">
返回首页 >
</navigator>
</view>
</view>
</view>
</view>
</template>
<script>
import api from '@/api/api';
export default{
data(){
return {
partnerLevel:null,
areaName:null,
approvalStatus:null
approvalStatus:null,
applyType: null,
isH5: false,
}
},
components:{},
onLoad(options){
this.shareId = options.shareId
this.areaName = options.areaName;
this.partnerLevel = options.partnerLevel;
this.approvalStatus = options.approvalStatus;
// this.partnerLevel = options.partnerLevel;
// this.approvalStatus = options.approvalStatus;
if(uni.getStorageSync('isH5')){
this.isH5 = true
}
},
onShow() {
if (uni.getStorageSync('applyId')) {
this.queryById(uni.getStorageSync('applyId'), null)
} else if (this.shareId) {
this.queryById(this.shareId, null)
} else {
this.queryById(null, uni.getStorageSync('cffp_userId'))
}
},
methods:{
queryById(id, userId) {
api.queryById({
id: id,
userId: userId
}).then((res) => {
console.log(res)
if (res['success']) {
// this.applyParam = res['data']['data'];
this.approvalStatus = res.data.data.approvalStatus
this.partnerLevel = res.data.data.partnerLevel
}
})
},
}
}
......
......@@ -19,81 +19,105 @@
</view>
<view class="wrapper">
<view class="title">
<view>
<view>
<text class="line"></text>银行卡号
</view>
<text class="page_mark">5/8</text>
<text class="page_mark">5/8</text>
</view>
<view class="content">
<view class="contentDetail employ">
<view class="contentItem">
<text>开户行</text>
<input class="form-control" name="" placeholder="请输入" v-model="applyParam.bankAccountOpening" :disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"/>
</view>
<view class="contentItem">
<view class="contentDetail employ">
<view class="contentItem">
<text>开户行</text>
<input class="form-control" name="" placeholder="请输入开户行" v-model="applyParam.bankAccountOpening"
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2" />
</view>
<view class="contentItem">
<text>银行卡号</text>
<input class="form-control" placeholder="请输入" type="number" maxlength="19" v-model="applyParam.bankAccountId"
auto-blur=true @blur="checkInput(applyParam.bankAccountId)" :disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"/>
</view>
<view class="contentItem">
<text>确认卡号</text>
<input class="form-control" placeholder="请输入" type="number" v-model="sureBankAccountId" maxlength="19"
auto-blur=true @blur="checkInput(sureBankAccountId)" :disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"/>
</view>
</view>
<input class="form-control" placeholder="请输入银行卡号" type="number" maxlength="19"
v-model="applyParam.bankAccountId" auto-blur=true
@blur="checkInput(applyParam.bankAccountId)"
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2" />
</view>
<view class="contentItem">
<text>确认卡号</text>
<input class="form-control" placeholder="请再次确认卡号" type="number" v-model="sureBankAccountId"
maxlength="19" auto-blur=true @blur="checkInput(sureBankAccountId)"
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2" />
</view>
</view>
</view>
</view>
<view class="fixed" @click="saveInfo()">
{{(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2)?'保存并下一步':'下一步'}}
{{(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2)?'保存并下一步':'下一步'}}
</view>
</view>
</template>
<script>
import api from '@/api/api';
export default{
data(){
export default {
data() {
return {
sureBankAccountId:'',
applyParam:{
bankAccountOpening:'',
bankAccountId:'',
approvalStatus:''
shareId:null,
sureBankAccountId: '',
applyParam: {
bankAccountOpening: '',
bankAccountId: '',
approvalStatus: ''
}
}
},
components:{},
onLoad(options){
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'),null)
}else if(options.shareId){
this.queryById(options.shareId,null)
}else{
this.queryById(null,uni.getStorageSync('cffp_userId'))
components: {},
onLoad(options) {
this.shareId = options.shareId
},
onShow() {
if (uni.getStorageSync('applyId')) {
this.queryById(uni.getStorageSync('applyId'), null)
} else if (this.shareId) {
this.queryById(this.shareId, null)
} else {
this.queryById(null, uni.getStorageSync('cffp_userId'))
}
},
methods:{
queryById(id,userId){
api.queryById({id:id,userId:userId}).then((res)=>{
methods: {
queryById(id, userId) {
api.queryById({
id: id,
userId: userId
}).then((res) => {
console.log(res)
if(res['success']){
if (res['success']) {
this.applyParam = res['data']['data'];
if(this.applyParam.bankAccountId){
if (this.applyParam.bankAccountId) {
this.sureBankAccountId = this.applyParam.bankAccountId;
}else{
} else {
this.sureBankAccountId = '';
}
}
})
},
//去除输入空格
checkInput(str){
str = str.replace(/\s*/g,"");
checkInput(str) {
str = str.replace(/\s*/g, "");
},
saveInfo(){
if(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2){
if(this.applyParam.bankAccountId || this.sureBankAccountId){
if(this.applyParam.bankAccountId != this.sureBankAccountId){
saveInfo() {
console.log(this.applyParam.bankAccountId, 155)
console.log(this.sureBankAccountId, 155)
console.log(this.applyParam
.bankAccountOpening, 155)
if (this.applyParam.bankAccountId == '' || this.sureBankAccountId == '' || this.applyParam
.bankAccountOpening == '') {
uni.showToast({
title: '银行卡号与开户行不能为空',
duration: 2000,
icon: 'none'
})
return;
}
if (this.applyParam.approvalStatus == 0 || this.applyParam.approvalStatus == 2) {
if (this.applyParam.bankAccountId || this.sureBankAccountId) {
if (this.applyParam.bankAccountId != this.sureBankAccountId) {
uni.showToast({
title: '两次银行卡号不一致,请重新输入',
duration: 2000,
......@@ -103,16 +127,16 @@
}
}
this.applyParam = {
...this.applyParam,
operatStep:5,
...this.applyParam,
operatStep: 5,
}
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
api.saveApplyInfo(this.applyParam).then((res) => {
if (res['success']) {
uni.navigateTo({
// url:`personal-statement?id=${res['data']['id']}`
url:`personal-statement`
url: `personal-statement`
});
}else{
} else {
uni.showToast({
title: res['message'],
duration: 2000,
......@@ -121,10 +145,10 @@
return;
}
})
}else{
} else {
uni.navigateTo({
// url:`personal-statement?id=${res['data']['id']}`
url:`personal-statement`
url: `personal-statement`
});
}
}
......@@ -134,4 +158,4 @@
<style lang="scss">
@import 'applyCommon.scss';
</style>
\ No newline at end of file
</style>
......@@ -43,7 +43,9 @@
</view>
<view class="contentItem" v-if="applyParam.partnerLevel == 'B1'">
<text>工作室名称</text>
<input type="text" class="form-control" v-model="applyParam.b1Name" placeholder="请输入工作室名称" />
<input type="text" class="form-control"
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
v-model="applyParam.b1Name" placeholder="请输入工作室名称" />
</view>
<view class="contentItem">
<text>所属组织</text>
......@@ -142,7 +144,7 @@
name: '请选择'
}],
idTypeIdx: 0,
maxDate: `${new Date().getFullYear()}-${new Date().getMonth() + 1}`,
maxDate: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
cffpAreaQuerys: [{
areaId: null,
areaName: "请选择所属组织",
......@@ -303,7 +305,7 @@
}).then((res) => {
if (res['success']) {
this.applyParam = res['data']['data'];
console.log(res, 125115)
if (this.applyParam.inviterInvitationCode) {
this.Invitationcodetype = true
}
......
......@@ -19,21 +19,20 @@
</view>
<view class="wrapper">
<view class="title">
<view>
<view>
<text class="line"></text>合同文档确认
</view>
<text class="page_mark">7/8</text>
<text class="page_mark">7/8</text>
</view>
<view class="content">
<view class="ulBox">
<view class="liBox" v-for="contractItem in contractTermsList" @click="readContract(contractItem)"
>
<text class="iconfont icon-yuanxingweixuanzhong" v-if="!contractItem.confirmStatus"></text>
<text class="iconfont icon-selected-copy" v-if="contractItem.confirmStatus"></text>
<text class="itemName"> {{contractItem.termName}}</text>
<text class="iconfont icon-gougou" v-if="contractItem.confirmStatus"></text>
</view>
</view>
<view class="ulBox">
<view class="liBox" v-for="contractItem in contractTermsList" @click="readContract(contractItem)">
<text class="iconfont icon-yuanxingweixuanzhong" v-if="!contractItem.confirmStatus"></text>
<text class="iconfont icon-selected-copy" v-if="contractItem.confirmStatus"></text>
<text class="itemName"> {{contractItem.termName}}</text>
<text class="iconfont icon-gougou" v-if="contractItem.confirmStatus"></text>
</view>
</view>
</view>
</view>
<view class="fixed" @click="saveInfo()">
......@@ -42,76 +41,88 @@
</view>
<view class="toastWrapper toast" v-if="isShow"></view>
<view id="toastContent" v-if="isShow" ref="contractRef">
<view class="title">
{{curTitle}}
</view>
<view class="contract" v-html="curContract" ></view>
<view class="agree" @click="agree(curContractId)" >同意</view>
<view class="title">
{{curTitle}}
</view>
<scroll-view scroll-y style="height: 100vh;">
<view class="contract" v-html="curContract"></view>
</scroll-view>
<view class="agree" @click="agree(curContractId)">同意</view>
</view>
</template>
<script>
import api from '../../api/api';
import { ref, nextTick } from 'vue'
export default{
data(){
import {
ref,
nextTick
} from 'vue'
export default {
data() {
return {
contractTermsList:[],
contractTermsList: [],
isShow: undefined,
curTitle: '',
curContract: '',
curContractId: null,
isAllAgree: false,
applyParam:{
contractTerms:'',
approvalStatus:''
applyParam: {
contractTerms: '',
approvalStatus: ''
},
contractTermsConfirmsListParm:[]
contractTermsConfirmsListParm: [],
shareId: null
}
},
components:{},
onLoad(options){
components: {},
onLoad(options) {
this.shareId = options.shareId
},
onShow() {
this.getContractList();
setTimeout(()=>{
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'),null)
}else if(options.shareId){
this.queryById(options.shareId,null)
}else{
this.queryById(null,uni.getStorageSync('cffp_userId'))
setTimeout(() => {
if (uni.getStorageSync('applyId')) {
this.queryById(uni.getStorageSync('applyId'), null)
} else if (this.shareId) {
this.queryById(this.shareId, null)
} else {
this.queryById(null, uni.getStorageSync('cffp_userId'))
}
},500)
}, 500)
},
methods:{
getContractList(){
api.listQuery({systemType:'1'}).then((res)=>{
methods: {
getContractList() {
api.listQuery({
systemType: '1'
}).then((res) => {
this.contractTermsList = res["data"]["contractDtos"];
console.log(this.contractTermsList)
})
},
saveInfo(){
if(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2){
saveInfo() {
if (this.applyParam.approvalStatus == 0 || this.applyParam.approvalStatus == 2) {
if (!this.isAllAgree) {
uni.showToast({
title: '请详细阅读全部条款!',
duration: 2000,
icon: 'none'
});
return;
return;
}
this.contractTermsConfirmsListParm = [];
for (let i = 0; i < this.contractTermsList.length; i++) {
this.contractTermsConfirmsListParm.push(this.contractTermsList[i]["termName"]);
this.contractTermsConfirmsListParm.push(this.contractTermsList[i]["termName"]);
}
this.applyParam.operatStep = 7;
this.applyParam.contractTerms = this.contractTermsConfirmsListParm .join(',');
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
this.applyParam.contractTerms = this.contractTermsConfirmsListParm.join(',');
api.saveApplyInfo(this.applyParam).then((res) => {
if (res['success']) {
uni.navigateTo({
// url:`signature?id=${res['data']['id']}`
url:`signature`
url: `signature`
});
}else{
} else {
uni.showToast({
title: res['message'],
duration: 2000,
......@@ -120,52 +131,56 @@
return;
}
})
}else{
} else {
uni.navigateTo({
// url:`signature?id=${res['data']['id']}`
url:`signature`
url: `signature`
});
}
},
readContract(contractItem) {
console.log(contractItem, 1515)
if(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2){
if (this.applyParam.approvalStatus == 0 || this.applyParam.approvalStatus == 2) {
if (contractItem.confirmStatus == 1) {
contractItem.confirmStatus = 0;
contractItem.confirmStatus = 0;
} else {
this.isShow = true;
this.curContract = contractItem.termNote;
this.curTitle = contractItem.termName;
this.curContractId = contractItem.id;
this.isShow = true;
this.curContract = contractItem.termNote;
this.curTitle = contractItem.termName;
this.curContractId = contractItem.id;
}
this.isAllAgree = this.contractTermsList.every((item) => {
return item.confirmStatus == 1;
return item.confirmStatus == 1;
});
}
},
},
//同意合同条款
agree() {
this.isShow = false;
for (let i = 0; i < this.contractTermsList.length; i++) {
if (this.curContractId == this.contractTermsList[i]["id"]) {
this.contractTermsList[i]["confirmStatus"] = 1;
}
}
this.isAllAgree = this.contractTermsList.every((item) => {
return item.confirmStatus == 1;
});
this.isShow = false;
for (let i = 0; i < this.contractTermsList.length; i++) {
if (this.curContractId == this.contractTermsList[i]["id"]) {
this.contractTermsList[i]["confirmStatus"] = 1;
}
}
this.isAllAgree = this.contractTermsList.every((item) => {
return item.confirmStatus == 1;
});
},
queryById(id,userId){
api.queryById({id:id,userId:userId}).then((res)=>{
if(res['success']){
queryById(id, userId) {
api.queryById({
id: id,
userId: userId
}).then((res) => {
if (res['success']) {
this.applyParam = res['data']['data'];
if(this.applyParam.contractTerms){
if (this.applyParam.contractTerms) {
this.contractTermsConfirmsListParm = this.applyParam.contractTerms.split(',');
console.log(this.contractTermsConfirmsListParm)
for(let i=0;i<this.contractTermsList.length;i++){
for(let j=0;j<this.contractTermsConfirmsListParm.length;j++){
if(this.contractTermsList[i]['termName'] == this.contractTermsConfirmsListParm[j]){
for (let i = 0; i < this.contractTermsList.length; i++) {
for (let j = 0; j < this.contractTermsConfirmsListParm.length; j++) {
if (this.contractTermsList[i]['termName'] == this
.contractTermsConfirmsListParm[j]) {
this.contractTermsList[i].confirmStatus = 1;
}
}
......@@ -181,58 +196,65 @@
<style lang="scss" scoped>
@import 'applyCommon.scss';
.container {
background-color: #FBFBFB;
}
.toastWrapper {
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
top: 0;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
top: 0;
}
.toast {
position: fixed;
left: 0;
right: 0;
min-width: 320px;
max-width: 640px;
width: 100%;
margin: 0 auto;
z-index: 1;
position: fixed;
left: 0;
right: 0;
min-width: 320px;
max-width: 640px;
width: 100%;
margin: 0 auto;
z-index: 1;
}
#toastContent {
position: fixed;
bottom: 0;
width: 100%;
height: 75%;
left: 0;
right: 0;
margin: 0 auto;
background-color: #fff;
z-index: 2;
animation: slowUp .5s ease both;
overflow: auto;
.title{
text-align: center;
font-weight: bold;
font-size: 16px;
padding: 10px;
}
.contract{
overflow: hidden;
padding: 10px;
#toastContent {
position: fixed;
bottom: 0;
width: 100%;
height: 70%;
left: 0;
right: 0;
margin: 0 auto;
background-color: #fff;
z-index: 2;
animation: slowUp .5s ease both;
overflow: auto;
.title {
text-align: center;
font-weight: bold;
font-size: 16px;
padding: 10px;
}
.contract {
// overflow: hidden;
padding: 10px;
font-size: 20rpx;
}
.agree{
width: 100%;
height: 45px;
line-height: 45px;
background: #C81B1E;
text-align: center;
color: #fff;
font-size: 20px;
font-weight: bold;
position: relative;
bottom: 0;
}
}
</style>
\ No newline at end of file
}
.agree {
width: 100%;
height: 45px;
line-height: 45px;
background: #C81B1E;
text-align: center;
color: #fff;
font-size: 20px;
font-weight: bold;
position: relative;
bottom: 0;
}
}
</style>
......@@ -37,7 +37,7 @@
</view>
<view class="contentItem">
<text>毕业学校</text>
<input type="text" class="form-control" v-model="applyParam.lastGraduateSchool"
<input type="text" class="form-control" v-model="applyParam.lastGraduateSchool" placeholder="请输入毕业院校"
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"/>
</view>
<view class="contentItem" style="border:none;">
......@@ -76,6 +76,7 @@
lastGraduateCertificationOssPath:'',
approvalStatus:''
},
shareId:null,
dataForm:{
loginId: uni.getStorageSync('cffp_userId'),
targetType: "5",
......@@ -99,6 +100,9 @@
}
},500)
},
onShow() {
},
methods:{
educationLevelQuery(){
api.educationLevelQuery().then((res)=>{
......
......@@ -31,8 +31,11 @@
<text class="iconfont icon-weibiaoti553" ></text>
<view class="choseBtn" >点击添加身份证正面</view>
</view>
<image :src="applyParam.idFrontPageOssPath" mode="widthFix" v-if="applyParam.idFrontPageOssPath"
@click="upLoadPhoto('front')"></image>
<view class="content_wrapper">
<image :src="applyParam.idFrontPageOssPath" v-if="applyParam.idFrontPageOssPath"
@click="upLoadPhoto('front')"></image>
</view>
<view class="tips">
<view>(正确示例:身份证正面,字体清晰)</view>
<view>(jpg,png 文件大小不大于1mb)</view>
......@@ -40,7 +43,7 @@
</view>
<view class="content_wrapper" style="margin-top: 25px;">
<view class="photo" v-if="!applyParam.idBackPageOssPath" @click="upLoadPhoto('back')">
<image src="../../static/back.png" alt="身份证反面" mode="widthFix"></image>
<image src="../../static/back.png" alt="身份证反面" mode="widthFix"></image>
<text class="iconfont icon-weibiaoti553" ></text>
<view class="choseBtn" >点击添加身份证反面</view>
</view>
......@@ -70,6 +73,7 @@
idBackPageOssPath:'',
approvalStatus:''
},
shareId:null,
dataForm:{
loginId: uni.getStorageSync('cffp_userId'),
targetType: "5",
......@@ -83,6 +87,7 @@
},
components:{},
onLoad(options){
// this.shareId = options.shareId
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'),null)
}else if(options.shareId){
......@@ -91,6 +96,9 @@
this.queryById(null,uni.getStorageSync('cffp_userId'))
}
},
onShow() {
},
methods:{
queryById(id,userId){
api.queryById({id:id,userId:userId}).then((res)=>{
......@@ -116,6 +124,7 @@
if(type == 'back'){
this.applyParam.idBackPageOssPath = res.data.filePath;
}
console.log(this.applyParam.idBackPageOssPath, 151515)
})
}
},
......
......@@ -48,6 +48,7 @@
data(){
return {
dropOptionsInfoList:[],
shareId: null,
applyParam:{
personalStatement:'',
approvalStatus:''
......@@ -57,17 +58,19 @@
},
components:{},
onLoad(options){
this.shareId = options.shareId
},
onShow() {
this.dropOptionsQuery();
setTimeout(()=>{
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'),null)
}else if(options.shareId){
this.queryById(options.shareId,null)
}else if(this.shareId){
this.queryById(this.shareId,null)
}else{
this.queryById(null,uni.getStorageSync('cffp_userId'))
}
},500)
},
methods:{
dropOptionsQuery(){
......
......@@ -57,15 +57,16 @@
},
components:{eSignature},
onLoad(options) {
this.shareId = options.shareId
},
onShow() {
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'),null)
}else if(options.shareId){
this.queryById(options.shareId,null)
}else if(this.shareId){
this.queryById(this.shareId,null)
}else{
this.queryById(null,uni.getStorageSync('cffp_userId'))
}
},
mounted() {
this.norebound()
},
methods: {
......@@ -123,7 +124,7 @@
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
uni.navigateTo({
url: `application-result?partnerLevel=${this.applyParam.partnerLevel}&areaName=${this.applyParam.areaName}`,
url: `application-result?partnerLevel=${this.applyParam.partnerLevel}&areaName=${this.applyParam.areaName}&shareId=${this.shareId}`,
success: res => {},
fail: () => {},
complete: () => {}
......@@ -151,7 +152,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
@import 'applyCommon.scss';
// uni-page-wrapper{
// overflow: hidden!important;
......
<template>
<view class="container">
<scroll-view scroll-y style="height: 100vh;">
<view class="page">
<text class="num actived pass">1</text>
<text class="line line_pass"></text>
......@@ -38,7 +39,7 @@
<view class="contentItem">
<text>最近一次工作单位</text>
<input type="text" class="form-control" placeholder="非必填" v-model="applyParam.workingCompany"
:disabled="false"/>
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"/>
</view>
<view class="contentItem">
<text>职位</text>
......@@ -67,15 +68,15 @@
<text class="iconfont icon-weibiaoti553"></text>
<view style="margin-top: 10px;">点击添加荣誉证书照片</view>
</view>
<view v-if="applyParam.certificate">
<view class="pic_list" v-for="picItem in picList">
<image :src="picItem" mode="widthFix"></image>
<view v-if="applyParam.certificate" style="width: 100%;text-align: center;">
<view class="photo_wrapper" v-for="picItem in picList">
<image style="width: 100%;" :src="picItem" mode="widthFix"></image>
</view>
</view>
<view class="tips">
<view>(jpg,png 文件大小不大于1mb)</view>
</view>
<view class="upLoadMore" v-if="applyParam.certificate" @click="upLoadPhoto()">
<view class="upLoadMore" v-if="this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2" @click="upLoadPhoto()">
<view class="iconfont icon-jiahao"></view>
<view>上传更多</view>
</view>
......@@ -84,6 +85,7 @@
<view class="fixed" @click="saveInfo()">
{{(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2)?'保存并下一步':'下一步'}}
</view>
</scroll-view>
</view>
</template>
......@@ -150,15 +152,11 @@
})
},
upLoadPhoto(event){
console.log(this.applyParam, 1211)
this.dataForm.targetId = this.applyParam.id
if(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2){
CommonUpload(this.dataForm).then(res => {
console.log(res, 541154)
this.applyParam.certificate = res.data.filePath;
this.picList.push(this.applyParam.certificate);
});
}
},
saveInfo(){
if(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2){
......@@ -175,7 +173,6 @@
operatStep:2,
certificate:this.picList.join(',')
}
console.log(this.applyParam)
api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){
uni.navigateTo({
......@@ -224,4 +221,12 @@
<style lang="scss">
@import 'applyCommon.scss';
.pic_list-s{
width: 100%;
height: 320rpx;
}
.pic_list-s image {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
......@@ -172,6 +172,7 @@
shareCode: null,
sharelogin: false,
startTime: '',
initialTimev: 0
};
},
methods: {
......@@ -181,7 +182,7 @@
uni.setStorageSync('h5_startTime', this.startTime)
this.sharelogin = false
this.userId = val
uni.setStorageSync('h5_userId', this.userId);
uni.setStorageSync('cffp_userId', this.userId);
this.getuserRead(1)
} else {
this.sharelogin = false
......@@ -226,7 +227,7 @@
// 打开微信分享啊
reinvite() {
const shareCode = nanoid() + this.userId
const jumptime = Date.parse(new Date()) / 1000
const jumptime = Date.parse(new Date()) / 1000
let dataWXform = {
href: "https://mdev.zuihuibi.cn/cffp/pages/courseDetail/courseDetail?fileId=" + this.fileId +
'&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode + '&shareUserId=' +
......@@ -264,7 +265,7 @@
}
},
h5jump() {
let h5userId = uni.getStorageSync('h5_userId');
let h5userId = uni.getStorageSync('cffp_userId');
if (h5userId) {
this.jumppurchase()
} else {
......@@ -275,8 +276,7 @@
const param = {
productType: '1',
productId: this.courseInfo.fileId,
userId: this.coursesharing == 1 ? uni.getStorageSync('h5_userId') : uni.getStorageSync(
'cffp_userId'),
userId: uni.getStorageSync('cffp_userId'),
shareUserId: this.shareUserId,
shareReadId: this.shareReadId,
shareCode: this.shareCode,
......@@ -286,8 +286,7 @@
if (res['success']) {
this.orderId = res['data']['id'];
if (this.coursesharing == '1') {
this.userId = uni.getStorageSync('h5_userId') ? uni.getStorageSync('h5_userId') :
this.userId
this.userId = uni.getStorageSync('cffp_userId')
}
uni.navigateTo({
url: `/pages/orderConfirm/orderConfirm?fileId=${this.fileId}&orderId=${this.orderId}&userId=${this.userId}`
......@@ -330,11 +329,9 @@
},
// 课程详情页面
courseDetail() {
console.log('courseDetail')
api.courseDetail({
fileId: this.fileId,
userId: this.coursesharing == '1' ? uni.getStorageSync('h5_userId') : uni.getStorageSync(
'cffp_userId'),
userId: uni.getStorageSync('cffp_userId'),
packFileId: this.courseInfo.packFileId
}).then(res => {
if (res['success']) {
......@@ -358,8 +355,7 @@
relatedCoursesList() {
api.relatedCoursesList({
fileId: this.fileId,
userId: this.coursesharing == '1' ? uni.getStorageSync('h5_userId') : uni.getStorageSync(
'cffp_userId'),
userId: uni.getStorageSync('cffp_userId'),
orderId: this.courseInfo.orderId,
packFileId: this.courseInfo.packFileId
}).then(res => {
......@@ -424,7 +420,7 @@
}
})
})
},
findVideoPlayback() {
console.log('findVideoPlayback')
......@@ -522,7 +518,7 @@
// 用户阅读
getuserRead(type) {
let UserReadRequestVO = {
userId: this.userId ? this.userId : '',
userId: uni.getStorageSync('cffp_userId'),
serialsNo: this.serialsNo || 1,
shareCode: this.shareCode || 1,
shareUrl: window.location.href
......@@ -548,8 +544,8 @@
hshare(data, url)
},
},
onLoad(option) {
this.fileId = option.fileId;
this.courseInfo.packFileId = option.packFileId
......@@ -563,14 +559,15 @@
let endTime = Date.parse(new Date()) / 1000;
let startTime = uni.getStorageSync('h5_startTime')
if (endTime - startTime > 3600 * 24) {
uni.setStorageSync('h5_userId', '')
uni.setStorageSync('cffp_userId', '')
}
uni.setStorageSync('h5_coursesharing', this.coursesharing);
this.getshareData()
}
let dataForm = uni.getStorageSync('userinfodataForm')
this.realName = dataForm.realName
// this.switchTab(1);
},
onShow() {
this.switchTab(1);
......@@ -593,12 +590,14 @@
page {
padding: 0;
}
.courseBannerBox {
background-color: #ebebeb;
display: flex;
justify-content: center;
z-index: 1;
}
.courseTitleContent {
height: 150rpx;
background-color: #fff;
......
<template>
<view class="container">
<view class="record_wrapper" v-if="cffpFortuneDeductionList">
<view class="record_wrapper" v-if="cffpFortuneDeductionList.length > 0">
<view class="recordContent" v-for="(item,index) in cffpFortuneDeductionList" :key="index">
<image :src="item.deductionUrl" mode="widthFix"></image>
<view class="detail">
......@@ -15,7 +15,7 @@
</view>
</view>
</view>
<view style="text-align: center;color: #cacaca;" v-if="!cffpFortuneDeductionList">暂无数据!</view>
<view style="text-align: center;color: #cacaca;margin-top: 20rpx;" v-else>暂无数据!</view>
</view>
</template>
......
......@@ -24,7 +24,11 @@
<view class="agree">
<label class="radio" style="padding-right: 10rpx;">
<radio :checked="agreeFlag" @click="agreeFlag=!agreeFlag"/></label>
<text>已阅读并同意</text><a href="#">银盾保险经纪服务协议</a><text></text><a href="">隐私政策</a>
<!-- <text>已阅读并同意</text><a href="#">银盾保险经纪服务协议</a><text></text><a href="">隐私政策</a> -->
<text>已阅读并同意</text>
<text class="file" @click="getFile(1)">服务协议</text>
<text></text>
<text class="file" @click="getFile(2)">隐私政策</text>
</view>
<view class="footer" @click="nextstep()">
<text>下一步</text>
......@@ -82,6 +86,11 @@
},
getFile(type){
uni.navigateTo({
url:`/components/clause/clause?type=${type}`
})
},
delayTime() {
this.disabledSendBtn = true;
this.timer = setInterval(() => {
......@@ -123,7 +132,7 @@
this.userId = String(res['data']['userId']);
uni.setStorageSync('isLogin','1')
uni.setStorageSync('cffp_userId', this.userId)
// uni.setStorageSync('H5_cffpUserId', this.userId)
uni.setStorageSync('isH5', 1)
uni.navigateTo({
url:'/pages/application-process/basic-info?userId=' + this.userId + '&shareId=' + this.form.id
})
......@@ -206,6 +215,10 @@
text-decoration: none;
}
}
.file{
color: #20279B;
text-decoration: none;
}
.footer{
background: #20279B;
color: #fff;
......
......@@ -39,7 +39,7 @@
</view>
</view>
<view class="fortuneExchangeList" v-for="(item,index) in fortuneItem.cffpFortuneExchangeList"
@click="viewDetail(item.orderId)">
@click="viewDetail(item)">
<text>{{item.productTypeName}}</text>
<text class="iconfont icon-youjiantou"></text>
</view>
......@@ -152,9 +152,9 @@
})
},
// 查看订单详情
viewDetail(id){
viewDetail(item){
uni.navigateTo({
url:`/pages/orderDetail/orderDetail?id=${id}&commissionType=${this.commissionType}&type=drop`
url:`/pages/orderDetail/orderDetail?id=${item.orderId}&commissionType=${item.commissionType}&type=drop`
})
}
}
......
......@@ -11,7 +11,7 @@
<view class="shareStatisticalContent">
<view class="statisticItem">
<text>{{coursesCountInfos.shareFrequencyMonth}}</text>
<text>本月分享(频次)</text>
<text>本月分享(频次)</text>
</view>
<view class="statisticItem" @click="viewIntegral()">
<text class="colorText">{{coursesCountInfos.integralMonth}}</text>
......
......@@ -60,7 +60,6 @@
commissionType:this.commissionType,
}
api.userCourseInfo(param).then(res=>{
console.log(res, 15151515)
if(res['success']){
const data = this.orderDetail = res['data']['orderDetail'];
this.fileId = data.fileId;
......
......@@ -16,8 +16,8 @@
<i class="iconfont icon-bianji"></i>
</view>
</view>
<view>昵称:{{customerBasicInfo.nickName || 'CFFP财富中心'}}</view>
<view>{{customerBasicInfo.userDescription || 'CFFP财富中心'}}</view>
<view>昵称:{{customerBasicInfo.nickName}}</view>
<view>{{customerBasicInfo.userDescription}}</view>
</view>
</view>
<!-- 主要菜单 -->
......@@ -82,6 +82,7 @@
inviteEqrode:'',
currentPage:'personalCenter',
customerBasicInfo:{},
loginornot: true,
mainMenuLists:[
{id:'00',categoryName:'销售管理',
children:[
......@@ -144,8 +145,23 @@
updateData(val){
console.log('我来修改一些数据')
},
isLogin(){
uni.showToast({
title: "请登陆个人账户使用该功能",
duration: 2000,
icon: 'none'
});
uni.reLaunch({
url:'/components/login/login'
})
uni.clearStorageSync();
return false
},
// 菜单跳转页面
goDetail(item){
if(!this.loginornot){
this.isLogin()
}
if(item.isShow && item.isOpen){
if(item.title==='我的邀请码'){
this.$refs.popup1.open('bottom');
......@@ -177,9 +193,11 @@
},
userinfo(){
uni.navigateTo({
url:`/pages/personalCenter/user-information?customerBasicInfo=` + JSON.stringify(this.customerBasicInfo)
})
if(this.loginornot){
uni.navigateTo({
url:`/pages/personalCenter/user-information?customerBasicInfo=` + JSON.stringify(this.customerBasicInfo)
})
}
},
// 弹窗
errorDialog(type,content){
......@@ -202,6 +220,9 @@
api.queryInfo({userId:this.userId}).then(res=>{
if(res['success']){
this.customerBasicInfo = res['data'];
if(this.customerBasicInfo.mobile == null){
this.loginornot = false
}
this.inviteEqrode = this.customerBasicInfo.invitationCode;
uni.setStorageSync('user_mobile', res.data.mobile)
uni.setStorageSync('userinfodataForm', res.data)
......
......@@ -76,13 +76,24 @@
.content-header{
display: flex;
justify-content: center;
.concent-title{
width: 446rpx;
height: 80rpx;
background: url('../../../static/Group 1623.png');
background-size: auto 100%;
display: flex;
justify-content: center;
.concent-text{
font-size: 36rpx;
font-weight: 500;
color: #FFFFFF;
align-items: center;
margin-top: 14rpx;
// line-height: 40px;
}
}
}
.concent-title{
width: 446rpx;
height: 80rpx;
background: url('../../../static/Group 1623.png');
background-size: auto 100%;
}
.d-box {
display: flex;
justify-content: space-between;
......@@ -100,12 +111,6 @@
padding: 5rpx 10rpx;
}
}
.concent-text{
font-size: 18px;
font-weight: 500;
color: #FFFFFF;
line-height: 40px;
}
.table-content{
margin: 10px 20px;
display: flex;
......
......@@ -128,6 +128,7 @@
justify-content: space-between;
// justify-content: space-around;
padding: 30rpx 60rpx 0;
font-size: 28rpx;
text {
&.actived {
......
......@@ -100,7 +100,6 @@
},
submitsuessc(type){
let platform = uni.getSystemInfoSync().platform
let that = this
let UserShareRequestVO = {
systemType: platform == 'ios'? '1': '0',
......
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