Commit 4201cda1 by yuzhenWang

发布测试

parent 721bc2e5
...@@ -43,5 +43,18 @@ ...@@ -43,5 +43,18 @@
<!--app-html--> <!--app-html-->
</div> </div>
<script type="module" src="/main.js"></script> <script type="module" src="/main.js"></script>
<!-- uni 的 SDK,必须引用。 -->
<script type="text/javascript" src="./static/uni.webview.1.5.4.js"></script>
<script type="text/javascript">
// 验证脚本是否加载成功(调试关键:控制台打印 webViewJs 确认)
const webViewJs = window.uni?.webView;
if (!webViewJs) {
console.error('uni.webview.js 加载失败!请检查路径是否正确');
} else {
console.log('uni.webview.js 加载成功', webViewJs);
// 将 webViewJs 挂载到 window 全局,供 Vue 组件访问
window.webViewJs = webViewJs;
}
</script>
</body> </body>
</html> </html>
\ No newline at end of file
<template> <template>
<view class="container"> <view class="container">
<!-- 禁用弹窗 --> <!-- 禁用弹窗 -->
<restrictedTip <restrictedTip ref="restrictedOrCanelTip" :showCode="showCode" confirmText="前往首页"
ref="restrictedOrCanelTip" :content="restrictedOrCanelContent" @confirm="gotoIndex()" />
:showCode="showCode" <image class="imgbox" src="../assets/images/bg1.jpg" mode="widthFix"></image>
confirmText="前往首页"
:content="restrictedOrCanelContent"
@confirm="gotoIndex()"
/>
<image
class="imgbox"
src="../assets/images/applyBg.png"
mode="widthFix"
></image>
<view class="wapper"> <view class="wapper">
<view style="flex: 1;"> <view style="flex: 1;">
<!-- <view class="header">
<view class="one">
合伙人加盟
</view>
<view class="two">
优质资源,专业服务
</view>
</view> -->
<view class="header"> <view class="header">
<view class="headerLeft">
<view class="one"> <view class="one">
合伙人加盟 合伙人加盟
</view> </view>
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
优质资源,专业服务 优质资源,专业服务
</view> </view>
</view> </view>
<view class="headerRight">
<image class="headerImg" src="@/static/suplogo.png" mode="widthFix"></image>
</view>
</view>
<view class="applyBox"> <view class="applyBox">
<view style="height: 550rpx;"> <view style="height: 550rpx;">
<view class="inputBox"> <view class="inputBox">
...@@ -31,13 +34,8 @@ ...@@ -31,13 +34,8 @@
<text class="require">*</text>昵称 <text class="desTxt">(用于邀请好友及统计业绩显示)</text> <text class="require">*</text>昵称 <text class="desTxt">(用于邀请好友及统计业绩显示)</text>
</view> </view>
<view class=""> <view class="">
<input <input class="user-input" maxlength="10" type="text" placeholder="请输入2~10个字符"
class="user-input" v-model="form.nickName" />
maxlength="10"
type="text"
placeholder="请输入2~10个字符"
v-model="form.nickName"
/>
</view> </view>
</view> </view>
<view class="inputBox"> <view class="inputBox">
...@@ -45,20 +43,10 @@ ...@@ -45,20 +43,10 @@
<text class="require">*</text>手机号码 <text class="desTxt">(账号唯一标识)</text> <text class="require">*</text>手机号码 <text class="desTxt">(账号唯一标识)</text>
</view> </view>
<view class="codeBox"> <view class="codeBox">
<input <input type="number" class="user-input" name="mobileNo" placeholder="请输入手机号"
type="number" v-model="form.mobile" maxlength="11" :disabled="editMobile" />
class="user-input" <view :class="{'grey':disabledSendBtn}" @click="sendMessage()"
name="mobileNo" v-if="showVerificationCode">
placeholder="请输入手机号"
v-model="form.mobile"
maxlength="11"
:disabled="editMobile"
/>
<view
:class="{'grey':disabledSendBtn}"
@click="sendMessage()"
v-if="showVerificationCode"
>
{{sendCodeHtml}} {{sendCodeHtml}}
</view> </view>
</view> </view>
...@@ -68,14 +56,8 @@ ...@@ -68,14 +56,8 @@
<text class="require">*</text>验证码 <text class="require">*</text>验证码
</view> </view>
<view class=""> <view class="">
<input <input type="number" class="user-input" name="mobileNo" placeholder="请输入短信验证码"
type="number" v-model="form.code" maxlength="6" />
class="user-input"
name="mobileNo"
placeholder="请输入短信验证码"
v-model="form.code"
maxlength="6"
/>
</view> </view>
</view> </view>
<view class="protol"> <view class="protol">
...@@ -93,29 +75,15 @@ ...@@ -93,29 +75,15 @@
</view> </view>
</view> </view>
<view class="footer"> <view class="footer">
银盾家族办公室 银盾家
</view> </view>
</view> </view>
<!-- 已加盟为合伙人提示弹窗组件 --> <!-- 已加盟为合伙人提示弹窗组件 -->
<everyJoinPopup <everyJoinPopup ref="everyJoinPopup" @continue="jumpPage" :showCanel="false" />
ref="everyJoinPopup"
@continue="jumpPage"
:showCanel="false"
/>
<!-- 成功加盟为合伙人提示弹窗组件 --> <!-- 成功加盟为合伙人提示弹窗组件 -->
<everyJoinPopup <everyJoinPopup ref="successJoinPopup" @continue="jumpPage(e)" content="您已加盟为银盾家办合伙人"
ref="successJoinPopup" twoContent='购买一单"财务健康智能体检"即可升级为新锐合伙人,享受组织利益' continueText="前往购买" cancelText="暂不购买,继续浏览" fontColor="#20279B"
@continue="jumpPage(e)" :maskClick="false" icon="icon-dianzan" iconSize='80rpx' :showCanel="true" />
content="您已加盟为银盾家办合伙人"
twoContent='购买一单"YD家庭财务法律卡"即可升级为新锐合伙人,享受组织利益'
continueText="前往购买"
cancelText="暂不购买,继续浏览"
fontColor="#20279B"
:maskClick="false"
icon="icon-dianzan"
iconSize='80rpx'
:showCanel="true"
/>
</view> </view>
</template> </template>
...@@ -128,52 +96,54 @@ ...@@ -128,52 +96,54 @@
import { initJssdkShare, setWechatShare } from '@/util/fiveshare'; import { initJssdkShare, setWechatShare } from '@/util/fiveshare';
import restrictedTip from '@/components/commonPopup/restrictedTip.vue'; import restrictedTip from '@/components/commonPopup/restrictedTip.vue';
export default { export default {
components:{ components: {
everyJoinPopup, everyJoinPopup,
restrictedTip restrictedTip
}, },
data() { data() {
return { return {
companyInfo:environment.companyInfo, companyInfo: environment.companyInfo,
shareURL:environment.shareURL, shareURL: environment.shareURL,
form:{ form: {
mobile:'', mobile: '',
nickName:'', nickName: '',
code:'' code: ''
}, },
agreeFlag:false, agreeFlag: false,
sendCodeHtml:'发送验证码', sendCodeHtml: '发送验证码',
disabledSendBtn:false, disabledSendBtn: false,
timer:null, timer: null,
remainTimes:60, remainTimes: 60,
loginType:uni.getStorageSync('loginType'), loginType: uni.getStorageSync('loginType'),
userInfo:'', userInfo: '',
userId: uni.getStorageSync('cffp_userId'),//本人id, userId: uni.getStorageSync('cffp_userId'), //本人id,
InviteeUserId:'',//被邀请人id InviteeUserId: '', //被邀请人id
inviteUserId:'',//邀请人id, inviteUserId: '', //邀请人id,
editNickName:false, editNickName: false,
editMobile:false, editMobile: false,
shareId:'',//邀请人分享得id shareId: '', //邀请人分享得id
invitationCode:'',//邀请码 invitationCode: '', //邀请码
showCode:false ,//弹窗是否展示客服二维码 showCode: false, //弹窗是否展示客服二维码
restrictedOrCanelContent:'', //禁用/注销展示文本 restrictedOrCanelContent: '', //禁用/注销展示文本
sharePosterObj:{invitationCode:'',inviteUserId:''},//通过分享海报进来 sharePosterObj: { invitationCode: '', inviteUserId: '' }, //通过分享海报进来
showVerificationCode:false,//验证码是否展示 showVerificationCode: false, //验证码是否展示,
} }
}, },
onLoad(options){
if(uni.getStorageSync('loginType')){ onLoad(options) {
if (uni.getStorageSync('loginType')) {
this.loginType = uni.getStorageSync('loginType') this.loginType = uni.getStorageSync('loginType')
} }
this.inviteUserId = '' this.inviteUserId = ''
if(options.inviteUserId){ if (options.inviteUserId) {
this.inviteUserId = options.inviteUserId this.inviteUserId = options.inviteUserId
} }
if(options.invitationCode){ if (options.invitationCode) {
this.invitationCode = options.invitationCode this.invitationCode = options.invitationCode
} }
// 邀请链接进来的统一走注册加盟 // 邀请链接进来的统一走注册加盟
if(options.shareId){ if (options.shareId) {
this.shareId = options.shareId this.shareId = options.shareId
this.getqueryById(options.shareId) this.getqueryById(options.shareId)
// uni.clearStorageSync() // uni.clearStorageSync()
...@@ -182,56 +152,57 @@ ...@@ -182,56 +152,57 @@
}, },
onShow(){ onShow() {
if(uni.getStorageSync('loginType')){ console.log('onShowloginType', uni.getStorageSync('loginType'));
if (uni.getStorageSync('loginType')) {
this.loginType = uni.getStorageSync('loginType') this.loginType = uni.getStorageSync('loginType')
} }
if(uni.getStorageSync('cffp_userInfo')){ if (uni.getStorageSync('cffp_userInfo')) {
this.userInfo = JSON.parse(uni.getStorageSync('cffp_userInfo')) this.userInfo = JSON.parse(uni.getStorageSync('cffp_userInfo'))
} }
if(uni.getStorageSync('cffp_userId')){ if (uni.getStorageSync('cffp_userId')) {
this.userId = uni.getStorageSync('cffp_userId') this.userId = uni.getStorageSync('cffp_userId')
} }
if(!uni.getStorageSync('loginType') || this.loginType == 'visitor'){ if (!uni.getStorageSync('loginType') || this.loginType == 'visitor') {
this.loginType = 'visitor' this.loginType = 'visitor'
this.checkToken() this.checkToken()
} }
// 非邀请状态 // 非邀请状态
if(!this.shareId&&this.loginType == 'codelogin'&&this.userInfo.mobile){ if (!this.shareId && this.loginType == 'codelogin' && this.userInfo.mobile) {
this.form.mobile = this.userInfo.mobile this.form.mobile = this.userInfo.mobile
this.editMobile = true this.editMobile = true
this.showVerificationCode = false this.showVerificationCode = false
} }
// 非邀请状态 // 非邀请状态
if(!this.shareId&&this.loginType == 'codelogin'&&!this.form.nickName){ if (!this.shareId && this.loginType == 'codelogin' && !this.form.nickName) {
this.queryInfo() this.queryInfo()
} }
// 登录状态 非邀请 // 登录状态 非邀请
if(this.loginType == 'codelogin' && !this.shareId){ if (this.loginType == 'codelogin' && !this.shareId) {
// #ifdef H5 // #ifdef H5
initJssdkShare(() => { initJssdkShare(() => {
setWechatShare(); setWechatShare();
}, window.location.href); }, window.location.href);
// #endif // #endif
}else { } else {
this.showVerificationCode = true this.showVerificationCode = true
} }
}, },
methods: { methods: {
gotoIndex(){ gotoIndex() {
uni.switchTab({ uni.switchTab({
url:'/pages/index/index' url: '/pages/index/index'
}) })
this.$refs.restrictedOrCanelTip.close() this.$refs.restrictedOrCanelTip.close()
}, },
// 未登录状态下需要重新获取token // 未登录状态下需要重新获取token
checkToken(){ checkToken() {
api.checkToken().then(res=>{ api.checkToken().then(res => {
if(res['success']){}else{ if (res['success']) {} else {
api.obtainToken().then(res=>{ api.obtainToken().then(res => {
if(res.success){ if (res.success) {
uni.setStorageSync('uni-token',res.data['token']); uni.setStorageSync('uni-token', res.data['token']);
// #ifdef H5 // #ifdef H5
initJssdkShare(() => { initJssdkShare(() => {
setWechatShare(); setWechatShare();
...@@ -242,10 +213,9 @@ ...@@ -242,10 +213,9 @@
} }
}) })
}, },
getqueryById(shareId){ getqueryById(shareId) {
api.queryById({id:shareId}).then(res =>{ api.queryById({ id: shareId }).then(res => {
console.log('res.data.data',res.data.data);
this.form.nickName = res.data.data.name this.form.nickName = res.data.data.name
this.form.mobile = res.data.data.mobileNumber this.form.mobile = res.data.data.mobileNumber
this.editNickName = this.editMobile = true this.editNickName = this.editMobile = true
...@@ -256,26 +226,28 @@ ...@@ -256,26 +226,28 @@
// return // return
// } // }
// 之前登录过,但和申请加盟的账号不一致 // 之前登录过,但和申请加盟的账号不一致
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')
this.loginType = 'visitor'
return return
} }
if(res.data.data.isPartner&& this.loginType == 'codelogin'){ if (res.data.data.isPartner && this.loginType == 'codelogin') {
this.$refs.successJoinPopup.open() this.$refs.successJoinPopup.open()
} }
}) })
}, },
jumpPage(e){ jumpPage(e) {
// e===1时,前往购买;e===2暂不购买;目前全部跳转到首页,不进行判断 // e===1时,前往购买;e===2暂不购买;目前全部跳转到首页,不进行判断
uni.switchTab({ uni.switchTab({
url:'/pages/index/index' url: '/pages/index/index'
}) })
this.$refs.successJoinPopup.close() this.$refs.successJoinPopup.close()
this.$refs.everyJoinPopup.close() this.$refs.everyJoinPopup.close()
}, },
getFile(type){ getFile(type) {
let typeName = type==1?'服务协议':type==2?'隐私条款':'' let typeName = type == 1 ? '服务协议' : type == 2 ? '隐私条款' : ''
dataHandling.pocessTracking( dataHandling.pocessTracking(
'查看协议', '查看协议',
`查看${typeName}`, `查看${typeName}`,
...@@ -285,11 +257,11 @@ ...@@ -285,11 +257,11 @@
'pages/saleCourseLists/saleCourseLists' 'pages/saleCourseLists/saleCourseLists'
) )
uni.navigateTo({ uni.navigateTo({
url:`/myPackageA/ruleAndContract/clause?type=${type}` url: `/myPackageA/ruleAndContract/clause?type=${type}`
}) })
}, },
c_agreeFlag(){ c_agreeFlag() {
this.agreeFlag=!this.agreeFlag; this.agreeFlag = !this.agreeFlag;
}, },
delayTime() { delayTime() {
...@@ -305,90 +277,95 @@ ...@@ -305,90 +277,95 @@
} }
}, 1000); }, 1000);
}, },
sendMessage(){ sendMessage() {
const params = { const params = {
mobileNo:this.form.mobile, mobileNo: this.form.mobile,
type:"1", type: "1",
source: "cffp" source: "cffp"
} }
if(common.mobileNoValid(this.form.mobile)){ if (common.mobileNoValid(this.form.mobile)) {
if(!this.disabledSendBtn){ if (!this.disabledSendBtn) {
api.verificationCode(params).then((res)=>{ api.verificationCode(params).then((res) => {
if(res['success']){ if (res['success']) {
this.delayTime() this.delayTime()
}else{ } else {
common.errorDialog(2,res['message']) common.errorDialog(2, res['message'])
} }
}) })
} }
}else{ } else {
common.errorDialog(2,'请填写手机号') common.errorDialog(2, '请填写手机号')
} }
}, },
gotoApply(){ gotoApply: dataHandling.debounce(function () {
if(uni.getStorageSync('sharePosterObj')){ uni.showLoading({
title: '申请中...'
});
if (uni.getStorageSync('sharePosterObj')) {
this.sharePosterObj = uni.getStorageSync('sharePosterObj') this.sharePosterObj = uni.getStorageSync('sharePosterObj')
} }
console.log('this.sharePosterObj',this.sharePosterObj) console.log('this.sharePosterObj', this.sharePosterObj)
// 登录并且是禁用状态 // 登录并且是禁用状态
if(this.loginType == 'codelogin'&& this.userInfo.userIsActive == 2){ if (this.loginType == 'codelogin' && this.userInfo.userIsActive == 2) {
this.showCode = true this.showCode = true
this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况' this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况'
this.$refs.restrictedOrCanelTip.open() this.$refs.restrictedOrCanelTip.open()
return return
} }
// 登录并且是注销状态 前端不判断,通过申请加盟的接口判断 // 登录并且是注销状态 前端不判断,通过申请加盟的接口判断
if(!this.form.nickName){ if (!this.form.nickName) {
common.errorDialog(1,'请输入昵称'); common.errorDialog(1, '请输入昵称');
return false; return false;
} }
if(this.form.nickName&&this.form.nickName.length<2){ if (this.form.nickName && this.form.nickName.length < 2) {
common.errorDialog(1,'昵称长度为2~10个字符'); common.errorDialog(1, '昵称长度为2~10个字符');
return return
} }
if(!this.form.mobile){ if (!this.form.mobile) {
common.errorDialog(1,'请输入手机号'); common.errorDialog(1, '请输入手机号');
return false; return false;
} }
if(!common.mobileNoValid(this.form.mobile)){ if (!common.mobileNoValid(this.form.mobile)) {
common.errorDialog(2,'手机号格式填写错误'); common.errorDialog(2, '手机号格式填写错误');
return false; return false;
} }
if(!this.loginType || this.loginType=== 'visitor'){ if (!this.loginType || this.loginType === 'visitor') {
if(!this.form.code){ if (!this.form.code) {
common.errorDialog(1,'请输入验证码'); common.errorDialog(1, '请输入验证码');
return false; return false;
} }
} }
if(!this.agreeFlag){ if (!this.agreeFlag) {
uni.showToast({ uni.showToast({
title: '请阅读并勾选'+`${this.companyInfo.companyFullName}`+'服务协议和隐私条款', title: '请阅读并勾选' + `${this.companyInfo.companyFullName}` + '服务协议和隐私条款',
duration: 3000, duration: 3000,
icon: 'none' icon: 'none'
}) })
return false; return false;
} }
const params = { const params = {
loginType:'3', loginType: '3',
...this.form ...this.form
} }
if(this.loginType == 'codelogin'){ if (this.loginType == 'codelogin') {
this.getApply() this.getApply()
uni.hideLoading()
return return
} }
if(!this.loginType || this.loginType == 'visitor'){ if (!this.loginType || this.loginType == 'visitor') {
api.loginVerification(params).then((res)=>{ api.loginVerification(params).then((res) => {
if(res['success']){ uni.hideLoading()
if (res['success']) {
// 不能登录并且是禁用状态 // 不能登录并且是禁用状态
if(res.data.userIsActive == 2){ if (res.data.userIsActive == 2) {
this.showCode = true this.showCode = true
this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况' this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况'
this.$refs.restrictedOrCanelTip.open() this.$refs.restrictedOrCanelTip.open()
return return
} }
this.userId = String(res['data']['userId']); this.userId = String(res['data']['userId']);
uni.setStorageSync('isLogin','1'); uni.setStorageSync('isLogin', '1');
uni.setStorageSync('loginType','codelogin'); uni.setStorageSync('loginType', 'codelogin');
uni.setStorageSync('cffp_userId', this.userId); uni.setStorageSync('cffp_userId', this.userId);
uni.setStorageSync('uni-token', res.data['token']); uni.setStorageSync('uni-token', res.data['token']);
this.queryInfo() this.queryInfo()
...@@ -403,16 +380,16 @@ ...@@ -403,16 +380,16 @@
// return // return
// } // }
// 是合伙人就不让在加盟 // 是合伙人就不让在加盟
if(res.data.isPartner && res.data.partnerIsActive==1){ if (res.data.isPartner && res.data.partnerIsActive == 1) {
this.$refs.everyJoinPopup.open() this.$refs.everyJoinPopup.open()
return return
} }
// 不是合伙人就加盟 // 不是合伙人就加盟
if(!res.data.isPartner && res.data.partnerIsActive!=1){ if (!res.data.isPartner && res.data.partnerIsActive != 1) {
this.getApply() this.getApply()
} }
}else{ } else {
uni.showToast({ uni.showToast({
title: res['message'], title: res['message'],
duration: 2000, duration: 2000,
...@@ -423,16 +400,116 @@ ...@@ -423,16 +400,116 @@
} }
}, }, 500),
// gotoApply() {
// // this.loginType = uni.getStorageSync('loginType')
// if (uni.getStorageSync('sharePosterObj')) {
// this.sharePosterObj = uni.getStorageSync('sharePosterObj')
// }
// console.log('this.sharePosterObj', this.sharePosterObj)
// // 登录并且是禁用状态
// if (this.loginType == 'codelogin' && this.userInfo.userIsActive == 2) {
// this.showCode = true
// this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况'
// this.$refs.restrictedOrCanelTip.open()
// return
// }
// // 登录并且是注销状态 前端不判断,通过申请加盟的接口判断
// if (!this.form.nickName) {
// common.errorDialog(1, '请输入昵称');
// return false;
// }
// if (this.form.nickName && this.form.nickName.length < 2) {
// common.errorDialog(1, '昵称长度为2~10个字符');
// return
// }
// if (!this.form.mobile) {
// common.errorDialog(1, '请输入手机号');
// return false;
// }
// if (!common.mobileNoValid(this.form.mobile)) {
// common.errorDialog(2, '手机号格式填写错误');
// return false;
// }
// if (!this.loginType || this.loginType === 'visitor') {
// if (!this.form.code) {
// common.errorDialog(1, '请输入验证码');
// return false;
// }
// }
// if (!this.agreeFlag) {
// uni.showToast({
// title: '请阅读并勾选' + `${this.companyInfo.companyFullName}` + '服务协议和隐私条款',
// duration: 3000,
// icon: 'none'
// })
// return false;
// }
// const params = {
// loginType: '3',
// ...this.form
// }
// if (this.loginType == 'codelogin') {
// this.getApply()
// return
// }
// if (!this.loginType || this.loginType == 'visitor') {
// api.loginVerification(params).then((res) => {
// if (res['success']) {
// // 不能登录并且是禁用状态
// if (res.data.userIsActive == 2) {
// this.showCode = true
// this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况'
// this.$refs.restrictedOrCanelTip.open()
// return
// }
// this.userId = String(res['data']['userId']);
// uni.setStorageSync('isLogin', '1');
// uni.setStorageSync('loginType', 'codelogin');
// uni.setStorageSync('cffp_userId', this.userId);
// uni.setStorageSync('uni-token', res.data['token']);
// this.queryInfo()
// // 禁用和注销状态并存,以禁用为准
// // 已经进行过注销操作的, 弹窗提示90天内不可再次申请加盟为合伙人
// // partnerIsActive 合伙人状态:1签约,2解约,3为加盟 ;解约过的合伙人状态一直为解约,直到下次签约成功才会改变
// // 登录并且是注销状态 前端不判断,通过申请加盟的接口判断
// // if(res.data.partnerIsActive==2){
// // this.showCode = false
// // this.restrictedOrCanelContent = '90天内不可再次申请加盟为合伙人'
// // this.$refs.restrictedOrCanelTip.open()
// // return
// // }
// // 是合伙人就不让在加盟
// if (res.data.isPartner && res.data.partnerIsActive == 1) {
// this.$refs.everyJoinPopup.open()
// return
// }
// // 不是合伙人就加盟
// if (!res.data.isPartner && res.data.partnerIsActive != 1) {
// this.getApply()
// }
// } else {
// uni.showToast({
// title: res['message'],
// duration: 2000,
// icon: 'none'
// })
// }
// })
// }
// },
queryInfo() { queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{ api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
// 保存用户得个人信息 // 保存用户得个人信息
if (res['success']) { if (res['success']) {
this.form.nickName = res['data']['nickName'] this.form.nickName = res['data']['nickName']
if(this.form.nickName){ if (this.form.nickName) {
this.editNickName = true this.editNickName = true
}else { } else {
this.editNickName = false this.editNickName = false
} }
delete res.data.commonResult delete res.data.commonResult
...@@ -442,39 +519,41 @@ ...@@ -442,39 +519,41 @@
uni.setStorageSync('cffp_userInfo', JSON.stringify(cffp_userInfo)) uni.setStorageSync('cffp_userInfo', JSON.stringify(cffp_userInfo))
uni.setStorageSync('user_mobile', cffp_userInfo.mobile) uni.setStorageSync('user_mobile', cffp_userInfo.mobile)
}else { } else {
uni.setStorageSync('loginType', 'visitor') uni.setStorageSync('loginType', 'visitor')
this.loginType = 'visitor'
} }
}) })
}, },
// 申请加盟 // 申请加盟
getApply(){ getApply() {
console.log('login状态', this.loginType);
let params = {} let params = {}
if(this.shareId){ if (this.shareId) {
params = { params = {
applyType:'1', applyType: '1',
applyUserId:this.userId, applyUserId: this.userId,
applyMobile:this.form.mobile, applyMobile: this.form.mobile,
inviteUserId:this.inviteUserId, inviteUserId: this.inviteUserId,
nickName:this.form.nickName, nickName: this.form.nickName,
inviterInvitationCode:this.invitationCode, inviterInvitationCode: this.invitationCode,
shareId:this.shareId shareId: this.shareId
} }
}else { } else {
params = { params = {
applyType:'2', applyType: '2',
applyUserId:this.userId, applyUserId: this.userId,
applyMobile:this.form.mobile, applyMobile: this.form.mobile,
nickName:this.form.nickName, nickName: this.form.nickName,
inviteUserId:this.sharePosterObj.inviteUserId, inviteUserId: this.sharePosterObj.inviteUserId,
invitationCode:this.sharePosterObj.invitationCode invitationCode: this.sharePosterObj.invitationCode
} }
} }
api.newSaveApplyInfo(params).then((res)=>{ api.newSaveApplyInfo(params).then((res) => {
if(res['success']){ if (res['success']) {
// 是合伙人就不让在加盟 // 是合伙人就不让在加盟
if(res.data.isPartner){ if (res.data.isPartner) {
this.$refs.everyJoinPopup.open() this.$refs.everyJoinPopup.open()
return return
} }
...@@ -487,7 +566,7 @@ ...@@ -487,7 +566,7 @@
'pages/saleCourseLists/saleCourseLists' 'pages/saleCourseLists/saleCourseLists'
) )
this.$refs.successJoinPopup.open() this.$refs.successJoinPopup.open()
}else{ } else {
// 由于注销需求,依据后端报错展示弹窗 // 由于注销需求,依据后端报错展示弹窗
this.showCode = false this.showCode = false
this.restrictedOrCanelContent = res['message'] this.restrictedOrCanelContent = res['message']
...@@ -503,17 +582,20 @@ ...@@ -503,17 +582,20 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .uni-radio-input{ ::v-deep .uni-radio-input {
// background-color: #20279B !important; // background-color: #20279B !important;
// border-color: #20279B !important; // border-color: #20279B !important;
} }
.container{
.container {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
.imgbox{
.imgbox {
display: block; display: block;
} }
.wapper{
.wapper {
// background-color: pink; // background-color: pink;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
...@@ -524,77 +606,121 @@ ...@@ -524,77 +606,121 @@
height: 100%; height: 100%;
width: 100%; width: 100%;
padding: 0 50rpx; padding: 0 50rpx;
.header{ // .header{
// color: #333333;
// margin-top: 140rpx;
// .one{
// font-size: 60rpx;
// font-weight: 700;
// }
// .two{
// font-size: 30rpx;
// font-weight: 500;
// }
// }
.header {
display: flex;
align-items: center;
justify-content: space-between;
color: #333333; color: #333333;
margin-top: 140rpx;
.one{ margin-top: 30rpx;
.one {
font-size: 60rpx; font-size: 60rpx;
font-weight: 700; font-weight: 700;
margin-bottom: 20rpx;
} }
.two{
.two {
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
} }
.headerRight {
width: 300rpx;
} }
.applyBox{
}
.headerImg {
width: 300rpx;
height: 300rpx;
opacity: .5;
}
.applyBox {
background-color: #fff; background-color: #fff;
padding: 30rpx; padding: 30rpx;
border-radius: 20rpx; border-radius: 20rpx;
margin-top: 100rpx; // margin-top: 100rpx;
box-sizing: border-box; box-sizing: border-box;
.inputBox{
.inputBox {
margin-bottom: 20rpx; margin-bottom: 20rpx;
padding-bottom: 10rpx; padding-bottom: 10rpx;
border-bottom: 1rpx solid #E8E8E8; border-bottom: 1rpx solid #E8E8E8;
.require{
.require {
font-size: 24rpx; font-size: 24rpx;
color: red; color: red;
} }
.desTxt{
.desTxt {
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
} }
.user-input{
.user-input {
color: black; color: black;
font-size: 26rpx; font-size: 26rpx;
margin-top: 15rpx; margin-top: 15rpx;
} }
.codeBox{
.codeBox {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
color: #20279B; color: #20279B;
font-size: 26rpx; font-size: 26rpx;
.grey{
color: rgba(32, 39, 155, 0.5); /* 50% 透明 */ .grey {
color: rgba(32, 39, 155, 0.5);
/* 50% 透明 */
} }
} }
} }
.agreeBox{
.agreeBox {
padding-top: 20rpx; padding-top: 20rpx;
font-size: 26rpx; font-size: 26rpx;
color:#20279B ; color: #20279B;
} }
.protol{
.protol {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 26rpx; font-size: 26rpx;
.empty{
.empty {
width: 30rpx; width: 30rpx;
height: 30rpx; height: 30rpx;
border: 1rpx solid #20269B; border: 1rpx solid #20269B;
border-radius: 50%; border-radius: 50%;
margin-right: 5rpx; margin-right: 5rpx;
} }
.icon-icon_duihao-mian{
.icon-icon_duihao-mian {
font-size: 30rpx; font-size: 30rpx;
color: #20269B; color: #20269B;
margin-right: 5rpx; margin-right: 5rpx;
} }
} }
.btnBox{
.btnBox {
box-sizing: border-box; box-sizing: border-box;
width: 80%; width: 80%;
text-align: center; text-align: center;
...@@ -606,7 +732,8 @@ ...@@ -606,7 +732,8 @@
margin: 0rpx 50rpx 30rpx 50rpx; margin: 0rpx 50rpx 30rpx 50rpx;
} }
} }
.footer{
.footer {
font-size: 28rpx; font-size: 28rpx;
color: rgba(0, 0, 0, .5); color: rgba(0, 0, 0, .5);
width: 100%; width: 100%;
...@@ -616,5 +743,5 @@ ...@@ -616,5 +743,5 @@
letter-spacing: 8rpx; letter-spacing: 8rpx;
} }
} }
} }
</style> </style>
\ No newline at end of file
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
<view class="courseTitleContent"> <view class="courseTitleContent">
<view class="courseTitle"> <view class="courseTitle">
<view class="" style="width: 100%;"> <view class="" style="width: 100%;">
<h4>{{courseInfo.fileSynopsis}}</h4> <h4>{{courseInfo.fileTitle}}</h4>
<view>{{courseInfo.fileTitle}}</view> <view>{{courseInfo.fileSynopsis}}</view>
</view> </view>
</view> </view>
......
...@@ -90,10 +90,10 @@ ...@@ -90,10 +90,10 @@
</view> </view>
<view class="right"> <view class="right">
<view class="one"> <view class="one">
{{item.fileSynopsis}} {{item.fileTitle}}
</view> </view>
<view class="two"> <view class="two">
{{item.fileTitle}} {{item.fileSynopsis}}
</view> </view>
<view class="three"> <view class="three">
<text style="font-size: 28rpx;color: rgba(32, 39, 155, 1);">{{Number(item.coursePrice).toFixed(2)}}</text> <text style="font-size: 28rpx;color: rgba(32, 39, 155, 1);">{{Number(item.coursePrice).toFixed(2)}}</text>
......
...@@ -575,7 +575,7 @@ ...@@ -575,7 +575,7 @@
if(this.cffpCourseInfos.length>0){ if(this.cffpCourseInfos.length>0){
this.cffpCourseInfos.forEach(item=>{ this.cffpCourseInfos.forEach(item=>{
item.coursePrice =Number(item.coursePrice).toFixed(2) || '0.00' item.coursePrice =Number(item.coursePrice).toFixed(2) || '0.00'
if(item.productCode&&item.productCode=='C09'){ if(item.productCode&&item.productCode=='ZNTJ'){
this.productItem = item this.productItem = item
uni.setStorageSync('productItem',this.productItem ); uni.setStorageSync('productItem',this.productItem );
} }
...@@ -743,7 +743,7 @@ ...@@ -743,7 +743,7 @@
let result = res['data']['data']; let result = res['data']['data'];
if(result.length>0){ if(result.length>0){
result.forEach(item=>{ result.forEach(item=>{
if(item.productCode&&item.productCode=='C09'){ if(item.productCode&&item.productCode=='ZNTJ'){
this.productItem = item this.productItem = item
uni.setStorageSync('productItem',this.productItem ); uni.setStorageSync('productItem',this.productItem );
} }
......
...@@ -7,22 +7,11 @@ ...@@ -7,22 +7,11 @@
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<view class="generateImageBox" v-if="!generatedImage"> <view class="generateImageBox" v-if="!generatedImage">
<view class="imgBox" ref="captureElement"> <view class="imgBox" ref="captureElement">
<img <img v-if="posterImg" class="posterImg" @load="handleBgImageLoad" @error="handleBgImageError"
v-if="posterImg" style="display: block;" src="@/static/images/sharePoster.png" crossorigin="anonymous" alt="防缓存图片" />
class="posterImg"
@load="handleBgImageLoad"
@error="handleBgImageError"
style="display: block;"
src="@/static/images/sharePoster.png"
crossorigin="anonymous"
alt="防缓存图片"
/>
<view class="qrcode-container"> <view class="qrcode-container">
<canvas <canvas canvas-id="qrcode" class="qrcode-canvas"
canvas-id="qrcode" :style="{width: qrCodeSize + 'px', height: qrCodeSize + 'px'}"></canvas>
class="qrcode-canvas"
:style="{width: qrCodeSize + 'px', height: qrCodeSize + 'px'}"
></canvas>
</view> </view>
</view> </view>
</view> </view>
...@@ -39,13 +28,8 @@ ...@@ -39,13 +28,8 @@
<view class="liBox"> <view class="liBox">
<text>昵称 <text style="font-size: 22rpx;">(被邀请人可修改)</text></text> <text>昵称 <text style="font-size: 22rpx;">(被邀请人可修改)</text></text>
<text> <text>
<input <input v-model="dataForm.name" class="uni-input" maxlength="10" placeholder="昵称"
v-model="dataForm.name" style="width: 300rpx;" />
class="uni-input"
maxlength="10"
placeholder="昵称"
style="width: 300rpx;"
/>
</text> </text>
</view> </view>
<view class="liBox"> <view class="liBox">
...@@ -55,16 +39,8 @@ ...@@ -55,16 +39,8 @@
</view> </view>
</view> </view>
<!-- <share></share> --> <!-- <share></share> -->
<button <button type="primary" plain="true" class="sendInvite" @click="shareToggle()">
type="primary" <loadingIcon :loading="isLoading" v-if="isLoading" />
plain="true"
class="sendInvite"
@click="shareToggle()"
>
<loadingIcon
:loading="isLoading"
v-if="isLoading"
/>
<text style="margin-left: 5rpx;">发出邀请</text> <text style="margin-left: 5rpx;">发出邀请</text>
</button> </button>
</view> </view>
...@@ -128,12 +104,8 @@ ...@@ -128,12 +104,8 @@
</view> </view>
</view> </view>
<!-- 海报弹窗 --> <!-- 海报弹窗 -->
<sharePosterPop <sharePosterPop ref="sharePosterPop" :generatedImage="generatedImage" @closePoster="closePoster"
ref="sharePosterPop" btnBottom="-15%"></sharePosterPop>
:generatedImage="generatedImage"
@closePoster="closePoster"
btnBottom="-15%"
></sharePosterPop>
</view> </view>
</template> </template>
...@@ -141,20 +113,20 @@ ...@@ -141,20 +113,20 @@
import dataHandling from "@/util/dataHandling"; import dataHandling from "@/util/dataHandling";
import api from "@/api/api" import api from "@/api/api"
import common from '../../common/common'; import common from '../../common/common';
import {hshare ,setWechatShare,initJssdkShare} from '@/util/fiveshare'; import { hshare, setWechatShare, initJssdkShare } from '@/util/fiveshare';
import {baseURL,apiURL,cffpURL,companyInfo,shareURL} from "@/environments/environment"; import { baseURL, apiURL, cffpURL, companyInfo, shareURL } from "@/environments/environment";
import sharePosterPop from '@/components/commonPopup/sharePosterPop.vue'; import sharePosterPop from '@/components/commonPopup/sharePosterPop.vue';
import UQRCode from 'uqrcodejs'; import UQRCode from 'uqrcodejs';
import { elementToImage } from '@/util/htmlToImage'; import { elementToImage } from '@/util/htmlToImage';
import loadingIcon from '@/components/loading/loading.vue'; import loadingIcon from '@/components/loading/loading.vue';
export default { export default {
components:{ components: {
sharePosterPop, sharePosterPop,
loadingIcon loadingIcon
}, },
data() { data() {
return { return {
companyType:companyInfo.companyType, companyType: companyInfo.companyType,
ydLogoShare: `${shareURL}/static/suplogo.png`, ydLogoShare: `${shareURL}/static/suplogo.png`,
dataForm: { dataForm: {
applyType: '1', //申请类型邀请加盟传 1 申请加盟传 2 applyType: '1', //申请类型邀请加盟传 1 申请加盟传 2
...@@ -183,11 +155,11 @@ ...@@ -183,11 +155,11 @@
partnerLevel: '', partnerLevel: '',
invitationCode: '', invitationCode: '',
shareTipsFlag: false, shareTipsFlag: false,
qrCodeUrl:'/myPackageA/applyFranchise/applyFranchise', qrCodeUrl: '/myPackageA/applyFranchise/applyFranchise',
qrCodeSize: 80,//二维码的尺寸 qrCodeSize: 80, //二维码的尺寸
generatedImage:'',//生成的海报图片 generatedImage: '', //生成的海报图片
companyLogo : '../../static/suplogo.png', companyLogo: '../../static/suplogo.png',
posterImg:'', posterImg: '',
isLoading: false isLoading: false
}; };
...@@ -197,24 +169,24 @@ ...@@ -197,24 +169,24 @@
//this.partnerLevel = option.levelCode //this.partnerLevel = option.levelCode
this.partnerLevel = 'P1' this.partnerLevel = 'P1'
//this.getqueryOrgList() //this.getqueryOrgList()
if(this.companyType == '1'){ if (this.companyType == '1') {
this.ydLogoShare = `${shareURL}/static/cffp_logo.jpg`; this.ydLogoShare = `${shareURL}/static/cffp_logo.jpg`;
}else { } else {
this.ydLogoShare = `${shareURL}/static/suplogo.png`; this.ydLogoShare = `${shareURL}/static/suplogo.png`;
} }
if(companyInfo.companyType == '1'){ if (companyInfo.companyType == '1') {
this.companyLogo='../../static/myteam/Group1633.png'; this.companyLogo = '../../static/myteam/Group1633.png';
}else if(this.companyType == '2'){ } else if (this.companyType == '2') {
this.companyLogo='../../static/suplogo.png'; this.companyLogo = '../../static/suplogo.png';
} }
let dataForm = JSON.parse(uni.getStorageSync('cffp_userInfo')) let dataForm = JSON.parse(uni.getStorageSync('cffp_userInfo'))
this.realName = dataForm.realName || dataForm.nickName; this.realName = dataForm.realName || dataForm.nickName;
this.invitationCode = dataForm.invitationCode this.invitationCode = dataForm.invitationCode
if(!this.realName){ if (!this.realName) {
this.queryInfo(); this.queryInfo();
} }
}, },
onShow(){ onShow() {
this.isLoading = false this.isLoading = false
this.posterImg = '' this.posterImg = ''
this.generatedImage = '' this.generatedImage = ''
...@@ -225,7 +197,7 @@ ...@@ -225,7 +197,7 @@
// #endif // #endif
}, },
onHide() { onHide() {
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.sharePosterPop.closeDropdown() this.$refs.sharePosterPop.closeDropdown()
}) })
}, },
...@@ -235,15 +207,15 @@ ...@@ -235,15 +207,15 @@
delta: 1 delta: 1
}) })
}, },
queryInfo(){ queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{ api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
if(res['success']){ if (res['success']) {
delete res.data.commonResult delete res.data.commonResult
const cffp_userInfo = { const cffp_userInfo = {
...res.data ...res.data
} }
uni.setStorageSync('cffp_userInfo', JSON.stringify(cffp_userInfo)) uni.setStorageSync('cffp_userInfo', JSON.stringify(cffp_userInfo))
this.realName = res.data.realName ||res.data.nickName ; this.realName = res.data.realName || res.data.nickName;
this.invitationCode = res.data.invitationCode; this.invitationCode = res.data.invitationCode;
} }
}) })
...@@ -322,12 +294,28 @@ ...@@ -322,12 +294,28 @@
// #ifdef APP-PLUS // #ifdef APP-PLUS
this.$refs.share.open() this.$refs.share.open()
// #endif // #endif
// if (typeof wx !== 'undefined' && wx.miniProgram) {
// console.log('wx',wx.miniProgram);
// wx.miniProgram.postMessage({
// data: {
// type: 'requestShare',
// title: '银盾家办家庭财务策划师联盟邀您加入',
// desc: `${this.realName}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
// path: shareURL +
// "/myPackageA/applyFranchise/applyFranchise?shareId=" + this
// .shareId + '&invitationCode=' + this.invitationCode +
// '&inviteUserId=' + this.userId, //分享链接
// }
// });
// return
// }
//#ifdef H5 //#ifdef H5
// 小程序跳cffp得分享 // 小程序跳cffp得分享
if(uni.getStorageSync('mpCffp')){ if (uni.getStorageSync('mpCffp')) {
this.qrCodeUrl = shareURL + this.qrCodeUrl = shareURL +
"/myPackageA/applyFranchise/applyFranchise?shareId=" + "/myPackageA/applyFranchise/applyFranchise?shareId=" +
this.shareId + '&invitationCode=' + this.invitationCode+ '&inviteUserId=' + this.userId, //分享链接 this.shareId + '&invitationCode=' + this.invitationCode + '&inviteUserId=' +
this.userId, //分享链接
this.posterImg = '@/static/images/sharePoster.png' this.posterImg = '@/static/images/sharePoster.png'
this.isLoading = true this.isLoading = true
return return
...@@ -335,7 +323,7 @@ ...@@ -335,7 +323,7 @@
this.shareTipsFlag = true; this.shareTipsFlag = true;
this.getshareData() this.getshareData()
// #endif // #endif
}else{ } else {
uni.showToast({ uni.showToast({
title: res['message'], title: res['message'],
duration: 2000, duration: 2000,
...@@ -349,7 +337,7 @@ ...@@ -349,7 +337,7 @@
}, },
getshareData() { getshareData() {
if(!this.realName){ if (!this.realName) {
this.realName = "" this.realName = ""
} }
let data = { let data = {
...@@ -358,7 +346,8 @@ ...@@ -358,7 +346,8 @@
desc: `${this.realName}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`, desc: `${this.realName}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
link: shareURL + link: shareURL +
"/myPackageA/applyFranchise/applyFranchise?shareId=" + "/myPackageA/applyFranchise/applyFranchise?shareId=" +
this.shareId + '&invitationCode=' + this.invitationCode+ '&inviteUserId=' + this.userId, //分享链接 this.shareId + '&invitationCode=' + this.invitationCode + '&inviteUserId=' + this
.userId, //分享链接
imgUrl: this.ydLogoShare, //图片 imgUrl: this.ydLogoShare, //图片
//imgUrl: `${baseURL}/static/cffp_logo.jpg`, //图片 //imgUrl: `${baseURL}/static/cffp_logo.jpg`, //图片
} }
...@@ -407,10 +396,10 @@ ...@@ -407,10 +396,10 @@
// #endif // #endif
}, },
uniShare(type) { uniShare(type) {
if(!this.realName){ if (!this.realName) {
this.realName = "" this.realName = ""
} }
let typeName = type == 1?'微信好友':'朋友圈' let typeName = type == 1 ? '微信好友' : '朋友圈'
dataHandling.pocessTracking( dataHandling.pocessTracking(
'邀请', '邀请',
`向${typeName}发出邀请`, `向${typeName}发出邀请`,
...@@ -571,7 +560,7 @@ ...@@ -571,7 +560,7 @@
const element = this.$refs.captureElement.$el; const element = this.$refs.captureElement.$el;
// 调用工具函数生成图片 // 调用工具函数生成图片
const imageData = await elementToImage(element); const imageData = await elementToImage(element);
this.generatedImage=imageData this.generatedImage = imageData
this.isLoading = false this.isLoading = false
this.$refs.sharePosterPop.toggleDropdown() this.$refs.sharePosterPop.toggleDropdown()
...@@ -587,7 +576,7 @@ ...@@ -587,7 +576,7 @@
} }
}, },
// 关闭海报弹窗 // 关闭海报弹窗
closePoster(){ closePoster() {
this.posterImg = '' this.posterImg = ''
this.generatedImage = '' this.generatedImage = ''
} }
...@@ -599,9 +588,10 @@ ...@@ -599,9 +588,10 @@
.container { .container {
position: relative; position: relative;
height: 100vh; height: 100vh;
.generateImageBox{
.generateImageBox {
position: absolute; position: absolute;
top:-100%; top: -100%;
z-index: -1; z-index: -1;
border-radius: 20rpx; border-radius: 20rpx;
width: 100%; width: 100%;
...@@ -612,16 +602,19 @@ ...@@ -612,16 +602,19 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
.imgBox{
.imgBox {
position: relative; position: relative;
width: 500rpx; width: 500rpx;
height: 900rpx; height: 900rpx;
box-sizing: border-box; box-sizing: border-box;
.posterImg{
.posterImg {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
} }
.qrcode-container { .qrcode-container {
position: absolute; position: absolute;
bottom: 1%; bottom: 1%;
...@@ -629,7 +622,8 @@ ...@@ -629,7 +622,8 @@
background: #fff; background: #fff;
padding: 10rpx; padding: 10rpx;
border-radius: 10rpx; border-radius: 10rpx;
box-shadow: 0 0 10rpx rgba(0,0,0,0.1); box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
.qrcode-canvas { .qrcode-canvas {
display: block; display: block;
} }
...@@ -639,6 +633,7 @@ ...@@ -639,6 +633,7 @@
} }
.tabTitle { .tabTitle {
color: #666666; color: #666666;
background-color: #fff; background-color: #fff;
...@@ -647,8 +642,10 @@ ...@@ -647,8 +642,10 @@
justify-content: space-around; justify-content: space-around;
padding: 30rpx; padding: 30rpx;
box-sizing: border-box; box-sizing: border-box;
text { text {
font-size: 26rpx; font-size: 26rpx;
&.actived { &.actived {
color: #333; color: #333;
border-bottom: 4rpx solid #20269B; border-bottom: 4rpx solid #20269B;
...@@ -683,6 +680,7 @@ ...@@ -683,6 +680,7 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
font-size: 26rpx; font-size: 26rpx;
&:last-child { &:last-child {
border: none; border: none;
} }
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<!-- 课程详情 --> <!-- 课程详情 -->
<template v-if="courseInfoItem"> <template v-if="courseInfoItem">
<view class="courseItemBox" > <view class="courseItemBox" >
<course-item :thumbnailPath="courseInfoItem.displayImage" :title="courseInfoItem.fileSynopsis" <course-item :thumbnailPath="courseInfoItem.displayImage" :title="courseInfoItem.fileTitle"
:summaryBox="courseInfoItem.fileTitle" :summaryBox="courseInfoItem.fileSynopsis"
:dataList="{coursePrice:courseInfoItem.coursePrice,salesNumber:courseInfoItem.salesNumber}" :dataList="{coursePrice:courseInfoItem.coursePrice,salesNumber:courseInfoItem.salesNumber}"
:fileLecturerId="courseInfoItem.fileLecturerId" :fileId="fileId"></course-item> :fileLecturerId="courseInfoItem.fileLecturerId" :fileId="fileId"></course-item>
</view> </view>
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
{key:'06',title:'邀请加盟',icon:'icon-yaoqing',link:'/pages/inviteJoin/inviteJoin',isOpen:true,isShow:true,identity: true}, {key:'06',title:'邀请加盟',icon:'icon-yaoqing',link:'/pages/inviteJoin/inviteJoin',isOpen:true,isShow:true,identity: true},
// {title:'我的团队',icon:'icon-tuandui',link:'/pages/personalCenter/myTeam',isOpen:true,isShow:true,identity: true}, // {title:'我的团队',icon:'icon-tuandui',link:'/pages/personalCenter/myTeam',isOpen:true,isShow:true,identity: true},
{title:'我的团队',icon:'icon-tuandui',link:'/myPackageA/myTeam/myTeam',isOpen:true,isShow:true,identity: true}, {title:'我的团队',icon:'icon-tuandui',link:'/myPackageA/myTeam/myTeam',isOpen:true,isShow:true,identity: true},
{title:'育成团队',icon:'icon-yuchengguanxi',link:'/pages/personalCenter/myTeamIncubate',isOpen:true,isShow:true,identity: true}, // {title:'育成团队',icon:'icon-yuchengguanxi',link:'/pages/personalCenter/myTeamIncubate',isOpen:true,isShow:true,identity: true},
], ],
},{id:'03',categoryName:'学习研讨', },{id:'03',categoryName:'学习研讨',
children:[ children:[
...@@ -322,7 +322,8 @@ ...@@ -322,7 +322,8 @@
let cffpCourseInfos = res['data']['data']; let cffpCourseInfos = res['data']['data'];
if(cffpCourseInfos.length>0){ if(cffpCourseInfos.length>0){
cffpCourseInfos.forEach(item=>{ cffpCourseInfos.forEach(item=>{
if(item.productCode&&item.productCode=='C09'){
if(item.productCode&&item.productCode=='ZNTJ'){
this.productItem = item this.productItem = item
uni.setStorageSync('productItem',this.productItem ); uni.setStorageSync('productItem',this.productItem );
} }
...@@ -692,7 +693,7 @@ ...@@ -692,7 +693,7 @@
} }
this.inviteEqrode = this.customerBasicInfo.invitationCode; this.inviteEqrode = this.customerBasicInfo.invitationCode;
uni.setStorageSync('user_mobile', res.data.mobile) uni.setStorageSync('user_mobile', res.data.mobile)
console.log('this.mainMenuLists',this.mainMenuLists);
}else { }else {
uni.setStorageSync('loginType','visitor') uni.setStorageSync('loginType','visitor')
...@@ -702,10 +703,7 @@ ...@@ -702,10 +703,7 @@
} }
}) })
}, },
// 获取名片状态
// getCard(){
// }
// 我的名片页面 // 我的名片页面
businessCard(){ businessCard(){
if(!uni.getStorageSync('loginType')||uni.getStorageSync('loginType')=='visitor'){ if(!uni.getStorageSync('loginType')||uni.getStorageSync('loginType')=='visitor'){
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</view> </view>
<!-- #endif --> <!-- #endif -->
<view class="listBox" > <view class="listBox">
<view class="first"> <view class="first">
<view class="top"> <view class="top">
<view class="left"> <view class="left">
...@@ -18,22 +18,20 @@ ...@@ -18,22 +18,20 @@
{{yesExchangeFortune?yesExchangeFortune:'0.00'}} {{yesExchangeFortune?yesExchangeFortune:'0.00'}}
</view> </view>
</view> </view>
<view class="right" @click="toWithdrawal()"> <view class="right" @click="toWithdrawal()" v-if="showWithdrawal">
提现 提现
</view> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="bottomItem" v-for="score in scoreList " :key="score.id"> <view class="bottomItem" v-for="score in scoreList " :key="score.id">
<!-- @click="gotoRecord(score.id)" --> <!-- @click="gotoRecord(score.id)" -->
<view class="one" > <view class="one">
<view <view @click="gotoRecord(score.id)" style="font-size:28rpx;color: rgba(199, 199, 199, 1);">
@click="gotoRecord(score.id)"
style="font-size:28rpx;color: rgba(199, 199, 199, 1);"
>
{{score.name}} {{score.name}}
</view> </view>
<uni-tooltip class="item" :content="score.content" :placement="score.position"> <uni-tooltip class="item" :content="score.content" :placement="score.position">
<text class="iconfont icon-wenhao1" style="margin-left: 3rpx;color: rgba(199, 199, 199, 1);font-size: 28rpx;" ></text> <text class="iconfont icon-wenhao1"
style="margin-left: 3rpx;color: rgba(199, 199, 199, 1);font-size: 28rpx;"></text>
</uni-tooltip> </uni-tooltip>
</view> </view>
<view class="fotter"> <view class="fotter">
...@@ -44,7 +42,7 @@ ...@@ -44,7 +42,7 @@
</view> </view>
</view> </view>
<view class="" style="padding: 0 20rpx;"> <view class="" style="padding: 0 20rpx;">
<view class="two" > <view class="two">
<view class="twoHeader"> <view class="twoHeader">
订单收益明细 订单收益明细
</view> </view>
...@@ -56,13 +54,8 @@ ...@@ -56,13 +54,8 @@
</view> </view>
<view class="filterBox"> <view class="filterBox">
<scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120"> <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120">
<view <view class="scroll-view-item_H uni-bg-blue" v-for="item in commissionTypeList" :key="item.id"
class="scroll-view-item_H uni-bg-blue" :class="{active:item.id == currentFilter.id }" @click="changeFilter(item)">
v-for="item in commissionTypeList"
:key="item.id"
:class="{active:item.id == currentFilter.id }"
@click="changeFilter(item)"
>
{{item.dropOptionName}} {{item.dropOptionName}}
</view> </view>
</scroll-view> </scroll-view>
...@@ -72,20 +65,13 @@ ...@@ -72,20 +65,13 @@
<text style="margin-right: 10rpx;">合计</text> {{sumCommissionAmount}} <text style="margin-right: 10rpx;">合计</text> {{sumCommissionAmount}}
</view> </view>
<view class="totalSelect"> <view class="totalSelect">
<uni-data-select <uni-data-select v-model="selectItem" :localdata="selectList"
v-model="selectItem" @change="getDetail()"></uni-data-select>
:localdata="selectList"
@change="getDetail()"
></uni-data-select>
</view> </view>
</view> </view>
<view class="detailBox" v-if="cffpFortuneDateList.length>0"> <view class="detailBox" v-if="cffpFortuneDateList.length>0">
<view <view class="detailItem" v-for="(item,index) in cffpFortuneDateList" :key="index"
class="detailItem" @click="viewDetail(item)">
v-for="(item,index) in cffpFortuneDateList"
:key="index"
@click="viewDetail(item)"
>
<view class="detailLeft"> <view class="detailLeft">
<view class="txt"> <view class="txt">
{{item.productTypeName}} {{item.productTypeName}}
...@@ -97,8 +83,10 @@ ...@@ -97,8 +83,10 @@
<view class="detailRight"> <view class="detailRight">
<view class=""> <view class="">
<view class="money"> <view class="money">
<text v-if="item.commissionAmount&&item.commissionAmount>0">+{{item.commissionAmount}}</text> <text
<text v-if="item.commissionAmount&&item.commissionAmount<0" style="color: rgba(212, 48, 48, 1);">{{item.commissionAmount}}</text> v-if="item.commissionAmount&&item.commissionAmount>0">+{{item.commissionAmount}}</text>
<text v-if="item.commissionAmount&&item.commissionAmount<0"
style="color: rgba(212, 48, 48, 1);">{{item.commissionAmount}}</text>
</view> </view>
<view style="font-weight: normal;font-size: 26rpx;color: rgba(56, 56, 56, 1);"> <view style="font-weight: normal;font-size: 26rpx;color: rgba(56, 56, 56, 1);">
{{item.exchangeStatus&&item.exchangeStatus=='1'?'待结算' {{item.exchangeStatus&&item.exchangeStatus=='1'?'待结算'
...@@ -124,8 +112,9 @@ ...@@ -124,8 +112,9 @@
</view> </view>
</view> </view>
<uni-popup ref="timePopup" type="bottom" > <uni-popup ref="timePopup" type="bottom">
<customDatePop @closePop="closePop" @comfirm="comfirm" :dateParts="dateParts" :currentItem="currentItem" :childData="childData"></customDatePop> <customDatePop @closePop="closePop" @comfirm="comfirm" :dateParts="dateParts" :currentItem="currentItem"
:childData="childData"></customDatePop>
</uni-popup> </uni-popup>
</view> </view>
...@@ -137,25 +126,25 @@ ...@@ -137,25 +126,25 @@
import dataHandling from "@/util/dataHandling"; import dataHandling from "@/util/dataHandling";
import { initJssdkShare, setWechatShare } from '@/util/fiveshare'; import { initJssdkShare, setWechatShare } from '@/util/fiveshare';
let nowTime = dataHandling.getMonthRange(dataHandling.getDateParts().year, dataHandling.getDateParts().month) let nowTime = dataHandling.getMonthRange(dataHandling.getDateParts().year, dataHandling.getDateParts().month)
export default{ export default {
data(){ data() {
return { return {
yesExchangeFortune:'0.00', yesExchangeFortune: '0.00',
notExchangeFortune:'', notExchangeFortune: '',
inExchangeFortune:'', inExchangeFortune: '',
alreadyExchangeFortune:'', alreadyExchangeFortune: '',
returnFortune:'', returnFortune: '',
totalFortune:'', totalFortune: '',
scoreList:[ scoreList: [
{name:'总积分',value:'0.00',id:'1',position:'bottom',content:'包含已兑换+待结算+可兑换+兑换中的积分'}, { name: '总积分', value: '0.00', id: '1', position: 'bottom', content: '包含已兑换+待结算+可兑换+兑换中的积分' },
{name:'已兑换',value:'0.00',id:'2',position:'bottom',content:'已经提取入账的积分'}, { name: '已兑换', value: '0.00', id: '2', position: 'bottom', content: '已经提取入账的积分' },
{name:'待结算',value:'0.00',id:'3',position:'left',content:'订单成交后需等待7天结算期'}, { name: '待结算', value: '0.00', id: '3', position: 'left', content: '订单成交后需等待7天结算期' },
{name:'兑换中',value:'0.00',id:'4',position:'left',content:'正在审核中的积分'}, { name: '兑换中', value: '0.00', id: '4', position: 'left', content: '正在审核中的积分' },
], ],
commissionTypeList:[], commissionTypeList: [],
currentFilter:{id:'0',dropOptionCode:null}, currentFilter: { id: '0', dropOptionCode: null },
selectItem:'0', selectItem: '0',
selectList:[ selectList: [
{ value: '0', text: "全部" }, { value: '0', text: "全部" },
{ value: 1, text: "待结算" }, { value: 1, text: "待结算" },
{ value: 2, text: "可兑换" }, { value: 2, text: "可兑换" },
...@@ -163,27 +152,34 @@ ...@@ -163,27 +152,34 @@
{ value: 4, text: "兑换中" }, { value: 4, text: "兑换中" },
{ value: 5, text: "已失效" }, { value: 5, text: "已失效" },
], ],
dateParts:dataHandling.getDateParts(), dateParts: dataHandling.getDateParts(),
currentItem:'1',//便于弹框弹出回显是月份选择还是自定义时间 currentItem: '1', //便于弹框弹出回显是月份选择还是自定义时间
timeType:'1',//有三种,1:年月,2:上月,近三月,近半年,3:具体日期的选择 timeType: '1', //有三种,1:年月,2:上月,近三月,近半年,3:具体日期的选择
showTime:`${dataHandling.getDateParts().year}${dataHandling.getDateParts().month}月`, showTime: `${dataHandling.getDateParts().year}${dataHandling.getDateParts().month}月`,
childData:{ childData: {
current:'1', current: '1',
year:dataHandling.getDateParts().year, year: dataHandling.getDateParts().year,
month:dataHandling.getDateParts().month, month: dataHandling.getDateParts().month,
timeType:'8', timeType: '8',
queryDateStart:nowTime.start, queryDateStart: nowTime.start,
queryDateEnd:nowTime.end, queryDateEnd: nowTime.end,
}, },
sumCommissionAmount:'0.00', sumCommissionAmount: '0.00',
cffpFortuneDateList:[], cffpFortuneDateList: [],
userInfo: {},
showWithdrawal:true
} }
}, },
components:{CustomDatePop}, components: { CustomDatePop },
onLoad(){ onLoad() {
this.userInfo = JSON.parse(uni.getStorageSync('cffp_userInfo'))
// 经销商职级p3之上的都不给提现
if(this.userInfo.levelCode&&this.userInfo.levelCode.split('')[1]>3){
this.showWithdrawal = false
}
console.log('levelCode',this.userInfo.levelCode);
}, },
onShow(){ onShow() {
this.queryByUserIdFortuneStatistic(); this.queryByUserIdFortuneStatistic();
this.getCommissionType() this.getCommissionType()
this.getDetail() this.getDetail()
...@@ -193,9 +189,9 @@ ...@@ -193,9 +189,9 @@
}, window.location.href); }, window.location.href);
// #endif // #endif
}, },
methods:{ methods: {
// 查看订单详情 // 查看订单详情
viewDetail(item){ viewDetail(item) {
dataHandling.pocessTracking( dataHandling.pocessTracking(
'查看订单详情', '查看订单详情',
`点击查看订单详情`, `点击查看订单详情`,
...@@ -205,43 +201,45 @@ ...@@ -205,43 +201,45 @@
'pages/pointsExchange/pointsExchange' 'pages/pointsExchange/pointsExchange'
) )
uni.navigateTo({ uni.navigateTo({
url:`/pages/orderDetail/orderDetail?id=${item.orderId}&commissionType=${item.commissionType}&type=drop` url: `/pages/orderDetail/orderDetail?id=${item.orderId}&commissionType=${item.commissionType}&type=drop`
}) })
}, },
getDetail(){ getDetail() {
const param = { const param = {
isDtl: 1, isDtl: 1,
userId: uni.getStorageSync('cffp_userId'), userId: uni.getStorageSync('cffp_userId'),
queryDateStart:this.childData.queryDateStart, queryDateStart: this.childData.queryDateStart,
queryDateEnd:this.childData.queryDateEnd, queryDateEnd: this.childData.queryDateEnd,
commissionType:this.currentFilter.dropOptionCode, commissionType: this.currentFilter.dropOptionCode,
queryPage:2, queryPage: 2,
exchangeStatus:this.selectItem=='0'?'':this.selectItem, exchangeStatus: this.selectItem == '0' ? '' : this.selectItem,
productType: 1 productType: 1
} }
api.findForExchangeStatisticDtl(param).then((res)=>{ api.findForExchangeStatisticDtl(param).then((res) => {
if(res['success']){ if (res['success']) {
this.cffpFortuneDateList = [] this.cffpFortuneDateList = []
if(res['data']['cffpFortuneDeductionList']&&res['data']['cffpFortuneDeductionList'].length>0){ if (res['data']['cffpFortuneDeductionList'] && res['data']['cffpFortuneDeductionList']
this.cffpFortuneDateList = res['data']['cffpFortuneDeductionList'].map(item=>{ .length > 0) {
this.cffpFortuneDateList = res['data']['cffpFortuneDeductionList'].map(item => {
item.commissionAmount = Number(item.commissionAmount).toFixed(2) item.commissionAmount = Number(item.commissionAmount).toFixed(2)
return item return item
}) })
} }
if(res['data']['sumCommissionAmount']){ if (res['data']['sumCommissionAmount']) {
this.sumCommissionAmount = Number(res['data']['sumCommissionAmount']).toFixed(2); this.sumCommissionAmount = Number(res['data']['sumCommissionAmount']).toFixed(2);
}else { } else {
this.sumCommissionAmount= '0.00' this.sumCommissionAmount = '0.00'
} }
} }
}); });
}, },
getCommissionType(){ getCommissionType() {
api.dropOptionsQuery({code:'CFFP_Commission_Item'}).then((res)=>{ api.dropOptionsQuery({ code: 'CFFP_Commission_Item' }).then((res) => {
this.commissionTypeList = [{dropOptionName:'全部',dropOptionCode:null,id:'0'}].concat(res['data']['dropMasterInfoList'][0]['dropOptionsInfoList']); this.commissionTypeList = [{ dropOptionName: '全部', dropOptionCode: null, id: '0' }].concat(res[
'data']['dropMasterInfoList'][0]['dropOptionsInfoList']);
// for(let i=0;i<this.commissionTypeList.length;i++){ // for(let i=0;i<this.commissionTypeList.length;i++){
// if(this.commissionType == this.commissionTypeList[i]['dropOptionCode']){ // if(this.commissionType == this.commissionTypeList[i]['dropOptionCode']){
// this.commissionTypeIdx = i; // this.commissionTypeIdx = i;
...@@ -250,16 +248,16 @@ ...@@ -250,16 +248,16 @@
// } // }
}) })
}, },
closePop(){ closePop() {
this.$refs.timePopup.close() this.$refs.timePopup.close()
}, },
//时间选择框确定事件 //时间选择框确定事件
comfirm(obj){ comfirm(obj) {
console.log('obj',obj); console.log('obj', obj);
this.currentItem = obj.current this.currentItem = obj.current
// timeType 8:月份 9:三种方式的选择 10:自定义日期选择 // timeType 8:月份 9:三种方式的选择 10:自定义日期选择
switch (obj.timeType){ switch (obj.timeType) {
case '8': case '8':
this.showTime = `${obj.year}${obj.month}月` this.showTime = `${obj.year}${obj.month}月`
const { year, month } = obj; const { year, month } = obj;
...@@ -286,21 +284,21 @@ ...@@ -286,21 +284,21 @@
this.getDetail() this.getDetail()
}, },
// 切换过滤条件 // 切换过滤条件
changeFilter(item){ changeFilter(item) {
this.currentFilter = item this.currentFilter = item
this.getDetail() this.getDetail()
}, },
maskClick(e){ maskClick(e) {
console.log('maskClick事件:', e); console.log('maskClick事件:', e);
}, },
goBack(){ goBack() {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}); });
}, },
queryByUserIdFortuneStatistic(){ queryByUserIdFortuneStatistic() {
api.queryByUserIdFortuneStatistic({userId:uni.getStorageSync('cffp_userId')}).then((res)=>{ api.queryByUserIdFortuneStatistic({ userId: uni.getStorageSync('cffp_userId') }).then((res) => {
if(res['success']){ if (res['success']) {
// //可兑换 // //可兑换
this.yesExchangeFortune = res['data']['yesExchangeFortune'] || '0.00'; this.yesExchangeFortune = res['data']['yesExchangeFortune'] || '0.00';
...@@ -316,11 +314,12 @@ ...@@ -316,11 +314,12 @@
} }
}) })
}, },
toWithdrawal(){ toWithdrawal() {
if(!this.yesExchangeFortune || this.yesExchangeFortune==0){
if (!this.yesExchangeFortune || this.yesExchangeFortune == 0) {
uni.showModal({ uni.showModal({
content: `目前可兑换积分为${this.yesExchangeFortune},积分低于1分时无法兑换`, content: `目前可兑换积分为${this.yesExchangeFortune},积分低于1分时无法兑换`,
success: function (res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
console.log('用户点击确定'); console.log('用户点击确定');
} else if (res.cancel) { } else if (res.cancel) {
...@@ -328,7 +327,7 @@ ...@@ -328,7 +327,7 @@
} }
} }
}); });
}else{ } else {
// uni.navigateTo({ // uni.navigateTo({
// url:`/pages/withdrawal/withdrawal?exchangeAmount=${this.yesExchangeFortune}` // url:`/pages/withdrawal/withdrawal?exchangeAmount=${this.yesExchangeFortune}`
// }) // })
...@@ -341,7 +340,7 @@ ...@@ -341,7 +340,7 @@
'pages/pointsExchange/pointsExchange' 'pages/pointsExchange/pointsExchange'
) )
uni.navigateTo({ uni.navigateTo({
url:`/myPackageA/integralExchange/exchange` url: `/myPackageA/integralExchange/exchange`
}) })
} }
}, },
...@@ -350,15 +349,15 @@ ...@@ -350,15 +349,15 @@
// url:'/pages/exchangeRecord/exchangeRecord' // url:'/pages/exchangeRecord/exchangeRecord'
// }) // })
// }, // },
viewDropLists(){ viewDropLists() {
uni.navigateTo({ uni.navigateTo({
url:'/pages/dropLists/dropLists' url: '/pages/dropLists/dropLists'
}) })
}, },
gotoRecord(id){ gotoRecord(id) {
if(id=='2'){ if (id == '2') {
uni.navigateTo({ uni.navigateTo({
url:'/myPackageA/commission/withdrawalRecord' url: '/myPackageA/commission/withdrawalRecord'
}) })
} }
} }
...@@ -376,30 +375,36 @@ ...@@ -376,30 +375,36 @@
transform: none !important; transform: none !important;
// left: -200% !important; // left: -200% !important;
} }
::v-deep .uni-popup .uni-popup__wrapper{
::v-deep .uni-popup .uni-popup__wrapper {
margin: 0 !important; margin: 0 !important;
} }
::v-deep .uni-select__input-text{
::v-deep .uni-select__input-text {
font-size: 24rpx !important; font-size: 24rpx !important;
} }
::v-deep .uni-select__selector-item{
::v-deep .uni-select__selector-item {
font-size: 22rpx !important; font-size: 22rpx !important;
} }
::v-deep .uni-select__input-box{
::v-deep .uni-select__input-box {
height: 50rpx; height: 50rpx;
box-sizing: border-box; box-sizing: border-box;
padding:10rpx 15rpx !important; padding: 10rpx 15rpx !important;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.container{
.container {
box-sizing: border-box; box-sizing: border-box;
/* #ifdef H5 */ /* #ifdef H5 */
padding-top: 15rpx; padding-top: 15rpx;
/* #endif */ /* #endif */
padding-bottom: 20rpx; padding-bottom: 20rpx;
.backArrow{
.backArrow {
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
...@@ -409,17 +414,20 @@ ...@@ -409,17 +414,20 @@
position: relative; position: relative;
width: 100%; width: 100%;
margin-bottom: 10rpx; margin-bottom: 10rpx;
text:nth-child(2){
text:nth-child(2) {
width: 100%; width: 100%;
text-align: center; text-align: center;
position: absolute; position: absolute;
} }
} }
.listBox{
.listBox {
padding: 10rpx 20rpx 0rpx 20rpx; padding: 10rpx 20rpx 0rpx 20rpx;
} }
.first{
.first {
color: rgba(244, 239, 212, 1); color: rgba(244, 239, 212, 1);
box-sizing: border-box; box-sizing: border-box;
...@@ -427,16 +435,19 @@ ...@@ -427,16 +435,19 @@
width: 100%; width: 100%;
padding: 30rpx; padding: 30rpx;
border-radius: 10rpx; border-radius: 10rpx;
.top{
.top {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 30rpx; margin-bottom: 30rpx;
.left{
.left {
font-size: 28rpx; font-size: 28rpx;
width: 60%; width: 60%;
} }
.right{
.right {
padding: 15rpx 50rpx; padding: 15rpx 50rpx;
background: rgba(249, 219, 165, 1); background: rgba(249, 219, 165, 1);
border-radius: 50rpx; border-radius: 50rpx;
...@@ -445,27 +456,31 @@ ...@@ -445,27 +456,31 @@
font-weight: 500; font-weight: 500;
} }
} }
.bottom{
.bottom {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
.bottomItem{
.one{ .bottomItem {
.one {
display: flex; display: flex;
margin-bottom: 5rpx; margin-bottom: 5rpx;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.fotter{
.fotter {
font-size: 26rpx; font-size: 26rpx;
} }
} }
} }
} }
.two{
.two {
margin-top: 20rpx; margin-top: 20rpx;
box-sizing: border-box; box-sizing: border-box;
background: #fff; background: #fff;
...@@ -473,12 +488,14 @@ ...@@ -473,12 +488,14 @@
padding: 20rpx 30rpx; padding: 20rpx 30rpx;
border-radius: 10rpx; border-radius: 10rpx;
box-sizing: border-box; box-sizing: border-box;
.twoHeader{
.twoHeader {
color: rgba(46, 38, 29, 1); color: rgba(46, 38, 29, 1);
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
} }
.timeBox{
.timeBox {
display: flex; display: flex;
align-items: center; align-items: center;
width: fit-content; width: fit-content;
...@@ -486,21 +503,25 @@ ...@@ -486,21 +503,25 @@
margin: 40rpx 0; margin: 40rpx 0;
font-size: 27rpx; font-size: 27rpx;
} }
.filterBox{
.filterBox {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.scroll-view_H { .scroll-view_H {
white-space: nowrap; white-space: nowrap;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
.scroll-view-item { .scroll-view-item {
height: 100rpx; height: 100rpx;
// line-height: 300rpx; // line-height: 300rpx;
text-align: center; text-align: center;
font-size: 36rpx; font-size: 36rpx;
} }
.scroll-view-item_H { .scroll-view-item_H {
display: inline-block; display: inline-block;
margin-right: 20rpx; margin-right: 20rpx;
...@@ -511,75 +532,89 @@ ...@@ -511,75 +532,89 @@
color: rgba(46, 38, 29, 1); color: rgba(46, 38, 29, 1);
border-radius: 8rpx; border-radius: 8rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
&.active{
&.active {
background: rgba(32, 39, 155, 1); background: rgba(32, 39, 155, 1);
color: #fff; color: #fff;
} }
} }
.scroll-view-item_H:last-child{
.scroll-view-item_H:last-child {
margin-right: 0rpx; margin-right: 0rpx;
} }
.filterItem{
.filterItem {
background: #f7f7f7; background: #f7f7f7;
font-size: 27rpx; font-size: 27rpx;
padding: 10rpx; padding: 10rpx;
color: rgba(46, 38, 29, 1); color: rgba(46, 38, 29, 1);
border-radius: 8rpx; border-radius: 8rpx;
&.active{
&.active {
background: rgba(32, 39, 155, 1); background: rgba(32, 39, 155, 1);
color: #fff; color: #fff;
} }
} }
} }
.totalBox{
.totalBox {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin: 30rpx 0; margin: 30rpx 0;
.totalItem{
.totalItem {
font-size: 31rpx; font-size: 31rpx;
font-weight: 500; font-weight: 500;
} }
.totalSelect{
.totalSelect {
width: 300rpx; width: 300rpx;
} }
} }
.detailBox{
.detailBox {
background-color: #fcfcfc; background-color: #fcfcfc;
padding: 0rpx 30rpx; padding: 0rpx 30rpx;
border-radius: 10rpx; border-radius: 10rpx;
.emptyBox{
.emptyBox {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin: 20rpx; margin: 20rpx;
color: rgba(153, 153, 153, 1); color: rgba(153, 153, 153, 1);
} }
.detailItem{
.detailItem {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
border-bottom: 1px solid rgba(232, 232, 232, 1); border-bottom: 1px solid rgba(232, 232, 232, 1);
padding: 30rpx 0; padding: 30rpx 0;
.detailLeft{
.txt{ .detailLeft {
.txt {
font-size: 29rpx; font-size: 29rpx;
font-weight: 500; font-weight: 500;
color: rgba(34, 34, 34, 1); color: rgba(34, 34, 34, 1);
} }
.date{
.date {
color: rgba(56, 56, 56, 1); color: rgba(56, 56, 56, 1);
font-size: 26rpx; font-size: 26rpx;
margin-top: 10rpx; margin-top: 10rpx;
} }
} }
.detailRight{
.detailRight {
width: 25%; width: 25%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.money{
.money {
font-size: 29rpx; font-size: 29rpx;
font-weight: 500; font-weight: 500;
color: rgba(34, 34, 34, 1); color: rgba(34, 34, 34, 1);
...@@ -587,7 +622,8 @@ ...@@ -587,7 +622,8 @@
} }
} }
} }
.detailItem:last-child{
.detailItem:last-child {
border: none; border: none;
} }
} }
......
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).uni=n()}(this,(function(){"use strict";try{var e={};Object.defineProperty(e,"passive",{get:function(){!0}}),window.addEventListener("test-passive",null,e)}catch(e){}var n=Object.prototype.hasOwnProperty;function i(e,i){return n.call(e,i)}var t=[];function r(){return window.__dcloud_weex_postMessage||window.__dcloud_weex_}var o=function(e,n){var i={options:{timestamp:+new Date},name:e,arg:n};if(r()){if("postMessage"===e){var o={data:[n]};return window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessage(o):window.__dcloud_weex_.postMessage(JSON.stringify(o))}var a={type:"WEB_INVOKE_APPSERVICE",args:{data:i,webviewIds:t}};window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessageToService(a):window.__dcloud_weex_.postMessageToService(JSON.stringify(a))}if(!window.plus)return window.parent.postMessage({type:"WEB_INVOKE_APPSERVICE",data:i,pageId:""},"*");if(0===t.length){var d=plus.webview.currentWebview();if(!d)throw new Error("plus.webview.currentWebview() is undefined");var s=d.parent(),w="";w=s?s.id:d.id,t.push(w)}if(plus.webview.getWebviewById("__uniapp__service"))plus.webview.postMessageToUniNView({type:"WEB_INVOKE_APPSERVICE",args:{data:i,webviewIds:t}},"__uniapp__service");else{var u=JSON.stringify(i);plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat("WEB_INVOKE_APPSERVICE",'",').concat(u,",").concat(JSON.stringify(t),");"))}},a={navigateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;o("navigateTo",{url:encodeURI(n)})},navigateBack:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.delta;o("navigateBack",{delta:parseInt(n)||1})},switchTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;o("switchTab",{url:encodeURI(n)})},reLaunch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;o("reLaunch",{url:encodeURI(n)})},redirectTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url;o("redirectTo",{url:encodeURI(n)})},getEnv:function(e){r()?e({nvue:!0}):window.plus?e({plus:!0}):e({h5:!0})},postMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o("postMessage",e.data||{})}},d=/uni-app/i.test(navigator.userAgent),s=/Html5Plus/i.test(navigator.userAgent),w=/complete|loaded|interactive/;var u=window.my&&navigator.userAgent.indexOf(["t","n","e","i","l","C","y","a","p","i","l","A"].reverse().join(""))>-1;var g=window.swan&&window.swan.webView&&/swan/i.test(navigator.userAgent);var v=window.qq&&window.qq.miniProgram&&/QQ/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);var c=window.tt&&window.tt.miniProgram&&/toutiaomicroapp/i.test(navigator.userAgent);var m=window.wx&&window.wx.miniProgram&&/micromessenger/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);var p=window.qa&&/quickapp/i.test(navigator.userAgent);var f=window.ks&&window.ks.miniProgram&&/micromessenger/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);var l=window.tt&&window.tt.miniProgram&&/Lark|Feishu/i.test(navigator.userAgent);var _=window.jd&&window.jd.miniProgram&&/micromessenger/i.test(navigator.userAgent)&&/miniProgram/i.test(navigator.userAgent);var E=window.xhs&&window.xhs.miniProgram&&/xhsminiapp/i.test(navigator.userAgent);for(var h,P=function(){window.UniAppJSBridge=!0,document.dispatchEvent(new CustomEvent("UniAppJSBridgeReady",{bubbles:!0,cancelable:!0}))},b=[function(e){if(d||s)return window.__dcloud_weex_postMessage||window.__dcloud_weex_?document.addEventListener("DOMContentLoaded",e):window.plus&&w.test(document.readyState)?setTimeout(e,0):document.addEventListener("plusready",e),a},function(e){if(m)return window.WeixinJSBridge&&window.WeixinJSBridge.invoke?setTimeout(e,0):document.addEventListener("WeixinJSBridgeReady",e),window.wx.miniProgram},function(e){if(v)return window.QQJSBridge&&window.QQJSBridge.invoke?setTimeout(e,0):document.addEventListener("QQJSBridgeReady",e),window.qq.miniProgram},function(e){if(u){document.addEventListener("DOMContentLoaded",e);var n=window.my;return{navigateTo:n.navigateTo,navigateBack:n.navigateBack,switchTab:n.switchTab,reLaunch:n.reLaunch,redirectTo:n.redirectTo,postMessage:n.postMessage,getEnv:n.getEnv}}},function(e){if(g)return document.addEventListener("DOMContentLoaded",e),window.swan.webView},function(e){if(c)return document.addEventListener("DOMContentLoaded",e),window.tt.miniProgram},function(e){if(p){window.QaJSBridge&&window.QaJSBridge.invoke?setTimeout(e,0):document.addEventListener("QaJSBridgeReady",e);var n=window.qa;return{navigateTo:n.navigateTo,navigateBack:n.navigateBack,switchTab:n.switchTab,reLaunch:n.reLaunch,redirectTo:n.redirectTo,postMessage:n.postMessage,getEnv:n.getEnv}}},function(e){if(f)return window.WeixinJSBridge&&window.WeixinJSBridge.invoke?setTimeout(e,0):document.addEventListener("WeixinJSBridgeReady",e),window.ks.miniProgram},function(e){if(l)return document.addEventListener("DOMContentLoaded",e),window.tt.miniProgram},function(e){if(_)return window.JDJSBridgeReady&&window.JDJSBridgeReady.invoke?setTimeout(e,0):document.addEventListener("JDJSBridgeReady",e),window.jd.miniProgram},function(e){if(E)return window.xhs.miniProgram},function(e){return document.addEventListener("DOMContentLoaded",e),a}],y=0;y<b.length&&!(h=b[y](P));y++);h||(h={});var B="undefined"!=typeof uni?uni:{};if(!B.navigateTo)for(var S in h)i(h,S)&&(B[S]=h[S]);return B.webView=h,B}));
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