| | |
| | | <image src="/static/icon/ic_option@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="user-right-item" @click="jumpNotice"> |
| | | <view class="user-right-item-tips" v-if="objNum && objNum.unRead === 1"></view> |
| | | <view class="user-right-item-tips" v-if="objNum && objNum.unRead === 0"></view> |
| | | <image src="/static/icon/ic_notice@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="guanggao" @click="jumpShare()"> |
| | | <image src="/static/images/share@2x.png" mode="widthFix"></image> |
| | | <image :src="share" mode="widthFix"></image> |
| | | </view> |
| | | <view class="gn"> |
| | | <view class="gn-item" @click="jump()"> |
| | |
| | | <image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="gn-item"> |
| | | <button open-type="contact">客服</button> |
| | | <text>在线客服</text> |
| | | <image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image> |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | objNum: null, |
| | | orderNum: null |
| | | orderNum: null, |
| | | share: '' |
| | | }; |
| | | }, |
| | | async onLoad() { |
| | | await this.$onLaunched; |
| | | this.getMyInfo() |
| | | if (uni.getStorageSync('backgroundImage')) { |
| | | this.share = uni.getStorageSync('backgroundImage').centerInviteBg |
| | | } |
| | | this.ordersStatistics() |
| | | }, |
| | | async onShow() { |
| | | await this.$onLaunched; |
| | | if (this.userInfo) { |
| | | this.getMyInfo() |
| | | } |
| | | }, |
| | | methods: { |
| | | jumpTo(type) { |
| | |
| | | }, |
| | | // 授权手机号 |
| | | getphonenumber(e) { |
| | | this.$u.api.wxPhone({ |
| | | code: e.detail.code, |
| | | shopId:this.recshopid, |
| | | recId:this.recuserid, |
| | | openid: this.openid |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.$store.commit('setUserInfo', res.data.member) |
| | | this.$store.commit('setToken', res.data.token) |
| | | this.$store.commit('setRecShopId','') |
| | | this.$store.commit('setRecUserId','') |
| | | } |
| | | }) |
| | | if (e.detail.errMsg === 'getPhoneNumber:ok') { |
| | | this.$u.api.wxPhone({ |
| | | code: e.detail.code, |
| | | shopId:this.recshopid, |
| | | recId:this.recuserid, |
| | | openid: this.openid |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.$store.commit('setUserInfo', res.data.member) |
| | | this.$store.commit('setToken', res.data.token) |
| | | this.$store.commit('setRecShopId','') |
| | | this.$store.commit('setRecUserId','') |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | // 获取收藏等数量 |
| | | getMyInfo() { |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | position: relative; |
| | | &:last-child { |
| | | border: none !important; |
| | | } |
| | | button { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | opacity: 0; |
| | | z-index: 99; |
| | | } |
| | | text { |
| | | font-weight: 400; |
| | | font-size: 30rpx; |