增添图标

This commit is contained in:
zy
2024-03-26 15:38:24 +08:00
parent 0d92681fff
commit cc1447640e
7 changed files with 493 additions and 469 deletions

View File

@@ -11,6 +11,7 @@
<!--音频播放按钮处--> <!--音频播放按钮处-->
<view class="audo-top"> <view class="audo-top">
<!-- 顺序播放 --> <!-- 顺序播放 -->
<!-- <image v-if="orderPlayBtn" style="width:50rpx;height:50rpx;" src="/static/orderPlaya.png" mode="aspectFill" @click="orderPlay(false)"></image> <!-- <image v-if="orderPlayBtn" style="width:50rpx;height:50rpx;" src="/static/orderPlaya.png" mode="aspectFill" @click="orderPlay(false)"></image>
<image v-else style="width:50rpx;height:50rpx;" src="/static/orderPlay.png" mode="aspectFill" @click="orderPlay(true)"></image> <image v-else style="width:50rpx;height:50rpx;" src="/static/orderPlay.png" mode="aspectFill" @click="orderPlay(true)"></image>

View File

@@ -5,6 +5,7 @@
<view class="audo-video" > <view class="audo-video" >
<!--音频播放按钮处--> <!--音频播放按钮处-->
<view class="audo-top"> <view class="audo-top">
<!-- 播放封面 --> <!-- 播放封面 -->
<image @click="changeShow" style="width: 120rpx; height: 120rpx; margin-top: 0;" :class="['fengImg','fengmianBox','defaultBg', userInfo.playFlag ? 'playAnimate' : '']" :src="userInfo.fengImg" mode="aspectFill"></image> <image @click="changeShow" style="width: 120rpx; height: 120rpx; margin-top: 0;" :class="['fengImg','fengmianBox','defaultBg', userInfo.playFlag ? 'playAnimate' : '']" :src="userInfo.fengImg" mode="aspectFill"></image>
<!-- <image v-else @click="changeShow" style="width: 120rpx; height: 120rpx; margin-top: 0;" :class="['fengImg','fengmianBox','defaultBg', userInfo.playFlag ? 'playAnimate' : '']" src="@/static/icon/fengziIcon.jpg" mode="aspectFill"></image> --> <!-- <image v-else @click="changeShow" style="width: 120rpx; height: 120rpx; margin-top: 0;" :class="['fengImg','fengmianBox','defaultBg', userInfo.playFlag ? 'playAnimate' : '']" src="@/static/icon/fengziIcon.jpg" mode="aspectFill"></image> -->
@@ -35,7 +36,13 @@
mode="aspectFill"> </image> --> mode="aspectFill"> </image> -->
<!-- <image class="nextMusic" style="" src="/static/xys.png" @click="nextMusic" mode="aspectFill"></image> --> <!-- <image class="nextMusic" style="" src="/static/xys.png" @click="nextMusic" mode="aspectFill"></image> -->
<!-- <u-icon name="arrow-right" color="#61e781" size="28" v-if="!showBig" @click="changeShow"></u-icon> --> <!-- <u-icon name="arrow-right" color="#61e781" size="28" v-if="!showBig" @click="changeShow"></u-icon> -->
<u-icon name="close" color="#61e781" size="20" style="background-color: #fff;border-radius: 100%;" v-if="!showBig" @click="closePlayer"></u-icon>
<!-- 暂时去掉关闭按钮 -->
<!-- <u-icon name="close" color="#61e781" size="20" style="background-color: #fff;border-radius: 100%;" v-if="!showBig" @click="closePlayer"></u-icon> -->
<!-- 暂时去掉关闭按钮 -->
<!-- 播放目录 --> <!-- 播放目录 -->
<!-- <image src="/static/libIcon.png" style="width:45rpx;height:45rpx;" mode="aspectFill"></image> --> <!-- <image src="/static/libIcon.png" style="width:45rpx;height:45rpx;" mode="aspectFill"></image> -->

View File

