diff --git a/manifest.json b/manifest.json index 5e15b72..2f0fa3a 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "斯耀短剧", "appid" : "__UNI__E0B05B1", "description" : "", - "versionName" : "1.0.7", - "versionCode" : 107, + "versionName" : "1.0.8", + "versionCode" : 108, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/me/balance/index.vue b/me/balance/index.vue index c4142b2..714f61a 100644 --- a/me/balance/index.vue +++ b/me/balance/index.vue @@ -20,8 +20,8 @@ - @@ -80,7 +80,7 @@ }, onShow() { this.getAmount() - this.getList() + this.getUserBalanceList() }, onPullDownRefresh() { this.getAmount() @@ -93,7 +93,7 @@ getAmount() { this.$Request.getT('app/moneyDetails/selectUserMoney').then(res => { uni.stopPullDownRefresh() - if (res.code == 0) { + if (res.code === 0) { this.amount = res.data.amount || 0 } else { this.amount = '0.00' @@ -106,7 +106,7 @@ } this.$Request.getT('app/cash/withdraw', params).then(res => { console.log(res) - if (res.code == 0) { + if (res.code === 0) { // this.amount = res.data.amount } else { // this.amount = '0.00' @@ -120,7 +120,7 @@ /** * 获取余额明细 */ - getList() { + getUserBalanceList() { let data = { page: this.page, limit: this.limit @@ -129,14 +129,14 @@ setTimeout(() => { this.refresherTriggered = false }, 1500) - if (res.code == 0) { + if (res.code === 0) { this.pages = res.data.pages if (this.page < this.pages) { this.status = 'loadmore' } else { this.status = 'nomore' } - if (this.page == 1) { + if (this.page === 1) { this.list = res.data.records } else { this.list = [...this.list, ...res.data.records] @@ -150,17 +150,17 @@ }) }, //上拉刷新 - scrolltoupper() { + scrollToUpper() { this.page = 1 this.refresherTriggered = true - this.getList() + this.getUserBalanceList() }, //加载更多 - scrolltolower() { + scrollToLower() { if (this.page < this.pages) { this.status = 'loading' this.page += 1 - this.getList() + this.getUserBalanceList() } else { this.status = 'nomore' } diff --git a/me/collect/index.vue b/me/collect/index.vue index 19044b7..e3d3a25 100644 --- a/me/collect/index.vue +++ b/me/collect/index.vue @@ -47,8 +47,8 @@ limit: this.limit, } this.$u.api.collectList(data).then(res => { - if(res.code == 0) { - if( this.page == 1) { + if(res.code === 0) { + if( this.page === 1) { this.collectList = res.data.records uni.stopPullDownRefresh(); return diff --git a/me/course/index.vue b/me/course/index.vue index 8ecc805..3480e4b 100644 --- a/me/course/index.vue +++ b/me/course/index.vue @@ -69,13 +69,13 @@ limit: this.limit, } this.$u.api.selectCourse(data).then(res => { - if (res.code == 0) { + if (res.code === 0) { res.data.list.forEach(ret => { if (ret.avatar) { ret.avatar = ret.avatar.split(',') } }) - if (this.page == 1) { + if (this.page === 1) { this.courseList = res.data.list uni.stopPullDownRefresh(); return diff --git a/me/detail/detailIOS.nvue b/me/detail/detailIOS.nvue index 7ba91fe..2decad5 100644 --- a/me/detail/detailIOS.nvue +++ b/me/detail/detailIOS.nvue @@ -5,7 +5,7 @@ - - + @@ -57,7 +57,7 @@ - + @@ -188,7 +188,7 @@ 购买后继续观看 - @@ -390,7 +390,6 @@ } }, onShow() { - console.log("走了iOS播放器。。。。。。。。。。。。。。。"); //当应用从后台进入前台时自动播放 if (this.videoContext) { this.videoContext.play() @@ -398,7 +397,7 @@ this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否' let that = this uni.$on('back', (data) => { - if (data.flag == true) { + if (data.flag) { that.showPay = false that.getDataList(that.courseId, that.courseDetailsId, true); that.getMyLoveStatus() @@ -468,14 +467,14 @@ // #endif this.$nextTick(() => { - this.closePopusPay() + this.closePopupPay() }) if (this.courseId) { this.getDataList(this.courseId, this.courseDetailsId); } httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => { - if (res.code == 0) { + if (res.code === 0) { this.getRedEnvelopeTips = res.data } }) @@ -494,7 +493,7 @@ console.log('this bottom padding = ' + this.paddingBottom); httpsRequest.getT("app/common/type/919", {}).then(res => { - if (res.code == 0) { + if (res.code === 0) { const sysInfo = uni.getSystemInfoSync(); let isIos = sysInfo.platform == 'ios' this.isShowMoneyPay = !(res.data.value == '1' && isIos) @@ -535,7 +534,7 @@ */ getScale() { httpsRequest.getT("app/common/type/914", {}).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.scale = Number(res.data.value) } }); @@ -574,7 +573,7 @@ }, //选集弹窗的回调 changeXj(e) { - if (e.show == false) { + if (!e.show) { //关闭弹窗的时候重置scrollIntoViews,防止关闭后第二次点就不能自动滑动到当前集的位置 this.scrollIntoViews = 'video0' } @@ -615,7 +614,7 @@ }); }, isCheckPay(status, name, order) { - if (status == 0) { + if (status === 0) { this.setPayment(name, order); } else { uni.hideLoading(); @@ -625,7 +624,7 @@ }); } }, - iphonepay() { + iphonePay() { let that = this plus.payment.getChannels((res) => { let channel = res.find(i => i.id === 'appleiap') @@ -681,7 +680,7 @@ httpsRequest.postT('/app/ios/isoPayApp?receipt=' + receipt + '&ordersId=' + that.iosPayId).then( res => { uni.hideLoading(); - if (res.status == 0) { + if (res.status === 0) { uni.showToast({ title: '支付成功', duration: 2000, @@ -693,7 +692,7 @@ }, // 充值 pay() { - if (this.checked == false) { + if (!this.checked) { uni.showToast({ title: '请阅读并同意《付费须知说明》', icon: 'none' @@ -704,7 +703,7 @@ uni.showLoading({ title: '支付中...' }) - if (this.openWay == 2) { + if (this.openWay === 2) { // 微信APP支付 根据订单id获取支付信息 httpsRequest.postT("/app/wxPay/payMoney", { classify: 1, @@ -712,7 +711,7 @@ }).then(ret => { this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data)); }); - } else if (this.openWay == 1) { + } else if (this.openWay === 1) { let paytype = 'h5' // #ifdef APP paytype = 'app' @@ -725,7 +724,7 @@ }); // this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data)); }); - } else if (this.openWay == 3) { + } else if (this.openWay === 3) { let userId = uni.getStorageSync('userId'); let data = { payClassifyId: this.wallet[this.wallCurr].payClassifyId, @@ -742,7 +741,7 @@ }); } }); - } else if (this.openWay == 4) { + } else if (this.openWay === 4) { let userId = uni.getStorageSync('userId'); let data = { // money: this.wallet[this.current].price @@ -772,7 +771,7 @@ getMyMoney() { if (uni.getStorageSync('token')) { httpsRequest.getT('/app/moneyDetails/selectUserMoney').then(res => { - if (res.code == 0) { + if (res.code === 0) { this.moneyNum = res.data.money } }) @@ -826,7 +825,7 @@ */ getMoneyList() { httpsRequest.getT('/app/payClassify/selectPayClassifyList').then(res => { - if (res.code == 0) { + if (res.code === 0) { let priceObj = this.findMinMaxPricesWithIndexes(res.data) this.wallet = res.data this.wallet[priceObj.minPriceIndex].remarks = '特惠' @@ -843,7 +842,7 @@ this.wallet = arr } // #ifdef APP - this.iphonepay() + this.iphonePay() // #endif } else { uni.showToast({ @@ -854,11 +853,11 @@ }) }, //关闭支付弹窗 - closePopusPay() { + closePopupPay() { this.$refs.popuppay.close() }, //打开支付弹窗 - openPopusPay() { + openPopupPay() { this.$refs.popuppay.open('bottom') }, // 获取收藏状态 @@ -878,7 +877,7 @@ }) }, //显示/隐藏适配控制器的回调 - controlstoggles(e) { + controlStoggles(e) { this.showControls = e.detail.show this.showBack = this.showControls console.log(e.detail.show, '显示/隐藏控制栏') @@ -962,16 +961,16 @@ data.courseDetailsId = this.videoList[this.current].courseDetailsId httpsRequest.getT('/app/order/insertCourseOrders', data).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.ordersId = res.data.orders.ordersId //记录订单id this.payMoney = res.data.orders.payMoney //记录订单价格 - if (type == 1) { //金币 + if (type === 1) { //金币 this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney) - } else if (type == 2) { //支付宝 + } else if (type === 2) { //支付宝 this.closePay() //关闭购买选择弹窗 this.payPrice = res.data.orders.payMoney //需要支付的价格 - this.openPopusPay() //显示充值弹窗 + this.openPopupPay() //显示充值弹窗 } @@ -989,13 +988,13 @@ httpsRequest.postT("/app/order/payOrders", { orderId: orderId, }).then(res => { - if (res.code == 0) { + if (res.code === 0) { uni.hideLoading() uni.showToast({ title: '已成功解锁', icon: 'none' }) - this.closePopusPay() + this.closePopupPay() this.closePay() that.showPay = false that.showMoney = false @@ -1037,7 +1036,7 @@ this.videoList = [...this.videoList, ...this.meunList.slice(index + 1, index + 3)] } //只剩一条数据 - if (lengths == 1) { + if (lengths === 1) { //把剩下的一条给放进去 this.videoList = [ //选中的那条 @@ -1049,7 +1048,7 @@ ] } //选择的就是最后一条数据 - if (lengths == 0) { + if (lengths === 0) { //后两条拿总数组的前两条就可以了 this.videoList = [...this.videoList, ...this.meunList.slice(0, 2)] } @@ -1062,7 +1061,7 @@ // const index = this.meunList.findIndex(menu => menu.courseDetailsId === item.courseDetailsId); // this.videoList = [this.meunList[index]] this.current = index - if (this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type) { + if (this.videoList[this.current].videoUrl === '' && this.videoList[this.current].price <= 0 && !type) { this.getDataList(this.courseId, this.courseDetailsId, true, 'select') return; } @@ -1104,7 +1103,7 @@ this.$refs.popup.close() }, //收藏 - shoucang() { + collectVideo() { if (uni.getStorageSync('token')) { let data = { courseId: this.courseId, @@ -1112,7 +1111,7 @@ type: this.isCollect == false ? 1 : 0 } httpsRequest.postJson('/app/courseCollect/insertCourseCollect', data).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.getMyLoveStatus() } }) diff --git a/me/feedbackIndex/feedbackIndex.vue b/me/feedbackIndex/feedbackIndex.vue index 07cec3c..9d1f23b 100644 --- a/me/feedbackIndex/feedbackIndex.vue +++ b/me/feedbackIndex/feedbackIndex.vue @@ -59,7 +59,7 @@ types:1 } this.$u.api.help(data).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.helpClassifyList = res.data for (var i = 0; i < this.helpClassifyList.length; i++) { this.helpClassifyList[i].parentId = 1 diff --git a/me/integral/index.vue b/me/integral/index.vue index 4c8a185..3da208b 100644 --- a/me/integral/index.vue +++ b/me/integral/index.vue @@ -48,7 +48,7 @@ methods: { getIntegral() { this.$u.api.integral().then(res => { - if (res.code == 0) { + if (res.code === 0) { this.integralNum = res.data.integralNum }else { uni.showToast({ diff --git a/me/invite/cashDetail.vue b/me/invite/cashDetail.vue index d2b38cc..4f04ce3 100644 --- a/me/invite/cashDetail.vue +++ b/me/invite/cashDetail.vue @@ -1,530 +1,532 @@ \ No newline at end of file diff --git a/me/invite/cashList.vue b/me/invite/cashList.vue index fe0950d..599c795 100644 --- a/me/invite/cashList.vue +++ b/me/invite/cashList.vue @@ -1,133 +1,133 @@ \ No newline at end of file diff --git a/me/invite/index.vue b/me/invite/index.vue index 5e3cf6c..56e8c6d 100644 --- a/me/invite/index.vue +++ b/me/invite/index.vue @@ -21,7 +21,7 @@ - + @@ -809,7 +809,7 @@ background: #F3F4F8; } - .invite-box { + .inviteBox { position: relative; margin-top: -240rpx; background-color: #fff; diff --git a/me/invite/inviteDet.vue b/me/invite/inviteDet.vue index 5345977..267b8ae 100644 --- a/me/invite/inviteDet.vue +++ b/me/invite/inviteDet.vue @@ -7,7 +7,7 @@ - + @@ -33,7 +33,7 @@ style="width: 80rpx;height:80rpx;border-radius: 50rpx;"> {{item.userName}} - 二级好友 + 二级好友 一级好友 @@ -45,7 +45,7 @@ - + @@ -84,7 +84,7 @@ limit: this.limit } this.$u.api.queryInviter(data).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.inviterRecord = res.data.inviteMoney.money } else { uni.showToast({ @@ -102,8 +102,8 @@ userType:1 } this.$u.api.inviter(data).then(res => { - if (res.code == 0) { - if (this.page == 1) { + if (res.code === 0) { + if (this.page === 1) { this.userList = res.data.list } else { this.userList = [...this.userList, ...res.data.list] @@ -128,7 +128,7 @@ \ No newline at end of file diff --git a/pages.json b/pages.json index 2602c26..97caa44 100644 --- a/pages.json +++ b/pages.json @@ -566,14 +566,14 @@ } }, { - "path": "wallet/mingxi", + "path": "wallet/wallet_detail", "style": { "navigationBarTitleText": "金币明细", "enablePullDownRefresh": true } }, { - "path": "jilu/jilu", + "path": "jilu/record", "style": { "navigationBarTitleText": "最近观看", "enablePullDownRefresh": true diff --git a/pages/chasingDrama/chasingDrama.vue b/pages/chasingDrama/chasingDrama.vue index e0d6da0..5baafbd 100644 --- a/pages/chasingDrama/chasingDrama.vue +++ b/pages/chasingDrama/chasingDrama.vue @@ -51,7 +51,7 @@ 最近观看 - + 更多 diff --git a/pages/learn/index.vue b/pages/learn/index.vue index f66961c..fe63579 100644 --- a/pages/learn/index.vue +++ b/pages/learn/index.vue @@ -4,20 +4,20 @@ - {{item.name}} - - - + + - @@ -71,7 +71,7 @@ - + - +
@@ -57,7 +57,7 @@ var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) { this.$Request.get('/app/common/type/49').then(res => { - if (res.code == 0) { + if (res.code === 0) { if (res.data && res.data.value) { if (this.openShare) { let ua = navigator.userAgent.toLowerCase(); @@ -97,7 +97,7 @@ } else { this.$Request.get('/app/common/type/50').then(res => { - if (res.code == 0) { + if (res.code === 0) { if (res.data && res.data.value) { if (this.openShares) { let ua = navigator.userAgent.toLowerCase(); @@ -151,7 +151,7 @@ width: 100%; height: 100%; } - .containers { + .containersView { width: 100%; height: 100%; } diff --git a/pages/login/bind.vue b/pages/login/bind.vue index 383040f..f3dd44c 100644 --- a/pages/login/bind.vue +++ b/pages/login/bind.vue @@ -1,5 +1,5 @@ @@ -29,8 +28,8 @@ return { mobile: '', code: '', - logining: false, - sending: false, + loginIng: false, + sendIng: false, sendTime: '获取验证码', count: 60, type: '', @@ -55,11 +54,11 @@ } = this; if (count === 1) { this.count = 60; - this.sending = false; + this.sendIng = false; this.sendTime = '获取验证码' } else { this.count = count - 1; - this.sending = true; + this.sendIng = true; this.sendTime = count - 1 + '秒后重新获取'; setTimeout(this.countDown.bind(this), 1000); } @@ -76,7 +75,7 @@ this.$queue.showLoading("正在发送验证码..."); this.$Request.getT('/app/Login/sendMsg/' + mobile + '/gzg').then(res => { if (res.code === 0) { - this.sending = true; + this.sendIng = true; this.$queue.showToast('验证码发送成功请注意查收'); this.countDown(); uni.hideLoading(); @@ -162,7 +161,7 @@ background: #557EFD; } - .container1 { + .containerView { top: 0; padding-top: 32upx; position: relative; diff --git a/pages/login/forgetPwd.vue b/pages/login/forgetPwd.vue index d002eac..a7446ae 100644 --- a/pages/login/forgetPwd.vue +++ b/pages/login/forgetPwd.vue @@ -13,7 +13,7 @@ 验证码 - + @@ -34,10 +34,10 @@ code: '', mobile: '', password: '', - sending: false, + sendIng: false, sendTime: '获取验证码', count: 60, - logining: false + loginIng: false } }, @@ -64,7 +64,7 @@ }) this.$u.get('/app/Login/sendMsg/' + mobile + '/forget').then(res => { if (res.code === 0) { - this.sending = true; + this.sendIng = true; uni.showToast({ title: '验证码发送成功请注意查收', icon: 'none', @@ -89,12 +89,12 @@ } = this; if (count === 1) { this.count = 60; - this.sending = false; + this.sendIng = false; this.sendTime = '获取验证码' } else { this.count = count - 1; - this.sending = true; - this.sendTime = count - 1 + '秒后重新获取'; + this.sendIng = true; + this.sendTime = count - 1 + '秒后获取'; setTimeout(this.countDown.bind(this), 1000); } }, @@ -140,7 +140,7 @@ duration: 1000 }) } else { - this.logining = true; + this.loginIng = true; // this.$queue.showLoading("正在修改密码中..."); uni.showLoading({ title: '正在修改密码中...' diff --git a/pages/login/register.vue b/pages/login/register.vue index f722530..3febca8 100644 --- a/pages/login/register.vue +++ b/pages/login/register.vue @@ -37,7 +37,7 @@ - + 注册即同意 @@ -89,7 +89,7 @@ showMa() { //查询官方邀请码 this.$Request.getT('/common/type/88').then(res => { - if (res.code == 0) { + if (res.code === 0) { this.invitation = res.data.value; } }); @@ -211,7 +211,7 @@ }) return } - if (invitation.length == 0 && registerCode == '是') { + if (invitation.length === 0 && registerCode === '是') { uni.showToast({ title: '请输入邀请码', icon: 'none', @@ -356,7 +356,7 @@ background: #ffffff; } - .footer { + .footerView { display: flex; justify-content: center; align-items: center; diff --git a/pages/login/registerApp.vue b/pages/login/registerApp.vue index 7f5eac6..f66fd44 100644 --- a/pages/login/registerApp.vue +++ b/pages/login/registerApp.vue @@ -37,7 +37,7 @@ - + 同意 @@ -362,7 +362,7 @@ background: #fff; } - .footer { + .footerView { display: flex; justify-content: center; align-items: center; diff --git a/pages/me/erweimaRegister.vue b/pages/me/erweimaRegister.vue index db02ee0..e939121 100644 --- a/pages/me/erweimaRegister.vue +++ b/pages/me/erweimaRegister.vue @@ -30,7 +30,7 @@ onLoad() { //pc展示用户端二维码 854 this.$Request.getT("/app/common/type/854").then(res => { - if (res.code == 0) { + if (res.code === 0) { if (res.data && res.data.value) { this.erweima = res.data.value; } @@ -38,7 +38,7 @@ }); //pc展示用户端文字 853 this.$Request.getT("/app/common/type/853").then(res => { - if (res.code == 0) { + if (res.code === 0) { if (res.data && res.data.value) { this.content = res.data.value; } @@ -58,7 +58,7 @@ follow() { if (this.$queue.getData("openid")) { this.$Request.get("/tao/wx/follow/" + this.$queue.getData("openid")).then(res => { - if (res === true) { + if (res) { window.location.replace(this.$queue.publicYuMing()); } }); diff --git a/pages/me/index.vue b/pages/me/index.vue index bad33ef..768bc7b 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -176,7 +176,7 @@ + @click="goNav('/me/jilu/record')"> @@ -313,9 +313,9 @@ this.token = uni.getStorageSync('token') if (this.token) { this.getMyMoney() - this.getJifen() + this.getPoints() this.$u.api.userinfo().then(res => { - if (res.code == 0 && res.data) { + if (res.code === 0 && res.data) { uni.setStorageSync('zhiFuBao', res.data.zhiFuBao) uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName) uni.setStorageSync('userName', res.data.userName) @@ -332,7 +332,7 @@ userId: uni.getStorageSync('userId') } this.$u.api.userVip(data).then(res => { - if (res.code == 0 && res.data && res.data.isVip == 2) { + if (res.code === 0 && res.data && res.data.isVip === 2) { this.isVIP = true; this.endTime = res.data.endTime uni.setStorageSync('isVIP', true) @@ -347,7 +347,7 @@ this.userName = uni.getStorageSync('userName') this.isVIP = uni.getStorageSync('isVIP') this.getMyLoveNum() - this.getMyZhuiNum() + this.getMyFansNum() } else { this.isLogin = false this.isVIP = false @@ -364,10 +364,10 @@ httpsRequest.getT("app/common/type/919", {}).then(res => { console.log(res); - if (res.code == 0) { + if (res.code === 0) { const sysInfo = uni.getSystemInfoSync(); - let isIos = sysInfo.platform == 'ios' - this.isShowMoneyPay = !(res.data.value == '1' && isIos) + let isIos = sysInfo.platform === 'ios' + this.isShowMoneyPay = !(res.data.value === '1' && isIos) } }); }, @@ -385,7 +385,7 @@ sdkContent: this.kami } this.$Request.postT('/app/sdkInfo/sdkExchange', data).then(res => { - if (res.code == 0) { + if (res.code === 0) { uni.showToast({ title: '兑换成功' }) @@ -394,7 +394,7 @@ userId: uni.getStorageSync('userId') } this.$u.api.userVip(datas).then(rest => { - if (rest.code == 0 && rest.data && rest.data.isVip == 2) { + if (rest.code === 0 && rest.data && rest.data.isVip === 2) { this.isVIP = true; this.endTime = rest.data.endTime uni.setStorageSync('isVIP', true) @@ -430,7 +430,7 @@ classify: 2 } this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.myLoveNum = res.data.total } else { this.myLoveNum = 0 @@ -438,14 +438,14 @@ }) }, //获取我追剧的数量 - getMyZhuiNum() { + getMyFansNum() { let data = { page: 1, limit: 1, classify: 1 } this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.myZhui = res.data.total } else { this.myZhui = 0 @@ -455,9 +455,9 @@ /** * 获取积分 */ - getJifen() { + getPoints() { this.$Request.getT('/app/integral/selectByUserId').then(res => { - if (res.code == 0) { + if (res.code === 0) { this.jifen = res.data.integralNum } else { this.jifen = 0 @@ -481,7 +481,7 @@ */ getMyMoney() { this.$Request.getT('/app/moneyDetails/selectUserMoney').then(res => { - if (res.code == 0) { + if (res.code === 0) { this.moneyNum = res.data.money this.userInfo = res.data // this.$Request.getT('/app/invite/selectInviteMoney').then(ret => { @@ -524,15 +524,15 @@ goMsg() { let kefu = uni.getStorageSync('kefu'); // 用户端联系方式 1 手机号 2企业微信 let kefuPhone = uni.getStorageSync('kefuPhone'); - if (kefu == 1) { + if (kefu === 1) { uni.navigateTo({ url: '/me/setting/kefu' }) - } else if (kefu == 3) { + } else if (kefu === 3) { uni.makePhoneCall({ phoneNumber: kefuPhone //仅为示例 }); - } else if (kefu == 2) { + } else if (kefu === 2) { // #ifdef MP-WEIXIN let that = this try { @@ -576,7 +576,7 @@ console.log(e) let token = uni.getStorageSync('token') if (token) { - if (type == 'tabbar') { + if (type === 'tabbar') { uni.switchTab({ url: e }) @@ -598,10 +598,10 @@ this.$u.api.bannerList({ classify: '3' }).then(res => { - if (res.code == 0 && res.data) { + if (res.code === 0 && res.data) { let arr = [] res.data.forEach(ret => { - if (ret.state == 1) { + if (ret.state === 1) { arr.push(ret) } }) diff --git a/pages/me/userinfo.vue b/pages/me/userinfo.vue index 7ddd39e..aad182d 100644 --- a/pages/me/userinfo.vue +++ b/pages/me/userinfo.vue @@ -1,7 +1,7 @@ @@ -99,7 +99,7 @@ code: code } this.$Request.postT('/app/Login/wxPhone', data).then(res => { - if (res.code == 0) { + if (res.code === 0) { this.phone = res.data.phone_info.purePhoneNumber; } else { uni.showToast({ @@ -294,7 +294,7 @@ getUserInfo() { let userId = uni.getStorageSync('userId') this.$u.api.userinfo().then(res => { - if (res.code == 0) { + if (res.code === 0) { this.userName = res.data.userName; this.phone = res.data.phone; this.phones = res.data.phone @@ -427,11 +427,11 @@ height: 100%; } - .usermain { + .userMain { background: #FFFFFF; } - .usermain-item { + .userMain-item { display: flex; align-items: center; margin-left: 40rpx; @@ -440,7 +440,7 @@ /* border-bottom: 2rpx solid #f2f2f2; */ } - .usermain-item.item-padding { + .userMain-item.item-padding { padding: 0 40rpx 0 0; } @@ -461,7 +461,7 @@ margin-top: 150rpx; } - .footer-btn .usermain-btn { + .footer-btn .userMain-btn { color: #FFFFFF; background: #ff7581; text-align: center; diff --git a/pages/task/index.vue b/pages/task/index.vue index f4c230f..0bf1a24 100644 --- a/pages/task/index.vue +++ b/pages/task/index.vue @@ -16,7 +16,7 @@ -