增添图标

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": "", //模式名称 "name": "", //模式名称
"path": "", //启动页面,必选 "path": "", //启动页面,必选
"query": "" //启动参数在页面的onLoad函数里面得到 "query": "" //启动参数在页面的onLoad函数里面得到
}] }
]
} }
} }

View File

@@ -1,23 +1,39 @@
<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"
v-if="userMes.avatar != null"
class="per_mes_img"
></image>
<image
src="../../static/icon/home_icon_1.png"
v-if="userMes.avatar == null"
class="per_mes_img"
></image>
<view> <view>
<text class="name" v-if="userMes.nickname!=null">{{userMes.nickname}}</text> <text class="name" v-if="userMes.nickname != null">{{
<text class="name" v-if="userMes.nickname==null">未设置</text> 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> --> <!-- <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
<text style="margin-left: 20rpx;font-size: 22rpx;color: #888;" v-else>({{userMes.email}})</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>
@@ -39,19 +55,21 @@
<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')"
> </b
>
</view> </view>
</view> </view>
@@ -65,12 +83,15 @@
<!-- <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')"> <view class="nav_list" @click="onPageJump('../peanut/shopping')">
<text>购物车</text> <text>购物车</text>
</view> </view>
@@ -97,17 +118,21 @@
<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" <u-modal
@confirm="signOut"> :show="signShow"
:content="signContent"
:showCancelButton="true"
@cancel="signShow = false"
@confirm="signOut"
>
</u-modal> </u-modal>
<!-- 分享弹窗 --> <!-- 分享弹窗 -->
<uni-popup ref="share" type="share" safeArea backgroundColor="#fff"> <uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
@@ -120,22 +145,20 @@
</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';
export default {
data() { data() {
return { return {
showEbook:false, // 显示电子书相关 showEbook: false, // 显示电子书相关
userMes: {}, userMes: {},
signShow: false, signShow: false,
signContent: '是否要退出登录?', signContent: "是否要退出登录?",
playData:{}, playData: {},
isAndorid:true, isAndorid: true,
platform : null, // 设备系统 platform: null, // 设备系统
}; };
}, },
//第一次加载 //第一次加载
@@ -143,13 +166,13 @@
// 隐藏原生的tabbar // 隐藏原生的tabbar
uni.hideTabBar(); uni.hideTabBar();
// #ifdef APP-PLUS // #ifdef APP-PLUS
this.getOS() this.getOS();
this.platform = uni.getSystemInfoSync().platform this.platform = uni.getSystemInfoSync().platform;
// console.log('操纵系统',this.platform) // console.log('操纵系统',this.platform)
// #endif // #endif
}, },
computed: { computed: {
...mapState(['userInfo']) ...mapState(["userInfo"]),
}, },
//页面显示 //页面显示
onShow() { onShow() {
@@ -158,25 +181,25 @@
this.getData(); this.getData();
}, },
components: { components: {
musicPlay musicPlay,
}, },
//方法 //方法
methods: { methods: {
...mapMutations(['setUserInfo']), ...mapMutations(["setUserInfo"]),
// 获得操作系统 // 获得操作系统
getOS(){ getOS() {
let oprateOs = '' let oprateOs = "";
oprateOs = uni.getSystemInfoSync().platform oprateOs = uni.getSystemInfoSync().platform;
// console.log(oprateOs) // console.log(oprateOs)
if(oprateOs == 'android'){ if (oprateOs == "android") {
this.isAndorid = true this.isAndorid = true;
}else{ } else {
this.isAndorid = false this.isAndorid = false;
} }
}, },
haveSelected(data){ haveSelected(data) {
console.log(data,' 选择的是') console.log(data, " 选择的是");
if(data.index == 0){ if (data.index == 0) {
// 分享到好友 // 分享到好友
uni.share({ uni.share({
provider: "weixin", provider: "weixin",
@@ -191,9 +214,9 @@
}, },
fail: function (err) { fail: function (err) {
console.log("fail:" + JSON.stringify(err)); console.log("fail:" + JSON.stringify(err));
} },
}); });
}else if(data.index == 1){ } else if (data.index == 1) {
// 分享到朋友圈 // 分享到朋友圈
uni.share({ uni.share({
provider: "weixin", provider: "weixin",
@@ -208,92 +231,88 @@
}, },
fail: function (err) { fail: function (err) {
console.log("fail:" + JSON.stringify(err)); console.log("fail:" + JSON.stringify(err));
} },
}); });
} }
}, },
switchTab(url){ switchTab(url) {
uni.switchTab({ uni.switchTab({
url: url url: url,
}); });
}, },
getData() { getData() {
// 获取个人信息 // 获取个人信息
if (this.userInfo.id != undefined) { if (this.userInfo.id != undefined) {
this.$http this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
.post('book/user/info/' + this.userInfo.id) this.userMes = res.user;
.then(res => {
this.userMes = res.user
if (this.userMes.vip == 1) { if (this.userMes.vip == 1) {
this.userMes.vipValidtime = this.userMes.vipValidtime.substring(0, this.userMes this.userMes.vipValidtime = this.userMes.vipValidtime.substring(
.vipValidtime 0,
.indexOf(' ')) this.userMes.vipValidtime.indexOf(" ")
);
} }
}); });
} }
}, },
// 新写分享 // 新写分享
newOnShare(){ newOnShare() {
this.$refs.share.open() this.$refs.share.open();
}, },
// 注销账户 // 注销账户
logout(){ logout() {
let that = this let that = this;
uni.showModal({ uni.showModal({
title: '提示', title: "提示",
content: '确定要注销当前账户吗?', content: "确定要注销当前账户吗?",
success: function (res) { success: function (res) {
if (res.confirm) { if (res.confirm) {
uni.showModal({ uni.showModal({
title: '提示', title: "提示",
showCancel:false, showCancel: false,
content: `注销申请已提交成功,请联系客服进行后续操作022-24142321`, content: `注销申请已提交成功,请联系客服进行后续操作022-24142321`,
success: function (res1) { success: function (res1) {
if (res1.confirm) { if (res1.confirm) {
that.signOut() that.signOut();
}
} }
},
}); });
} else if (res.cancel) { } else if (res.cancel) {
// 取消操作 // 取消操作
} }
} },
}); });
}, },
// 跳转 // 跳转
onGoing() { onGoing() {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: '开发中,敬请期待...' title: "开发中,敬请期待...",
}) });
}, },
onPageJump(url) { onPageJump(url) {
console.log(url,'url') console.log(url, "url");
uni.navigateTo({ uni.navigateTo({
url: url url: url,
}); });
}, },
// 退出登录 // 退出登录
signOut() { signOut() {
this.signShow = false this.signShow = false;
this.setUserInfo({'token': null}) this.setUserInfo({ token: null });
uni.reLaunch({ uni.reLaunch({
url: '../user/login' 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;
@@ -330,11 +349,9 @@
vertical-align: super; vertical-align: super;
} }
} }
}
.now_vip {
}
.now_vip {
background-color: #fff; background-color: #fff;
// border-radius: 20upx; // border-radius: 20upx;
margin: 0 0 30upx 0; margin: 0 0 30upx 0;
@@ -367,9 +384,9 @@
margin: 33rpx 0 0 0; margin: 33rpx 0 0 0;
background-image: linear-gradient(90deg, #dfa964 0%, #7f5218 100%); background-image: linear-gradient(90deg, #dfa964 0%, #7f5218 100%);
} }
} }
.chong_zhi { .chong_zhi {
background-color: #fff; background-color: #fff;
margin: 0 0 30upx 0; margin: 0 0 30upx 0;
padding: 0 30upx; padding: 0 30upx;
@@ -407,10 +424,9 @@
background: #815219; background: #815219;
} }
} }
} }
.xiugai {
.xiugai {
.nav_list { .nav_list {
background-color: #fff; background-color: #fff;
padding: 30upx 0 30upx 20upx; padding: 30upx 0 30upx 20upx;
@@ -430,14 +446,14 @@
} }
&::after { &::after {
content: ''; content: "";
position: absolute; position: absolute;
right: 20upx; right: 20upx;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
width: 40upx; width: 40upx;
height: 40upx; height: 40upx;
background-image: url('../../static/icon/icon_right.png'); background-image: url("../../static/icon/icon_right.png");
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
@@ -447,5 +463,5 @@
.nav_list:nth-last-child(1) { .nav_list:nth-last-child(1) {
border-bottom: 0; border-bottom: 0;
} }
} }
</style> </style>

BIN
static/icon/five5_n.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB