|
|
|
@ -132,16 +132,21 @@ |
|
|
|
|
<uni-popup ref="popup" type="center"> |
|
|
|
|
<view class="popupbox"> |
|
|
|
|
<text style="float: right;" class="iconfont iconfont icon-ic_close fs-44 colorhui1" @click="close"></text> |
|
|
|
|
<view class="neir" v-if='userInfo.overdue_day>0'> |
|
|
|
|
<view class="neir" v-if='userInfo.overdue_day>0 && !userInfo.yaoqing_status'> |
|
|
|
|
您的会员卡 <text v-if="userInfo.overdue_day>0">还有{{userInfo.overdue_day}}日到期</text> |
|
|
|
|
<text v-else>已到期</text> |
|
|
|
|
<br /> |
|
|
|
|
请尽快续费哦~ |
|
|
|
|
</view> |
|
|
|
|
<view class="neir" v-else-if='userInfo.yaoqing_status'> |
|
|
|
|
请通过邀请码、扫码、分享、邀请人手机号进入办理九号笙活会员享受折扣 |
|
|
|
|
<input style="border: 1px solid;height: 35px;border-radius: 15px;" type="text" placeholder="请输入邀请手机号" @input="onInput" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="neir" v-else> |
|
|
|
|
购买会员享优惠 |
|
|
|
|
</view> |
|
|
|
|
<view class="huiyuanbtn" @click="chuiyuan" v-if='userInfo.overdue_day>0'>立即续费</view> |
|
|
|
|
<view class="huiyuanbtn" @click="chuiyuan" v-if='userInfo.overdue_day>0 && !userInfo.yaoqing_status'>立即续费</view> |
|
|
|
|
<view class="huiyuanbtn" @click="bangdingshangji" v-else-if='userInfo.yaoqing_status'>立即绑定</view> |
|
|
|
|
<view class="huiyuanbtn" @click="chuiyuan" v-else> |
|
|
|
|
立即购买 |
|
|
|
|
</view> |
|
|
|
@ -160,6 +165,9 @@ |
|
|
|
|
getCouponNewUser, |
|
|
|
|
copyRight |
|
|
|
|
} from '@/api/api.js'; |
|
|
|
|
import { |
|
|
|
|
bindshangji |
|
|
|
|
} from '@/api/user.js'; |
|
|
|
|
import { |
|
|
|
|
getShare |
|
|
|
|
} from '@/api/public.js'; |
|
|
|
@ -357,6 +365,7 @@ |
|
|
|
|
positionTop: 0, |
|
|
|
|
isFooter: false, |
|
|
|
|
pdHeight: 0, //自定义底部导航上下边距和 |
|
|
|
|
bdphone:'', |
|
|
|
|
contentmendian: { |
|
|
|
|
// 自己的位置 |
|
|
|
|
latitude:'', |
|
|
|
@ -498,6 +507,9 @@ |
|
|
|
|
// url:'/pages/store/table_code/index?store_id=1&qrcode_id=3' |
|
|
|
|
// }) |
|
|
|
|
// }, |
|
|
|
|
onInput(e){ |
|
|
|
|
this.bdphone = e.target.value; |
|
|
|
|
}, |
|
|
|
|
getLocation(){ |
|
|
|
|
var that=this |
|
|
|
|
uni.getLocation({ |
|
|
|
@ -507,6 +519,8 @@ |
|
|
|
|
console.log('当前位置的纬度:' + res.latitude); |
|
|
|
|
that.contentmendian.longitude=res.longitude |
|
|
|
|
that.contentmendian.latitude=res.latitude |
|
|
|
|
uni.setStorageSync('user_latitude',res.latitude) |
|
|
|
|
uni.setStorageSync('user_longitude',res.longitude) |
|
|
|
|
getList(that.contentmendian).then(res => { |
|
|
|
|
console.log(585,uni.getStorageSync('mdnane')); |
|
|
|
|
if(uni.getStorageSync('mdnane')==''){ |
|
|
|
@ -543,6 +557,17 @@ |
|
|
|
|
url:'/pages/annex/vip_paid/index' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
bangdingshangji(){ |
|
|
|
|
let phone = this.bdphone; |
|
|
|
|
let parambd = {phone:phone}; |
|
|
|
|
bindshangji(parambd).then(res => { |
|
|
|
|
this.close() |
|
|
|
|
}).catch(err => { |
|
|
|
|
return this.$util.Tips({ |
|
|
|
|
title: err |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
close(){ |
|
|
|
|
this.$refs.popup.close('center') |
|
|
|
|
}, |
|
|
|
@ -1013,7 +1038,7 @@ |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.popupbox{ |
|
|
|
|
width: 600rpx; |
|
|
|
|
height: 350rpx; |
|
|
|
|
min-height: 350rpx; |
|
|
|
|
background: #1C1A1F; |
|
|
|
|
box-shadow: 0rpx 5rpx 16rpx 0rpx rgba(6,3,14,0.39); |
|
|
|
|
border-radius: 20rpx; |
|
|
|
|