Commit a5b34d16 by yuzhenWang

已发布到测试待测试

parent 3015e046
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<everyJoinPopup ref="everyJoinPopup" @continue="jumpPage" :showCanel="false" /> <everyJoinPopup ref="everyJoinPopup" @continue="jumpPage" :showCanel="false" />
<!-- 成功加盟为合伙人提示弹窗组件 --> <!-- 成功加盟为合伙人提示弹窗组件 -->
<everyJoinPopup ref="successJoinPopup" @continue="jumpPage(e)" content="您已加盟为银盾家办合伙人" <everyJoinPopup ref="successJoinPopup" @continue="jumpPage(e)" content="您已加盟为银盾家办合伙人"
twoContent='购买一单"财务健康智能体检"即可升级为新锐合伙人,享受组织利益' continueText="前往购买" cancelText="暂不购买,继续浏览" fontColor="#20279B" twoContent='购买任一产品即可升级为新锐合伙人,享受组织利益' continueText="前往购买" cancelText="暂不购买,继续浏览" fontColor="#20279B"
:maskClick="false" icon="icon-dianzan" iconSize='80rpx' :showCanel="true" /> :maskClick="false" icon="icon-dianzan" iconSize='80rpx' :showCanel="true" />
</view> </view>
</template> </template>
...@@ -221,6 +221,7 @@ ...@@ -221,6 +221,7 @@
// return // return
// } // }
// 之前登录过,但和申请加盟的账号不一致 // 之前登录过,但和申请加盟的账号不一致
console.log('走到这了',this.userInfo && (this.userInfo.mobile !== this.form.mobile));
if (this.userInfo && (this.userInfo.mobile !== this.form.mobile)) { if (this.userInfo && (this.userInfo.mobile !== this.form.mobile)) {
this.showVerificationCode = true this.showVerificationCode = true
uni.setStorageSync('loginType', 'visitor') uni.setStorageSync('loginType', 'visitor')
......
...@@ -515,6 +515,12 @@ ...@@ -515,6 +515,12 @@
result.forEach(item=>{ result.forEach(item=>{
this.idTypesList.push({name:item.dropOptionName,id:item.dropOptionCode}) this.idTypesList.push({name:item.dropOptionName,id:item.dropOptionCode})
}) })
this.showUnbind = false
this.realInfo={
shiming:{},//实名信息
wx:{},// 微信信息
zhifubao:{}//支付宝信息
}
this.getImproveInfo() this.getImproveInfo()
} }
}) })
......
...@@ -294,17 +294,19 @@ ...@@ -294,17 +294,19 @@
//支付宝去提现 //支付宝去提现
aliWithdrawal(){ aliWithdrawal(){
this.readonlyFlag = true; this.readonlyFlag = true;
let aliWithdrawalResVOParam = {}
//#ifdef H5 //#ifdef H5
let aliWithdrawalResVOParam = { aliWithdrawalResVOParam = {
...this.aliWithdrawalResVO, ...this.aliWithdrawalResVO,
dataSource:2, dataSource:2,
orderNo:this.partnerTradeNo, orderNo:this.partnerTradeNo,
amount:this.exchangeAmount, amount:this.exchangeAmount,
userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
desc:'大于5万',
} }
//#endif //#endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
let aliWithdrawalResVOParam = { aliWithdrawalResVOParam = {
...this.aliWithdrawalResVO, ...this.aliWithdrawalResVO,
dataSource:2, dataSource:2,
orderNo:this.partnerTradeNo, orderNo:this.partnerTradeNo,
......
...@@ -938,11 +938,33 @@ ...@@ -938,11 +938,33 @@
color: #333333; color: #333333;
} }
.position, .leavelName{ .position, .leavelName{
padding: 10rpx 15rpx; // padding: 10rpx 15rpx;
border-radius: 5rpx; // border-radius: 5rpx;
border: 1rpx solid #FFBB00; // border: 1rpx solid #FFBB00;
font-size: 26rpx; // font-size: 26rpx;
color: #FFBB00; // color: #FFBB00;
position: relative;
padding: 10rpx 15rpx;
border-radius: 5rpx;
/* 去掉原来的 border */
border: none;
font-size: 26rpx;
color: #FFBB00;
}
.position::after,
.leavelName::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 200%;
border: 2rpx solid #FFBB00;
border-radius: 10rpx; /* 圆角要放大一倍,缩放后才是 5rpx */
transform: scale(0.5);
transform-origin: 0 0;
box-sizing: border-box;
pointer-events: none; /* 不影响点击 */
} }
.position{ .position{
margin: 0rpx 15rpx; margin: 0rpx 15rpx;
...@@ -1039,11 +1061,32 @@ ...@@ -1039,11 +1061,32 @@
} }
.nameLevel{ .nameLevel{
padding: 5rpx 15rpx; // padding: 5rpx 15rpx;
border-radius: 5rpx; // border-radius: 5rpx;
border: 1rpx solid #FFBB00; // border: 1px solid #FFBB00;
font-size: 25rpx; // font-size: 25rpx;
color: #FFBB00; // color: #FFBB00;
position: relative;
padding: 5rpx 15rpx;
border-radius: 5rpx;
/* 移除原来的 border,用伪元素模拟 */
border: none;
font-size: 25rpx;
color: #FFBB00;
}
.nameLevel::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 200%;
border: 2rpx solid #FFBB00;
border-radius: 10rpx; /* 圆角也要相应放大,确保缩放后一致 */
transform: scale(0.5);
transform-origin: 0 0;
box-sizing: border-box;
pointer-events: none; /* 确保伪元素不影响点击 */
} }
} }
.bottom{ .bottom{
...@@ -1057,6 +1100,8 @@ ...@@ -1057,6 +1100,8 @@
.right{ .right{
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
width: 120rpx;
.rNum{ .rNum{
color: #333333; color: #333333;
font-size: 28rpx; font-size: 28rpx;
......
...@@ -656,6 +656,10 @@ ...@@ -656,6 +656,10 @@
url: featureItem.link url: featureItem.link
}) })
}else { }else {
if (dataHandling.h5RuntimeEnv() == 'wechat-miniprogram') {
this.jumpMplogin()
return
}
uni.navigateTo({ uni.navigateTo({
url:'/myPackageA/login/login' url:'/myPackageA/login/login'
}) })
...@@ -829,6 +833,25 @@ ...@@ -829,6 +833,25 @@
}) })
uni.hideLoading() uni.hideLoading()
},
jumpMplogin(){
let currentUrl =
`${shareURL}/pages/lanch/index?landingPage=index&noShare=1`;
let data = {
type:'login',
h5SystemType:'cffp',
link: encodeURIComponent(currentUrl),
}
wx.miniProgram.postMessage({
data:{
type:'login',
shareData:JSON.stringify(data)
}
})
wx.miniProgram.navigateBack({
delta:1
})
} }
}, },
......
...@@ -967,31 +967,31 @@ ...@@ -967,31 +967,31 @@
}) })
}, },
jumpMplogin(){ jumpMplogin(){
let currentUrl = let currentUrl =
`${shareURL}/pages/lanch/index?landingPage=personalCenter&noShare=1`; `${shareURL}/pages/lanch/index?landingPage=personalCenter&noShare=1`;
console.log('获取页面路径'); console.log('获取页面路径');
// if(this.miniShareInfo.miniShare){ // if(this.miniShareInfo.miniShare){
// currentUrl = `${shareURL}/pages/lanch/index?fileId=${this.miniShareInfo.fileId}&coursesharing=1&serialsNo=${this.miniShareInfo.serialsNo}&shareCode=${this.miniShareInfo.shareCode}&shareUserId=${this.miniShareInfo.userId}&jumpUrl=${this.miniShareInfo.jumpUrl}&landingPage=courseDetail&miniShare=1` // currentUrl = `${shareURL}/pages/lanch/index?fileId=${this.miniShareInfo.fileId}&coursesharing=1&serialsNo=${this.miniShareInfo.serialsNo}&shareCode=${this.miniShareInfo.shareCode}&shareUserId=${this.miniShareInfo.userId}&jumpUrl=${this.miniShareInfo.jumpUrl}&landingPage=courseDetail&miniShare=1`
// }else { // }else {
// currentUrl = `${shareURL}/pages/lanch/index?fileId=${this.fileId}&landingPage=courseDetail&noShare=1` // currentUrl = `${shareURL}/pages/lanch/index?fileId=${this.fileId}&landingPage=courseDetail&noShare=1`
// } // }
let data = { let data = {
type:'login', type:'login',
h5SystemType:'cffp', h5SystemType:'cffp',
link: encodeURIComponent(currentUrl), link: encodeURIComponent(currentUrl),
} }
wx.miniProgram.postMessage({ wx.miniProgram.postMessage({
data:{ data:{
type:'login', type:'login',
shareData:JSON.stringify(data) shareData:JSON.stringify(data)
} }
}) })
wx.miniProgram.navigateBack({ wx.miniProgram.navigateBack({
delta:1 delta:1
}) })
} }
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="top: 30rpx;"></text> <text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="top: 30rpx;"></text>
<!-- #endif --> <!-- #endif -->
<view class="banner"> <view class="banner" id="banner">
<!--头部技术支持组件--> <!--头部技术支持组件-->
<!-- <commonHead></commonHead> --> <!-- <commonHead></commonHead> -->
<image src="../../static/images/childEduBanner.jpg" mode="widthFix"></image> <image src="../../static/images/childEduBanner.jpg" mode="widthFix"></image>
...@@ -106,12 +106,12 @@ ...@@ -106,12 +106,12 @@
</view> </view>
</view> </view>
<!-- 测算结果及建议 --> <!-- 测算结果及建议 -->
<view class="title"><view>测算结果及建议</view></view> <view class="title" id="resultTitle"><view>测算结果及建议</view></view>
<!-- 图表 --> <!-- 图表 -->
<!-- 为 ECharts 准备一个定义了宽高的 DOM --> <!-- 为 ECharts 准备一个定义了宽高的 DOM -->
<!-- <view id="main" style="width:96vw;height:400px" v-if="resultInfo"></view> --> <!-- <view id="main" style="width:96vw;height:400px" v-if="resultInfo"></view> -->
<l-echart ref="chart" @finished="init" v-if="resultInfo"></l-echart> <l-echart ref="chart" @finished="init" v-if="resultInfo" style="height: 450rpx;width: 100%;"></l-echart>
<view class="summaryContent" v-if="resultInfo"> <view class="summaryContent" v-if="resultInfo" id="summaryContent">
<view class="successInfo" v-if="resultInfo.code=='B001'"> <view class="successInfo" v-if="resultInfo.code=='B001'">
<strong>恭喜您!</strong> <strong>恭喜您!</strong>
<text>经过测算,您的资金可以负担{{eduPlanParam.name}}同学从{{getClassesInfo(getEducationNo(eduPlanParam.startPlan))}}到{{getClassesInfo(getEducationNo(eduPlanParam.endPlan))}}阶段的上学费用。</text> <text>经过测算,您的资金可以负担{{eduPlanParam.name}}同学从{{getClassesInfo(getEducationNo(eduPlanParam.startPlan))}}到{{getClassesInfo(getEducationNo(eduPlanParam.endPlan))}}阶段的上学费用。</text>
...@@ -130,13 +130,26 @@ ...@@ -130,13 +130,26 @@
</view> </view>
</view> </view>
</view> </view>
<view class="backTop" @click="scrollToResult('#banner')">
<view class="backTxt">
回到顶部
</view>
</view>
</view> </view>
<!-- 操作 --> <!-- 操作 -->
<view class="optionContent"> <view class="optionContent">
<button type="default" plain="true" form-type="reset" <button type="default" plain="true" form-type="reset"
@click="resetData()" >全部清空</button> @click="resetData()" >全部清空</button>
<button type="default" plain="true" <button
class="sfp_btn" @click="educationEstimate()">开始计算</button> type="default"
plain="true"
class="sfp_btn"
@click="educationEstimate()"
:loading="counting"
:disabled="counting"
>
{{ counting ? '计算中...' : '开始计算' }}
</button>
</view> </view>
</scroll-view> </scroll-view>
...@@ -185,6 +198,7 @@ ...@@ -185,6 +198,7 @@
}, },
data() { data() {
return { return {
counting: false,
accountBalanceEnd:[], accountBalanceEnd:[],
currentYearExpenditure:[], currentYearExpenditure:[],
xAxisLists:[], xAxisLists:[],
...@@ -298,43 +312,82 @@ ...@@ -298,43 +312,82 @@
// var myChart = echarts.init(document.getElementById('main')); // var myChart = echarts.init(document.getElementById('main'));
// 指定图表的配置项和数据 // 指定图表的配置项和数据
this.option = { this.option = {
// title: {},
// tooltip: {
// trigger: 'axis',
// axisPointer: {
// type: 'cross',
// label: {
// backgroundColor: '#6a7985'
// }
// }
// },
// legend: {
// data: ['教育金账户', '学费现金流'],
// left:'1%'
// },
// grid: {
// left: '2%',
// containLabel: true
// },
// xAxis: [
// {
// type: 'category',
// boundaryGap: false,
// axisLabel:{
// interval:0,
// rotate:60
// },
// textStyle:{
// fontSize:10
// },
// data: this.xAxisLists
// }
// ],
// yAxis: [
// {
// type: 'value'
// }
// ],
title: {}, title: {},
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {
type: 'cross', type: 'cross',
label: { label: { backgroundColor: '#6a7985' }
backgroundColor: '#6a7985' }
} },
} legend: {
}, data: ['教育金账户', '学费现金流'],
legend: { top: 0, // 贴顶,别占多余空间
data: ['教育金账户', '学费现金流'], left: '1%',
left:'1%' itemHeight: 8, // 图例图标小一点
}, itemWidth: 14,
grid: { textStyle: { fontSize: 11 }
left: '2%', },
containLabel: true grid: {
}, left: '2%',
xAxis: [ right: '3%',
{ top: 28, // 给 legend 留 28px 就够,别用默认 60
type: 'category', bottom: 8, // 底部只留一点,标签高度由 containLabel 自动算
boundaryGap: false, containLabel: true
axisLabel:{ },
interval:0, xAxis: [{
rotate:60 type: 'category',
}, boundaryGap: false,
textStyle:{ axisLabel: {
fontSize:10 interval: 0,
}, rotate: 45, // 60 → 45,占高明显下降
data: this.xAxisLists fontSize: 10,
} margin: 6 // 标签离轴线的距离,默认 8,改小更省
], },
yAxis: [ data: this.xAxisLists
{ }],
type: 'value' yAxis: [{
} type: 'value',
], axisLabel: { fontSize: 10 },
splitNumber: 4 // 减少水平网格线条数,视觉更清爽
}],
series: [ series: [
{ {
name: '教育金账户', name: '教育金账户',
...@@ -430,6 +483,7 @@ ...@@ -430,6 +483,7 @@
return flated; return flated;
}, },
educationEstimate(){ educationEstimate(){
if(this.counting) return;
this.flatEduGradeLists = JSON.parse(JSON.stringify(this.objFlat(this.schoolingLists))) this.flatEduGradeLists = JSON.parse(JSON.stringify(this.objFlat(this.schoolingLists)))
this.flatEduGradeLists.map((val,idx)=>{ this.flatEduGradeLists.map((val,idx)=>{
val['educationNo'] = idx + 1; val['educationNo'] = idx + 1;
...@@ -480,12 +534,15 @@ ...@@ -480,12 +534,15 @@
educationTuitionInfos:flatSchoolingLists, educationTuitionInfos:flatSchoolingLists,
initEducationFund:this.eduPlanParam.initEducationFund * Math.pow(10,4), initEducationFund:this.eduPlanParam.initEducationFund * Math.pow(10,4),
educationDeposit:this.eduPlanParam.educationDeposit * Math.pow(10,4), educationDeposit:this.eduPlanParam.educationDeposit * Math.pow(10,4),
userId:uni.getStorageSync('cffp_userId'), // userId:uni.getStorageSync('cffp_userId'),
systemType:1 systemType:1
} }
this.counting = true; // 校验通过后再开启,避免校验失败也转圈
api.educationEstimate(param).then(res=>{ api.educationEstimate(param).then(res=>{
this.counting = false;
this.resultInfo = res['data']; this.resultInfo = res['data'];
if(res['success']){ if(res['success']){
uni.showToast({ title: '计算完成', icon: 'none', duration: 1000 });
this.currentYearExpenditure = []; this.currentYearExpenditure = [];
this.accountBalanceEnd = []; this.accountBalanceEnd = [];
this.xAxisLists = []; this.xAxisLists = [];
...@@ -496,6 +553,7 @@ ...@@ -496,6 +553,7 @@
this.xAxisLists.push(result[i]['educationNo'] ? this.getClassesInfo(result[i]['educationNo']) : result[i]['planyear']) this.xAxisLists.push(result[i]['educationNo'] ? this.getClassesInfo(result[i]['educationNo']) : result[i]['planyear'])
} }
setTimeout(()=>{this.drawLine()},0) setTimeout(()=>{this.drawLine()},0)
this.scrollToResult('#resultTitle')
}else{ }else{
this.currentYearExpenditure = []; this.currentYearExpenditure = [];
this.accountBalanceEnd = []; this.accountBalanceEnd = [];
...@@ -505,6 +563,21 @@ ...@@ -505,6 +563,21 @@
} }
}) })
}, },
// 滚动到指定位置
scrollToResult(dom){
setTimeout(() => {
uni.createSelectorQuery().in(this)
.select(dom).boundingClientRect()
.selectViewport().scrollOffset()
.exec((res) => {
if (!res || !res[0] || !res[1]) return;
uni.pageScrollTo({
scrollTop: res[0].top + res[1].scrollTop - 20,
duration: 300
});
});
}, 100);
},
resetData(){ resetData(){
this.eduPlanParam = { this.eduPlanParam = {
name:'', name:'',
...@@ -576,4 +649,23 @@ ...@@ -576,4 +649,23 @@
<style scoped> <style scoped>
@import '../sfpCommon.css'; @import '../sfpCommon.css';
@import url("childEdu.css"); @import url("childEdu.css");
.backTop{
width: 100%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
margin: 30rpx 0;
.backTxt{
padding: 30rpx 50rpx;
border: 1px solid rgba(179, 179, 179, 1);
color: rgba(97, 97, 97, 1);
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50rpx;
}
}
</style> </style>
...@@ -6,15 +6,15 @@ ...@@ -6,15 +6,15 @@
<text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="top: 30rpx;"></text> <text class="iconfont icon-youjiantou zuojiantou" @click="goBack()" style="top: 30rpx;"></text>
<!-- #endif --> <!-- #endif -->
<view class="banner"> <view class="banner" id="banner">
<!--头部技术支持组件--> <!--头部技术支持组件-->
<!-- <commonHead></commonHead> --> <!-- <commonHead></commonHead> -->
<image src="../../static/images/banner.png" mode="widthFix"></image> <image src="../../static/images/banner.png" mode="widthFix"></image>
</view> </view>
<scroll-view scroll-y="true" class="formInfoContainer" id="formInfoContainer"> <scroll-view scroll-y="true" class="formInfoContainer" id="formInfoContainer" >
<form> <form>
<!--需求信息--> <!--需求信息-->
<view class="demandInfo"> <view class="demandInfo" >
<view class="title"> <view class="title">
<view> <view>
需求信息 需求信息
...@@ -143,12 +143,22 @@ ...@@ -143,12 +143,22 @@
<view class="optionContent"> <view class="optionContent">
<button type="default" plain="true" form-type="reset" <button type="default" plain="true" form-type="reset"
@click="resetData()" >全部清空</button> @click="resetData()" >全部清空</button>
<button type="default" plain="true" <!-- <button type="default" plain="true"
class="sfp_btn" @click="startCount()">开始计算</button> class="sfp_btn" @click="startCount()">开始计算</button> -->
<button
type="default"
plain="true"
class="sfp_btn"
@click="startCount()"
:loading="counting"
:disabled="counting"
>
{{ counting ? '计算中...' : '开始计算' }}
</button>
</view> </view>
</form> </form>
<!--测算结果-- v-show="resultFlag"--> <!--测算结果 v-show="resultFlag"-->
<view class="result_wrapper" v-if="resultFlag"> <view class="result_wrapper" v-if="resultFlag" id="resultArea">
<!-- <view class="result_wrapper"> --> <!-- <view class="result_wrapper"> -->
<view class="suggestInfo"> <view class="suggestInfo">
<view class="title"> <view class="title">
...@@ -168,7 +178,7 @@ ...@@ -168,7 +178,7 @@
</view> </view>
<!-- <view style="height: 450rpx;width: 500rpx;border: 1rpx solid #c3c1c1;"> --> <!-- <view style="height: 450rpx;width: 500rpx;border: 1rpx solid #c3c1c1;"> -->
<!-- <view id="myEcharts"></view> --> <!-- <view id="myEcharts"></view> -->
<l-echart ref="chart" @finished="init"></l-echart> <l-echart ref="chart" @finished="init" style="height: 450rpx;width: 100%;"></l-echart>
<!-- </view> --> <!-- </view> -->
<!-- <view class="linechart"> <!-- <view class="linechart">
<Echarts ref="echart" :option="option" style="height: 300px;"></Echarts> <Echarts ref="echart" :option="option" style="height: 300px;"></Echarts>
...@@ -248,7 +258,13 @@ ...@@ -248,7 +258,13 @@
经过测算,距离实现您的{{getResultTitle(houseItem.priceType)}}目标还差{{Math.abs(formatFloat(houseItem.fvDifference/10000))}}万元。您可以参考我们给出的建议进行调整。 经过测算,距离实现您的{{getResultTitle(houseItem.priceType)}}目标还差{{Math.abs(formatFloat(houseItem.fvDifference/10000))}}万元。您可以参考我们给出的建议进行调整。
</view> </view>
</view> </view>
<view class="backTop" @click="scrollToResult('#banner')">
<view class="backTxt">
回到顶部
</view>
</view>
</view> </view>
</scroll-view> </scroll-view>
<!--底部技术支持组件--> <!--底部技术支持组件-->
<!-- <foot></foot> --> <!-- <foot></foot> -->
...@@ -285,6 +301,7 @@ ...@@ -285,6 +301,7 @@
export default{ export default{
data(){ data(){
return{ return{
counting: false,
chartsLegendsCurrent: '1', chartsLegendsCurrent: '1',
chartsLegends:[{ chartsLegends:[{
value: '1', value: '1',
...@@ -319,7 +336,7 @@ ...@@ -319,7 +336,7 @@
cityName:null, cityName:null,
preOrderSize:null,//预购面积 preOrderSize:null,//预购面积
targetPrice:null,//目标价格(现值) targetPrice:null,//目标价格(现值)
downPaymentMin:30,//首付款最低成数(百分位) downPaymentMin:15,//首付款最低成数(百分位)
newLoanYear:null,//新房贷款年限【必须大于0】 newLoanYear:null,//新房贷款年限【必须大于0】
firstHouseAmount:null,//初期购房资金(单位万) firstHouseAmount:null,//初期购房资金(单位万)
housePurchaseType:2,//购房用途 housePurchaseType:2,//购房用途
...@@ -524,10 +541,53 @@ ...@@ -524,10 +541,53 @@
} }
} }
} }
// this.option = {
// legend: {}, // 若不需要图例可改成 legend: { show: false }
// grid: {
// left: '15%',
// right: '4%', // 右侧别留太多,否则柱子区被压窄
// top: 20, // 给 legend 留一点点就够(默认 60 太大)
// bottom: 10, // 底部只留一点,x 轴标签高度用 containLabel 自动算
// containLabel: true // 让 x 轴标签自动被算进 grid,不会被裁
// },
// xAxis: {
// type: 'category', // 建议显式写 type,更稳妥
// data: dataOption,
// axisTick: { show: false },
// axisLabel: {
// interval: 0, // 强制显示全部标签
// fontSize: 10,
// margin: 6 // 标签离轴线的距离,默认 8,改小省高度
// }
// },
// yAxis: {
// type: 'value',
// axisLabel: { fontSize: 10 },
// splitNumber: 4 // 少几条横向网格线,视觉更清爽
// },
// series: [
// {
// name: '',
// data: showLists,
// type: 'bar',
// barMaxWidth: 24, // 防止柱子过宽,视觉更饱满
// label: {
// show: true,
// position: 'inside',
// fontSize: 10
// }
// }
// ]
// };
this.option = { this.option = {
legend: {}, legend: {},
grid: { grid: {
left: '20%', // 调整这个属性 // left: '20%', // 调整这个属性
left: '8%',
right: '4%', // 右侧别留太多,否则柱子区被压窄
top: 20, // 给 legend 留一点点就够(默认 60 太大)
bottom: 10, // 底部只留一点,x 轴标签高度用 containLabel 自动算
containLabel: true
}, },
xAxis: { xAxis: {
data: dataOption, data: dataOption,
...@@ -586,7 +646,22 @@ ...@@ -586,7 +646,22 @@
housePurchase(id){ housePurchase(id){
this.housePurchaseInfo.housePurchaseType = id; this.housePurchaseInfo.housePurchaseType = id;
}, },
scrollToResult(dom){
setTimeout(() => {
uni.createSelectorQuery().in(this)
.select(dom).boundingClientRect()
.selectViewport().scrollOffset()
.exec((res) => {
if (!res || !res[0] || !res[1]) return;
uni.pageScrollTo({
scrollTop: res[0].top + res[1].scrollTop - 20,
duration: 300
});
});
}, 100);
},
startCount(){ startCount(){
if(this.counting) return;
if(!this.housePurchaseInfo.nyear){ if(!this.housePurchaseInfo.nyear){
common.errorDialog(1,'请填写几年后购房') common.errorDialog(1,'请填写几年后购房')
return false; return false;
...@@ -671,10 +746,14 @@ ...@@ -671,10 +746,14 @@
calcuteType:0, calcuteType:0,
decimal:4, decimal:4,
systemType:1, systemType:1,
userId:uni.getStorageSync('cffp_userId') // userId:uni.getStorageSync('cffp_userId')
} }
this.counting = true; // 校验通过后再开启,避免校验失败也转圈
api.housePurchasePlanAnalysis(param).then((res)=>{ api.housePurchasePlanAnalysis(param).then((res)=>{
this.counting = false;
if(res['success']){ if(res['success']){
// 👇 加这一行
uni.showToast({ title: '计算完成', icon: 'none', duration: 1000 });
this.resultFlag = true; this.resultFlag = true;
this.resultInfos = res['data']; this.resultInfos = res['data'];
this.housePurchasePrices = res['data']['housePurchasePrices']; this.housePurchasePrices = res['data']['housePurchasePrices'];
...@@ -689,6 +768,8 @@ ...@@ -689,6 +768,8 @@
setTimeout(()=>{ setTimeout(()=>{
this.drawLine(this.chartsLegendsCurrent) this.drawLine(this.chartsLegendsCurrent)
}); });
// 计算完成后触发滚动
this.scrollToResult("#resultArea");
}else{ }else{
if(res['data']['code']==='E000'){ if(res['data']['code']==='E000'){
this.isNeedOfficialAccountQrcode = true; this.isNeedOfficialAccountQrcode = true;
...@@ -792,6 +873,24 @@ ...@@ -792,6 +873,24 @@
<style scoped lang="scss"> <style scoped lang="scss">
@import '../sfpCommon.css'; @import '../sfpCommon.css';
.wrapper{ .wrapper{
.backTop{
width: 100%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
margin: 30rpx 0;
.backTxt{
padding: 30rpx 50rpx;
border: 1px solid rgba(179, 179, 179, 1);
color: rgba(97, 97, 97, 1);
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50rpx;
}
}
.houseInfo .title{ .houseInfo .title{
padding-left: 0; padding-left: 0;
justify-content: space-between; justify-content: space-between;
......
...@@ -595,7 +595,7 @@ ...@@ -595,7 +595,7 @@
withdrawalType:this.withdrawalType?'1':'2', withdrawalType:this.withdrawalType?'1':'2',
decimal: 5, decimal: 5,
systemType:1, systemType:1,
userId:uni.getStorageSync('cffp_userId') // userId:uni.getStorageSync('cffp_userId')
}; };
api.irrAndSimpleCalcute(params).then(res=>{ api.irrAndSimpleCalcute(params).then(res=>{
if(res.success === true){ if(res.success === true){
......
...@@ -32,6 +32,7 @@ export function wrapTouch(event) { ...@@ -32,6 +32,7 @@ export function wrapTouch(event) {
return event; return event;
} }
export const devicePixelRatio = wx.getSystemInfoSync().pixelRatio export const devicePixelRatio = wx.getSystemInfoSync().pixelRatio
// export const devicePixelRatio = uni.getSystemInfoSync().pixelRatio
// #endif // #endif
// #ifdef APP-NVUE // #ifdef APP-NVUE
export function base64ToPath(base64) { export function base64ToPath(base64) {
......
...@@ -449,6 +449,6 @@ export default{ ...@@ -449,6 +449,6 @@ export default{
const v = c === 'x' ? r : (r & 0x3 | 0x8); const v = c === 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16); return v.toString(16);
}); });
} },
} }
\ No newline at end of file
...@@ -3,6 +3,7 @@ import dataHandling from './dataHandling' ...@@ -3,6 +3,7 @@ import dataHandling from './dataHandling'
import { initJssdkShare, setWechatShare } from '@/util/fiveshare'; import { initJssdkShare, setWechatShare } from '@/util/fiveshare';
import { shareURL } from "@/environments/environment"; import { shareURL } from "@/environments/environment";
import wx from 'weixin-js-sdk' import wx from 'weixin-js-sdk'
import { nanoid } from 'nanoid';
//只要是未登录状态,想要跳转到名单内的路径时,直接跳到登录页 //只要是未登录状态,想要跳转到名单内的路径时,直接跳到登录页
// 页面白名单,不受拦截 // 页面白名单,不受拦截
const whiteList = [ const whiteList = [
...@@ -52,7 +53,8 @@ export default function initApp() { ...@@ -52,7 +53,8 @@ export default function initApp() {
wx.miniProgram.postMessage({ wx.miniProgram.postMessage({
data: { data: {
type: 'share', type: 'share',
shareData: JSON.stringify(shareInfo) shareData: JSON.stringify(shareInfo),
messageId: nanoid() // 唯一消息ID
} }
}) })
...@@ -172,7 +174,8 @@ export default function initApp() { ...@@ -172,7 +174,8 @@ export default function initApp() {
wx.miniProgram.postMessage({ wx.miniProgram.postMessage({
data: { data: {
type: 'share', type: 'share',
shareData: JSON.stringify(shareInfo) shareData: JSON.stringify(shareInfo),
messageId: nanoid() // 唯一消息ID
} }
}) })
...@@ -214,7 +217,8 @@ export default function initApp() { ...@@ -214,7 +217,8 @@ export default function initApp() {
wx.miniProgram.postMessage({ wx.miniProgram.postMessage({
data: { data: {
type: 'share', type: 'share',
shareData: JSON.stringify(shareInfo) shareData: JSON.stringify(shareInfo),
messageId: nanoid() // 唯一消息ID
} }
}) })
......
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