|
@@ -3,7 +3,7 @@
|
|
|
<view class="vheigh"></view>
|
|
<view class="vheigh"></view>
|
|
|
<view class="bg"><image src="../../static/img/mybg.png" mode=""></image></view>
|
|
<view class="bg"><image src="../../static/img/mybg.png" mode=""></image></view>
|
|
|
<view class="user-section flex">
|
|
<view class="user-section flex">
|
|
|
- <view class="detail" @click="navTo('/pages/set/userinfo')">
|
|
|
|
|
|
|
+ <view class="detail" @click="navTo('/pages/set/set')">
|
|
|
<view class="portrait-box"><image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image></view>
|
|
<view class="portrait-box"><image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image></view>
|
|
|
<view class="info-box">
|
|
<view class="info-box">
|
|
|
<view class="username">{{ userInfo.nickname || '游客' }}</view>
|
|
<view class="username">{{ userInfo.nickname || '游客' }}</view>
|
|
@@ -20,176 +20,50 @@
|
|
|
<view class="balance-main">
|
|
<view class="balance-main">
|
|
|
<view class="tj-item" @click="navTo('/pages/money/wallet')">
|
|
<view class="tj-item" @click="navTo('/pages/money/wallet')">
|
|
|
<view class="tj-img"><image src="../../static/icon/my1.png" mode=""></image></view>
|
|
<view class="tj-img"><image src="../../static/icon/my1.png" mode=""></image></view>
|
|
|
- <view class="tj-num">¥2000</view>
|
|
|
|
|
|
|
+ <view class="tj-num">¥{{ userInfo.now_money * 1 || 0 }}</view>
|
|
|
<view class="tj-font">我的余额</view>
|
|
<view class="tj-font">我的余额</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tj-item" @click="navTo('/user/page/scoreAccumulate')">
|
|
|
|
|
- <view class="tj-img"><image src="../../static/icon/my2.png" mode=""></image></view>
|
|
|
|
|
- <view class="tj-num">¥2000</view>
|
|
|
|
|
- <view class="tj-font">我的佣金</view>
|
|
|
|
|
- </view>
|
|
|
|
|
<view class="tj-item" @click="navTo('/user/page/scoreAccumulate')">
|
|
<view class="tj-item" @click="navTo('/user/page/scoreAccumulate')">
|
|
|
<view class="tj-img"><image src="../../static/icon/my3.png" mode=""></image></view>
|
|
<view class="tj-img"><image src="../../static/icon/my3.png" mode=""></image></view>
|
|
|
- <view class="tj-num">¥2000</view>
|
|
|
|
|
|
|
+ <view class="tj-num">¥{{ userInfo.integral * 1 || 0 }}</view>
|
|
|
<view class="tj-font">我的积分</view>
|
|
<view class="tj-font">我的积分</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="tj-item" @click="navTo('/user/page/extension')">
|
|
<view class="tj-item" @click="navTo('/user/page/extension')">
|
|
|
<view class="tj-img"><image src="../../static/icon/my4.png" mode=""></image></view>
|
|
<view class="tj-img"><image src="../../static/icon/my4.png" mode=""></image></view>
|
|
|
- <view class="tj-num">¥2000</view>
|
|
|
|
|
|
|
+ <view class="tj-num">{{ userInfo.spead_count || 0 }}</view>
|
|
|
<view class="tj-font">我的推广</view>
|
|
<view class="tj-font">我的推广</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cover-container">
|
|
<view class="cover-container">
|
|
|
- <view class="item-box">
|
|
|
|
|
- <view class="user-item">
|
|
|
|
|
- <text>我的工具</text>
|
|
|
|
|
- <!-- <text class="iconfont iconenter" @click="loadMore()"></text> -->
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-section">
|
|
|
|
|
- <view class="order-item" @click="navTo('/pages/tool/entity?type=1')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/ffstk.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>发放实体卡</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/pages/tool/entity?type=2')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/hxstk.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>核销实体卡</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/revenueCenter')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/u9.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>收益报告</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/dlcenter')" hover-class="common-hover" :hover-stay-time="50" v-if="isArea_admin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/dl.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>代理收益</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
|
|
+ <view class="order-section">
|
|
|
|
|
+ <view class="order-item" @click="navTo('/user/page/shareQrCode')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
|
|
+ <view class="o-ic">
|
|
|
|
|
+ <view class="icon"><image class="icon-img" src="/static/icon/1-my.png" mode="widthFix"></image></view>
|
|
|
|
|
+ <view class="text">邀请海报</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="order-item" @click="navTo('/user/page/recommend')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/u10.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>推荐充值</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/storeCommission')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/s-cms.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>门店佣金</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- <view class="order-item" @click="navTo('/pages/tool/phoneBill')" hover-class="common-hover"
|
|
|
|
|
- :hover-stay-time="50" >
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon">
|
|
|
|
|
- <image class="icon-img" src="/static/icon/phone.png" mode="aspectFit"></image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <text>话费充值</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img">
|
|
|
|
|
- <image src="../../static/img/img74.png" mode=""></image>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/award')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/gryj.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>个人佣金</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="readQr()" hover-class="common-hover" :hover-stay-time="50" v-if="!isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/1-my.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>扫码充值</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/wipe')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/u6.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>提货管理</text>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/delivery')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/u12.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>送货管理</text>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/refundAdmin?state=0&isUser=' + isUser)" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/u7.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>退货管理</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/depositAdmin')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/u11.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>押金管理</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/pages/set/point')" hover-class="common-hover" :hover-stay-time="50" v-if="isAdmin">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/5-my.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>自提点管理</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/pages/set/address')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/3-my.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>收货地址</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-item" @click="navTo('/user/page/shareQrCode')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/2-my.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>推广海报</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
|
|
+ <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="order-item" hover-class="common-hover" :hover-stay-time="50" @click="showPopup">
|
|
|
|
|
+ <view class="o-ic">
|
|
|
|
|
+ <view class="icon"><image class="icon-img" src="/static/icon/2-my.png" mode="widthFix"></image></view>
|
|
|
|
|
+ <view class="text">客服中心</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
- <view class="order-item" hover-class="common-hover" :hover-stay-time="50" @click="showPopup">
|
|
|
|
|
- <!-- <view class="icon" v-if="userIdentity"><image class="icon-img" src="/static/icon/u8.png" mode="aspectFit"></image></view> -->
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/4-my.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>联系客服</text>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <!-- <view class="txt">
|
|
|
|
|
- 联系客服
|
|
|
|
|
- </view> -->
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
|
|
+ <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="order-item" @click="navTo('/pages/set/address')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
|
|
+ <view class="o-ic">
|
|
|
|
|
+ <view class="icon"><image class="icon-img" src="/static/icon/3-my.png" mode="widthFix"></image></view>
|
|
|
|
|
+ <view class="text">收货地址</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="order-item" hover-class="common-hover" :hover-stay-time="50">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/u4.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>关于我们</text>
|
|
|
|
|
- </view> -->
|
|
|
|
|
- <view class="order-item" hover-class="common-hover" :hover-stay-time="50" @click="showBind">
|
|
|
|
|
- <view class="o-ic">
|
|
|
|
|
- <view class="icon"><image class="icon-img" src="/static/icon/ztd.png" mode="aspectFit"></image></view>
|
|
|
|
|
- <text>绑定管理账号</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
|
|
+ <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="order-item" @click="navTo('/pages/set/set')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
|
|
+ <view class="o-ic">
|
|
|
|
|
+ <view class="icon"><image class="icon-img" src="/static/icon/4-my.png" mode="widthFix"></image></view>
|
|
|
|
|
+ <view class="text">设置</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="order-img"><image src="../../static/img/img74.png" mode=""></image></view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -209,36 +83,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
- <uni-popup ref="popupadmin" type="center">
|
|
|
|
|
- <view class="bind-admin-wappper">
|
|
|
|
|
- <view class="title">绑定管理账号</view>
|
|
|
|
|
- <view class="admin-item">
|
|
|
|
|
- <view class="item-name">账号</view>
|
|
|
|
|
- <view class="item-val"><input type="text" v-model="adminName" placeholder="请输入管理账号" /></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="admin-item">
|
|
|
|
|
- <view class="item-name">密码</view>
|
|
|
|
|
- <view class="item-val"><input type="password" v-model="adminPsw" placeholder="请输入管理密码" /></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="btn-wrapper">
|
|
|
|
|
- <view class="btn" @click="adminClose">取消</view>
|
|
|
|
|
- <view class="btn btn1" @click="adminQr">确定</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </uni-popup>
|
|
|
|
|
- <uni-popup ref="popupStk" type="center">
|
|
|
|
|
- <view class="stk-tc">
|
|
|
|
|
- <image src="https://zccy.liuniu946.com/static/img/gift-bg.png" mode="" class="gift-bg"></image>
|
|
|
|
|
- <view class="gift-bg-mb"></view>
|
|
|
|
|
- <image src="https://zccy.liuniu946.com/static/img/stk-gift.png" mode="" class="gift"></image>
|
|
|
|
|
- <view class="" style="height: 145rpx;"></view>
|
|
|
|
|
- <view class="tc-tit">{{ type == 1 ? '实体卡发放' : '实体卡核销' }}</view>
|
|
|
|
|
- <input type="text" class="tc-inp" placeholder="请输入卡号" v-model="code" />
|
|
|
|
|
- <input type="text" class="tc-inp tc-inp-km" placeholder="请输入卡密" v-model="password" v-if="type == 2" />
|
|
|
|
|
- <view class="tc-btn" @click="gonew">{{ type == 1 ? '立即发放' : '立即核销' }}</view>
|
|
|
|
|
- <view class="" style="height: 50rpx;"></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </uni-popup>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -258,33 +102,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- coverTransform: 'translateY(0px)',
|
|
|
|
|
- coverTransition: '0s',
|
|
|
|
|
- moving: false,
|
|
|
|
|
- userDowm: 0, //卡片升级专属高度
|
|
|
|
|
- userMaxDowm: 0, //卡片最高高度,
|
|
|
|
|
- userIdentity: false, //是否展示管理页面
|
|
|
|
|
- text: '',
|
|
|
|
|
- isUser: 0,
|
|
|
|
|
- integral: '', //积分获取
|
|
|
|
|
- mycount: 0,
|
|
|
|
|
- adminName: '',
|
|
|
|
|
- adminPsw: '',
|
|
|
|
|
- isAdmin: false,
|
|
|
|
|
- isArea_admin: false,
|
|
|
|
|
- code: '',
|
|
|
|
|
- password: '',
|
|
|
|
|
- type: '',
|
|
|
|
|
- uping: false
|
|
|
|
|
|
|
+ text: '123456'
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
- this.getWx(5);
|
|
|
|
|
- console.log(this.userInfo);
|
|
|
|
|
// 判断是否已经登录
|
|
// 判断是否已经登录
|
|
|
if (this.hasLogin) {
|
|
if (this.hasLogin) {
|
|
|
this.loadBaseData();
|
|
this.loadBaseData();
|
|
|
- // this.getSpreadCount();
|
|
|
|
|
console.log(this.userInfo);
|
|
console.log(this.userInfo);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -318,34 +142,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
|
|
...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
|
|
|
- // 获取微信客服
|
|
|
|
|
- getWx(id) {
|
|
|
|
|
- getArticleDetail({}, id).then(({ data }) => {
|
|
|
|
|
- console.log(data, 'wx');
|
|
|
|
|
- this.text = data.synopsis;
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
// 加载初始数据
|
|
// 加载初始数据
|
|
|
loadBaseData() {
|
|
loadBaseData() {
|
|
|
getUserInfo({})
|
|
getUserInfo({})
|
|
|
.then(({ data }) => {
|
|
.then(({ data }) => {
|
|
|
this.setUserInfo(data);
|
|
this.setUserInfo(data);
|
|
|
- // this.getSpreadCount()
|
|
|
|
|
- console.log(data, '++++++++++++');
|
|
|
|
|
- if (this.userInfo.store_info.length != 0) {
|
|
|
|
|
- this.isAdmin = true;
|
|
|
|
|
- }
|
|
|
|
|
- if (data.store_info instanceof Array) {
|
|
|
|
|
- if (this.userInfo.store_info.length == 0) {
|
|
|
|
|
- this.isAdmin = false;
|
|
|
|
|
- } else {
|
|
|
|
|
- this.isAdmin = true;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (Object.prototype.toString.call(data.store_info) === '[object Object]') {
|
|
|
|
|
- this.isAdmin = true;
|
|
|
|
|
- }
|
|
|
|
|
- this.isArea_admin = data.area_admin == 0 ? false : true;
|
|
|
|
|
// 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
|
|
// 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
|
|
|
orderData({})
|
|
orderData({})
|
|
|
.then(({ data }) => {
|
|
.then(({ data }) => {
|
|
@@ -382,14 +183,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- changeIdentity() {
|
|
|
|
|
- this.userIdentity = !this.userIdentity;
|
|
|
|
|
- if (this.isUser === 0) {
|
|
|
|
|
- this.isUser = 1;
|
|
|
|
|
- } else if (this.isUser === 1) {
|
|
|
|
|
- this.isUser = 0;
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
showPopup() {
|
|
showPopup() {
|
|
|
this.$refs.popup.open();
|
|
this.$refs.popup.open();
|
|
|
},
|
|
},
|
|
@@ -410,155 +203,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
this.$refs.popup.close();
|
|
this.$refs.popup.close();
|
|
|
- },
|
|
|
|
|
- getSpreadCount() {
|
|
|
|
|
- getSpreadCount({}, 4).then(res => {
|
|
|
|
|
- // console.log(res,'提现++++++')
|
|
|
|
|
- this.mycount = res.data.count;
|
|
|
|
|
- console.log(this.mycount, '提现++++++');
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- showBind() {
|
|
|
|
|
- if (!this.hasLogin) {
|
|
|
|
|
- // 保存地址
|
|
|
|
|
- saveUrl();
|
|
|
|
|
- // 登录拦截
|
|
|
|
|
- interceptor();
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$refs.popupadmin.open();
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- adminQr() {
|
|
|
|
|
- if (!this.adminName) {
|
|
|
|
|
- return this.$api.msg('请输入管理账号');
|
|
|
|
|
- }
|
|
|
|
|
- if (!this.adminPsw) {
|
|
|
|
|
- return this.$api.msg('请输入管理密码');
|
|
|
|
|
- }
|
|
|
|
|
- uni.showLoading({
|
|
|
|
|
- title: '提交绑定...',
|
|
|
|
|
- mask: true
|
|
|
|
|
- });
|
|
|
|
|
- // bindAdmin
|
|
|
|
|
- console.log(this.adminName, this.adminPsw, 'dddddddddddddddddd');
|
|
|
|
|
- bindAdmin({
|
|
|
|
|
- admin_account: this.adminName,
|
|
|
|
|
- admin_password: this.adminPsw
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- console.log(res, 'bindAdmin+++++++++++++++++++++');
|
|
|
|
|
- uni.hideLoading();
|
|
|
|
|
- this.$refs.popupadmin.close();
|
|
|
|
|
- this.$api.msg('绑定成功');
|
|
|
|
|
- this.loadBaseData();
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- console.log(err);
|
|
|
|
|
-
|
|
|
|
|
- this.$refs.popupadmin.close();
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- adminClose() {
|
|
|
|
|
- this.adminName = '';
|
|
|
|
|
- this.adminPsw = '';
|
|
|
|
|
- this.$refs.popupadmin.close();
|
|
|
|
|
- },
|
|
|
|
|
- // 扫描支付
|
|
|
|
|
- readQr() {
|
|
|
|
|
- let obj = this;
|
|
|
|
|
- if (!this.hasLogin) {
|
|
|
|
|
- // 保存地址
|
|
|
|
|
- saveUrl();
|
|
|
|
|
- // 登录拦截
|
|
|
|
|
- interceptor();
|
|
|
|
|
- } else {
|
|
|
|
|
- // #ifndef H5
|
|
|
|
|
- uni.scanCode({
|
|
|
|
|
- success(e) {
|
|
|
|
|
- // console.log(e,'e++++++++++++')
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/user/page/pay' + e.result
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- // #endif
|
|
|
|
|
- // #ifdef H5
|
|
|
|
|
- this.weichatObj.scanQRCode({
|
|
|
|
|
- needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
|
|
|
|
- scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
|
|
|
|
|
- success: function(res) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/user/page/pay' + res.result
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- // #endif
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- openStk(type) {
|
|
|
|
|
- this.type = type;
|
|
|
|
|
- this.$refs.popupStk.open();
|
|
|
|
|
- },
|
|
|
|
|
- gonew() {
|
|
|
|
|
- let obj = this;
|
|
|
|
|
- if (obj.uping) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- if (obj.code == '') {
|
|
|
|
|
- return obj.$api.msg('请输入卡号');
|
|
|
|
|
- }
|
|
|
|
|
- if (obj.type == 2) {
|
|
|
|
|
- if (obj.password == '') {
|
|
|
|
|
- return obj.$api.msg('请输入卡密');
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- obj.uping = true;
|
|
|
|
|
- if (obj.type == 1) {
|
|
|
|
|
- sendStk({
|
|
|
|
|
- code: obj.code
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- obj.$refs.popupStk.close();
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '发放成功',
|
|
|
|
|
- duration: 2000
|
|
|
|
|
- });
|
|
|
|
|
- obj.uping = false;
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- obj.uping = false;
|
|
|
|
|
- });
|
|
|
|
|
- } else if (obj.type == 2) {
|
|
|
|
|
- checkStk({
|
|
|
|
|
- code: obj.code,
|
|
|
|
|
- password: obj.password
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- obj.$refs.popupStk.close();
|
|
|
|
|
-
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '核销成功',
|
|
|
|
|
- duration: 2000
|
|
|
|
|
- });
|
|
|
|
|
- obj.uping = false;
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
- obj.uping = false;
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * 获取个人用户信息
|
|
|
|
|
- */
|
|
|
|
|
- // getUserInfo() {
|
|
|
|
|
- // console.log('getuserInfo')
|
|
|
|
|
- // let that = this;
|
|
|
|
|
- // getUserInfo().then(res => {
|
|
|
|
|
- // that.userInfo = res.data,
|
|
|
|
|
- // that.is_promoter = res.data.is_promoter
|
|
|
|
|
- // that.extension_status = res.data.extension_status
|
|
|
|
|
- // });
|
|
|
|
|
- // },
|
|
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
@@ -668,155 +313,61 @@ page,
|
|
|
z-index: 10;
|
|
z-index: 10;
|
|
|
margin-top: 50rpx;
|
|
margin-top: 50rpx;
|
|
|
width: 750rpx;
|
|
width: 750rpx;
|
|
|
- height: 20rpx;
|
|
|
|
|
|
|
+ height: 30rpx;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
border-radius: 30rpx 30rpx 0px 0px;
|
|
border-radius: 30rpx 30rpx 0px 0px;
|
|
|
}
|
|
}
|
|
|
.cover-container {
|
|
.cover-container {
|
|
|
- background: $page-color-base;
|
|
|
|
|
- // margin-top: -150rpx;
|
|
|
|
|
- // padding: 0 30rpx;
|
|
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- background: #f5f5f5;
|
|
|
|
|
- padding-bottom: 20rpx;
|
|
|
|
|
-
|
|
|
|
|
- .arc {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- top: -34rpx;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 36rpx;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.tj-sction {
|
|
|
|
|
- @extend %section;
|
|
|
|
|
-
|
|
|
|
|
- .tj-item {
|
|
|
|
|
- @extend %flex-center;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- height: 140rpx;
|
|
|
|
|
- font-size: $font-sm;
|
|
|
|
|
- color: #75787d;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .num {
|
|
|
|
|
- font-size: $font-lg;
|
|
|
|
|
- color: $font-color-dark;
|
|
|
|
|
- margin-bottom: 8rpx;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.item-box {
|
|
|
|
|
- // border-radius: 10rpx;
|
|
|
|
|
- background-color: white;
|
|
|
|
|
|
|
+ background: #ffffff;
|
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- .box-title {
|
|
|
|
|
- line-height: 1;
|
|
|
|
|
- padding: 30rpx;
|
|
|
|
|
-
|
|
|
|
|
- .title {
|
|
|
|
|
- font-size: $font-lg;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .link {
|
|
|
|
|
- font-size: $font-base - 2rpx;
|
|
|
|
|
- color: $font-color-light;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .order-section {
|
|
|
|
|
- padding: 28rpx;
|
|
|
|
|
- padding-bottom: 0;
|
|
|
|
|
-
|
|
|
|
|
- .order-item {
|
|
|
|
|
|
|
+.order-section {
|
|
|
|
|
+ .order-item {
|
|
|
|
|
+ padding: 60rpx 55rpx 0 43rpx;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ .o-ic {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 120rpx;
|
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
|
- font-size: $font-sm;
|
|
|
|
|
- color: $font-color-dark;
|
|
|
|
|
-
|
|
|
|
|
- .o-ic {
|
|
|
|
|
- margin: auto 0;
|
|
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ .icon {
|
|
|
|
|
+ margin-right: 20rpx;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
-
|
|
|
|
|
- .icon {
|
|
|
|
|
- margin-right: 20rpx;
|
|
|
|
|
-
|
|
|
|
|
- image {
|
|
|
|
|
- width: 52rpx;
|
|
|
|
|
- height: 43rpx;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- text {
|
|
|
|
|
- color: #3b3b3b;
|
|
|
|
|
- font-size: 30rpx;
|
|
|
|
|
- font-family: SourceHanSansCN-Regular;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .order-img {
|
|
|
|
|
- margin: auto 0;
|
|
|
|
|
-
|
|
|
|
|
- // margin: auto 50rpx;
|
|
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
image {
|
|
image {
|
|
|
- width: 16rpx;
|
|
|
|
|
- height: 28rpx;
|
|
|
|
|
|
|
+ width: 32rpx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- .iconfont {
|
|
|
|
|
- font-size: 48rpx;
|
|
|
|
|
- margin-bottom: 18rpx;
|
|
|
|
|
- color: #fa436a;
|
|
|
|
|
|
|
+ .text {
|
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
|
+ font-family: PingFang SC;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ color: #363636;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .icon-shouhoutuikuan {
|
|
|
|
|
- font-size: 44rpx;
|
|
|
|
|
|
|
+ .order-img {
|
|
|
|
|
+ width: 16rpx;
|
|
|
|
|
+ height: 28rpx;
|
|
|
|
|
+ image {
|
|
|
|
|
+ width: 16rpx;
|
|
|
|
|
+ height: 28rpx;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.history-section {
|
|
|
|
|
- // padding: 30rpx 0 0;
|
|
|
|
|
- margin-top: 20rpx;
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
|
|
|
|
|
|
- .sec-header {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- font-size: $font-base;
|
|
|
|
|
- color: $font-color-dark;
|
|
|
|
|
- line-height: 40rpx;
|
|
|
|
|
- margin-left: 30rpx;
|
|
|
|
|
- padding-top: 30rpx;
|
|
|
|
|
-
|
|
|
|
|
- .iconfont {
|
|
|
|
|
- font-size: 44rpx;
|
|
|
|
|
- color: $color-red;
|
|
|
|
|
- margin-right: 16rpx;
|
|
|
|
|
- line-height: 40rpx;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .iconfont {
|
|
|
|
|
+ font-size: 48rpx;
|
|
|
|
|
+ margin-bottom: 18rpx;
|
|
|
|
|
+ color: #fa436a;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .h-list {
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- padding: 30rpx 30rpx 0;
|
|
|
|
|
-
|
|
|
|
|
- .h-list-image {
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- width: 160rpx;
|
|
|
|
|
- height: 160rpx;
|
|
|
|
|
- margin-right: 20rpx;
|
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .icon-shouhoutuikuan {
|
|
|
|
|
+ font-size: 44rpx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -837,11 +388,11 @@ page,
|
|
|
position: relative;
|
|
position: relative;
|
|
|
z-index: 10;
|
|
z-index: 10;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
-
|
|
|
|
|
|
|
+ margin-top: -3rpx;
|
|
|
.balance-main {
|
|
.balance-main {
|
|
|
- display: flex;
|
|
|
|
|
padding-top: 40rpx;
|
|
padding-top: 40rpx;
|
|
|
- color: #ffffff;
|
|
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
|
|
|
.tj-item {
|
|
.tj-item {
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -861,7 +412,7 @@ page,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.tj-num {
|
|
.tj-num {
|
|
|
- font-size: 25rpx;
|
|
|
|
|
|
|
+ font-size: 28rpx;
|
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: #363636;
|
|
color: #363636;
|
|
@@ -874,30 +425,9 @@ page,
|
|
|
color: #363636;
|
|
color: #363636;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- .jg {
|
|
|
|
|
- width: 2rpx;
|
|
|
|
|
- height: 81rpx;
|
|
|
|
|
- margin-top: 18rpx;
|
|
|
|
|
- background-color: #c5868a;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.foot-wrapper {
|
|
|
|
|
- width: 373rpx;
|
|
|
|
|
- height: 79rpx;
|
|
|
|
|
- background: #ffffff;
|
|
|
|
|
- box-shadow: 0px 3px 10px 0px rgba(180, 183, 187, 0.8);
|
|
|
|
|
- border-radius: 11rpx;
|
|
|
|
|
- margin: 46rpx auto 20rpx;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- line-height: 79rpx;
|
|
|
|
|
- font-size: 30rpx;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- color: #901b21;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
.popup-box {
|
|
.popup-box {
|
|
|
width: 522rpx;
|
|
width: 522rpx;
|
|
|
height: 605rpx;
|
|
height: 605rpx;
|
|
@@ -1066,71 +596,4 @@ page,
|
|
|
width: 52rpx;
|
|
width: 52rpx;
|
|
|
height: 43rpx;
|
|
height: 43rpx;
|
|
|
}
|
|
}
|
|
|
-.stk-tc {
|
|
|
|
|
- width: 560rpx;
|
|
|
|
|
- // height: 550rpx;
|
|
|
|
|
- background-color: #fff;
|
|
|
|
|
- border-radius: 20rpx;
|
|
|
|
|
- position: relative;
|
|
|
|
|
- .gift,
|
|
|
|
|
- .gift-bg,
|
|
|
|
|
- .gift-bg-mb {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- right: 0;
|
|
|
|
|
- margin: auto;
|
|
|
|
|
- }
|
|
|
|
|
- .tc-tit,
|
|
|
|
|
- .tc-inp,
|
|
|
|
|
- .tc-btn {
|
|
|
|
|
- margin: auto;
|
|
|
|
|
- }
|
|
|
|
|
- .gift {
|
|
|
|
|
- top: -93rpx;
|
|
|
|
|
- width: 177rpx;
|
|
|
|
|
- height: 186rpx;
|
|
|
|
|
- }
|
|
|
|
|
- .gift-bg-mb {
|
|
|
|
|
- top: 0;
|
|
|
|
|
- width: 456rpx;
|
|
|
|
|
- height: 90rpx;
|
|
|
|
|
- background-color: #fff;
|
|
|
|
|
- }
|
|
|
|
|
- .gift-bg {
|
|
|
|
|
- top: -90rpx;
|
|
|
|
|
- width: 456rpx;
|
|
|
|
|
- height: 180rpx;
|
|
|
|
|
- }
|
|
|
|
|
- .tc-tit {
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- color: #333333;
|
|
|
|
|
- font-size: 36rpx;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- }
|
|
|
|
|
- .tc-inp {
|
|
|
|
|
- display: block;
|
|
|
|
|
- margin: 20rpx auto;
|
|
|
|
|
- width: 440rpx;
|
|
|
|
|
- height: 70rpx;
|
|
|
|
|
- background-color: #f5f5f5;
|
|
|
|
|
- top: 210rpx;
|
|
|
|
|
- padding-left: 20rpx;
|
|
|
|
|
- border-radius: 15rpx;
|
|
|
|
|
- font-size: 32rpx;
|
|
|
|
|
- }
|
|
|
|
|
- .tc-inp-km {
|
|
|
|
|
- top: 305rpx;
|
|
|
|
|
- }
|
|
|
|
|
- .tc-btn {
|
|
|
|
|
- width: 405rpx;
|
|
|
|
|
- height: 86rpx;
|
|
|
|
|
- margin-top: 45rpx;
|
|
|
|
|
- background-color: #901b21;
|
|
|
|
|
- border-radius: 43rpx;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- line-height: 86rpx;
|
|
|
|
|
- font-size: 36rpx;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
</style>
|
|
</style>
|