| | |
| | | </template> --> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <!-- <view class="auth" v-if="userInfo && userInfo.over_auth != 1" @tap="$util.checkGoPages('/pages/my/my')"> |
| | | <image src="@/static/imgs/notice.png" mode=""></image> |
| | | <text>您还未进行实名认证,点击前往实名认证</text> |
| | | <view class="">去认证</view> |
| | | </view> --> |
| | | |
| | | |
| | | <!-- <view class="num-wrapper tui-skeleton-rect"> |
| | | <view class="num-item" style="display: flex;background: white;border-radius: 24rpx;padding: 22rpx;width: 48%;" @tap="$util.checkLogin('/pages/collect/collect')"> |
| | | <view style="padding-right: 32rpx;"> |
| | |
| | | <view style="flex: 1"> |
| | | <view class="txt" style="color: #666;text-align:left">我的收藏</view> |
| | | <view class="num" style="color: #333;text-align:left;margin-top: 8rpx;">0</view> |
| | | |
| | | |
| | | </view> |
| | | </view> |
| | | <view style="display: flex;background: white;border-radius: 24rpx;padding: 22rpx;width: 48%;" class="num-item" @tap="$util.checkLogin('/pages/address/address')"> |
| | |
| | | <view style="flex: 1"> |
| | | <view class="txt" style="color: #666;text-align:left">我的地址</view> |
| | | <view class="num" style="color: #333;text-align:left;margin-top: 5rpx;">0</view> |
| | | |
| | | |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | </view> --> |
| | | |
| | | |
| | | <view class="navs"> |
| | | <view class="title" @tap="$util.checkLogin('/pages/order/order')"> |
| | | <text>我的订单</text> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="mySer"> |
| | | <view class="title">我的服务</view> |
| | | <view class="mySerCon"> |
| | |
| | | <view>{{item.text}}</view> |
| | | </view> |
| | | </template> |
| | | <view class="mySerCon-v" @tap="toHuishou" > |
| | | <template v-if="isShop"> |
| | | <view v-if="isShop" class="mySerCon-v" @tap="toHuishou" > |
| | | <template> |
| | | <image src="/static/imgs/quanshou.png" mode="widthFix"></image> |
| | | <text>会员权收</text></template> |
| | | |
| | | <text>会员权益</text></template> |
| | | </view> |
| | | <view class="mySerCon-v" @tap="goAbout"> |
| | | <image :src="'../../static/imgs/mf1.png'" mode=""></image> |
| | | <view>关于澜品优选</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view @tap="goWebUrl('http://beian.miit.gov.cn')">APP备案号: {{Config.icp}}</view> |
| | | <view @tap="goWebUrl('http://beian.miit.gov.cn')">Copyright © 2025 数澜科技 All Rights Reserved.</view> |
| | | <!-- <view @tap="goWebUrl('http://beian.miit.gov.cn')">Copyright © 2025 {{Config.url}} All Rights Reserved.</view> --> |
| | | |
| | | |
| | | </view> |
| | | <agreePup ref="agreePup1" :gp="1" title="注册协议"></agreePup> |
| | | <agreePup ref="agreePup2" :gp="2" title="隐私政策"></agreePup> |
| | |
| | | <view @click="$refs.comment.close()" style="font-weight: 500;font-size: 32rpx;color: #fff;text-align: center;padding: 24rpx 28rpx;border-top: 2rpx solid #EEEEEE;background: #4766FE;;border-radius: 40rpx ;">好的</view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | </uni-popup> |
| | | |
| | | |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | {index: 6, text: '联系客服'}, |
| | | ], |
| | | errState: '', |
| | | isShop: false, |
| | | boughtEquity: 0, |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | const _this = this; |
| | | if(_this.$util.getUserInfo()?.phone){ |
| | | uni.request({ |
| | | url: _this.$webHost+'/api/v2/auth/qxgIosUnionLogin?phone='+_this.$util.getUserInfo().phone, |
| | | url: _this.$webHost+'/api/v2/auth/iosShopUnionLogin?phone='+_this.$util.getUserInfo().phone + '&configureToDomain=10', |
| | | data:{ |
| | | customerId: uni.getStorageSync('ygxLogin').customerId, |
| | | appId: uni.getStorageSync('ygxLogin').appId |
| | | }, |
| | | success: function (res) { |
| | | _this.isShop = res?.data?.data?.isShop; |
| | | _this.boughtEquity = res?.data?.data?.boughtEquity; |
| | | uni.setStorageSync('ygxLogin', res.data.data) |
| | | console.log('isShop',_this.isShop) |
| | | console.log('res',res) |
| | | } |
| | | }) |
| | | } else { |
| | | _this.isShop = false |
| | | } |
| | | }, |
| | | methods: { |
| | | toHuishou(){ |
| | | const _this = this; |
| | | if(!_this.isShop){ |
| | | return |
| | | } |
| | | uni.request({ |
| | | url: _this.$webHost+'/api/v2/customer/ryxIsBuyEquity?phone='+_this.$util.getUserInfo().phone, |
| | | data:{ |
| | | customerId: uni.getStorageSync('ygxLogin').customerId, |
| | | appId: uni.getStorageSync('ygxLogin').appId |
| | | }, |
| | | success: function (res) { |
| | | if(res.data.code==200){ |
| | | uni.navigateTo( { |
| | | url: '/pages/quanshou/index' |
| | | }) |
| | | |
| | | } else { |
| | | _this.errState = res.data.data; |
| | | _this.$refs.comment.open() |
| | | |
| | | } |
| | | } |
| | | goAbout() { |
| | | uni.navigateTo({ |
| | | url:'/pages/about/about' |
| | | }) |
| | | |
| | | }, |
| | | }, |
| | | toHuishou(){ |
| | | const _this = this; |
| | | if(!_this.isShop){ |
| | | return |
| | | } |
| | | if(_this.boughtEquity) { |
| | | uni.request({ |
| | | url: _this.$webHost+'/api/v2/customer/ryxIsBuyEquity?phone='+_this.$util.getUserInfo().phone, |
| | | data:{ |
| | | customerId: uni.getStorageSync('ygxLogin').customerId, |
| | | appId: uni.getStorageSync('ygxLogin').appId |
| | | }, |
| | | success: function (res) { |
| | | if(res.data.code==200){ |
| | | uni.navigateTo( { |
| | | url: '/pages/quanshou/index' |
| | | }) |
| | | } else { |
| | | _this.errState = res.data.data; |
| | | _this.$refs.comment.open() |
| | | } |
| | | } |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: '/pages/quanyi/index' |
| | | }) |
| | | } |
| | | }, |
| | | // 收藏+浏览记录 |
| | | goMenuPage(url) { |
| | | if (this.userInfo) { |
| | |
| | | }, |
| | | setImg(){ |
| | | if(uni.getSystemInfoSync().platform != 'ios'){ |
| | | this.$refs['authpup'].open() |
| | | this.$refs['authpup'].open() |
| | | }else{ |
| | | this.chooseImg() |
| | | }//调起自定义权限目的弹框,具体可看示例里面很详细 |
| | |
| | | changeAuth () { |
| | | //这里是权限通过后执行自己的代码逻辑 |
| | | if(uni.getSystemInfoSync().platform !='ios'){ |
| | | this.$refs['camears'].open() |
| | | this.$refs['camears'].open() |
| | | } |
| | | this.chooseImg() |
| | | }, |
| | |
| | | sizeType: ['original', 'compressed'], |
| | | success: (chooseImageRes) => { |
| | | let tempFilePaths = chooseImageRes.tempFilePaths |
| | | let token = uni.getStorageSync('lzsc-token') |
| | | let token = uni.getStorageSync('pig-token') |
| | | let header = { |
| | | 'Accept': 'application/json', |
| | | 'authorization': token, |
| | |
| | | }) |
| | | }, |
| | | wechatWork () { |
| | | let t = this |
| | | let t = this |
| | | if(t.Config){ |
| | | if(t.Config.put_open == 1){ |
| | | uni.showModal({ |
| | |
| | | console.log("success:" + JSON.stringify(res)) |
| | | }, |
| | | fail: (err) => { |
| | | console.log("fail:" + JSON.stringify(err)) |
| | | console.log("fail:" + JSON.stringify(err)) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | @import url(/static/css/my2.css); |
| | | |
| | | |
| | | .num-wrapper { |
| | | width: 650rpx; |
| | | margin: 30rpx auto; |
| | |
| | | justify-content: space-between; |
| | | color: #fff; |
| | | gap: 20rpx; |
| | | |
| | | |
| | | } |
| | | .num-wrapper .num-item { |
| | | width: 33.33%; |
| | | text-align: center; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | .num-wrapper .num { |
| | | font-size: 42rpx; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | |
| | | .num-wrapper .txt { |
| | | margin-top: 10rpx; |
| | | font-size: 26rpx; |
| | | color: rgba(255, 255, 255, 0.6); |
| | | } |
| | | </style> |
| | | </style> |