@@ -44,6 +44,11 @@
iconPath: 'static/tab/icon1_n.png', iconPath: 'static/tab/icon1_n.png',
selectedIconPath: 'static/tab/icon1_y.png', selectedIconPath: 'static/tab/icon1_y.png',
text: '首页' text: '首页'
},{
"pagePath": "pages/medicaldes/medicaldes",
"iconPath": "static/icon/five5.png",
"selectedIconPath": "static/icon/five5.png",
"text": "吴门医述"
}, },
{ {
"pagePath": "pages/library/library", "pagePath": "pages/library/library",
@@ -64,12 +69,7 @@
// text: '我的订单' // text: '我的订单'
// }, // },
{
"pagePath": "pages/medicaldes/medicaldes",
"iconPath": "static/icon/five5.png",
"selectedIconPath": "static/icon/five5.png",
"text": "吴门医述"
},
{ {
pagePath: 'pages/peanut/mine', pagePath: 'pages/peanut/mine',
iconPath: 'static/tab/icon4_n.png', iconPath: 'static/tab/icon4_n.png',

View File

@@ -12,8 +12,8 @@
"src" : "图片路径" "src" : "图片路径"
} }
], ],
"versionName" : "1.2.41", "versionName" : "1.2.42",
"versionCode" : 1241, "versionCode" : 1242,
"app-plus" : { "app-plus" : {
"compatible" : { "compatible" : {
"ignoreVersion" : true "ignoreVersion" : true

View File

@@ -2,7 +2,8 @@
"easycom": { "easycom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
}, },
"pages": [{ "pages": [
{
"path": "pages/peanut/home", "path": "pages/peanut/home",
"style": { "style": {
"navigationBarTitleText": "首页" "navigationBarTitleText": "首页"
@@ -257,169 +258,167 @@
"style": { "style": {
"navigationBarTitleText": "物流详情" "navigationBarTitleText": "物流详情"
} }
} },
{
, {
"path": "pages/peanut/aboutUs", "path": "pages/peanut/aboutUs",
"style": { "style": {
"navigationBarTitleText": "关于我们", "navigationBarTitleText": "关于我们",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/listen", "path": "pages/listen/listen",
"style": { "style": {
"navigationBarTitleText": "悦耳列表", "navigationBarTitleText": "悦耳列表",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/home", "path": "pages/listen/home",
"style": { "style": {
"navigationBarTitleText": "悦耳听书", "navigationBarTitleText": "悦耳听书",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
}, { {
"path": "pages/listen/search", "path": "pages/listen/search",
"style": { "style": {
"navigationBarTitleText": "搜索听书", "navigationBarTitleText": "搜索听书",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/bgMusix", "path": "pages/listen/bgMusix",
"style": { "style": {
"navigationBarTitleText": "背景音乐模式", "navigationBarTitleText": "背景音乐模式",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/bgMusic", "path": "pages/listen/bgMusic",
"style": { "style": {
"navigationBarTitleText": "背景音乐启用", "navigationBarTitleText": "背景音乐启用",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/bgMusic", "path": "pages/listen/bgMusic",
"style": { "style": {
"navigationBarTitleText": "背景音乐启用", "navigationBarTitleText": "背景音乐启用",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/musicbg", "path": "pages/listen/musicbg",
"style": { "style": {
"navigationBarTitleText": "音乐1", "navigationBarTitleText": "音乐1",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/peanut/myComments", "path": "pages/peanut/myComments",
"style": { "style": {
"navigationBarTitleText": "我的评价", "navigationBarTitleText": "我的评价",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/setListen", "path": "pages/listen/setListen",
"style": { "style": {
"navigationBarTitleText": "听书设置11", "navigationBarTitleText": "听书设置11",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/bigListen", "path": "pages/listen/bigListen",
"style": { "style": {
"navigationBarTitleText": "听书页面", "navigationBarTitleText": "听书页面",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/listen/listenNotBuy", "path": "pages/listen/listenNotBuy",
"style": { "style": {
"navigationBarTitleText": "未购买的详情", "navigationBarTitleText": "未购买的详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/comments/comments", "path": "pages/comments/comments",
"style": { "style": {
"navigationBarTitleText": "书评1", "navigationBarTitleText": "书评1",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
}, { {
"path": "pages/comments/commentsDetail", "path": "pages/comments/commentsDetail",
"style": { "style": {
"navigationBarTitleText": "书评详情1", "navigationBarTitleText": "书评详情1",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/comments/commentsList", "path": "pages/comments/commentsList",
"style": { "style": {
"navigationBarTitleText": "书评", "navigationBarTitleText": "书评",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
}, { {
"path": "pages/bookShop/settlementBook", "path": "pages/bookShop/settlementBook",
"style": { "style": {
"navigationBarTitleText": "book购买1", "navigationBarTitleText": "book购买1",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/library/library", "path": "pages/library/library",
"style": { "style": {
"navigationBarTitleText": "我的图书", "navigationBarTitleText": "我的图书",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
}, { {
"path": "pages/clock/clock", "path": "pages/clock/clock",
"style": { "style": {
"navigationBarTitleText": "读书打卡", "navigationBarTitleText": "读书打卡",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/clock/index", "path": "pages/clock/index",
"style": { "style": {
"navigationBarTitleText": "读书打卡列表", "navigationBarTitleText": "读书打卡列表",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/clock/clockList", "path": "pages/clock/clockList",
"style": { "style": {
"navigationBarTitleText": "打卡记录1", "navigationBarTitleText": "打卡记录1",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
}, { {
"path": "pages/talkBook/talkBook", "path": "pages/talkBook/talkBook",
"style": { "style": {
"navigationBarTitleText": "讲书", "navigationBarTitleText": "讲书",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
}, { {
"path": "pages/talkBook/talkBookML", "path": "pages/talkBook/talkBookML",
"style": { "style": {
"navigationBarTitleText": "讲书书籍页面", "navigationBarTitleText": "讲书书籍页面",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
}, { {
"path": "pages/talkBook/talkBookDetail", "path": "pages/talkBook/talkBookDetail",
"style": { "style": {
"navigationBarTitleText": "讲书详情", "navigationBarTitleText": "讲书详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "pages/yian/yian", "path": "pages/yian/yian",
@@ -427,7 +426,6 @@
"navigationBarTitleText": "医案", "navigationBarTitleText": "医案",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
{ {
"path": "pages/yian/yianList", "path": "pages/yian/yianList",
@@ -435,14 +433,13 @@
"navigationBarTitleText": "医案列表", "navigationBarTitleText": "医案列表",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
}, { {
"path": "pages/yian/yianDetail", "path": "pages/yian/yianDetail",
"style": { "style": {
"navigationBarTitleText": "医案详情", "navigationBarTitleText": "医案详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ // 更新版本 { // 更新版本
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup", "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
@@ -456,7 +453,6 @@
"popGesture": "none", "popGesture": "none",
"animationType": "fade-in", "animationType": "fade-in",
"animationDuration": 200 "animationDuration": 200
} }
} }
}, },
@@ -466,7 +462,6 @@
"navigationBarTitleText": "快递列表", "navigationBarTitleText": "快递列表",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "pages/peanut/chargeDetaill", "path": "pages/peanut/chargeDetaill",
@@ -488,13 +483,15 @@
"navigationBarTitleText": "脉穴详情", "navigationBarTitleText": "脉穴详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},{ },
{
"path": "pages/acupoint/givenDegree", "path": "pages/acupoint/givenDegree",
"style": { "style": {
"navigationBarTitleText": "特定穴位", "navigationBarTitleText": "特定穴位",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},{ },
{
"path": "pages/timeAcupoint/timeAcupoint", "path": "pages/timeAcupoint/timeAcupoint",
"style": { "style": {
"navigationBarTitleText": "时辰取穴", "navigationBarTitleText": "时辰取穴",
@@ -627,7 +624,8 @@
"selectedColor": "#079307", "selectedColor": "#079307",
"borderStyle": "black", "borderStyle": "black",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"list": [{ "list": [
{
"pagePath": "pages/peanut/home", "pagePath": "pages/peanut/home",
"iconPath": "static/tab/icon1_n.png", "iconPath": "static/tab/icon1_n.png",
"selectedIconPath": "static/tab/icon1_y.png", "selectedIconPath": "static/tab/icon1_y.png",
@@ -639,6 +637,12 @@
// "selectedIconPath": "static/tab/icon2_y.png", // "selectedIconPath": "static/tab/icon2_y.png",
// "text": "购物车" // "text": "购物车"
// }, // },
{
"pagePath": "pages/medicaldes/medicaldes",
"iconPath": "static/icon/five5.png",
"selectedIconPath": "static/icon/five5.png",
"text": "吴门医述"
},
{ {
"pagePath": "pages/library/library", "pagePath": "pages/library/library",
"iconPath": "static/tab/icon3_n.png", "iconPath": "static/tab/icon3_n.png",
@@ -657,12 +661,6 @@
// "selectedIconPath": "static/tab/icon2_y.png", // "selectedIconPath": "static/tab/icon2_y.png",
// "text": "我的订单" // "text": "我的订单"
// }, // },
{
"pagePath": "pages/medicaldes/medicaldes",
"iconPath": "static/icon/five5.png",
"selectedIconPath": "static/icon/five5.png",
"text": "吴门医述"
},
{ {
"pagePath": "pages/peanut/mine", "pagePath": "pages/peanut/mine",
"iconPath": "static/tab/icon4_n.png", "iconPath": "static/tab/icon4_n.png",
@@ -673,10 +671,12 @@
}, },
"condition": { //模式配置,仅开发期间生效 "condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项) "current": 0, //当前激活的模式(list 的索引项)
"list": [{ "list": [
"name": "", //模式名称 {
"path": "", //启动页面,必选 "name": "", //模式名称
"query": "" //启动参数在页面的onLoad函数里面得到 "path": "", //启动页面,必选
}] "query": "" //启动参数在页面的onLoad函数里面得到
}
]
} }
} }

View File

@@ -1,25 +1,41 @@
<template> <template>
<view style="padding: 0 40rpx;font-size: 28upx;"> <view style="padding: 0 40rpx; font-size: 28upx">
<!-- 公共组件-每个页面必须引入 --> <!-- 公共组件-每个页面必须引入 -->
<public-module></public-module> <public-module></public-module>
<view style="height: 50rpx;"></view> <view style="height: 50rpx"></view>
<view class="per_mes"> <view class="per_mes">
<image :src="userMes.avatar" v-if="userMes.avatar!=null" class="per_mes_img"></image> <image
<image src="../../static/icon/home_icon_1.png" v-if="userMes.avatar==null" class="per_mes_img"></image> :src="userMes.avatar"
<view> v-if="userMes.avatar != null"
<text class="name" v-if="userMes.nickname!=null">{{userMes.nickname}}</text> class="per_mes_img"
<text class="name" v-if="userMes.nickname==null">未设置</text> ></image>
<!-- <image v-if="userMes.vip==1" src="../../static/icon/mine_v.png" alt="" class="per_user_img"></image> --> <image
<text style="margin-left: 20rpx;font-size: 22rpx;color: #888;" v-if="userMes.tel">({{userMes.tel}})</text> src="../../static/icon/home_icon_1.png"
<text style="margin-left: 20rpx;font-size: 22rpx;color: #888;" v-else>({{userMes.email}})</text> v-if="userMes.avatar == null"
class="per_mes_img"
></image>
<view>
<text class="name" v-if="userMes.nickname != null">{{
userMes.nickname
}}</text>
<text class="name" v-if="userMes.nickname == null">未设置</text>
<!-- <image v-if="userMes.vip==1" src="../../static/icon/mine_v.png" alt="" class="per_user_img"></image> -->
<text
style="margin-left: 20rpx; font-size: 22rpx; color: #888"
v-if="userMes.tel"
>({{ userMes.tel }})</text
>
<text style="margin-left: 20rpx; font-size: 22rpx; color: #888" v-else
>({{ userMes.email }})</text
>
<!-- <text class="tong">累计读书5本 <!-- <text class="tong">累计读书5本
<span style="margin: 0 20upx;">|</span> 今日读50分钟 <span style="margin: 0 20upx;">|</span> 今日读50分钟
</text> --> </text> -->
</view> </view>
<br clear="both"> <br clear="both" />
</view> </view>
<!-- <view class="now_vip" v-if="userMes.vip==0"> <!-- <view class="now_vip" v-if="userMes.vip==0">
<text> <text>
<image src="../../static/icon/mine_p.png" style="height: 44rpx;"></image> <image src="../../static/icon/mine_p.png" style="height: 44rpx;"></image>
开通会员畅享海量内容 开通会员畅享海量内容
@@ -27,7 +43,7 @@
<b class="kt_btn" @click="onPageJump('./opeVip')">开通VIP</b> <b class="kt_btn" @click="onPageJump('./opeVip')">开通VIP</b>
</view> --> </view> -->
<!-- <view class="now_vip" v-if="userMes.vip==1"> <!-- <view class="now_vip" v-if="userMes.vip==1">
<text> <text>
<image src="../../static/icon/mine_v.png"></image> <image src="../../static/icon/mine_v.png"></image>
尊贵的VIP会员 尊贵的VIP会员
@@ -36,416 +52,416 @@
<b class="kt_btn" @click="onPageJump('./opeVip')">立即续费</b> <b class="kt_btn" @click="onPageJump('./opeVip')">立即续费</b>
</view> --> </view> -->
<view class="chong_zhi"> <view class="chong_zhi">
<view class="zhanghu" @click="onPageJump('../user/persCount')"> <view class="zhanghu" @click="onPageJump('../user/persCount')">
我的账户 我的账户
<text style="float: right;line-height: 85rpx;"> > </text> <text style="float: right; line-height: 85rpx"> > </text>
</view> </view>
<view class="chong_list"> <view class="chong_list">
<view v-if="iosHide"> <view v-if="iosHide">
<b>{{userMes.peanutCoin}}</b> <b>{{ userMes.peanutCoin }}</b>
天医币 天医币
</view> </view>
<view v-if="iosHide"> <view v-if="iosHide">
<b>{{userMes.conponsCount}}</b> <b>{{ userMes.conponsCount }}</b>
优惠券 优惠券
</view> </view>
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')"> </b> --> <!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')"> </b> -->
<b class="chong_btn" v-if="iosHide" @click="onPageJump('./reCharge')"> </b> <b class="chong_btn" v-if="iosHide" @click="onPageJump('./reCharge')"
</view> > </b
</view> >
</view>
</view>
<view class="xiugai"> <view class="xiugai">
<view class="nav_list" @click="switchTab('../bookShop/orderList')"> <view class="nav_list" @click="switchTab('../bookShop/orderList')">
<text>我的订单</text> <text>我的订单</text>
</view> </view>
<!-- <view class="nav_list" @click="onPageJump('../clock/clockList')"> <!-- <view class="nav_list" @click="onPageJump('../clock/clockList')">
<text>我的打卡</text> <text>我的打卡</text>
</view> --> </view> -->
<!-- <view class="nav_list" @click="onPageJump('../listen/home')" v-if="iosHide"> <!-- <view class="nav_list" @click="onPageJump('../listen/home')" v-if="iosHide">
<text>我的听书</text> <text>我的听书</text>
</view> --> </view> -->
<view class="nav_list" @click="onPageJump('../listen/setListen')" v-if="iosHide"> <!-- 暂时去掉 -->
<!-- <view class="nav_list" @click="onPageJump('../listen/setListen')" v-if="iosHide">
<text>听书设置</text> <text>听书设置</text>
</view> </view> -->
<view class="nav_list" @click="onPageJump('../peanut/myComments')"> <!-- <view class="nav_list" @click="onPageJump('../peanut/myComments')">
<text>我的评价</text> <text>我的评价</text>
</view> </view> -->
<view class="nav_list" @click="onPageJump('../peanut/shopping')">
<text>购物车</text> <!-- 暂时去掉 -->
</view> <view class="nav_list" @click="onPageJump('../peanut/shopping')">
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookBuy')"> <text>购物车</text>
</view>
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookBuy')">
<text>电子书购买记录</text> <text>电子书购买记录</text>
</view> --> </view> -->
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookRecord')"> <!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookRecord')">
<text>阅读记录</text> <text>阅读记录</text>
</view> --> </view> -->
<view class="nav_list" @click="onPageJump('../user/persData')"> <view class="nav_list" @click="onPageJump('../user/persData')">
<text>修改个人资料</text> <text>修改个人资料</text>
</view> </view>
<view class="nav_list" @click="onPageJump('../user/address')"> <view class="nav_list" @click="onPageJump('../user/address')">
<text>地址管理</text> <text>地址管理</text>
</view> </view>
<!-- <view class="nav_list" @click="onGoing()"> <!-- <view class="nav_list" @click="onGoing()">
<text>帮助与反馈11111</text> <text>帮助与反馈11111</text>
</view> --> </view> -->
<!-- <view class="nav_list" @click="newOnShare" v-if="isAndorid"> --> <!-- <view class="nav_list" @click="newOnShare" v-if="isAndorid"> -->
<view class="nav_list" @click="newOnShare"> <view class="nav_list" @click="newOnShare">
<text>分享App</text> <text>分享App</text>
</view> </view>
<view class="nav_list" @click="onPageJump('../peanut/aboutUs')"> <view class="nav_list" @click="onPageJump('../peanut/aboutUs')">
<text>关于我们</text> <text>关于我们</text>
</view> </view>
<view class="nav_list" @click="signShow=true"> <view class="nav_list" @click="signShow = true">
<text>退出登录</text> <text>退出登录</text>
</view> </view>
<view class="nav_list" @click="logout"> <view class="nav_list" @click="logout">
<text>注销帐号</text> <text>注销帐号</text>
</view> </view>
</view>
</view> <u-modal
:show="signShow"
:content="signContent"
:showCancelButton="true"
@cancel="signShow = false"
@confirm="signOut"
>
</u-modal>
<!-- 分享弹窗 -->
<uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
<uni-popup-share @select="haveSelected"></uni-popup-share>
</uni-popup>
<u-modal :show="signShow" :content="signContent" :showCancelButton="true" @cancel="signShow=false" <music-play :playData="playData"></music-play>
@confirm="signOut"> <z-navigation></z-navigation>
</u-modal> </view>
<!-- 分享弹窗 -->
<uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
<uni-popup-share @select="haveSelected"></uni-popup-share>
</uni-popup>
<music-play :playData="playData"></music-play>
<z-navigation></z-navigation>
</view>
</template> </template>
<script> <script>
import musicPlay from '@/components/music.vue' import musicPlay from "@/components/music.vue";
import $http from '@/config/requestConfig.js'; import $http from "@/config/requestConfig.js";
// import appShare, { closeShare } from '@/uni_modules/zhouWei-APPshare/js_sdk/appShare'; // import appShare, { closeShare } from '@/uni_modules/zhouWei-APPshare/js_sdk/appShare';
import { import { mapState, mapMutations } from "vuex";
mapState,mapMutations export default {
} from 'vuex'; data() {
export default { return {
data() { showEbook: false, // 显示电子书相关
return { userMes: {},
showEbook:false, // 显示电子书相关 signShow: false,
userMes: {}, signContent: "是否要退出登录?",
signShow: false, playData: {},
signContent: '是否要退出登录?', isAndorid: true,
playData:{}, platform: null, // 设备系统
isAndorid:true, };
platform : null, // 设备系统 },
}; //第一次加载
}, onLoad(e) {
//第一次加载 // 隐藏原生的tabbar
onLoad(e) { uni.hideTabBar();
// 隐藏原生的tabbar // #ifdef APP-PLUS
uni.hideTabBar(); this.getOS();
// #ifdef APP-PLUS this.platform = uni.getSystemInfoSync().platform;
this.getOS() // console.log('操纵系统',this.platform)
this.platform = uni.getSystemInfoSync().platform // #endif
// console.log('操纵系统',this.platform) },
// #endif computed: {
}, ...mapState(["userInfo"]),
computed: { },
...mapState(['userInfo']) //页面显示
}, onShow() {
//页面显示 // 隐藏原生的tabbar
onShow() { uni.hideTabBar();
// 隐藏原生的tabbar this.getData();
uni.hideTabBar(); },
this.getData(); components: {
}, musicPlay,
components: { },
musicPlay //方法
}, methods: {
//方法 ...mapMutations(["setUserInfo"]),
methods: { // 获得操作系统
...mapMutations(['setUserInfo']), getOS() {
// 获得操作系统 let oprateOs = "";
getOS(){ oprateOs = uni.getSystemInfoSync().platform;
let oprateOs = '' // console.log(oprateOs)
oprateOs = uni.getSystemInfoSync().platform if (oprateOs == "android") {
// console.log(oprateOs) this.isAndorid = true;
if(oprateOs == 'android'){ } else {
this.isAndorid = true this.isAndorid = false;
}else{ }
this.isAndorid = false },
} haveSelected(data) {
}, console.log(data, " 选择的是");
haveSelected(data){ if (data.index == 0) {
console.log(data,' 选择的是') // 分享到好友
if(data.index == 0){ uni.share({
// 分享到好友 provider: "weixin",
uni.share({ scene: "WXSceneSession",
provider: "weixin", type: 0,
scene: "WXSceneSession", href: this.$apkUrl,
type: 0, title: "疯子读书",
href: this.$apkUrl, summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!",
title: "疯子读书", imageUrl: "static/fengziIcon.jpg",
summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!", success: function (res) {
imageUrl: "static/fengziIcon.jpg", console.log("success:" + JSON.stringify(res));
success: function (res) { },
console.log("success:" + JSON.stringify(res)); fail: function (err) {
}, console.log("fail:" + JSON.stringify(err));
fail: function (err) { },
console.log("fail:" + JSON.stringify(err)); });
} } else if (data.index == 1) {
}); // 分享到朋友圈
}else if(data.index == 1){ uni.share({
// 分享到朋友圈 provider: "weixin",
uni.share({ scene: "WXSceneTimeline",
provider: "weixin", type: 0,
scene: "WXSceneTimeline", href: this.$apkUrl,
type: 0, title: "疯子读书",
href: this.$apkUrl, summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!",
title: "疯子读书", imageUrl: "static/fengziIcon.jpg",
summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!", success: function (res) {
imageUrl: "static/fengziIcon.jpg", console.log("success:" + JSON.stringify(res));
success: function (res) { },
console.log("success:" + JSON.stringify(res)); fail: function (err) {
}, console.log("fail:" + JSON.stringify(err));
fail: function (err) { },
console.log("fail:" + JSON.stringify(err)); });
} }
}); },
} switchTab(url) {
}, uni.switchTab({
switchTab(url){ url: url,
uni.switchTab({ });
url: url },
}); getData() {
}, // 获取个人信息
getData() { if (this.userInfo.id != undefined) {
// 获取个人信息 this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
if (this.userInfo.id != undefined) { this.userMes = res.user;
this.$http if (this.userMes.vip == 1) {
.post('book/user/info/' + this.userInfo.id) this.userMes.vipValidtime = this.userMes.vipValidtime.substring(
.then(res => { 0,
this.userMes = res.user this.userMes.vipValidtime.indexOf(" ")
if (this.userMes.vip == 1) { );
this.userMes.vipValidtime = this.userMes.vipValidtime.substring(0, this.userMes }
.vipValidtime });
.indexOf(' ')) }
} },
});
}
}, // 新写分享
newOnShare() {
this.$refs.share.open();
},
// 新写分享 // 注销账户
newOnShare(){ logout() {
this.$refs.share.open() let that = this;
}, uni.showModal({
title: "提示",
content: "确定要注销当前账户吗?",
success: function (res) {
if (res.confirm) {
uni.showModal({
title: "提示",
showCancel: false,
content: `注销申请已提交成功,请联系客服进行后续操作022-24142321`,
success: function (res1) {
if (res1.confirm) {
that.signOut();
}
},
});
} else if (res.cancel) {
// 取消操作
}
},
});
},
// 跳转
onGoing() {
uni.showToast({
icon: "none",
title: "开发中,敬请期待...",
});
},
onPageJump(url) {
console.log(url, "url");
uni.navigateTo({
url: url,
});
},
// 注销账户 // 退出登录
logout(){ signOut() {
let that = this this.signShow = false;
uni.showModal({ this.setUserInfo({ token: null });
title: '提示', uni.reLaunch({
content: '确定要注销当前账户吗?', url: "../user/login",
success: function (res) { });
if (res.confirm) { },
uni.showModal({ },
title: '提示', };
showCancel:false,
content: `注销申请已提交成功,请联系客服进行后续操作022-24142321`,
success: function (res1) {
if (res1.confirm) {
that.signOut()
}
}
});
} else if (res.cancel) {
// 取消操作
}
}
});
},
// 跳转
onGoing() {
uni.showToast({
icon: 'none',
title: '开发中,敬请期待...'
})
},
onPageJump(url) {
console.log(url,'url')
uni.navigateTo({
url: url
});
},
// 退出登录
signOut() {
this.signShow = false
this.setUserInfo({'token': null})
uni.reLaunch({
url: '../user/login'
});
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/style/mixin.scss'; @import "@/style/mixin.scss";
.per_mes { .per_mes {
margin: 50rpx 0 50rpx 0; margin: 50rpx 0 50rpx 0;
align-items: center; align-items: center;
.per_mes_img { .per_mes_img {
width: 120upx; width: 120upx;
height: 120upx; height: 120upx;
background-color: #fff; background-color: #fff;
border-radius: 120upx; border-radius: 120upx;
margin: 0 30upx 0 0; margin: 0 30upx 0 0;
float: left; float: left;
} }
view { view {
float: left; float: left;
margin-top: 20rpx; margin-top: 20rpx;
.name { .name {
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
font-size: 38upx; font-size: 38upx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
.tong { .tong {
color: #999; color: #999;
font-size: 25upx; font-size: 25upx;
} }
.per_user_img { .per_user_img {
display: inline-block; display: inline-block;
width: 40upx; width: 40upx;
height: 40upx; height: 40upx;
margin-left: 10rpx; margin-left: 10rpx;
vertical-align: super; vertical-align: super;
} }
} }
}
.now_vip {
background-color: #fff;
// border-radius: 20upx;
margin: 0 0 30upx 0;
padding: 0 30upx;
height: 120upx;
background-image: linear-gradient(90deg, #feeed6 0%, #f5ce99 100%);
} image {
width: 46rpx;
height: 50rpx;
display: inline-block;
vertical-align: text-bottom;
margin: 0 10rpx 0 0;
}
.now_vip { text {
background-color: #fff; font-size: 30upx;
// border-radius: 20upx; line-height: 120upx;
margin: 0 0 30upx 0; color: #977749;
padding: 0 30upx; font-weight: bold;
height: 120upx; }
background-image: linear-gradient(90deg, #feeed6 0%, #f5ce99 100%);
image { .kt_btn {
width: 46rpx; font-size: 26upx;
height: 50rpx; display: block;
display: inline-block; float: right;
vertical-align: text-bottom; border-radius: 50rpx;
margin: 0 10rpx 0 0; color: #fffbf6;
} padding: 12rpx 26rpx;
margin: 33rpx 0 0 0;
background-image: linear-gradient(90deg, #dfa964 0%, #7f5218 100%);
}
}
text { .chong_zhi {
font-size: 30upx; background-color: #fff;
line-height: 120upx; margin: 0 0 30upx 0;
color: #977749; padding: 0 30upx;
font-weight: bold; height: 240upx;
}
.kt_btn { .zhanghu {
font-size: 26upx; font-size: 32upx;
display: block; line-height: 100upx;
float: right; font-weight: bold;
border-radius: 50rpx; }
color: #fffbf6;
padding: 12rpx 26rpx;
margin: 33rpx 0 0 0;
background-image: linear-gradient(90deg, #dfa964 0%, #7f5218 100%);
}
}
.chong_zhi { .chong_list {
background-color: #fff; view {
margin: 0 0 30upx 0; width: 25%;
padding: 0 30upx; text-align: center;
height: 240upx; display: inline-block;
color: #a3a1a1;
.zhanghu { b {
font-size: 32upx; font-size: 45rpx;
line-height: 100upx; display: block;
font-weight: bold; margin: 0 0 10rpx 0;
} color: #76757b;
}
}
.chong_list { .chong_btn {
view { font-size: 26upx;
width: 25%; display: block;
text-align: center; float: right;
display: inline-block; border-radius: 50rpx;
color: #a3a1a1; color: #fffbf6;
padding: 12rpx 42rpx;
margin: 20rpx 0 0 0;
background: #815219;
}
}
}
b { .xiugai {
font-size: 45rpx; .nav_list {
display: block; background-color: #fff;
margin: 0 0 10rpx 0; padding: 30upx 0 30upx 20upx;
color: #76757b; display: flex;
} align-items: center;
} position: relative;
font-weight: bold;
border-bottom: 1px solid #e5e5e5;
.chong_btn { &:active {
font-size: 26upx; background-color: #f5f5f5;
display: block; }
float: right;
border-radius: 50rpx;
color: #fffbf6;
padding: 12rpx 42rpx;
margin: 20rpx 0 0 0;
background: #815219;
}
}
}
.xiugai { text {
color: #333;
margin-left: 10rpx;
}
.nav_list { &::after {
background-color: #fff; content: "";
padding: 30upx 0 30upx 20upx; position: absolute;
display: flex; right: 20upx;
align-items: center; top: 50%;
position: relative; transform: translateY(-50%);
font-weight: bold; width: 40upx;
border-bottom: 1px solid #e5e5e5; height: 40upx;
background-image: url("../../static/icon/icon_right.png");
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
}
&:active { .nav_list:nth-last-child(1) {
background-color: #f5f5f5; border-bottom: 0;
} }
}
text {
color: #333;
margin-left: 10rpx;
}
&::after {
content: '';
position: absolute;
right: 20upx;
top: 50%;
transform: translateY(-50%);
width: 40upx;
height: 40upx;
background-image: url('../../static/icon/icon_right.png');
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
}
.nav_list:nth-last-child(1) {
border-bottom: 0;
}
}
</style> </style>

BIN
static/icon/five5_n.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB