|
|
@@ -7,33 +7,33 @@
|
|
|
<view class="top-block">
|
|
|
<view class="qscode-block">
|
|
|
<view class="qscode">
|
|
|
- <image class="w40 h40" src="/static/images/qscode_icon.png"></image>
|
|
|
+ <image class="w40 h40" src="https://cdn.his.cdwjyyh.com/images/qscode_icon.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="user-info">
|
|
|
|
|
|
<view class="left" @click="openPersonInfo()">
|
|
|
<view class="head-img">
|
|
|
- <image :src="user.avatar==null?'/static/images/detault_head.jpg':user.avatar"
|
|
|
+ <image :src="user.avatar==null?'https://cdn.his.cdwjyyh.com/images/detault_head.jpg':user.avatar"
|
|
|
mode="aspectFill"></image>
|
|
|
</view>
|
|
|
<view class="name-phone">
|
|
|
<view class="name">
|
|
|
<text>{{user.nickname}}</text>
|
|
|
- <image class="w48 h48" src="/static/images/right1.png"></image>
|
|
|
+ <image class="w48 h48" src="https://cdn.his.cdwjyyh.com/images/right1.png"></image>
|
|
|
</view>
|
|
|
<view class="user-page">
|
|
|
<text>个人主页</text>
|
|
|
- <image class="w32 h32" src="/static/images/right1.png"></image>
|
|
|
+ <image class="w32 h32" src="https://cdn.his.cdwjyyh.com/images/right1.png"></image>
|
|
|
</view>
|
|
|
|
|
|
<view class="lable">
|
|
|
<view class="lable-item">
|
|
|
- <image class="w32 h32 mr8" src="/static/images/lv_icon.png"></image>
|
|
|
+ <image class="w32 h32 mr8" src="https://cdn.his.cdwjyyh.com/images/lv_icon.png"></image>
|
|
|
<text>会员</text>
|
|
|
</view>
|
|
|
<view class="lable-item yellow">
|
|
|
- <image class="w32 h32 mr8" src="/static/images/intelligent_icon.png"></image>
|
|
|
+ <image class="w32 h32 mr8" src="https://cdn.his.cdwjyyh.com/images/intelligent_icon.png"></image>
|
|
|
<text>LV.2</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -42,12 +42,12 @@
|
|
|
<view class="right">
|
|
|
<!-- <uni-badge size="small" :text="msgNum" absolute="rightTop" type="error">
|
|
|
<view class="set" @click="navgetTo('/pages_user/user/personInfo')">
|
|
|
- <image src="../../static/images/icon-set.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/icon-set.png" mode=""></image>
|
|
|
</view>
|
|
|
</uni-badge> -->
|
|
|
<uni-badge size="small" :text="msgNum" absolute="rightTop" type="error">
|
|
|
<view class="msg-box" @click="navgetTo('/pages_user/user/message')">
|
|
|
- <image src="../../static/images/icon-msg.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/icon-msg.png" mode=""></image>
|
|
|
</view>
|
|
|
</uni-badge>
|
|
|
</view>
|
|
|
@@ -62,11 +62,11 @@
|
|
|
</view>
|
|
|
<!-- 会员 -->
|
|
|
<view class="member">
|
|
|
- <image class="bg" src="/static/images/vip_bg.png"></image>
|
|
|
+ <image class="bg" src="https://cdn.his.cdwjyyh.com/images/vip_bg.png"></image>
|
|
|
<view class="member-block">
|
|
|
<view class="left">
|
|
|
<view class="vip">
|
|
|
- <image class="w126 h30 mr34" src="/static/images/VIP_member.png"></image>
|
|
|
+ <image class="w126 h30 mr34" src="https://cdn.his.cdwjyyh.com/images/VIP_member.png"></image>
|
|
|
<text>已过期4天</text>
|
|
|
</view>
|
|
|
<view class="count">
|
|
|
@@ -85,35 +85,35 @@
|
|
|
<text class="title">我的订单</text>
|
|
|
<view class="all-order" @click="showOrder('')">
|
|
|
<text class="text">全部订单</text>
|
|
|
- <image src="../../static/images/arrow4.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/arrow4.png" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="status-box">
|
|
|
<uni-badge size="small" :text=count0 absolute="rightTop" type="error">
|
|
|
<view class="item" @click="showOrder('0')">
|
|
|
- <image src="../../static/images/payment.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/payment.png" mode=""></image>
|
|
|
<text class="text">待付款</text>
|
|
|
</view>
|
|
|
</uni-badge>
|
|
|
<uni-badge size="small" :text=count1 absolute="rightTop" type="error">
|
|
|
<view class="item" @click="showOrder('1')">
|
|
|
- <image src="../../static/images/send_goods.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/send_goods.png" mode=""></image>
|
|
|
<text class="text">待发货</text>
|
|
|
</view>
|
|
|
</uni-badge>
|
|
|
<uni-badge size="small" :text=count2 absolute="rightTop" type="error">
|
|
|
<view class="item" @click="showOrder('2')">
|
|
|
- <image src="../../static/images/sou_goods.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/sou_goods.png" mode=""></image>
|
|
|
<text class="text">待收货</text>
|
|
|
</view>
|
|
|
</uni-badge>
|
|
|
<view class="item" @click="showOrder('3')">
|
|
|
- <image src="../../static/images/completed.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/completed.png" mode=""></image>
|
|
|
<text class="text">已完成</text>
|
|
|
</view>
|
|
|
<uni-badge size="small" :text=afterSalesCount absolute="rightTop" type="error">
|
|
|
<view class="item" @click="navgetTo('/pages_user/user/refundOrderList')">
|
|
|
- <image src="../../static/images/after_sales.png" mode=""></image>
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/after_sales.png" mode=""></image>
|
|
|
<text class="text">售后/退款</text>
|
|
|
</view>
|
|
|
</uni-badge>
|
|
|
@@ -122,11 +122,11 @@
|
|
|
</view>
|
|
|
<!-- 芳华币签到 -->
|
|
|
<view class="coin-card">
|
|
|
- <image class="bg" src="/static/images/sign_in_bg.png"></image>
|
|
|
+ <image class="bg" src="https://cdn.his.cdwjyyh.com/images/sign_in_bg.png"></image>
|
|
|
<view class="container">
|
|
|
<view class="coin-txt">
|
|
|
- <view class="left">已连续签到 <text class="bold">1</text>天</view>
|
|
|
- <view class="right">我的芳华币:4578</view>
|
|
|
+ <view class="left">已连续签到 <text class="bold">{{continuousDays}}</text>天</view>
|
|
|
+ <view class="right">我的芳华币:{{userIntegral}}</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
<!-- <view class="progress"></view> -->
|
|
|
@@ -134,155 +134,94 @@
|
|
|
<view class="progress">
|
|
|
<view class="line"></view>
|
|
|
<view v-for="(item,index) in sign" :key="index"
|
|
|
- :class="signNum >= index+ 1?'img-item active':'img-item'">
|
|
|
+ :class="signNum >= item.sort?'img-item active':'img-item'">
|
|
|
<view class="top">
|
|
|
|
|
|
- <image v-if="signNum >= index+ 1" src="/static/images/right_org.png" mode="">
|
|
|
+ <image v-if="signNum >= item.sort" src="https://cdn.his.cdwjyyh.com/images/right_org.png" mode="">
|
|
|
</image>
|
|
|
<!-- 未签到图标 -->
|
|
|
- <image v-else src="/static/images/right_org_ling.png" mode=""></image>
|
|
|
+ <image v-else src="https://cdn.his.cdwjyyh.com/images/right_org_ling.png" mode=""></image>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <text class="text">第{{ item.day }}天</text>
|
|
|
+ <text class="text">{{ item.day }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <image class="button" mode="widthFix" src="/static/images/check_in.png"></image>
|
|
|
+ <image class="button" mode="widthFix" src="https://cdn.his.cdwjyyh.com/images/check_in.png" @click="doSign"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content">
|
|
|
- <!-- 常用工具 -->
|
|
|
- <view class="used-tools">
|
|
|
- <view class="title">我的应用</view>
|
|
|
- <view class="tools-list">
|
|
|
- <!-- <view
|
|
|
- v-for="(item,index) in toolsArr"
|
|
|
- :key="index"
|
|
|
- @click="navgetTo(item.url)"
|
|
|
- :class="(toolsArr.length - index) > toolsRemain?'item':'item no-marin-bottom'">
|
|
|
- <image :src="item.img" mode=""></image>
|
|
|
- <text class="text">{{ item.name }}</text>
|
|
|
- <button v-if="item.url == ''" class="contact-btn" open-type="contact"></button>
|
|
|
- </view> -->
|
|
|
- <!-- <view class="item" @click="navgetTo('/pages_user/user/doctorOrder')">
|
|
|
- <image src="../../static/images/my_ask.png" mode=""></image>
|
|
|
- <text class="text">我的问诊</text>
|
|
|
- </view> -->
|
|
|
- <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/live/order')">
|
|
|
- <image src="../../static/images/live.png" mode=""></image>
|
|
|
- <text class="text">直播订单</text>
|
|
|
- </view>
|
|
|
- <view class="item" @click="navgetTo('/pages_user/user/prescribeOrder')">
|
|
|
- <image src="../../static/images/prescription.png" mode=""></image>
|
|
|
- <text class="text">我的处方</text>
|
|
|
- </view>
|
|
|
- <view class="item" @click="navgetTo('/pages_user/user/patient')">
|
|
|
- <image src="../../static/images/management.png" mode=""></image>
|
|
|
- <text class="text">就诊人管理</text>
|
|
|
- </view>
|
|
|
- <view class="item" @click="navgetTo('/pages_user/user/address')">
|
|
|
- <image src="../../static/images/address.png" mode=""></image>
|
|
|
- <text class="text">收货地址</text>
|
|
|
- </view>
|
|
|
- <!-- <view class="item no-marin-bottom" @click="navgetTo('/pages_user/user/integral')">
|
|
|
- <image src="../../static/images/integral.png" mode=""></image>
|
|
|
- <text class="text">积分管理</text>
|
|
|
- </view> -->
|
|
|
- <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/shopping/myCoupon')">
|
|
|
- <image src="../../static/images/mycoupon.png" mode=""></image>
|
|
|
- <text class="text">领券中心</text>
|
|
|
- </view>
|
|
|
- <view class="item no-marin-bottom"
|
|
|
- @click="navgetTo('/pages_user/user/storeProductRelation')">
|
|
|
- <image src="../../static/images/service_file.png" mode=""></image>
|
|
|
- <text class="text">我的足迹</text>
|
|
|
- </view>
|
|
|
- <view class="item no-marin-bottom" @click="openH5(1)">
|
|
|
- <image src="../../static/images/service_file.png" mode=""></image>
|
|
|
- <text class="text">用户协议</text>
|
|
|
- </view>
|
|
|
- <view class="item no-marin-bottom align-top" @click="openH5(2)">
|
|
|
- <image src="../../static/images/advice.png" mode=""></image>
|
|
|
- <text class="text">隐私保护</text>
|
|
|
- </view>
|
|
|
- <view class="item no-marin-bottom">
|
|
|
- <image src="../../static/images/customer1.png" mode=""></image>
|
|
|
- <text class="text">专属客服</text>
|
|
|
- <button class="contact-btn" open-type="contact"></button>
|
|
|
- </view>
|
|
|
- <view v-if="user.isPromoter==0" class="item no-marin-bottom"
|
|
|
- @click="navgetTo('/pages_user/user/userTuiAdd')">
|
|
|
- <image src="../../static/images/my_promotion.png" mode=""></image>
|
|
|
- <text class="text">申请健康大使</text>
|
|
|
- </view>
|
|
|
- <view v-if="user.isPromoter==1" class="item no-marin-bottom"
|
|
|
- @click="navgetTo('/pages_user/user/userTui')">
|
|
|
- <image src="../../static/images/my_promotion.png" mode=""></image>
|
|
|
- <text class="text">我的推广</text>
|
|
|
- </view>
|
|
|
- <view class="item no-marin-bottom" @click="navgetTo('/pages/home/cert')">
|
|
|
- <image src="../../static/images/service_file.png" mode=""></image>
|
|
|
- <text class="text">资质证书</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item no-marin-bottom" @click="toManager()">
|
|
|
- <image src="../../static/images/management.png" mode=""></image>
|
|
|
- <text class="text">销售管理</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <!-- 常用工具 -->
|
|
|
+ <view class="used-tools">
|
|
|
+ <view class="title">我的应用</view>
|
|
|
+ <view class="tools-list">
|
|
|
+ <view class="item" @click="navgetTo('/pages_shopping/shopping/myCoupon')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_coupon.png" mode=""></image>
|
|
|
+ <text class="text">领券中心</text>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="used-tools">
|
|
|
- <view class="title">我的视频</view>
|
|
|
- <view class="tools-list">
|
|
|
- <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/live/order')">
|
|
|
- <image src="../../static/images/live.png" mode=""></image>
|
|
|
- <text class="text">直播订单</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="item" @click="navgetTo('/pages_user/user/address')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_location.png" mode=""></image>
|
|
|
+ <text class="text">地址管理</text>
|
|
|
</view>
|
|
|
+ <view class="item" @click="navgetTo('/pages_user/user/storeProductRelation')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_coin.png" mode=""></image>
|
|
|
+ <text class="text">芳华币商城</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" @click="navgetTo('/pages_user/user/message')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_service.png" mode=""></image>
|
|
|
+ <text class="text">客服中心</text>
|
|
|
+ </view>
|
|
|
+ <view class="item no-marin-bottom" @click="navgetTo('/pages_user/user/personInfo')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/member_center.png" mode=""></image>
|
|
|
+ <text class="text">会员中心</text>
|
|
|
+ </view>
|
|
|
+ <view class="item no-marin-bottom" @click="openH5(2)">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_advice.png" mode=""></image>
|
|
|
+ <text class="text">投诉建议</text>
|
|
|
+ </view>
|
|
|
+ <view class="item no-marin-bottom" @click="navgetTo('/pages_user/user/storeProductRelation')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_invoice.png" mode=""></image>
|
|
|
+ <text class="text">开票历史</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="used-tools">
|
|
|
- <view class="title">管理应用</view>
|
|
|
- <view class="tools-list">
|
|
|
- <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/shopping/myCoupon')">
|
|
|
- <image src="../../static/images/mycoupon.png" mode=""></image>
|
|
|
- <text class="text">领券中心</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item no-marin-bottom" @click="openH5(1)">
|
|
|
- <image src="../../static/images/service_file.png" mode=""></image>
|
|
|
- <text class="text">用户协议</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item no-marin-bottom">
|
|
|
- <image src="../../static/images/customer1.png" mode=""></image>
|
|
|
- <text class="text">专属客服</text>
|
|
|
- <button class="contact-btn" open-type="contact"></button>
|
|
|
- </view>
|
|
|
- <view v-if="user.isPromoter==0" class="item no-marin-bottom"
|
|
|
- @click="navgetTo('/pages_user/user/userTuiAdd')">
|
|
|
- <image src="../../static/images/my_promotion.png" mode=""></image>
|
|
|
- <text class="text">申请健康大使</text>
|
|
|
- </view>
|
|
|
- <view v-if="user.isPromoter==1" class="item no-marin-bottom"
|
|
|
- @click="navgetTo('/pages_user/user/userTui')">
|
|
|
- <image src="../../static/images/my_promotion.png" mode=""></image>
|
|
|
- <text class="text">我的推广</text>
|
|
|
- </view>
|
|
|
- <view class="item no-marin-bottom" @click="navgetTo('/pages/home/cert')">
|
|
|
- <image src="../../static/images/service_file.png" mode=""></image>
|
|
|
- <text class="text">资质证书</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item no-marin-bottom" @click="toManager()">
|
|
|
- <image src="../../static/images/management.png" mode=""></image>
|
|
|
- <text class="text">销售管理</text>
|
|
|
- </view>
|
|
|
+ <view class="used-tools">
|
|
|
+ <view class="title">我的视频</view>
|
|
|
+ <view class="tools-list">
|
|
|
+ <view class="item" @click="navgetTo('/pages_user/user/storeProductRelation')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_star.png" mode=""></image>
|
|
|
+ <text class="text">我的收藏</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" @click="navgetTo('/pages_user/user/message')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_comment.png" mode=""></image>
|
|
|
+ <text class="text">我的评论</text>
|
|
|
+ </view>
|
|
|
+ <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/live/order')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_live.png" mode=""></image>
|
|
|
+ <text class="text">预约的直播</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
- </view>
|
|
|
+ <view class="used-tools">
|
|
|
+ <view class="title">管理应用</view>
|
|
|
+ <view class="tools-list">
|
|
|
+ <view class="item" @click="navgetTo('/pages_user/user/userTuiAdd')">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_store.png" mode=""></image>
|
|
|
+ <text class="text">申请入驻</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" @click="openH5(1)">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_about.png" mode=""></image>
|
|
|
+ <text class="text">关于我们</text>
|
|
|
+ </view>
|
|
|
+ <view class="item no-marin-bottom" @click="toManager()">
|
|
|
+ <image src="https://cdn.his.cdwjyyh.com/images/my_login.png" mode=""></image>
|
|
|
+ <text class="text">客服登录</text>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<!-- 退出登录按钮 -->
|
|
|
</view>
|
|
|
<view style="padding-bottom: 20rpx;" v-if="user.phone!=''">
|
|
|
@@ -307,7 +246,10 @@
|
|
|
getOrderCount
|
|
|
} from '@/api/storeOrder'
|
|
|
import {
|
|
|
- getUserInfo
|
|
|
+ getUserInfo,
|
|
|
+ sign,
|
|
|
+ getUserSign,
|
|
|
+ getIntegral
|
|
|
} from '@/api/user'
|
|
|
import likeProduct from '@/components/likeProduct.vue'
|
|
|
export default {
|
|
|
@@ -316,7 +258,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- signNum: 2,
|
|
|
+ signNum: 0,
|
|
|
sign: [{
|
|
|
day: 1
|
|
|
}, {
|
|
|
@@ -326,6 +268,9 @@
|
|
|
}, {
|
|
|
day: 4
|
|
|
}],
|
|
|
+ signStatus: false, // 今日是否已签到
|
|
|
+ continuousDays: 0, // 连续签到天数
|
|
|
+ userIntegral: 0, // 用户积分
|
|
|
|
|
|
dataList: [{
|
|
|
num: '55',
|
|
|
@@ -349,7 +294,7 @@
|
|
|
isWeixinAuth: 0,
|
|
|
phone: "",
|
|
|
nickname: "请登录",
|
|
|
- avatarUrl: "/static/images/detault_head.png"
|
|
|
+ avatarUrl: "https://cdn.his.cdwjyyh.com/images/detault_head.png"
|
|
|
},
|
|
|
// 状态栏的高度
|
|
|
statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
|
|
|
@@ -368,6 +313,8 @@
|
|
|
if (uni.getStorageSync('AppToken')) {
|
|
|
that.getUserInfo();
|
|
|
that.getOrderCount();
|
|
|
+ that.getUserSignRecord();
|
|
|
+ that.getIntegralInfo();
|
|
|
}
|
|
|
// this.utils.isLogin().then(res => {
|
|
|
// that.getUserInfo();
|
|
|
@@ -412,7 +359,7 @@
|
|
|
isWeixinAuth: 0,
|
|
|
phone: "",
|
|
|
nickname: "请登录",
|
|
|
- avatarUrl: "/static/images/detault_head.png",
|
|
|
+ avatarUrl: "https://cdn.his.cdwjyyh.com/images/detault_head.png",
|
|
|
avatar: null // 确保头像也被重置
|
|
|
};
|
|
|
|
|
|
@@ -514,6 +461,76 @@
|
|
|
rej => {}
|
|
|
);
|
|
|
},
|
|
|
+ // 签到
|
|
|
+ doSign() {
|
|
|
+ if (this.signStatus) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '今日已签到',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ sign().then(
|
|
|
+ res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '签到成功',
|
|
|
+ icon: 'success'
|
|
|
+ });
|
|
|
+ // 更新签到状态
|
|
|
+ this.signStatus = true;
|
|
|
+ this.continuousDays += 1;
|
|
|
+ this.signNum = this.continuousDays;
|
|
|
+ // 重新获取积分
|
|
|
+ this.getIntegralInfo();
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ rej => {}
|
|
|
+ );
|
|
|
+ },
|
|
|
+ // 获取用户签到记录
|
|
|
+ getUserSignRecord() {
|
|
|
+ getUserSign().then(
|
|
|
+ res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ // 处理签到记录数据
|
|
|
+ this.signStatus = res.isDaySign || false;
|
|
|
+ this.continuousDays = res.signNum || 0;
|
|
|
+ this.signNum = this.continuousDays;
|
|
|
+ // 处理签到规则
|
|
|
+ if (res.sign) {
|
|
|
+ try {
|
|
|
+ const signRules = JSON.parse(res.sign);
|
|
|
+ if (Array.isArray(signRules)) {
|
|
|
+ this.sign = signRules;
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ console.error('解析签到规则失败', e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ rej => {}
|
|
|
+ );
|
|
|
+ },
|
|
|
+ // 获取用户积分
|
|
|
+ getIntegralInfo() {
|
|
|
+ getIntegral().then(
|
|
|
+ res => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ this.userIntegral = res.data.total || 0;
|
|
|
+ // 更新芳华币显示
|
|
|
+ this.dataList[0].num = this.userIntegral;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ rej => {}
|
|
|
+ );
|
|
|
+ },
|
|
|
// 跳转页面
|
|
|
navgetTo(url) {
|
|
|
this.utils.isLogin().then(res => {
|
|
|
@@ -540,13 +557,6 @@
|
|
|
height: 532rpx;
|
|
|
position: relative;
|
|
|
background: radial-gradient(60% 60% at 70% 11%, #C5EFEA 0%, rgba(245, 246, 246, 0) 100%);
|
|
|
- // background-image: url(../../static/images/personl_top_bg.png);
|
|
|
- // background-image: url(../../static/images/red_bg.png);
|
|
|
- // background-image: url(../../static/images/viewer_top.png);
|
|
|
- // background-image: url(https://placehold.co/400x200/red/white);
|
|
|
-
|
|
|
- // background-repeat: repeat-x;
|
|
|
- // background-size: 40rpx 100%;
|
|
|
|
|
|
.top-inner {
|
|
|
width: 100%;
|
|
|
@@ -562,21 +572,35 @@
|
|
|
flex-direction: column;
|
|
|
|
|
|
.qscode-block {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
-
|
|
|
- .qscode {
|
|
|
- width: 64rpx;
|
|
|
- height: 64rpx;
|
|
|
- padding: 12rpx;
|
|
|
- margin-right: 210rpx;
|
|
|
- border-radius: 32rpx 32rpx 32rpx 32rpx;
|
|
|
- border: 1rpx solid #E9E9E9;
|
|
|
- box-sizing: border-box;
|
|
|
- background: #FFFFFF;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+
|
|
|
+ .qscode {
|
|
|
+ width: 64rpx;
|
|
|
+ height: 64rpx;
|
|
|
+ padding: 12rpx;
|
|
|
+ margin-right: 210rpx;
|
|
|
+ border-radius: 32rpx 32rpx 32rpx 32rpx;
|
|
|
+ border: 1rpx solid #E9E9E9;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: #FFFFFF;
|
|
|
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .shop-title {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ margin: 20rpx 0;
|
|
|
+
|
|
|
+ .title-text {
|
|
|
+ font-size: 36rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
.user-info {
|
|
|
// padding: 88rpx 30rpx 0 30rpx;
|
|
|
@@ -992,6 +1016,7 @@
|
|
|
background: #FFFFFF;
|
|
|
border-radius: 16rpx;
|
|
|
padding: 40rpx 30rpx;
|
|
|
+ width: 100%;
|
|
|
|
|
|
.title {
|
|
|
font-size: 34rpx;
|