Commit 269725e0 by yuzhenWang

Merge branch 'wyz01' into 'test'

发布测试,提交代码

See merge request !135
parents 27213859 3015e046
......@@ -93,7 +93,7 @@
// 只有已登录用户才需要检查
if(uni.getStorageSync('loginType') == 'codelogin' && uni.getStorageSync('cffp_userId')) {
try {
const res = await api.queryInfo({userId: uni.getStorageSync('cffp_userId')});
const res = await api.queryInfo({});
if(!res['success']) {
// 用户已注销,清除缓存
this.clearLoginState();
......@@ -254,6 +254,7 @@
}
//家办商城跳转未登录状态下
if(params.mpCffp&&(params.noLogin ||!params.dataToken)){
uni.removeStorageSync('userIsActive')
uni.removeStorageSync('dataToken')
uni.setStorageSync('loginType','visitor');
......
......@@ -405,7 +405,7 @@ export default {
improveInfo(params) {
return request(`${apiURL}/pay/get/improve/info`, 'GET', params)
},
// 实名认证查询接口
// 提交实名认证
submitImproveInfo(params) {
return request(`${apiURL}/pay/improve/info`, 'POST', params)
},
......@@ -451,7 +451,8 @@ export default {
},
//获取非分享名片信息
getBusinessCard(userId) {
return request(`${apiURL}/business-card/my?userId=${userId}`, 'GET')
// ?userId=${userId}
return request(`${apiURL}/business-card/my`, 'GET')
},
//获取分享状态名片信息
getShareBusinessCard(cardId) {
......@@ -463,7 +464,8 @@ export default {
},
//获取分享名片统计
getCardStats(data) {
return request(`${apiURL}/business-card/stats/${data.cardId}?userId=${data.userId}`, 'GET')
// ?userId=${data.userId}
return request(`${apiURL}/business-card/stats/${data.cardId}`, 'GET')
},
dealerCouponCardList(params) {
return request(`${sfpUrl}/dealerCoupon/inventory/list/page`, 'POST', params)
......
......@@ -184,7 +184,7 @@
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
if (res['success']) {
delete res.data.commonResult
......
......@@ -29,7 +29,7 @@
title: String,
content: {
type: String,
default: '您的账号处在不可用状态,请长按图片添加客服咨询情况'
default: ''
},
showCode: {
type: Boolean,
......@@ -51,9 +51,13 @@
},
methods: {
open() {
if(dataHandling.getRuntimeEnv()=='browser'){
this.tipTxt = '您的账号处在不可用状态,请扫码添加客服咨询情况'
open(msg) {
// if(dataHandling.getRuntimeEnv()=='browser'){
// this.tipTxt = '您的账号处在不可用状态,请扫码添加客服咨询情况'
// }
if(msg){
this.tipTxt = msg
}
if(this.visible){
return
......
......@@ -53,7 +53,7 @@
},
querySystemMessage(){
if(this.userId){
api.querySystemMessage({systemType:1,userId:this.userId}).then((res)=>{
api.querySystemMessage({systemType:1,}).then((res)=>{
if(res['success']){
this.messageUnreadCount = res['data']['unReadcount'];
if(Number(this.messageUnreadCount) > 99){
......
......@@ -302,8 +302,7 @@
// 登录并且是禁用状态
if (this.loginType == 'codelogin' && this.userInfo.userIsActive == 2) {
this.showCode = true
this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况'
this.$refs.restrictedOrCanelTip.open()
this.$refs.restrictedOrCanelTip.open('您的账号处在不可用状态,请扫码添加客服咨询情况')
return
}
// 登录并且是注销状态 前端不判断,通过申请加盟的接口判断
......@@ -354,8 +353,7 @@
// 不能登录并且是禁用状态
if (res.data.userIsActive == 2) {
this.showCode = true
this.restrictedOrCanelContent = '您的账号处在不可用状态,请扫码添加客服咨询情况'
this.$refs.restrictedOrCanelTip.open()
this.$refs.restrictedOrCanelTip.open('您的账号处在不可用状态,请扫码添加客服咨询情况')
return
}
this.userId = String(res['data']['userId']);
......@@ -406,9 +404,10 @@
queryInfo() {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
api.queryInfo({}).then(res => {
// 保存用户得个人信息
if (res['success']) {
this.form.nickName = res['data']['nickName']
if (this.form.nickName) {
this.editNickName = true
......@@ -454,7 +453,9 @@
}
}
api.newSaveApplyInfo(params).then((res) => {
if (res['success']) {
// 是合伙人就不让在加盟
if (res.data.isPartner) {
this.$refs.everyJoinPopup.open()
......@@ -470,10 +471,11 @@
)
this.$refs.successJoinPopup.open()
} else {
console.log('走到这里了');
// 由于注销需求,依据后端报错展示弹窗
this.showCode = false
this.restrictedOrCanelContent = res['message']
this.$refs.restrictedOrCanelTip.open()
this.$refs.restrictedOrCanelTip.open(res['message'])
}
})
......
......@@ -119,7 +119,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -226,9 +226,9 @@
},
methods:{
continueBind(){
console.log('解绑');
let params = {
userId:uni.getStorageSync('cffp_userId'),
// userId:uni.getStorageSync('cffp_userId'),
oprType:this.paymentMethod
}
api.unbindImproveInfo(params).then((res)=>{
......
......@@ -164,9 +164,9 @@
},
// 查询实名信息
getImproveInfo(){
console.log('执行了');
let params = {
userId:uni.getStorageSync('cffp_userId'),
// userId:uni.getStorageSync('cffp_userId'),
oprType:this.paymentMethod
}
api.improveInfo(params).then((res)=>{
......@@ -182,6 +182,7 @@
}else {
this.showUnbind = false
}
console.log('showUnbind',this.showUnbind);
}else{
uni.showToast({
title: res['message'],
......@@ -193,7 +194,8 @@
},
// 查询兑换得钱数和待结算得积分
queryByUserIdFortuneStatistic(){
api.queryByUserIdFortuneStatistic({userId:uni.getStorageSync('cffp_userId')}).then((res)=>{
// userId:uni.getStorageSync('cffp_userId')
api.queryByUserIdFortuneStatistic({}).then((res)=>{
if(res['success']){
this.queryResult = res['data']
if(this.queryResult.yesExchangeFortune){
......
......@@ -431,7 +431,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -471,7 +471,7 @@
},
getqueryTeamAchievement() {
this.CffpOrgInfoReqVO.userId=uni.getStorageSync('cffp_userId'),
// this.CffpOrgInfoReqVO.userId=uni.getStorageSync('cffp_userId'),
this.CffpOrgInfoReqVO.queryType = this.tabList.filter(item=>item.id == this.currentTab)[0].type
this.CffpOrgInfoReqVO.sortType = this.btnList.filter(item=>item.id == this.currentFilterBtn)[0].sortType
api.queryTeamAchievement(this.CffpOrgInfoReqVO).then(res => {
......@@ -502,7 +502,7 @@
// 1,代表刚进页面,2,代表修改了备注
this.myTeamList = []
api.queryMyTeamInfo({
userId: this.userId,
// userId: this.userId,
type: '3'
}).then(res =>{
if(res['success']){
......
......@@ -88,7 +88,7 @@ export default {
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -195,7 +195,7 @@ const fetchRateData = async () => {
}
}
const queryInfo = () => {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') })
api.queryInfo({})
.then((res) => {
if (res.success) {
delete res.data?.commonResult;
......
......@@ -76,7 +76,7 @@ const goToCommissionDetail = (product) => {
}
const queryInfo = () => {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') })
api.queryInfo({})
.then((res) => {
if (res.success) {
delete res.data?.commonResult;
......
......@@ -309,7 +309,7 @@ const productTypes = ref([]);
// 产品列表
const products = ref([]);
const queryInfo = () => {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') })
api.queryInfo({})
.then((res) => {
if (res.success) {
delete res.data?.commonResult;
......
......@@ -123,7 +123,7 @@ export default {
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -318,7 +318,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -81,7 +81,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -38,7 +38,7 @@
<!-- 明细卡片(紧跟在对应条目下方) -->
<view class="detail-card" :class="{ active: item.expanded }" v-if="item.expanded">
<view class="detail-header">
<text class="total-label">🌟 基础信息</text>
<text class="total-label"> 基础信息</text>
<!-- <text class="total-amount">¥{{ item.detail.grossAmount }} <text class="unit"></text></text> -->
</view>
<!-- <view style="border-top:2px solid #dce3ed; margin:0px 0;"></view> -->
......@@ -85,7 +85,7 @@
</view> -->
</view>
<view class="detail-header">
<text class="total-label">🌟 打款明细</text>
<text class="total-label"> 打款明细</text>
<!-- <text class="total-amount">¥{{ item.detail.grossAmount }} <text class="unit"></text></text> -->
</view>
<!-- <view style="border-top:2px solid #dce3ed; margin:0px 0;"></view> -->
......@@ -266,7 +266,7 @@
if (item.mask) {
uni.showModal({
title: '安全验证',
content: '🔐 模拟人脸/指纹验证,点击“确定”通过验证',
content: ' 模拟人脸/指纹验证,点击“确定”通过验证',
confirmText: '确定',
cancelText: '取消',
success: (res) => {
......@@ -293,7 +293,7 @@
}
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -130,7 +130,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -281,7 +281,7 @@
const hasText = `${userId}|${timestamp}|${signatureSecret}`
const hashResult = sha256(hasText);
let params = {
"userId":uni.getStorageSync('cffp_userId'),
// "userId":uni.getStorageSync('cffp_userId'),
"signatureData":this.applyParam.personalSignOssPath,
"signatureHash":hashResult,
"timestamp":timestamp,
......
......@@ -752,18 +752,7 @@
},
"lazyLoad": true
}
// {
// "path" : "ticket/unUsed",
// "style" : {
// "navigationBarTitleText" : "我的卡券"
// }
// },
// {
// "path" : "ticket/alreadyUsed",
// "style" : {
// "navigationBarTitleText" : "使用记录"
// }
// }
]
},
{
......
......@@ -101,7 +101,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -147,7 +147,7 @@
},
userAfterSalesDtl(){
const params = {
userId:this.userId,
// userId:this.userId,
orderNo:this.orderNo,
afterSalesFlag:this.afterSalesFlag
}
......
......@@ -44,7 +44,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -90,7 +90,7 @@
},
userAfterSales(){
const param = {
userId:this.userId,
// userId:this.userId,
afterSalesFlag:this.afterSalesFlag
}
api.userAfterSales(param).then(res=>{
......
......@@ -295,7 +295,7 @@
},
queryOrgList() {
const param = {
userId: this.userId,
// userId: this.userId,
partnerLevel: this.applyParam.partnerLevel
}
api.queryOrgList(param).then((res) => {
......
......@@ -113,7 +113,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -38,7 +38,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -394,8 +394,10 @@
},
// 打开微信分享啊
reinvite() {
//小程序没登录进入到系统,要回到小程序去登录
if (uni.getStorageSync('mpCffp') && !uni.getStorageSync('dataToken')&&this.loginType === 'visitor') {
if (uni.getStorageSync('mpCffp') && !uni.getStorageSync('dataToken')&&uni.getStorageSync('loginType') === 'visitor') {
this.jumpMplogin()
return
}
......@@ -521,7 +523,7 @@
//预约成功组件点击确认后的回调函数
c_confirmVerifyPopup() {
api.appointment({
userId: uni.getStorageSync('cffp_userId'),
// userId: uni.getStorageSync('cffp_userId'),
courseId: this.fileId
}).then((res) => {
if (res['success']) {
......@@ -541,6 +543,7 @@
},
// 登录组件成功后回调函数
c_confirmLoginPopup() {
console.log('执行了');
//登录完成之后 弹出预约弹窗
this.$refs.verifyPopupCom.open();
},
......@@ -1166,7 +1169,7 @@
let platform = uni.getSystemInfoSync().platform
let UserShareRequestVO = {
systemType: platform == 'ios' ? '1' : '0',
userId: uni.getStorageSync('cffp_userId'),
// userId: uni.getStorageSync('cffp_userId'),
businessType: '1', // 分享类型
businessId: this.fileId, // 课程Id
shareUrl: shareURL + "/pages/courseDetail/courseDetail?fileId=" + this.fileId +
......@@ -1182,6 +1185,11 @@
// title: '分享成功',
// duration: 2000
// });
}else {
uni.showToast({
title: '分享统计失败',
duration: 2000
});
}
})
},
......@@ -1199,7 +1207,7 @@
}
},
queryInfo() {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
api.queryInfo({}).then(res => {
if (res['success']) {
delete res.data.commonResult
const cffp_userInfo = {
......@@ -1401,6 +1409,7 @@
},
// 跳转到小程序登录
jumpMplogin() {
let currentUrl = ``;
if (this.miniShareInfo.miniShare) {
if (uni.getStorageSync('loginType') == 'codelogin') {
......@@ -1490,7 +1499,7 @@
this.showImg = false
this.generatedImage = ''
this.shareItem = { fileFirstImage: '' },
this.loginType = uni.getStorageSync('loginType')
this.loginType = uni.getStorageSync('loginType')
this.init();
this.isWx_Miniprogram();
this.tabType = 1;
......
......@@ -750,7 +750,7 @@
})
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -55,7 +55,8 @@
})
},
queryDropCourseList(){
api.queryDropCourseList({userId:this.userId}).then(res=>{
// userId:this.userId
api.queryDropCourseList({}).then(res=>{
if(res['success']){
this.dropLists = res['data']['dropCourseListDtos']
}
......
......@@ -53,7 +53,8 @@
},
methods:{
findByUserIdForWithdralHis(){
api.findByUserIdForWithdralHis({userId:this.userId}).then((res)=>{
// userId:this.userId
api.findByUserIdForWithdralHis({}).then((res)=>{
if(res['success']){
this.cffpFortuneDeductionList = res['data']['cffpFortuneDeductionList']
}
......
......@@ -276,9 +276,9 @@
},
onShow() {
if(uni.getStorageSync('dataToken')){
this.dataToken = uni.getStorageSync('dataToken')
}
// if(uni.getStorageSync('dataToken')){
// this.dataToken = uni.getStorageSync('dataToken')
// }
this.loginType = uni.getStorageSync('loginType')
this.init();
......@@ -371,7 +371,7 @@
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -548,7 +548,8 @@
}
},
querySystemMessage() {
api.querySystemMessage({systemType:1,userId:uni.getStorageSync('cffp_userId')}).then(res => {
// userId:uni.getStorageSync('cffp_userId')
api.querySystemMessage({systemType:1,}).then(res => {
if (res['success']&& res['data']['dataList']&& res['data']['dataList'].length>0) {
let total = res['data']['dataList'].filter(item=>{
......@@ -783,15 +784,13 @@
})
},
reLogin(){
console.log('index调用');
uni.showLoading({
title: '加载中...'
});
// 添加iOS平台检测
const isIOS = navigator.platform.match(/(iPhone|iPod|iPad)/i);
const params = {
loginType:'5',
authToken: this.dataToken,
code: this.dataToken,
loginType: '5',
visitorUuid:uni.getStorageSync('visitorUuid')?uni.getStorageSync('visitorUuid'):dataHandling.uuid()
}
......
......@@ -221,7 +221,7 @@
})
},
queryInfo() {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
api.queryInfo({}).then(res => {
if (res['success']) {
delete res.data.commonResult
const cffp_userInfo = {
......@@ -242,7 +242,7 @@
// 查询组织list
getqueryOrgList() {
let CffpAreaQueryReqVO = {
userId: this.userId,
// userId: this.userId,
partnerLevel: ''
}
api.queryOrgList(CffpAreaQueryReqVO).then(res => {
......@@ -629,7 +629,7 @@
this.generatedImage = ''
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -25,8 +25,11 @@
let dataToken = ref()
let restrictedTipRef = ref()
onLoad((options) => {
jumpInfo.value = JSON.parse(JSON.stringify(options))
jumpInfo.value = JSON.parse(JSON.stringify(options))
if(options.backFlag){
uni.setStorageSync('backFlag',options.backFlag)
}
// 参数带token了重新登录
if (options.dataToken) {
console.log('jumpInfo.value', jumpInfo.value);
......@@ -79,11 +82,11 @@
})
}
}
})
const reLogin = (landingPage) => {
console.log('lanuch调用了');
uni.showLoading({
title: '加载中...'
});
......@@ -91,7 +94,7 @@
const isIOS = navigator.platform.match(/(iPhone|iPod|iPad)/i);
const params = {
loginType: '5',
authToken: dataToken.value,
code: dataToken.value,
visitorUuid:uni.getStorageSync('visitorUuid')?uni.getStorageSync('visitorUuid'):dataHandling.uuid()
}
api.loginVerification(params).then((res) => {
......@@ -133,9 +136,17 @@
} else if (landingPage == 'applyFranchise') {
uni.reLaunch({ url: `/myPackageA/applyFranchise/applyFranchise?shareId=${jumpInfo.value.shareId}&invitationCode=${jumpInfo.value.invitationCode}&inviteUserId=${jumpInfo.value.inviteUserId}&miniShare=1` })
}else if(landingPage == 'index'){
uni.reLaunch({
url:'/pages/index/index?miniShare=1'
})
if(jumpInfo.value.miniShare){
uni.reLaunch({
url:'/pages/index/index?miniShare=1'
})
}else {
console.log('走到这里了');
uni.reLaunch({
url:'/pages/index/index'
})
}
}else if(landingPage == 'courselist'){
uni.reLaunch({
url:'/pages/courselist/courselist'
......@@ -150,12 +161,28 @@
})
}
} else {
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
uni.reLaunch({ url: `/pages/index/index` })
//内嵌带的code失效了,用户需要重新登录
if(res.data.commonResult&&res.data.commonResult.errorCode=='1101'){
if(dataHandling.h5RuntimeEnv()=='wechat-miniprogram'){
if(jumpInfo.value.backFlag =='ydMall'){
wx.miniProgram.reLaunch({url:`/myPackageA/login/index?codeInvalid=1&systemSource=cffp&pageSource=lanch&landingPage=${jumpInfo.value.landingPage}`})
}
}else {
uni.reLaunch({
url:`/myPackageA/login/login`
})
}
return
}else {
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
uni.reLaunch({ url: `/pages/index/index` })
}
}
})
uni.hideLoading()
......
......@@ -116,7 +116,7 @@
findByUserIdForFortuneStatistic(){
const param = {
isDtl:2,
userId:uni.getStorageSync('cffp_userId'),
// userId:uni.getStorageSync('cffp_userId'),
// userId: 1,
fortuneDate:this.fortuneDate,
timeFlag:this.timeFlag
......
......@@ -130,7 +130,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -237,7 +237,7 @@
methods: {
queryInfo() {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
api.queryInfo({}).then(res => {
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -278,7 +278,7 @@
orderId: this.orderId,
amount: this.isRedirect == 1 ? this.calculatedPrice : this.totalPrice,
paymentMethod: this.paymentMethod,
userId: this.userId,
// userId: this.userId,
integralExchange: this.isDeduction == "true" ? this.deductionCore : 0,
paymentType: '',
isPayOrAuth: '',
......@@ -342,6 +342,7 @@
// #ifdef H5
param.paymentType = 2;
//deviceType:PC为1,移动端为2,微信为3
if (this.deviceType == 3) {
// 向小程序通信
if (dataHandling.h5RuntimeEnv() == 'wechat-miniprogram') {
......@@ -355,11 +356,9 @@
}
let _this = this
param.isPayOrAuth = 1;
// uni.showToast({
// title: JSON.stringify(param),
// duration: 10000,
// icon: 'none'
// })
uni.showToast({
content:`微信支付:${JSON.stringify(param)}`
})
api.wxAuthorize(param).then((res) => {
_this.paymentBtnDisabled = false;
......@@ -554,7 +553,8 @@
courseDetailLoad(option) {
this.courseDetail();
this.queryByUserIdFortuneStatistic()
this.deviceType = common.checkDeviceType();
this.deviceType = common.checkDeviceType(); //原来的
// this.deviceType = '3'; //测试的
if (this.deviceType == 3) {
this.paymentMethod = 1;
}
......
......@@ -170,7 +170,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -203,7 +203,7 @@
},
userCourseInfo() {
const param = {
userId: this.userId,
// userId: this.userId,
orderId: this.orderId,
queryType: this.type == 'drop' ? '1' : '2',
commissionType: this.commissionType,
......
......@@ -105,7 +105,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -132,7 +132,8 @@
})
},
querySystemMessage() {
api.querySystemMessage({systemType:1,userId:uni.getStorageSync('cffp_userId')}).then(res => {
// userId:uni.getStorageSync('cffp_userId')
api.querySystemMessage({systemType:1,}).then(res => {
if (res['success']&& res['data']['dataList'].length>0) {
this.infoTotal = res['data']['dataList'].filter(item=>{
return item.isRead == 0
......
......@@ -84,7 +84,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -317,8 +317,8 @@
}, 100);
};
const queryInfo = () => {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') })
.then((res: QueryInfoResponse) => { // 👈 添加类型注解
api.queryInfo({})
.then((res: QueryInfoResponse) => { // 添加类型注解
if (res.success) {
delete res.data?.commonResult;
......
......@@ -92,7 +92,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -296,7 +296,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -336,7 +336,7 @@
},
getqueryTeamAchievement() {
this.CffpOrgInfoReqVO.userId=uni.getStorageSync('cffp_userId'),
// this.CffpOrgInfoReqVO.userId=uni.getStorageSync('cffp_userId'),
this.CffpOrgInfoReqVO.queryType = this.tabList.filter(item=>item.id == this.currentTab)[0].type
this.CffpOrgInfoReqVO.sortType = this.btnList.filter(item=>item.id == this.currentFilterBtn)[0].sortType
api.queryTeamAchievement(this.CffpOrgInfoReqVO).then(res => {
......
......@@ -158,7 +158,7 @@
myTeamList:[],//我的团队表格数据,
myTeamData:{},//我的团队总数据,
CffpOrgInfoReqVO: {
userId: uni.getStorageSync('cffp_userId'),
// userId: uni.getStorageSync('cffp_userId'),
startDate: `${new Date().getFullYear()}-${new Date().getMonth() + 1 > 9 ? new Date().getMonth() + 1 : '0'+ (new Date().getMonth() + 1)}`,
endDate: `${new Date().getFullYear()}-${new Date().getMonth() + 1 > 9 ? new Date().getMonth() + 1 : '0'+ (new Date().getMonth() + 1)}`,
courseOrPolicy: '1',
......@@ -223,7 +223,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -546,7 +546,8 @@
},
querySystemMessage() {
if (this.userId) {
api.querySystemMessage({ systemType: 1, userId: uni.getStorageSync('cffp_userId') }).then((res) => {
// userId: uni.getStorageSync('cffp_userId')
api.querySystemMessage({ systemType: 1, }).then((res) => {
if (res['success'] && res['data']['dataList'] && res['data']['dataList'].length > 0) {
this.messageInfo = res['data']['dataList'];
this.msgTotal = res['data']['dataList'].filter(item => {
......@@ -755,7 +756,6 @@
} else {
const urlObj = JSON.parse(JSON.stringify(item))
console.log('222222222', urlObj.link);
if (urlObj.type) {
urlObj.link =
`${urlObj.link}?type=${urlObj.type}&from=personalCenter&partnerType=${this.customerBasicInfo.partnerType}`
......@@ -845,7 +845,7 @@
},
// 查询个人资料
queryInfo() {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
api.queryInfo({}).then(res => {
if (res['success']) {
this.customerBasicInfo = res['data'];
if (res['data']['businessCardId']) {
......
......@@ -74,7 +74,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -54,7 +54,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -83,7 +83,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -122,7 +122,7 @@
}
],
CffpOrgInfoReqVO: {
userId: uni.getStorageSync('cffp_userId'),
// userId: uni.getStorageSync('cffp_userId'),
startDate: `${new Date().getFullYear()}-${new Date().getMonth() + 1 > 9 ? new Date().getMonth() + 1 : '0'+ (new Date().getMonth() + 1)}`,
endDate: `${new Date().getFullYear()}-${new Date().getMonth() + 1 > 9 ? new Date().getMonth() + 1 : '0'+ (new Date().getMonth() + 1)}`,
queryType: '',
......
......@@ -170,7 +170,8 @@
const initialData = JSON.parse(options.customerBasicInfo);
this.optionForm = JSON.parse(JSON.stringify(initialData));
this.tempInfo.optionForm = JSON.parse(JSON.stringify(initialData));
console.log('this.optionForm',this.optionForm);
console.log('this.tempInfo',this.tempInfo);
// 初始化 realInfo.shiming 和 tempInfo.shiming
this.realInfo.shiming = {};
this.tempInfo.shiming = {};
......@@ -189,7 +190,7 @@
},
methods: {
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -243,7 +244,7 @@
// 查询实名信息
getImproveInfo(){
let params = {
userId:uni.getStorageSync('cffp_userId'),
// userId:uni.getStorageSync('cffp_userId'),
oprType:'0'//因为接口不传这个值会报错,所以传一个值,拿到实名信息
}
api.improveInfo(params).then((res)=>{
......@@ -364,7 +365,7 @@
saveUserInfo() {
let UserRequestVO = {
id: uni.getStorageSync('cffp_userId'),
// id: uni.getStorageSync('cffp_userId'),
realName: this.optionForm.realName,
nickName: this.optionForm.nickName,
headPicture: this.optionForm.headPicture,
......@@ -372,7 +373,7 @@
}
let params = {
realNameAuthRequest: {...this.realInfo.shiming},
userId: uni.getStorageSync('cffp_userId'),
// userId: uni.getStorageSync('cffp_userId'),
oprType:0 //只更新实名
}
......
......@@ -532,7 +532,7 @@
display: flex;
align-items: center;
justify-content: space-between;
margin: 40rpx 100rpx;
margin: 40rpx 0rpx;
box-sizing: border-box;
.header-time {
background: rgba(245, 245, 245, 1);
......
......@@ -246,12 +246,7 @@
api.dropOptionsQuery({ code: 'CFFP_Commission_Item' }).then((res) => {
this.commissionTypeList = [{ dropOptionName: '全部', dropOptionCode: null, id: '0' }].concat(res[
'data']['dropMasterInfoList'][0]['dropOptionsInfoList']);
// for(let i=0;i<this.commissionTypeList.length;i++){
// if(this.commissionType == this.commissionTypeList[i]['dropOptionCode']){
// this.commissionTypeIdx = i;
// break;
// }
// }
})
},
closePop() {
......@@ -259,7 +254,7 @@
},
//时间选择框确定事件
comfirm(obj) {
console.log('obj', obj);
this.currentItem = obj.current
// timeType 8:月份 9:三种方式的选择 10:自定义日期选择
......@@ -321,7 +316,6 @@
})
},
toWithdrawal() {
if (!this.yesExchangeFortune || this.yesExchangeFortune == 0) {
uni.showModal({
content: `目前可兑换积分为${this.yesExchangeFortune},积分低于1分时无法兑换`,
......@@ -368,7 +362,7 @@
}
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -127,7 +127,7 @@
}
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -206,7 +206,7 @@
},
userCourseCount(){
const params = {
userId:this.userId,
// userId:this.userId,
queryDate:this.queryDate
}
api.userCourseCount(params).then(res=>{
......@@ -217,7 +217,7 @@
},
userCourseList(){
const params = {
userId:this.userId,
// userId:this.userId,
queryDate:this.queryDate
}
if(this.tabType===1){
......@@ -257,7 +257,7 @@
})
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -67,7 +67,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......@@ -94,7 +94,8 @@
})
},
querySystemMessage() {
api.querySystemMessage({systemType:1,userId:uni.getStorageSync('cffp_userId')}).then(res => {
// userId:uni.getStorageSync('cffp_userId')
api.querySystemMessage({systemType:1,}).then(res => {
if (res['success']&&res['data']['dataList']&&res['data']['dataList'].length>0) {
this.system_msgs_list = res['data']['dataList'];
}else{
......@@ -134,7 +135,8 @@
success: function(res) {
if (res.confirm) {
api.oneKeyRead({systemType:1,userId:uni.getStorageSync('cffp_userId')}).then((res)=>{
// userId:uni.getStorageSync('cffp_userId')
api.oneKeyRead({systemType:1}).then((res)=>{
if(res['success']){
that.querySystemMessage();
}else{
......@@ -150,22 +152,7 @@
}
}
});
// api.oneKeyRead({systemType:1,userId:uni.getStorageSync('cffp_userId')}).then((res)=>{
// if(res['success']){
// uni.showToast({
// title: '所有信息都已读',
// duration: 2000,
// icon: 'none'
// })
// this.querySystemMessage();
// }else{
// uni.showToast({
// title: res['message'],
// duration: 2000,
// icon: 'none'
// })
// }
// })
}
}
}
......
......@@ -58,7 +58,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -83,7 +83,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -110,7 +110,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -534,7 +534,7 @@
return common.formatFloat(num,digitNum=2,type=1)
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -127,7 +127,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -371,7 +371,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -134,7 +134,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -84,7 +84,7 @@
},
methods:{
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -636,7 +636,7 @@
this.resultShowFlag = false;
},
queryInfo() {
api.queryInfo({userId:uni.getStorageSync('cffp_userId')}).then(res=>{
api.queryInfo({}).then(res=>{
// 保存用户得个人信息
if (res['success']) {
delete res.data.commonResult
......
......@@ -67,8 +67,8 @@ export default function initApp() {
url: '/myPackageA/login/login'
})
}
if (uni.getStorageSync('cffp_userId')) {
api.queryInfo({ userId: uni.getStorageSync('cffp_userId') }).then(res => {
if (uni.getStorageSync('loginType') == 'codelogin') {
api.queryInfo({}).then(res => {
if (!res['success']) {
uni.setStorageSync('loginType', 'visitor')
uni.navigateTo({
......
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