bug修复

This commit is contained in:
13405411873 2025-05-08 18:07:19 +08:00
parent ce2138ca5b
commit cc17749a0c
6 changed files with 33 additions and 41 deletions

View File

@ -229,7 +229,7 @@
focus: false,
queryParams: {
pageNum: 1,
pageSize: 10,
pageSize: 30,
//:new-money-
sortBy: "",
//--
@ -418,6 +418,7 @@
this.queryParams.feeDown = null
this.queryParams.fansDown = null
this.queryParams.fansUp = null
this.queryParams.cityId = null
},
//
closeDrawer(e) {
@ -447,10 +448,6 @@
} else if ('最新' == item) {
//
//
if (!await this.checkIfHasRights(rightsCode.highNewNotice)) {
return
}
this.queryParams.sortBy = "new"
} else if ('急招' == item) {

View File

@ -83,11 +83,9 @@
if (params.canBack) {
this.canBack = params.canBack
}
},
created() {
this.wxLogin()
},
methods: {
/**
* 同意
@ -120,7 +118,7 @@
}
})
},
wxLogin() {
async wxLogin() {
let that = this
uni.login({
provider: 'weixin',
@ -135,11 +133,12 @@
})
},
//
getPhone(e) {
async getPhone(e) {
if (!this.ifAgree) {
toast("请先阅读并同意《隐私协议》《用户服务协议》")
return
}
let ok = await this.wxLogin()
console.log("微信小程序发起授权登录")
this.$modal.loading("登录中...")
uni.checkSession({

View File

@ -30,16 +30,11 @@
<!-- #endif -->
<!-- 调整h5 -->
<!-- #ifdef MP-WEIXIN -->
<view class="button-dom" @click="openVip()">购买</view>
<button class="button-dom" open-type="contact">购买</button>
<!-- #endif -->
</view>
<view class="item-field" style="align-items: center;">
<view class="my-suggest-dom" @click="viewRichText()">
<text>查看急招券购买协议</text>
</view>
</view>
</view>
<view style="width: 100%;" v-if="1==menuIndex">
<view class="buy-list-box">
@ -116,7 +111,7 @@
pageNum: 1,
pageSize: 10,
orderType: '02',
isPay:'1',
isPay: '1',
userId: null,
},
total: 0,
@ -132,7 +127,7 @@
this.initCoupon();
this.initOrder()
//urlsearch
if (location.search) {
if (location && location.search) {
let search = location.search.slice(1);
let arr = search.split("&");
let result = {};

View File

@ -33,7 +33,8 @@
<!-- #endif -->
<!-- 调整h5 -->
<!-- #ifdef MP-WEIXIN -->
<view class="buy-button" @click="openVip()">立即开通</view>
<button class="buy-button" open-type="contact">立即开通</button>
<!-- <view class="buy-button" @click="openVip()">立即开通</view> -->
<!-- #endif -->
<!-- 协议 -->

View File

@ -59,10 +59,10 @@
</view>
<!-- 积分 -->
<view class="points-box" v-if="'02'==localUserType">
<view class="item-box" @click="dialogToggle()">
<view class="item-box" @click="goPoints()">
<view class="item-text-box">
<view>积分<text class="red-text">{{userInfo.pointsBalance||'0'}}</text></view>
<view class="dl-little">赚积分<uni-icons type="right" size="10">{{item.unicode}}</uni-icons></view>
<view class="dl-little">去提现<uni-icons type="right" size="10">{{item.unicode}}</uni-icons></view>
</view>
<image src="@/static/mine/baoming.png" mode="aspectFit"></image>
</view>
@ -85,17 +85,17 @@
</view>
</view>
<!-- 发布通告 -->
<view class="public-notice-box" v-if="'01'==localUserType">
<!-- <view class="public-notice-box" v-if="'01'==localUserType">
<view class="left-box">
<view>发布通告额度剩余{{userInfo.addNotice||0}}</view>
<!-- <progress style="width: 90%;" border-radius="5" percent="40" activeColor="#FC1F3E"-->
<!-- backgroundColor="#DEDEDE" stroke-width="8" />-->
</view>
<!-- backgroundColor="#DEDEDE" stroke-width="8" />-->
<!-- </view>
<view class="right-box" @click="goMemberCard">
获取更多
<uni-icons type="right" color="#623109" size="12"></uni-icons>
</view>
</view>
</view> -->
</view>
<view class="dl-max-box">
<!-- 个人信息和其他信息 -->

View File

@ -44,18 +44,18 @@ export function hasRights(code) {
setJSONData(constant.userRightsKey, res.data)
//取用户当前身份
let userType = getStrData(constant.userTypeKey)
let userRights = {}
if (constant.bz == userType) {
//博主
userRights = getJSONData(constant.userRightsKey)['bz']
} else {
//通告主
userRights = getJSONData(constant.userRightsKey)['tgz']
}
let bzRights = {}
let tgzRights = {}
//博主
bzRights = getJSONData(constant.userRightsKey)['bz']
//通告主
tgzRights = getJSONData(constant.userRightsKey)['tgz']
//默认无权限
let rtnData = false
if (userRights.hasOwnProperty(code)) {
rtnData = userRights[code]
if (bzRights.hasOwnProperty(code)) {
rtnData = bzRights[code]
} else if (tgzRights.hasOwnProperty(code)) {
rtnData = tgzRights[code]
}
console.log(rtnData, 51);
resolve(rtnData)