|
|
|
@ -12,7 +12,7 @@ |
|
|
|
|
<image :src="imagewxUrl+imgadres" v-if="!user.headerImg"></image> |
|
|
|
|
<image :src="user.headerImg" v-else></image> |
|
|
|
|
</view> |
|
|
|
|
<!-- 昵称,个性签名 --> |
|
|
|
|
<!-- 昵称 --> |
|
|
|
|
<view class="right"> |
|
|
|
|
<!-- #ifdef MP --> |
|
|
|
|
<view class="username" v-if="user && user.infoCompleteStatus == 1" @click="jumplogin">点击获取信息</view> |
|
|
|
@ -21,126 +21,139 @@ |
|
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
<view class="username">{{user.name}}</view> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
<view class="font14 fcorfff" v-if="!user.gold">积分: 0</view> |
|
|
|
|
<view class="font14 fcorfff" v-else>积分: {{user.gold}} 个</view> |
|
|
|
|
<!-- <view class="signature" @tap="toSetting">{{user.signature}}</view> --> |
|
|
|
|
<view class="font14 fcor333">{{userphone}}</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 二维码按钮 --> |
|
|
|
|
<!-- #ifdef MP --> |
|
|
|
|
<!-- <button class="erweima fotct aliitem font14" v-if="user == ''" open-type="getPhoneNumber" |
|
|
|
|
@getphonenumber="loginByPhone"> |
|
|
|
|
<image src="../../../static/img/jingbi.png"></image> 充值积分 |
|
|
|
|
</button> --> |
|
|
|
|
<button class="erweima fotct aliitem font14" @click="toDeposit"> |
|
|
|
|
<image src="../../../static/img/jingbi.png"></image> 充值积分 |
|
|
|
|
</button> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
<button class="erweima fotct aliitem font14" v-if="user.phone == null" @click="jumpH5Bding"> |
|
|
|
|
<image src="../../../static/img/jingbi.png"></image> 充值积分 |
|
|
|
|
</button> |
|
|
|
|
<button class="erweima fotct aliitem font14" v-else @click="toDeposit"> |
|
|
|
|
<image src="../../../static/img/jingbi.png"></image> 充值积分 |
|
|
|
|
</button> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
</view> |
|
|
|
|
<!-- 优惠券,卡券 --> |
|
|
|
|
<view class="headcoun width100"> |
|
|
|
|
<view class="height80 alijus width92 border-8r backcorfff"> |
|
|
|
|
<view class="width45 fotct" @click="jumppage(5)"> |
|
|
|
|
<view class="width100 font12 fcor333"><text class="font20 marglerig">{{textnum}} </text> 张</view> |
|
|
|
|
<view class="width100 font18 fcor333 mart5">卡券</view> |
|
|
|
|
</view> |
|
|
|
|
<view style="width: 1px;height: 50px;background-color: #f6f6f6;"> |
|
|
|
|
</view> |
|
|
|
|
<view class="width45 fotct" @click="jumppage(6)"> |
|
|
|
|
<view class="width100 font12 fcor333"><text class="font20 marglerig">{{textSend}} </text> 张</view> |
|
|
|
|
<view class="width100 font18 fcor333 mart5">优惠券</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- 订单-余额 --> |
|
|
|
|
<view class="order"> |
|
|
|
|
<!-- 订单类型 --> |
|
|
|
|
<view class="title">我的订单</view> |
|
|
|
|
<view class="title width94"> |
|
|
|
|
<view class="width70 fontwig6">订单</view> |
|
|
|
|
<view class="width30 alijusend font14 fcor999" @click="toOrderList(-1)">全部订单<image class="icon15" |
|
|
|
|
mode="widthFix" src="../../../static/img/jt.png"> |
|
|
|
|
</image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="list"> |
|
|
|
|
<view class="box" v-for="(row,index) in orderList" :key="index" @tap="toOrderList(index)"> |
|
|
|
|
<uni-badge style="width: 20px;position: absolute; left: 15%;" v-if="row.text == '待支付' && therrNum " |
|
|
|
|
<uni-badge style="width: 20px;position: absolute; left: 18%;" v-if="row.text == '待支付' && therrNum " |
|
|
|
|
:text="therrNum" type="error" size="normal"></uni-badge> |
|
|
|
|
<uni-badge style="width: 20px;position: absolute; left: 52%;" |
|
|
|
|
v-if="row.text == '已完成' && whetherCheckNum " :text="whetherCheckNum" type="error" size="normal"> |
|
|
|
|
</uni-badge> |
|
|
|
|
|
|
|
|
|
<uni-badge style="width: 20px;position: absolute; left: 33%;" |
|
|
|
|
<uni-badge style="width: 20px;position: absolute; left: 42%;" |
|
|
|
|
v-if="row.text == '已支付' && orderPayNum " :text="orderPayNum" type="error" size="normal"> |
|
|
|
|
</uni-badge> |
|
|
|
|
<view class="img"> |
|
|
|
|
<view class="icon" :class="row.icon"></view> |
|
|
|
|
<image :src="row.icon" class="icon40" mode="widthFix"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="text">{{row.text}}</view> |
|
|
|
|
<view class="text mart10">{{row.text}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width90 mart10 height60"> |
|
|
|
|
<swiper circular="true" interval="3000" autoplay="true"> |
|
|
|
|
<swiper-item v-for="(swiper,index) in nopaylist" :key="index"> |
|
|
|
|
<view class="alijusstart border-8r backcor9 height60 "> |
|
|
|
|
<image mode="widthFix" class="icon40 margle10" src="../../../static/img/user/user5.png"> |
|
|
|
|
</image> |
|
|
|
|
<view class="width50 margle10"> |
|
|
|
|
<view class="font15 fcor333 fontspec">等待付款</view> |
|
|
|
|
<view class="font12 fcor666 fontspec mart5">剩余时间: 13:44</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="topay"> |
|
|
|
|
去支付 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 话费充值 --> |
|
|
|
|
|
|
|
|
|
<!-- 我的资产 --> |
|
|
|
|
<view class="order"> |
|
|
|
|
<!-- 订单类型 --> |
|
|
|
|
<view class="title">话费充值</view> |
|
|
|
|
<view class="list"> |
|
|
|
|
<view class="box" v-for="(row,index) in huafeiList" :key="index" @tap="toOrdehuafeirList(index)"> |
|
|
|
|
<uni-badge style="width: 20px;position: absolute; left: 15%;" |
|
|
|
|
v-if="row.text == '待支付' && rechargeOrderNum " :text="rechargeOrderNum" type="error" |
|
|
|
|
size="normal"></uni-badge> |
|
|
|
|
<view class="img"> |
|
|
|
|
<view class="icon" :class="row.icon"></view> |
|
|
|
|
</view> |
|
|
|
|
<view class="text">{{row.text}}</view> |
|
|
|
|
<view class="title width94"> |
|
|
|
|
<view class="width70 fontwig6 alijusstart">我的资产 |
|
|
|
|
<image mode="widthFix" class="icon30" v-if="assetsstu == 2" @click="updatestu(2)" |
|
|
|
|
src="../../../static/img/user/user6.png"></image> |
|
|
|
|
<image mode="widthFix" class="icon20 margle" v-if="assetsstu == 1" @click="updatestu(1)" |
|
|
|
|
src="../../../static/img/user/user14.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 alijusend font14 fcor999" @click="jumppage(4)">进入卡包<image class="icon15" |
|
|
|
|
mode="widthFix" src="../../../static/img/jt.png"> |
|
|
|
|
</image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 工具栏 --> |
|
|
|
|
<view class="toolbar"> |
|
|
|
|
<view class="title">卡券中心</view> |
|
|
|
|
<view class="list"> |
|
|
|
|
<view class="box" v-for="(row,index) in mytoolbarList" :key="index" @tap="toPage(row.url,row.text)"> |
|
|
|
|
<!-- <view style="width: 10px;height: 10px;"> |
|
|
|
|
<uni-badge text="1" type="error" /> |
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
<uni-badge style="width: 20px;position: absolute; right: 55%;" v-if="row.text == '我的卡券' && textnum " |
|
|
|
|
:text="textnum" type="error" size="normal"></uni-badge> |
|
|
|
|
<uni-badge style="width: 20px;position: absolute; right: 30%;" |
|
|
|
|
v-if="row.text == '我的优惠券' && textSend " :text="textSend" type="error" size="normal"></uni-badge> |
|
|
|
|
<view class="img"> |
|
|
|
|
<image :src="imagewxUrl+row.img"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="text">{{row.text}}</view> |
|
|
|
|
<view class="mart15 width90 alijus fotct paddbotm10"> |
|
|
|
|
<view class="width31"> |
|
|
|
|
<view class="fontspec font20 fcor333 fontwig6" v-if="assetsstu == 2">****</view> |
|
|
|
|
<view class="fontspec font20 fcor333 fontwig6" v-if="assetsstu == 1">¥2400</view> |
|
|
|
|
<view class="fontspec font14 fcor333 mart5">积分余额</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width31"> |
|
|
|
|
<view class="fontspec font20 fcor333 fontwig6" v-if="assetsstu == 2">****</view> |
|
|
|
|
<view class="fontspec font20 fcor333 fontwig6" v-if="assetsstu == 1">¥2400</view> |
|
|
|
|
<view class="fontspec font14 fcor333 mart5">油卡余额</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width31"> |
|
|
|
|
<view class="fontspec font20 fcor333 fontwig6" v-if="assetsstu == 2">****</view> |
|
|
|
|
<view class="fontspec font20 fcor333 fontwig6" v-if="assetsstu == 1">¥2400</view> |
|
|
|
|
<view class="fontspec font14 fcor333 mart5">工会卡余额</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- 我的推广 --> |
|
|
|
|
<view class="toolbar" style="margin-top: 20px;"> |
|
|
|
|
<view class="title">推广中心</view> |
|
|
|
|
<view class="list"> |
|
|
|
|
<view class="box" v-for="(row,index) in mytgbarList" :key="index" @tap="toPage(row.url,row.text)"> |
|
|
|
|
<!-- <view style="width: 10px;height: 10px;"> |
|
|
|
|
<uni-badge text="1" type="error" /> |
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
<uni-badge style="width: 20px;position: absolute; right: 30%;" v-if="row.text == '我的卡券' && textnum " |
|
|
|
|
:text="textnum" type="error" size="normal"></uni-badge> |
|
|
|
|
<uni-badge style="width: 20px;position: absolute; right: 7%;" |
|
|
|
|
v-if="row.text == '我的优惠券' && textSend " :text="textSend" type="error" size="normal"></uni-badge> |
|
|
|
|
<view class="img" v-if="row.text != '客服' "> |
|
|
|
|
<image :src="imagewxUrl+row.img"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="text" v-if="row.text != '客服' ">{{row.text}}</view> |
|
|
|
|
<button open-type="contact" style="background-color: transparent;" class="img" show-message-card |
|
|
|
|
session-from send-message-path send-message-title v-if="row.text == '客服' "> |
|
|
|
|
<image :src="imagewxUrl+row.img"></image> |
|
|
|
|
</button> |
|
|
|
|
<view class="text" v-if="row.text == '客服' ">{{row.text}}</view> |
|
|
|
|
<!-- 商务中心 --> |
|
|
|
|
<view class="order"> |
|
|
|
|
<view class="title width94"> |
|
|
|
|
<view class="width70 fontwig6">商务中心</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width90 alijus fotct paddbotm10 mart10"> |
|
|
|
|
<view class="width31" @click="jumppage(1)"> |
|
|
|
|
<image mode="widthFix" class="icon45" src="../../../static/img/user/user7.png"></image> |
|
|
|
|
<view class="fontspec font14 fcor333 mart5">门店登陆</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width31" @click="jumppage(2)"> |
|
|
|
|
<image mode="widthFix" class="icon45" src="../../../static/img/user/user8.png"></image> |
|
|
|
|
<view class="fontspec font14 fcor333 mart5">代理商登陆</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width31" @click="jumppage(3)"> |
|
|
|
|
<image mode="widthFix" class="icon45" src="../../../static/img/user/user9.png"></image> |
|
|
|
|
<view class="fontspec font14 fcor333 mart5">我的推广</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="toolbar" style="margin-top: 20px;"> |
|
|
|
|
<view class="title">我的</view> |
|
|
|
|
|
|
|
|
|
<!-- 其他 --> |
|
|
|
|
<view class="order"> |
|
|
|
|
<view class="height20 width94"> |
|
|
|
|
</view> |
|
|
|
|
<view class="list"> |
|
|
|
|
<view class="box" v-for="(row,index) in czList" :key="index" @tap="toPage(row.url,row.text)"> |
|
|
|
|
<view class="img"> |
|
|
|
|
<image :src="row.img"></image> |
|
|
|
|
<view class="img" v-if="row.text != '客服' "> |
|
|
|
|
<image :src="row.img" class="icon40" mode="widthFix"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="text">{{row.text}}</view> |
|
|
|
|
<button open-type="contact" style="background-color: transparent;" class="img" show-message-card |
|
|
|
|
session-from send-message-path send-message-title v-if="row.text == '客服' "> |
|
|
|
|
<image class="icon40" mode="widthFix" :src="row.img"></image> |
|
|
|
|
</button> |
|
|
|
|
<view class="text mart10">{{row.text}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 占位 --> |
|
|
|
|
<view class="place-bottom"></view> |
|
|
|
|
<!-- <authorize></authorize> --> |
|
|
|
|
</view> |
|
|
|
@ -161,7 +174,6 @@ |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
isfirst: true, |
|
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
|
imgadres: 'head.png', |
|
|
|
|
headerPosition: "fixed", |
|
|
|
@ -179,21 +191,18 @@ |
|
|
|
|
// 订单类型 |
|
|
|
|
orderList: [{ |
|
|
|
|
text: '待支付', |
|
|
|
|
icon: "fukuan" |
|
|
|
|
icon: "../../../static/img/user/user1.png" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
text: '已支付', |
|
|
|
|
icon: "fahuo" |
|
|
|
|
icon: "../../../static/img/user/user2.png" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
text: '已完成', |
|
|
|
|
icon: "shouhuo" |
|
|
|
|
icon: "../../../static/img/user/user3.png" |
|
|
|
|
}, { |
|
|
|
|
text: '已退款', |
|
|
|
|
icon: "tuihuo" |
|
|
|
|
}, { |
|
|
|
|
text: '已取消', |
|
|
|
|
icon: "pingjia" |
|
|
|
|
icon: "../../../static/img/user/user4.png" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
huafeiList: [{ |
|
|
|
@ -215,58 +224,11 @@ |
|
|
|
|
icon: "tuihuo" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
// 工具栏列表 |
|
|
|
|
mytoolbarList: [{ |
|
|
|
|
url: '/pages/goods/recording/recording', |
|
|
|
|
text: '积分记录', |
|
|
|
|
img: 'user/mingxi.png' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// url: '/pages/goods/recording/recording?id=2', |
|
|
|
|
// text: '消费记录', |
|
|
|
|
// img: 'user/quan.png' |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
url: '/pages/user/mineCoupons/mineCoupons', |
|
|
|
|
text: '我的卡券', |
|
|
|
|
img: 'user/choujiang.png' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '../../user/coupon/coupon', |
|
|
|
|
text: '我的优惠券', |
|
|
|
|
img: 'user/momey.png' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
// 推广列表 |
|
|
|
|
mytgbarList: [{ |
|
|
|
|
url: '', |
|
|
|
|
text: '客服', |
|
|
|
|
img: 'user/kefu.png' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '../../login/login?id=1', |
|
|
|
|
text: '商户入口', |
|
|
|
|
img: 'user/point.png' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '../../login/login?id=2', |
|
|
|
|
text: '代理商登录', |
|
|
|
|
img: 'user/renw.png' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '/pages/user/myPromotion/myPromotion', |
|
|
|
|
text: '我的推广', |
|
|
|
|
img: 'user/extension.png' |
|
|
|
|
} |
|
|
|
|
// , |
|
|
|
|
// { |
|
|
|
|
// url: '/pages/user/generatePoster/generatePoster', |
|
|
|
|
// text: '生成海报', |
|
|
|
|
// img: 'user/poster.png' |
|
|
|
|
// } |
|
|
|
|
], |
|
|
|
|
//操作列表 |
|
|
|
|
czList: '', |
|
|
|
|
nopaylist: [1, 2, 3, 4, 5], |
|
|
|
|
assetsstu: 2, |
|
|
|
|
userphone:'' // 手机号 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true |
|
|
|
@ -307,47 +269,59 @@ |
|
|
|
|
// #ifdef MP |
|
|
|
|
if (!app.globalData.userInfo.isSetPayPwd) { |
|
|
|
|
this.czList = [{ |
|
|
|
|
url: '../../../subPages/cardsList/cardsList', |
|
|
|
|
text: '卡包', |
|
|
|
|
img: '../../../static/img/ghkpay.png' |
|
|
|
|
url: '/pages/goods/recording/recording', |
|
|
|
|
text: '积分记录', |
|
|
|
|
img: '../../../static/img/user/user10.png' |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
url: '../../login/updatePas/updatePas', |
|
|
|
|
text: '设置积分密码', |
|
|
|
|
img: '../../../static/img/pas.png' |
|
|
|
|
text: '支付密码', |
|
|
|
|
img: '../../../static/img/user/user11.png' |
|
|
|
|
}, { |
|
|
|
|
url: '', |
|
|
|
|
text: '客服', |
|
|
|
|
img: '../../../static/img/user/user13.png' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// '../../user/unionCard/unionCard' |
|
|
|
|
this.czList = [{ |
|
|
|
|
url: '../../../subPages/cardsList/cardsList', |
|
|
|
|
text: '卡包', |
|
|
|
|
img: '../../../static/img/ghkpay.png' |
|
|
|
|
url: '/pages/goods/recording/recording', |
|
|
|
|
text: '积分记录', |
|
|
|
|
img: '../../../static/img/user/user10.png' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '../../login/updatePas/resetPas', |
|
|
|
|
text: '修改积分密码', |
|
|
|
|
img: '../../../static/img/pas.png' |
|
|
|
|
text: '支付密码', |
|
|
|
|
img: '../../../static/img/user/user11.png' |
|
|
|
|
}, { |
|
|
|
|
url: '', |
|
|
|
|
text: '客服', |
|
|
|
|
img: '../../../static/img/user/user13.png' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
// #endif |
|
|
|
|
// #ifdef H5 |
|
|
|
|
if (!app.globalData.userInfo.isSetPayPwd) { |
|
|
|
|
this.czList = [{ |
|
|
|
|
url: '../../../subPages/cardsList/cardsList', |
|
|
|
|
text: '卡包', |
|
|
|
|
url: '/pages/goods/recording/recording', |
|
|
|
|
text: '积分记录', |
|
|
|
|
img: '../../../static/img/ghkpay.png' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '../../login/updatePas/updatePas', |
|
|
|
|
text: '设置积分密码', |
|
|
|
|
img: '../../../static/img/pas.png' |
|
|
|
|
text: '支付密码', |
|
|
|
|
img: '../../../static/img/user/user11.png' |
|
|
|
|
}, { |
|
|
|
|
url: '', |
|
|
|
|
text: '退出登录', |
|
|
|
|
img: '../../../static/img/exit.png' |
|
|
|
|
}, |
|
|
|
|
img: '../../../static/img/user/user12.png' |
|
|
|
|
}, { |
|
|
|
|
url: '', |
|
|
|
|
text: '客服', |
|
|
|
|
img: '../../../static/img/user/user13.png' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -358,13 +332,17 @@ |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '../../login/updatePas/resetPas', |
|
|
|
|
text: '修改积分密码', |
|
|
|
|
img: '../../../static/img/pas.png' |
|
|
|
|
text: '支付密码', |
|
|
|
|
img: '../../../static/img/user/user11.png' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
url: '', |
|
|
|
|
text: '退出登录', |
|
|
|
|
img: '../../../static/img/exit.png' |
|
|
|
|
}, { |
|
|
|
|
url: '', |
|
|
|
|
text: '客服', |
|
|
|
|
img: '../../../static/img/user/user13.png' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
// #endif |
|
|
|
@ -381,7 +359,8 @@ |
|
|
|
|
this.therrNum = res.return_data.unpaid; |
|
|
|
|
this.whetherCheckNum = res.return_data.whetherCheckNum; |
|
|
|
|
this.orderPayNum = res.return_data.orderPayNum; |
|
|
|
|
this.rechargeOrderNum = res.return_data.rechargeOrderNum; |
|
|
|
|
this.rechargeOrderNum = res.return_data.rechargeOrderNum; |
|
|
|
|
this.geTel(this.user.phone); |
|
|
|
|
uni.setStorage({ |
|
|
|
|
key: "user", |
|
|
|
|
data: res.return_data |
|
|
|
@ -389,98 +368,63 @@ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
loginByPhone(PhoneNumber) { |
|
|
|
|
if (PhoneNumber.detail.iv == undefined) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "用户取消授权", |
|
|
|
|
icon: "none" |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let params = { |
|
|
|
|
openId: app.globalData.openId, |
|
|
|
|
iv: PhoneNumber.detail.iv, |
|
|
|
|
encryptedData: PhoneNumber.detail.encryptedData |
|
|
|
|
} |
|
|
|
|
loginByPhone(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
app.globalData.userInfo = res.return_data |
|
|
|
|
.object |
|
|
|
|
.highUser; |
|
|
|
|
app.globalData.token = res.return_data.uniqueCode; |
|
|
|
|
uni.setStorage({ |
|
|
|
|
key: "token", |
|
|
|
|
data: res.return_data.uniqueCode |
|
|
|
|
}) |
|
|
|
|
uni.setStorage({ |
|
|
|
|
key: "user", |
|
|
|
|
data: res.return_data |
|
|
|
|
.object |
|
|
|
|
.highUser |
|
|
|
|
}) |
|
|
|
|
this.toDeposit(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// H5获取手机号 |
|
|
|
|
jumpH5Bding() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/login/register' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//跳转用户信息 |
|
|
|
|
jumplogin() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../userLogin/userLogin' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//消息列表 |
|
|
|
|
toMsg() { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '暂未开通', |
|
|
|
|
icon: 'none' |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
toOrderList(index) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../user/order_list/order_list?tbIndex=' + index |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//话费充值 |
|
|
|
|
toOrdehuafeirList(index) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../../subPages/unionPay-orderList/unionPay-orderList?tbIndex=' + index |
|
|
|
|
}) |
|
|
|
|
// 隐藏手机号 |
|
|
|
|
geTel(tel) { |
|
|
|
|
var reg = /^(\d{3})\d{4}(\d{4})$/; |
|
|
|
|
this.userphone = tel.replace(reg, "$1****$2"); |
|
|
|
|
}, |
|
|
|
|
toLogin() { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '请登录', |
|
|
|
|
icon: "none" |
|
|
|
|
}); |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../login/login' |
|
|
|
|
}) |
|
|
|
|
this.isfirst = false; |
|
|
|
|
}, |
|
|
|
|
isLogin() { |
|
|
|
|
//实际应用中,用户登录状态应该用token等方法去维持登录状态. |
|
|
|
|
const value = uni.getStorageSync('UserInfo'); |
|
|
|
|
if (value) { |
|
|
|
|
return true; |
|
|
|
|
// 资产查看状态 |
|
|
|
|
updatestu(item) { |
|
|
|
|
if (item == 1) { |
|
|
|
|
this.assetsstu = 2; |
|
|
|
|
} |
|
|
|
|
if (item == 2) { |
|
|
|
|
this.assetsstu = 1; |
|
|
|
|
} |
|
|
|
|
return false |
|
|
|
|
}, |
|
|
|
|
toDeposit() { |
|
|
|
|
if (this.user) { |
|
|
|
|
// 推广 |
|
|
|
|
jumppage(item) { |
|
|
|
|
if (item == 1) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../user/deposit/deposit' |
|
|
|
|
url: '../../login/login?id=1' |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
if (item == 2) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/userLogin/userLogin' |
|
|
|
|
url: '../../login/login?id=2' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (item == 3) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/user/myPromotion/myPromotion' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (item == 4) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../../subPages/cardsList/cardsList' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (item == 5) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/user/mineCoupons/mineCoupons' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (item == 6) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../user/coupon/coupon' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
toPage(url, item) { |
|
|
|
|
if (item != '客服') { |
|
|
|
@ -544,8 +488,7 @@ |
|
|
|
|
</script> |
|
|
|
|
<style lang="scss"> |
|
|
|
|
page { |
|
|
|
|
position: relative; |
|
|
|
|
background-color: #fff; |
|
|
|
|
background-color: #f5f5f5; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.status { |
|
|
|
@ -598,50 +541,20 @@ |
|
|
|
|
border: none |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.status { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 0; |
|
|
|
|
position: fixed; |
|
|
|
|
z-index: 10; |
|
|
|
|
background-color: #0083f5; |
|
|
|
|
top: 0; |
|
|
|
|
/* #ifdef APP-PLUS */ |
|
|
|
|
height: var(--status-bar-height); //覆盖样式 |
|
|
|
|
/* #endif */ |
|
|
|
|
|
|
|
|
|
.headcoun { |
|
|
|
|
background: linear-gradient(to bottom, #e8eff4, #f5f5f5); |
|
|
|
|
height: 100px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.header { |
|
|
|
|
width: 92%; |
|
|
|
|
padding: 0 4%; |
|
|
|
|
height: 100upx; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
align-items: center; |
|
|
|
|
position: fixed; |
|
|
|
|
top: 0; |
|
|
|
|
z-index: 10; |
|
|
|
|
background-color: #0083f5; |
|
|
|
|
/* #ifdef APP-PLUS */ |
|
|
|
|
top: var(--status-bar-height); |
|
|
|
|
|
|
|
|
|
/* #endif */ |
|
|
|
|
.icon-btn { |
|
|
|
|
width: 120upx; |
|
|
|
|
height: 60upx; |
|
|
|
|
flex-shrink: 0; |
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
.icon { |
|
|
|
|
color: #fff; |
|
|
|
|
width: 60upx; |
|
|
|
|
height: 60upx; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
align-items: center; |
|
|
|
|
font-size: 42upx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.topay { |
|
|
|
|
width: 70px; |
|
|
|
|
height: 25px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
text-align: center; |
|
|
|
|
line-height: 25px; |
|
|
|
|
border-radius: 20px; |
|
|
|
|
border: 1px solid #009DFF; |
|
|
|
|
color: #009DFF; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.place { |
|
|
|
@ -664,14 +577,22 @@ |
|
|
|
|
height: 200upx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
swiper { |
|
|
|
|
height: 60px !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
swiper-item { |
|
|
|
|
height: 60px !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.user { |
|
|
|
|
width: 96%; |
|
|
|
|
padding: 0 4%; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
// position: relative; |
|
|
|
|
background-color: #0083f5; |
|
|
|
|
padding-bottom: 40rpx; |
|
|
|
|
background: linear-gradient(to bottom, #6fbdee, #e8eff4); |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
width: 20vw; |
|
|
|
@ -694,7 +615,7 @@ |
|
|
|
|
|
|
|
|
|
.username { |
|
|
|
|
font-size: 36upx; |
|
|
|
|
color: #fff; |
|
|
|
|
color: #333333; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.signature { |
|
|
|
@ -730,9 +651,9 @@ |
|
|
|
|
|
|
|
|
|
.order { |
|
|
|
|
.title { |
|
|
|
|
padding-top: 10upx; |
|
|
|
|
margin: 0 0 10upx 3%; |
|
|
|
|
font-size: 30upx; |
|
|
|
|
padding-top: 10px; |
|
|
|
|
padding-bottom: 10px; |
|
|
|
|
font-size: 36upx; |
|
|
|
|
height: 80upx; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
@ -740,7 +661,7 @@ |
|
|
|
|
|
|
|
|
|
width: 92%; |
|
|
|
|
margin: 30rpx 4% 30rpx 4%; |
|
|
|
|
padding: 0rpx 0% 20rpx 0%; |
|
|
|
|
padding: 0rpx 0% 40rpx 0%; |
|
|
|
|
background-color: #fff; |
|
|
|
|
box-shadow: 0rpx 0rpx 25rpx rgba(0, 0, 0, 0.1); |
|
|
|
|
border-radius: 15rpx; |
|
|
|
@ -756,11 +677,6 @@ |
|
|
|
|
width: 100%; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: center; |
|
|
|
|
|
|
|
|
|
.icon { |
|
|
|
|
font-size: 50upx; |
|
|
|
|
color: #464646; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.text { |
|
|
|
@ -835,42 +751,6 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.VIP { |
|
|
|
|
width: 84%; |
|
|
|
|
margin: -65upx auto 20upx auto; |
|
|
|
|
padding: 30upx 4%; |
|
|
|
|
background: linear-gradient(to left, #dea96d 0%, #f6d59b 100%); |
|
|
|
|
box-shadow: 0upx 0upx 25upx rgba(0, 0, 0, 0.2); |
|
|
|
|
border-radius: 15upx; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
.img { |
|
|
|
|
flex-shrink: 0; |
|
|
|
|
width: 60upx; |
|
|
|
|
height: 60upx; |
|
|
|
|
|
|
|
|
|
image { |
|
|
|
|
width: 60upx; |
|
|
|
|
height: 60upx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.title { |
|
|
|
|
width: 100%; |
|
|
|
|
color: #796335; |
|
|
|
|
font-size: 30upx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tis { |
|
|
|
|
width: 100%; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
color: #fcf0d0; |
|
|
|
|
font-size: 26upx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.toolbar { |
|
|
|
|
width: 92%; |
|
|
|
|
margin: 0 4% 0 4%; |
|
|
|
|