This commit is contained in:
2024-05-17 18:02:49 +08:00
parent 8407d51fb6
commit b5264dc222
4056 changed files with 308094 additions and 41932 deletions

View File

@@ -21,7 +21,7 @@
<view class="" style="text-align: center;">
<!-- https://main.nuttyreading.com/privacy.html -->
<!-- <text @click="seeDetail('')" style="color: #007aff; font-size: 26rpx;">隐私政策</text> -->
<uni-link href="https://main.nuttyreading.com/privacy.html" text="隐私政策"></uni-link>
<uni-link href="https://zmzm.taihumed.com/privacy.html" text="隐私政策"></uni-link>
<!-- <uni-link href="https://uniapp.dcloud.io/" text="https://uniapp.dcloud.io/"></uni-link> -->
</view>
<music-play :playData="playData"></music-play>

View File

@@ -0,0 +1,234 @@
<template>
<view class="container commonPageBox">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<!-- <z-nav-bar title="地址管理" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar> -->
<view
class="contentBox commonPageContentBox"
>
<common-address
:type="this.options.type"
backState="1000"
ref="commonAddress"
@fresh="handleFresh"
></common-address>
</view>
<z-navigation></z-navigation>
<u-modal
:show="signShow"
:content="signContent"
:showCancelButton="true"
@cancel="signShow = false"
@confirm="signOut"
>
</u-modal>
</view>
</template>
<script>
import list from "@/pages/component/commonComponents/list";
import $http from "@/config/requestConfig.js";
import { mapState, mapMutations } from "vuex";
export default {
components: {
list,
},
data() {
return {
signShow: false,
signContent: "是否要退出登录?",
playData: {},
options: {},
searchValue: "",
twoCateList: [], // 二级分类标题
titleList: [], // 方剂标题
curOneCateIndex: 0, // 当前选中的一级分类
curTwoCateIndex: 0, // 当前选中的二级分类
searchList: [], // 搜索结果数组
showSearchList: false,
userMes: {}, // 用户信息
searchDisable: false, // 搜索不可用
limitShow: false,
limitTitle: "提示",
limitContent: "",
scrollViewHeight: 0,
dataList: [
{
title: "客服热线",
content: "022-24142321",
type: "tel",
},
{
title: "客服邮箱",
content: "appyilujiankang@sina.com",
type: "email",
},
{
title: "微信号",
content: "yilujiankangkefu",
type: "wxNumber",
},
// {
// "title": "清楚缓存",
// content: 'yilujiankangkefu'
// },
],
otherList: [
{
title: "关于我们",
url: "/pages/mine/aboutUs/index",
type: "pageJump",
},
// {
// "title": "清楚缓存",
// content: 'yilujiankangkefu'
// },
],
};
},
onLoad(options) {
console.log(options, "989");
this.options = options;
this.$nextTick(() => {
this.$refs.commonAddress.open();
});
// this.getCateList()
},
onHide() {
// this.showSearchList = false
// this.searchList = []
},
computed: {
...mapState(["userInfo"]),
},
methods: {
handleFresh() {},
...mapMutations(["setUserInfo"]),
signOut() {
this.signShow = false;
this.setUserInfo({ token: null });
uni.reLaunch({
url: "/pages/user/login/login",
});
},
// 注销账户
},
onBackPress() {
// #ifdef APP-PLUS
plus.key.hideSoftKeybord();
// #endif
},
};
</script>
<style lang="scss" scoped>
.u-grid-list {
// height: 40rpx;
}
.searchList {
.item {
font-size: 28rpx;
padding: 20rpx;
border-bottom: 1px solid #dadbde;
}
}
.scroll-view_H {
background-color: #fff;
white-space: nowrap;
padding: 10rpx;
}
.scroll-Y {
height: 100%;
}
.scroll-view_H {
white-space: nowrap;
width: 100%;
}
.scroll-view-item {
// height: 300rpx;
// line-height: 300rpx;
// text-align: center;
// font-size: 36rpx;
}
.scroll-view-item_H {
display: inline-block;
width: 100%;
// height: 300rpx;
// line-height: 300rpx;
// text-align: center;
// font-size: 36rpx;
}
.titleList {
height: 100%;
}
.titleList2 {
height: calc(100% - 170rpx);
}
/deep/.scroll-view-item:nth-child(2n-1) {
background-color: transparent !important;
}
.fdButtonBox {
color: #b0b0b0;
// width: 100%;
float: right;
padding: 4rpx 14rpx;
font-size: 24rpx;
font-weight: 500;
line-height: 30rpx;
border-radius: 10rpx;
box-sizing: border-box;
// margin-top: 10rpx;
// display: flex;
// align-items: center;
}
.commonPageBox {
background-color: #f5f5f5;
}
.set_box {
background-color: #fff;
height: auto;
padding: 20rpx;
}
.button_box {
width: 100%;
position: fixed;
bottom: 40rpx;
padding: 20rpx 80rpx;
.button {
margin-top: 40rpx;
}
}
/deep/.rightArrow {
margin-top: 6rpx !important;
}
</style>

View File

@@ -1,8 +1,5 @@
<template>
<view
style="padding: 0 0; font-size: 28rpx; "
class="commonPage commonPageBox"
>
<view style="padding: 0 0; font-size: 28rpx" class="commonPage commonPageBox">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view class="bg_top">
@@ -19,15 +16,15 @@
></u-icon>
</view>
<view class="mine_box" :style="`top:${(45 + statusBarHeight) * 2}rpx`">
<view class="per_mes" @click="goUserInfo">
<image
<view class="mine_box" :style="`top:${(45 + statusBarHeight) * 2}rpx`">
<view class="per_mes">
<image @click="goUserInfo"
:src="userMes.avatar"
v-if="userMes.avatar != null"
class="per_mes_img color_shandow"
></image>
<image
src="@/static/icon/home_icon_1.png"
<image
src="@/static/icon/home_icon_logo.png"
v-if="userMes.avatar == null"
class="per_mes_img color_shandow"
></image>
@@ -69,7 +66,10 @@
<b class="kt_btn" @click="onPageJump('./opeVip')">立即续费</b>
</view> -->
<view class="chong_zhi boxShadow box_fillet chongzhi_box" style="padding-top: 50rpx;">
<view
class="chong_zhi boxShadow box_fillet chongzhi_box"
style="padding-top: 50rpx"
>
<!-- <view
class="zhanghu"
@click="onPageJump('/pages/mine/wallet/index/index')"
@@ -78,81 +78,128 @@
<image src="@/static/icon/icon_right.png" class="rightArrow"></image>
</view> -->
<view class="chong_list">
<!-- v-if="iosHide" -->
<view class="chong_list_item" @click="onPageJump('/pages/mine/wallet/index/index')">
<uni-icons
type="wallet-filled"
size="40"
color="#3ab3ae"
></uni-icons>
<view class="text"
>天医币&nbsp;{{
userMes.peanutCoin ? userMes.peanutCoin : ""
}}</view
<view class="left"
>
</view>
<view
class="chong_list_item"
style="
display: flex;
align-items: center;
flex-direction: column;
justify-content: space-between;
"
@click="onPageJump('/pages/mine/wallet/index/index')"
>
<view class="pay_item_img">
<image
style="width: 100%; height: 100%"
src="@/static/icon/pay_3.png"
mode="aspectFil"
>
</image>
</view>
<view class="text" style="line-height: 40rpx"
>天医币&nbsp;{{ userMes.peanutCoin ? userMes.peanutCoin : 0 }}</view
>
</view>
<view
class="chong_list_item"
style="
display: flex;
align-items: center;
flex-direction: column;
justify-content: space-between;
"
@click="onPageJump('/pages/mine/wallet/jf/index')"
>
<view class="pay_item_img">
<image
style="width: 100%; height: 100%"
src="@/static/icon/jifen2.png"
mode="aspectFil"
>
</image>
</view>
<view class="text" style="line-height: 40rpx"
>积分&nbsp;{{ userMes.jf ? userMes.jf : 0 }}</view
>
</view>
</view
>
<!-- v-if="iosHide" -->
<!-- <view v-if="iosHide" class="chong_list_item">
<b>{{ userMes.conponsCount }}</b>
优惠券
</view> -->
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')"> </b> -->
<b
<view class="chong_list_item" style="
display: flex;
align-items: center;
margin-right:0;
justify-content: center;
"> <view
class="chong_btn"
v-if="iosHide"
@click="onPageJump('/pages/mine/wallet/recharge/index')"
> </b
>
> </view
></view>
</view>
</view>
<view class="list_box">
<view class="xiugai boxShadow box_fillet">
<common-list
:dataList="pageList"
@hancleClick="handleClickTab"
label="name"
>
<template slot="rightSlot" slot-scope="slotProps">
<text class="fdButtonBox aui-text-success">{{
slotProps.row.content
}}</text>
<view class="list_box">
<view class="xiugai boxShadow box_fillet">
<common-list
:dataList="pageList"
@hancleClick="handleClickTab"
label="name"
>
<template slot="rightSlot" slot-scope="slotProps">
<text class="fdButtonBox aui-text-success" style="line-height:40rpx">{{
slotProps.row.content
}}</text>
<view> </view>
</template>
</common-list>
<view> </view>
</template>
</common-list>
<!-- <view class="nav_list" @click="onPageJump('../clock/clockList')">
<!-- <view class="nav_list" @click="onPageJump('../clock/clockList')">
<text>我的打卡</text>
</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>
</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>
</view> -->
<!-- <view class="nav_list" @click="onPageJump('../peanut/myComments')">
<!-- <view class="nav_list" @click="onPageJump('../peanut/myComments')">
<text>我的评价</text>
</view> -->
<!-- 暂时去掉 -->
<!-- 暂时去掉 -->
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookBuy')">
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookBuy')">
<text>电子书购买记录</text>
</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>
</view> -->
<!-- <view class="nav_list" @click="onGoing()">
<!-- <view class="nav_list" @click="onGoing()">
<text>帮助与反馈11111</text>
</view> -->
<!-- <view class="nav_list" @click="newOnShare" v-if="isAndorid"> -->
<!-- <view class="nav_list" @click="newOnShare" v-if="isAndorid"> -->
</view>
</view>
</view>
</view>
<u-modal
@@ -191,8 +238,9 @@ export default {
pageList: [
{
name: "我的订单",
url: "../bookShop/orderList",
type: "pageJump",
url: "/pages/bookShop/orderList?type=mine",
type: "switchTab",
},
// {
// name: "购物车",
@@ -202,11 +250,12 @@ export default {
{
name: "个人资料",
url: "/pages/mine/userInfo/persData",
type: "pageJump",
},
{
name: "地址管理",
url: "../user/address",
url: "/pages/component/commonComponents/address/index?type=mine",
type: "pageJump",
},
@@ -241,10 +290,14 @@ export default {
},
//页面显示
onShow() {
console.log(this.userInfo, "11111111111111");
// 隐藏原生的tabbar
// uni.hideTabBar();
this.getData();
},
async onTabItemTap() {
this.getData();
},
components: {
musicPlay,
},
@@ -259,11 +312,14 @@ export default {
this.onPageJump("/pages/mine/userInfo/persData");
},
handleClickTab(v) {
console.log('v at line 259:', v)
console.log("v at line 259:", v);
switch (v.type) {
case "pageJump":
this.onPageJump(v.url);
break;
case "switchTab":
this.switchTab(v.url);
break;
case "share":
//分享
this.newOnShare();
@@ -435,7 +491,7 @@ export default {
}
.phone {
font-size: 24rpx;
font-size: 28rpx;
color: #fff;
}
@@ -488,14 +544,14 @@ export default {
background-image: linear-gradient(90deg, #dfa964 0%, #7f5218 100%);
}
}
.commonPageBox{
background-color: #d8f8e4 !important;
.commonPageBox {
background-color: #d8f8e4 !important;
}
.chong_zhi {
box-shadow: none;
border-bottom-left-radius: 0rpx !important;
border-bottom-right-radius: 0rpx !important;
background-color: #d8f8e4 ;
background-color: #d8f8e4;
// margin: 0 0 30upx 0;
padding: 0 30upx;
height: auto;
@@ -514,9 +570,17 @@ export default {
}
.chong_list {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 60rpx;
.left {
display: flex;
align-items: center;
}
.chong_list_item {
width: auto;
height: 120rpx;
height: 128rpx;
margin-right: 60rpx;
text-align: center;
display: inline-block;
@@ -539,8 +603,9 @@ export default {
border-radius: 50rpx;
color: #fffbf6;
padding: 10rpx 32rpx;
// margin-top: -60rpx;
// margin: 20rpx 0 0 0;
background-image: linear-gradient(90deg, #3ab3ae 0%, #d5ecdd 200%)
background-image: linear-gradient(90deg, #3ab3ae 0%, #d5ecdd 200%);
}
}
}
@@ -600,7 +665,7 @@ export default {
.chongzhi_box {
padding: 30rpx 50rpx 10rpx;
background-color: #d8f8e4 ;
background-color: #d8f8e4;
}
/deep/.scroll-view-item:nth-child(2n-1) {
@@ -608,7 +673,7 @@ export default {
}
uni-page-body {
background: #d8f8e4 !important;
background: #d8f8e4 !important;
}
.bg_top {
@@ -617,7 +682,7 @@ uni-page-body {
padding: 0 30rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
height: 45vh;
height: 30vh;
position: relative;
.setIcon {
@@ -635,12 +700,20 @@ uni-page-body {
padding: 0 0rpx;
}
.list_box{
background: #d8f8e4 !important;
.list_box {
background: #d8f8e4 !important;
padding: 20rpx 0;
margin-top: -10rpx;
}
.pay_item_img {
width: 80rpx;
height: 80rpx;
padding: 8rpx;
box-sizing: border-box;
// float: left;
// margin-right: 20rpx;
margin: 0 auto;
margin-bottom: 10rpx;
//margin-top:-10rpx;
}
</style>

View File

@@ -171,7 +171,7 @@ export default {
signOut() {
this.signShow = false;
this.setUserInfo({ token: null });
uni.reLaunch({
uni.redirectTo({
url: "/pages/user/login/login",
});
},
@@ -770,9 +770,10 @@ export default {
// width: 100%;
float: right;
padding: 4rpx 14rpx;
font-size: 24rpx;
font-size: 28rpx;
font-weight: 500;
line-height: 30rpx;
line-height: 40rpx;
display: inline-block;
border-radius: 10rpx;
box-sizing: border-box;
@@ -783,16 +784,22 @@ export default {
}
.commonPageBox {
background-color: #f0f0f0;
background-color: #f5f5f5;
}
.set_box {
/deep/.set_box {
background-color: #fff;
height: auto;
padding: 20rpx;
padding-bottom: 0;
padding-top: 0;
}
/deep/.titleItem {
line-height: 45rpx;
// width: calc(100% - 120rpx) !important;
}
.button_box {
width: 100%;
position: fixed;

View File

@@ -8,40 +8,105 @@
<image
:src="userData.avatar"
class="per_mes_img"
@click="handleClickRightContent({ type: 'avatar' })"
@click="
handleClickRightContent(
{ type: 'avatar' },
userData.avatar ? '' : 'bind'
)
"
></image>
<text
class="avatar_text"
@click="handleClickRightContent({ type: 'avatar' })"
>更换头像</text
@click="
handleClickRightContent(
{ type: 'avatar' },
userData.avatar ? '' : 'bind'
)
"
>{{ userData.avatar ? "更换头像" : "设置头像" }}</text
>
</view>
<view class="set_box">
<common-list
:dataList="dataList"
@hancleClick="handleClickRightContent"
label="title"
>
<common-list :dataList="dataList" isNoIcon="true" label="title">
<template slot="rightSlot" slot-scope="slotProps">
<view class="right_content">
<view v-if="slotProps.row.type == 'sex'">
{{ userData[slotProps.row.indexValue] == 0 ? "" : userData[slotProps.row.indexValue] == 1 ? "" : "" }}
<text
v-if="
userData[slotProps.row.indexValue]
"
>
{{
userData[slotProps.row.indexValue] == 2 ? "女" : "男"
}}</text
>
<view
v-else
@click="handleClickRightContent(slotProps.row, 'bind')"
>未设置</view
>
</view>
<view v-if="slotProps.row.type == 'nickname'">
{{userData[slotProps.row.indexValue] ? userData[slotProps.row.indexValue] : "" }}
<text v-if="userData[slotProps.row.indexValue]">
{{ userData[slotProps.row.indexValue] }}</text
>
<view
v-else
@click="handleClickRightContent(slotProps.row, 'bind')"
>未设置</view
>
</view>
<view v-if="slotProps.row.type == 'tel'">
{{ userData[slotProps.row.indexValue] ? userData[slotProps.row.indexValue] : "点击绑定" }}
<text v-if="userData[slotProps.row.indexValue]">
{{ userData[slotProps.row.indexValue] }}</text
>
<view
v-else
@click="handleClickRightContent(slotProps.row, 'bind')"
>点击绑定</view
>
</view>
<view v-if="slotProps.row.type == 'password'">
{{ userData[slotProps.row.indexValue] ? "更改密码" : "设置密码" }}
{{
userData[slotProps.row.indexValue] ? "更改密码" : "设置密码"
}}
</view>
<view v-if="slotProps.row.type == 'email'">
{{ userData[slotProps.row.indexValue] ? userData[slotProps.row.indexValue] : "点击绑定" }}
<text v-if="userData[slotProps.row.indexValue]">
{{ userData[slotProps.row.indexValue] }}</text
>
<view
v-else
@click="handleClickRightContent(slotProps.row, 'bind')"
>点击绑定</view
>
</view>
<view v-if="slotProps.row.type == 'age'">
{{userData[slotProps.row.indexValue] ? userData[slotProps.row.indexValue] : "" }}
<text v-if="userData[slotProps.row.indexValue]">
{{ userData[slotProps.row.indexValue] }}</text
>
<view
v-else
@click="handleClickRightContent(slotProps.row, 'bind')"
>未设置</view
>
</view>
<u-icon
v-if="
userData[slotProps.row.indexValue]&&userData[slotProps.row.indexValue]!=''
"
class="editIcon"
name="edit-pen-fill"
color="#3ab3ae"
size="22"
@click.native.stop="handleClickRightContent(slotProps.row)"
></u-icon>
</view>
<text class="fdButtonBox aui-text-success">{{
slotProps.row.content
@@ -286,12 +351,14 @@
>
</u--input>
</template>
<!-- @click="choseSex(item.id)" -->
<!-- @change="choseSex(item.id)" -->
<template v-if="currentEditType == 'sex'">
<u-radio-group v-model="editForm.sex">
<view style="width: 100%">
<view
v-for="(item, index) in sexList"
@click="choseSex(item.id)"
class="dp_sex"
>
{{ item.title }}
@@ -300,7 +367,7 @@
activeColor="#3AB3AE"
:name="item.id"
style="float: right; margin-top: 5rpx"
@change="choseSex(item.id)"
></u-radio>
</view>
</view>
@@ -446,12 +513,13 @@ export default {
},
{
title: "女",
id: 0,
id: 2,
},
],
PhoneEmailNote: "获取验证码",
passNote: "",
passStr: "",
editModalTitle: "",
passwordOk: false, // 密码是否满足规则
urlList: {
@@ -495,7 +563,7 @@ export default {
this.editForm = {};
this.editModalShow = false;
},
handleClickRightContent(row) {
handleClickRightContent(row, type) {
this.OpenClear();
// this.currentEditType=null;
var title = "";
@@ -503,33 +571,39 @@ export default {
console.log("row.type at line 122:", row);
switch (row.type) {
case "tel":
title = "请输入手机号";
title = `${type == "bind" ? "绑定" : "修改"}手机号`;
this.editForm.quCode = this.quCodeList[0].value;
break;
case "email":
title = "请输入邮箱";
title = `${type == "bind" ? "绑定" : "修改"}邮箱`;
break;
case "password":
title = "请修改密码";
title = "修改密码";
this.isPassWordPhone = true;
// this.editForm.quCode = this.quCodeList[0].value;
break;
case "nickname":
title = "请输入昵称";
title = `${type == "bind" ? "设置" : "更改"}昵称`;
break;
case "age":
title = "请输入年龄";
title = `${type == "bind" ? "设置" : "更改"}年龄`;
break;
case "sex":
title = "请选择性别";
title = `${type == "bind" ? "设置" : "更改"}性别`;
console.log("this.userData at line 602:", this.userData);
if ( this.userData.sex) {
this.editForm.sex = this.userData.sex;
console.log("this.editForm.sex at line 603:", this.editForm.sex);
}
break;
case "avatar":
title = "请更换头像";
title = `${type == "bind" ? "设置" : "更改"}头像`;
break;
//
@@ -571,6 +645,9 @@ export default {
}
this.editForm.avatar = this.fileAvatar[0].url;
} else if (this.currentEditType == "sex") {
if(this.editForm.sex==2){
this.editForm.sex=0
}
} else if (this.currentEditType == "age") {
if (this.editForm.age <= 0) {
this.$commonJS.showToast("年龄不能小于0");
@@ -626,22 +703,12 @@ export default {
.post(this.urlList.userInfo + that.userInfo.id)
.then((res) => {
that.userData = res.user;
// that.userMes.id = res.user.id
// that.userMes.age = res.user.age
// that.userMes.sex = res.user.sex
// that.userMes.nickname = res.user.nickname
// that.userMes.tel = res.user.tel
// that.userMes.avatar = res.user.avatar
// that.userMes.oldName = that.userMes.nickname
// that.userMes.id = res.user.id
// that.userMsage.age = res.user.age
// that.userMsage.email = res.user.email
// that.userMsage.sex = res.user.sex
// that.userMsage.nickname = res.user.nickname
// that.userMsage.tel = res.user.tel
// that.userMsage.avatar = res.user.avatar
// that.userMsage.YNpass = res.user.password
// that.userMiMa.id = res.user.id
if(that.userData.sex==0){
that.userData.sex=2
}
console.log('that.userData at line 698:', that.userData)
});
}
},
@@ -747,7 +814,7 @@ export default {
});
},
sendEmailCode(email) {
if (email) {
if (email == "") {
uni.showToast({
title: "请输入邮箱",
icon: "none",
@@ -780,7 +847,7 @@ export default {
if (this.readonly) {
return;
}
console.log("this.currentEditType at line 719:", this.currentEditType);
console.log("this.currentEditType at line 719:", this.editForm);
if (e == "phone" || e == "phone") {
this.sendTelCode(this.editForm.phone, this.editForm.quCode);
}
@@ -824,11 +891,11 @@ export default {
return;
}
if (this.PhoneEmailNote == "获取验证码") {
this.$commonJS.showToast("请发送验证码");
// if (this.PhoneEmailNote == "获取验证码") {
// this.$commonJS.showToast("请发送验证码");
return;
}
// return;
// }
let that = this;
$http
.request({
@@ -879,14 +946,21 @@ export default {
return;
}
if (this.PhoneEmailNote == "获取验证码") {
this.$commonJS.showToast("请发送验证码");
// if (this.PhoneEmailNote == "获取验证码") {
// this.$commonJS.showToast("请发送验证码");
return;
}
// return;
// }
let that = this;
this.$http
.post(this.urlList.updateUserEmail, data)
$http
.request({
url: this.urlList.updateUserEmail,
method: "POST",
data: data,
header: {
"Content-Type": "application/json",
},
})
.then(async (res) => {
if (res.code == 0) {
@@ -1200,7 +1274,7 @@ export default {
.per_mes_img {
width: 180rpx;
height: 180rpx;
background-color: #f0f0f0;
background-color: #f5f5f5;
border-radius: 120rpx;
margin: 10rpx 0;
}
@@ -1287,8 +1361,10 @@ export default {
width: auto;
height: 100%;
float: right;
padding-right: 20rpx;
//padding-right: 20rpx;
color: #909090;
display: flex;
align-items: center;
}
.fdButtonBox {
@@ -1308,7 +1384,7 @@ export default {
}
.commonPageBox {
background-color: #f0f0f0;
background-color: #f5f5f5;
}
.set_box {

View File

@@ -2,7 +2,14 @@
<view>
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="我的账户" bgColor="#3AB3AE" fontColor="#fff"> </z-nav-bar>
<z-nav-bar
title="我的账户"
bgColor="#3AB3AE"
fontColor="#fff"
:homeState="options.source == 'recharge' ? 1000 : 2000"
:backState="options.source == 'recharge' ? 2000 : 1000"
>
</z-nav-bar>
<view class="ACTable">
<!-- <u-tabs :list="tab_list" @click="tab_click" lineColor="#54a966 100% 100%"
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" ></u-tabs> -->
@@ -22,18 +29,23 @@
> -->
</view>
<view style="padding: 0 30rpx; padding-top: 0">
<view class="AC_chong" @click="onPageJump('/pages/mine/wallet/recharge/index')">立即充值
<u-icon name="arrow-right" color="#fff" size="16" class="rightArrow"></u-icon>
<!-- <image
<view
class="AC_chong"
@click="onPageJump('/pages/mine/wallet/recharge/index')"
>立即充值
<u-icon
name="arrow-right"
color="#fff"
size="16"
class="rightArrow"
></u-icon>
<!-- <image
src="@/static/icon/icon_white_right.png"
class="rightArrow"
style=""
></image> -->
</view>
</view>
</view>
<view style="padding: 30rpx; padding-top: 0">
<view class="AC_con">
@@ -56,10 +68,9 @@
>
<text v-if="slotProps.row.changeAmount > 0">+</text>
<text>{{ slotProps.row.changeAmount }}</text> </view
><view
class="AC_mark"
v-if="slotProps.row.remark "
>{{ slotProps.row.remark}}</view
><view class="AC_mark" v-if="slotProps.row.remark">{{
slotProps.row.remark
}}</view
><view class="AC_time">{{ slotProps.row.createTime }}</view>
</view>
</template>
@@ -159,6 +170,7 @@ export default {
data() {
return {
playData: {},
options: {},
platform: null,
urlList: {
list: "common/transactionDetails/getTransactionDetailsList",
@@ -237,7 +249,8 @@ export default {
},
//第一次加载
onLoad(e) {
onLoad(options) {
this.options = options;
// 隐藏原生的tabbar
uni.hideTabBar();
// #ifdef APP-PLUS
@@ -647,14 +660,14 @@ export default {
color: #3ab3ae !important;
}
.AC_chong {
display: flex;
align-items: center;
justify-content: space-between;
display: flex;
align-items: center;
justify-content: space-between;
background-image: linear-gradient(90deg, #3ab3ae 0%, #73ee9c 100%);
color: #fff;
border-top-left-radius: 15rpx;
border-top-right-radius: 15rpx;
padding:20rpx 20rpx;
padding: 20rpx 20rpx;
font-size: 36rpx;
font-weight: 800;
text-align: right;

View File

@@ -0,0 +1,658 @@
<template>
<view>
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="我的积分" bgColor="#3AB3AE" fontColor="#fff" > </z-nav-bar>
<view class="ACTable" >
<!-- <u-tabs :list="tab_list" @click="tab_click" lineColor="#54a966 100% 100%"
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" ></u-tabs> -->
<!-- <u-tabs :list="tab_list_ios" @click="tab_click" lineColor="#54a966 100% 100%"
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" v-if="!iosHide"></u-tabs> -->
<view>
<view class="AC_mes">
<view class="wallet_title PM_font">积分</view>
<view class="wallet_number">{{
userMes.jf ? userMes.jf : 0
}}</view>
<!-- <text v-if="platform != 'ios'" class="AC_chong" @click="buPoint()"
>充值</text
> -->
</view>
<view style="padding: 30rpx; padding-top: 0">
<view class="AC_con">
<view class="AC_jilu PM_font">积分记录</view>
<common-list
:dataList="MoneyRecord"
isCondition="true"
isNoIcon="true"
label="orderType"
>
<template slot="labelSlot" slot-scope="slotProps">
<view class="label_content AC_List">
<view class="left">
<view class="title">{{ slotProps.row.orderType }}</view>
</view>
<view
:class="`right ${
slotProps.row.changeAmount > 0 ? 'Hot' : ''
}`"
>
<text v-if="slotProps.row.changeAmount > 0">+</text>
<text>{{ slotProps.row.changeAmount }}</text> </view
><view
class="AC_mark"
v-if="slotProps.row.remark "
>{{ slotProps.row.remark}}</view
><view class="AC_time">{{ slotProps.row.createTime }}</view>
</view>
</template>
</common-list>
</view>
</view>
</view>
<!-- <view v-if="tab_muJian==1">
<view class="couponList">
<view v-for="(item,index) in couponTabs" @click="couponTabCLi(index)"
:class="couponListTab==index?'couStyle':''">{{item.name}}</view>
</view>
<view>
<view class="card" v-for="item in cardList">
<view>
<view class="content">
<view :class="couponListTab==0?'page-group':'page-group grey'">
<i class="fold-page"></i>
<span class="page">优惠券</span>
</view>
<i class="dot-left"></i>
<i class="dot-right"></i>
<view class="coupon-detail">
<view :class="couponListTab==0?'':'grey'">
<span></span>
<span>{{item.coupons.amount}}</span>
</view>
<view>
<view>{{item.coupons.couponName}}</view>
<view>{{item.coupons.useLevel}}元可用</view>
<view>
<span v-if="item.coupons.couponProType == 0">使用类型商品类</span>
<span v-if="item.coupons.couponProType == 1">使用类型电子书</span>
</view>
</view>
<view>
<view v-if="couponListTab==0" @click="onPageJump('../bookShop/bookShopIndex')">
立即使用</view>
</view>
</view>
</view>
<view class="footer">
<view style="margin: 0 0 8rpx 0;">使用时间{{item.coupons.takeEffectDate}} -
{{item.coupons.expirationDate}}
</view>
<view>{{item.coupons.note}}</view>
<view class="arrow"></view>
<view class="arrow-up"></view>
</view>
<view class="ribbon" v-if="couponListTab==0">未使用</view>
<view class="ribbon grey" v-if="couponListTab==1">已使用</view>
<view class="ribbon grey" v-if="couponListTab==2">已过期</view>
</view>
</view>
<view v-if="cardList.length==0" style="text-align: center;font-size: 30rpx;color: #666;">暂无代金券
</view>
</view>
</view> -->
<!-- <view>
<view v-if="status == 0" style="text-align: center">
<u-loading-icon style="display: inline-block"></u-loading-icon>
<font
style="
vertical-align: super;
margin-left: 10px;
font-size: 26rpx;
color: #909399;
"
>努力加载中</font
>
</view>
<view v-if="status == 1">
<u-divider text="全部加载完成"></u-divider>
</view>
</view> -->
<view style="padding-bottom: 20rpx">
<u-back-top
:scroll-top="scrollTop"
bottom="60"
:customStyle="bgiStyle"
:iconStyle="iconStyle"
>
</u-back-top>
</view>
</view>
<music-play :playData="playData"></music-play>
</view>
</template>
<script>
import musicPlay from "@/components/music.vue";
import $http from "@/config/requestConfig.js";
import { mapState } from "vuex";
export default {
data() {
return {
playData: {},
platform: null,
urlList: {
list: "common/jfTransactionDetails/getJfTransactionDetailsList",
},
tab_list: [
{
name: "天医币",
},
],
tab_list_ios: [
{
name: "优惠券",
},
],
couponTabs: [
{
name: "未使用",
},
{
name: "已使用",
},
{
name: "已过期",
},
],
cardList: [],
couponListTab: 0,
MoneyRecord: [],
userMes: {},
RecordScreen: {
userid: "",
page: 1,
limit: 5,
},
scrollTop: 0,
status: 3,
totalPage: 0,
totalCount: 0,
tab_muJian: 0,
bgiStyle: {
background: "#bbe5d8",
},
iconStyle: {
fontSize: "40rpx",
fontWeight: "bold",
color: "#54a966",
},
};
},
// 返回顶部
onPageScroll(e) {
this.scrollTop = e.scrollTop;
},
// 下拉刷新
onReachBottom() {
this.status = 0;
if (this.RecordScreen.page < this.totalPage) {
this.RecordScreen.page = this.RecordScreen.page + 1;
setTimeout(() => {
this.$http
.post(this.urlList.list, {
userId: this.userInfo.id,
})
.then((res) => {
this.totalPage = res.page.totalPage;
this.totalCount = res.page.totalCount;
for (let i in res.page.list) {
this.MoneyRecord.push(res.page.list[i]);
}
});
}, 1000);
} else {
this.status = 1;
}
},
//第一次加载
onLoad(e) {
// 隐藏原生的tabbar
uni.hideTabBar();
// #ifdef APP-PLUS
this.platform = uni.getSystemInfoSync().platform;
console.log("操纵系统", this.platform);
// #endif
},
computed: {
...mapState(["userInfo"]),
},
//页面显示
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
this.getData();
// this.getCourpe();
},
components: {
musicPlay,
},
//方法
methods: {
// 获取
getData() {
var data = {
userId: this.userInfo.id,
};
if (!this.iosHide) {
this.tab_muJian = 1;
}
// 用户详情
if (this.userInfo.id != undefined) {
this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
this.userMes = res.user;
});
}
$http
.request({
url: this.urlList.list,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data,
header: {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
})
// 充值记录
.then((res) => {
console.log("res at line 255:", res);
this.MoneyRecord = res.transactionDetailsList;
// this.totalPage = res.page.totalPage;
// this.totalCount = res.page.totalCount;
});
},
// 点击tab
tab_click(e) {
this.tab_muJian = e.index;
},
// 优惠券
getCourpe() {
this.$http
.post(
"/book/couponhistory/appGetUserCenterCoupon?userId=" +
this.userInfo.id +
"&useStatus=" +
this.couponListTab
)
.then((res) => {
// this.cardList = res.couponVos
this.cardList = res.couponVos;
});
},
// 切换优惠券
couponTabCLi(e) {
this.couponListTab = e;
this.getCourpe();
},
// 充值天医币
buPoint() {
uni.navigateTo({
url: "../peanut/reCharge",
});
},
// 跳转
onPageJump(url) {
uni.navigateTo({
url: url,
});
},
},
};
</script>
<style lang="scss" scoped>
@import "@/style/mixin.scss";
.ACTable {
// padding: 20rpx 30rpx;
.AC_mes {
width: 100%;
height: 400rpx;
background-image: url("@/static/image/wallet.png");
background-position: center center;
background-repeat: no-repeat;
background-size: 100% 100%;
// margin-top: 50rpx;
padding: 160rpx 160rpx 100rpx 120rpx;
box-shadow: 0 0px 10px 1px #d3d1d133;
// background-color: #fff;
border-radius: 15rpx;
margin-bottom: 40rpx;
position: relative;
.wallet_title {
color: #fff;
font-size: 62rpx;
line-height: 80rpx;
font-weight: 600;
text-align: center;
}
.wallet_number {
color: #fff;
font-size: 70rpx;
line-height: 100rpx;
font-weight: 500;
text-align: center;
}
}
.AC_con {
background-color: #fff;
overflow: hidden;
// margin-top: 50rpx;
// padding: 30rpx 30rpx;
box-shadow: 0 0px 10px 1px #d3d1d133;
border-radius: 15rpx;
margin-bottom: 40rpx;
font-size: 30rpx;
padding-bottom: 30rpx;
.AC_jilu {
font-size: 42rpx;
text-align: left;
color: #3ab3ae;
// background-image: linear-gradient(90deg, #3AB3AE 20%, #c3fade 100%);
// margin-bottom: 30rpx;
padding: 30rpx 20rpx 20rpx;
}
.AC_List {
overflow: hidden;
.left {
width: calc(100% - 120rpx) !important;
font-weight: 700;
float: left;
color: #333;
font-size: 32rpx;
line-height: 60rpx;
}
.right {
display: block;
width: 100rpx !important;
float: right;
text-align: right;
font-size: 32rpx;
font-weight: 700;
color: #333;
}
// border-bottom: 1px solid #eee;
// padding: 40rpx 10rpx;
.AC_title {
font-size: 32rpx;
margin-bottom: 20rpx;
view {
float: right;
font-size: 34rpx;
font-weight: bold;
}
}
.AC_mark {
font-size: 28rpx;
margin-top: 20rpx;
margin-bottom: 15rpx;
// white-space: nowrap;
color: #888;
float: left;
}
.AC_time {
color: #bababa;
font-size: 28rpx;
}
}
}
.couponList {
view {
display: inline-block;
padding: 0 0 25rpx 0;
margin: 40rpx 0 40rpx 0;
width: 33%;
text-align: center;
font-size: 30rpx;
}
.couStyle {
border-bottom: 5rpx solid #54a966;
color: #54a966;
font-weight: bold;
}
}
.card {
width: 100%;
overflow: hidden;
margin-bottom: 30rpx;
padding-left: 10rpx;
position: relative;
}
.card > view {
background: #fff;
border-radius: 5rpx;
}
.card .dot-left,
.card .dot-right {
display: block;
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: #f5f5f5;
position: absolute;
z-index: 999;
}
.card .dot-left {
bottom: -6rpx;
left: -6rpx;
}
.card .dot-right {
bottom: -6rpx;
right: -6rpx;
}
.card .page-group {
position: absolute;
top: 10rpx;
left: -2rpx;
width: 100%;
max-width: 200rpx;
.fold-page {
display: block;
width: 10rpx;
height: 8rpx;
background: #54a966;
transform: skewY(-40deg);
position: absolute;
top: -5rpx;
left: -8rpx;
z-index: 0;
}
.page {
position: absolute;
z-index: 1;
display: block;
padding: 5rpx 20rpx 3rpx 20rpx;
height: 40rpx;
line-height: 40rpx;
background: linear-gradient(137deg, #54a966 0%, #0d5e1e 100%);
border-radius: 0 20rpx 20rpx 0;
color: #fff;
text-align: center;
font-size: 24rpx;
overflow: hidden;
left: -8rpx;
}
}
.card .page-group.grey {
.fold-page {
background: #c6c6c6;
}
.page {
background: linear-gradient(137deg, #c6c6c6 0%, #999595 100%);
}
}
.card .content {
width: 100%;
height: 180rpx;
border-bottom: 1rpx dotted #f5f5f5;
position: relative;
z-index: 2;
}
.card .content .coupon-detail {
display: flex;
padding: 0 15rpx 0 20rpx;
}
.card .content .coupon-detail > view {
height: 130rpx;
display: flex;
align-items: center;
}
.card .content .coupon-detail > view:first-child {
color: #54a966;
padding-top: 100rpx;
width: 30%;
}
.card .content .coupon-detail > view.grey {
color: #c6c6c6;
}
.card .content .coupon-detail > view:first-child > span:first-child {
font-size: 30rpx;
margin: 0 10rpx 0 0;
}
.card .content .coupon-detail > view:first-child > span:last-child {
font-size: 70rpx;
}
.card .content .coupon-detail > view:last-child > view {
color: #54a966;
border: 1rpx solid #54a966;
border-radius: 50rpx;
font-size: 12px;
line-height: 25px;
width: 150rpx;
height: 50rpx;
margin: 100rpx 0 0 5rpx;
text-align: center;
}
.card .coupon-detail > view:nth-child(2) {
flex-direction: column;
padding-top: 60rpx;
width: 40%;
}
.card .coupon-detail > view:nth-child(2) > view {
width: 100%;
}
.card .coupon-detail > view:nth-child(2) > view:first-child {
color: #333;
font-weight: bold;
font-size: 25rpx;
margin: 0 0 10rpx 0;
}
.card .coupon-detail > view:nth-child(2) > view:last-child {
font-size: 12px;
color: #adadad;
margin-top: 5rpx;
}
.card .coupon-detail > view:nth-child(2) > view:last-child > view {
transform: scale(0.8);
margin-left: -14rpx;
}
.card {
.footer {
color: #999;
font-size: 12px;
padding: 30rpx 15rpx 30rpx 30rpx;
}
.ribbon {
width: 160rpx;
height: 40rpx;
background: #54a966;
position: absolute;
right: -40rpx;
top: 25rpx;
transform: rotateZ(45deg);
text-align: center;
color: #fff;
font-size: 20rpx;
line-height: 44rpx;
}
.ribbon.grey {
background: #c6c6c6;
}
}
}
.Hot {
color: #3ab3ae !important;
}
.AC_chong {
display: flex;
align-items: center;
justify-content: space-between;
background-image: linear-gradient(90deg, #3ab3ae 0%, #73ee9c 100%);
color: #fff;
border-top-left-radius: 15rpx;
border-top-right-radius: 15rpx;
padding:20rpx 20rpx;
font-size: 36rpx;
font-weight: 800;
text-align: right;
}
.rightArrow {
width: 40rpx;
height: 40rpx;
float: right;
margin-left: 10rpx;
// position: absolute;
// right: 30rpx;
// top: 20rpx;
}
</style>

View File

@@ -2,92 +2,102 @@
<view class="container commonPageBox">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="充值" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="cha_jine">
<view class="cj_title PM_font">充值金额</view>
<view class="cj_xiang">
<z-nav-bar
title="充值"
bgColor="#3AB3AE"
fontColor="#fff"
:homeState="options.source == 'order' ? 1000 : 2000"
:backState="options.source == 'order' ? 2000 : 1000"
@homeClick="goHome"
></z-nav-bar>
<view>
<view class="cha_jine">
<view class="cj_title PM_font">充值金额</view>
<view class="cj_xiang">
<view
v-for="(item, index) in cjList"
@click="chosPric(item)"
:class="
stepsCj.priceTypeId == item.priceTypeId
? 'Tab_cj cj_price'
: 'cj_price'
"
>
<view class="pr_jg">{{ item.realMoney }}</view>
<view class="pr_yl">{{ item.money }} 天医币</view>
<view class="pr_lj">限时特惠</view>
</view>
<br clear="both" />
</view>
</view>
<view class="cha_fangsh">
<view class="cf_title PM_font">支付方式</view>
<view class="cf_radio">
<u-radio-group v-model="payType">
<view style="width: 100%" v-if="isAndroid">
<view
v-for="(item, index) in paylist"
@click="choseType(item.id)"
:class="payType == item.id ? 'Tab_xf cf_xuanx' : 'cf_xuanx'"
>
<image class="pay_item_img" :src="item.imgUrl" mode="aspectFil">
</image>
{{ item.title }}
<u-radio
:key="index"
activeColor="#3AB3AE"
:name="item.id"
style="float: right; margin-top: 5rpx"
></u-radio>
</view>
</view>
<view style="width: 100%" v-else>
<view
v-for="(item, index) in iosPaylist"
@click="choseType(item.id)"
:class="payType == item.id ? 'Tab_xf cf_xuanx' : 'cf_xuanx'"
>
<image class="pay_item_img" :src="item.imgUrl" mode="aspectFil">
</image>
{{ item.title }}
<u-radio
:key="index"
activeColor="#3AB3AE"
:name="item.id"
style="float: right; margin-top: 5rpx"
></u-radio>
</view>
</view>
</u-radio-group>
</view>
</view>
<view class="agree_wo flexbox" style="float: left; display: flex">
<radio-group class="agree">
<view v-for="(item, index) in argee" :key="index">
<radio
class="agreeRadio"
:value="item.id"
:checked="item.id == radioValue"
color="#3AB3AE"
@click="radioCheck(index)"
></radio>
</view>
</radio-group>
<view
v-for="(item, index) in cjList"
@click="chosPric(item)"
:class="
stepsCj.priceTypeId == item.priceTypeId
? 'Tab_cj cj_price'
: 'cj_price'
"
>* 我已阅读并同意<span class="highlight" @click="showXieyi"
>增值服务协议</span
></view
>
<view class="pr_jg">{{ item.realMoney }}</view>
<view class="pr_yl">{{ item.money }} 天医币</view>
<view class="pr_lj">限时特惠</view>
</view>
<br clear="both" />
</view>
</view>
<view class="cha_fangsh">
<view class="cf_title PM_font">支付方式</view>
<view class="char_btn">
<view @click="goToPay">立即充值</view>
<view class="cf_radio">
<u-radio-group v-model="payType">
<view style="width: 100%" v-if="isAndroid">
<view
v-for="(item, index) in paylist"
@click="choseType(item.id)"
:class="payType == item.id ? 'Tab_xf cf_xuanx' : 'cf_xuanx'"
>
<image class="pay_item_img" :src="item.imgUrl" mode="aspectFil">
</image>
{{ item.title }}
<u-radio
:key="index"
activeColor="#3AB3AE"
:name="item.id"
style="float: right; margin-top: 5rpx"
></u-radio>
</view>
</view>
<view style="width: 100%" v-else>
<view
v-for="(item, index) in iosPaylist"
@click="choseType(item.id)"
:class="payType == item.id ? 'Tab_xf cf_xuanx' : 'cf_xuanx'"
>
<image class="pay_item_img" :src="item.imgUrl" mode="aspectFil">
</image>
{{ item.title }}
<u-radio
:key="index"
activeColor="#3AB3AE"
:name="item.id"
style="float: right; margin-top: 5rpx"
></u-radio>
</view>
</view>
</u-radio-group>
<!-- <view @click="iosPay" >立即充值</view> -->
</view>
</view>
<view class="agree_wo flexbox" style="float: left; display: flex">
<radio-group class="agree">
<view v-for="(item, index) in argee" :key="index">
<radio
class="agreeRadio"
:value="item.id"
:checked="item.id == radioValue"
color="#3AB3AE"
@click="radioCheck(index)"
></radio>
</view>
</radio-group>
<view
>* 我已阅读并同意<span class="highlight" @click="showXieyi"
>增值服务协议</span
></view
>
</view>
<view class="char_btn">
<view @click="goToPay">立即充值</view>
<!-- <view @click="iosPay" >立即充值</view> -->
</view>
<!-- 充值协议 -->
<u-popup :show="xieyiShow" :round="10" @close="xieyiShow = false">
<view class="tanchu">
@@ -118,6 +128,7 @@ export default {
data() {
return {
playData: {},
options: {},
xieyi: {
title: "",
content: "",
@@ -165,16 +176,16 @@ export default {
},
urlList: {
list:'common/bookBuyConfig/getBookBuyConfigList',
list: "common/bookBuyConfig/getBookBuyConfigList",
},
};
},
//第一次加载
onLoad(e) {
onLoad(options) {
this.options = options;
// 隐藏原生的tabbar
uni.hideTabBar();
this.chargeOrderSn = e.orderSn;
this.chargeOrderSn = options.orderSn;
// console.log(e.orderSn,'orderSn')
},
//页面显示
@@ -211,11 +222,29 @@ export default {
}
);
},
showXieyi() {
this.$http.get(`sys/agreement/list?key=pay`).then((res) => {
this.xieyi = res.page.list[0];
this.xieyiShow = true;
});
async showXieyi() {
// this.$http.get(`sys/agreement/list?key=pay`).then((res) => {
// this.xieyi = res.page.list[0];
// this.xieyiShow = true;
// });
var data = await this.$commonJS.getAgreement(104);
if (data.content) {
data.content = data.content.replace(
/<h5>/g,
'<view style="font-weight: bold;font-size: 32rpx;margin-top: 20rpx;margin-bottom: 20rpx;">'
);
data.content = data.content.replace(
/<\/h5>/g,
"</view>"
);
}
this.xieyi=data
this.xieyiShow = true;
},
radioCheck(index) {
// 勾选用户协议
@@ -385,23 +414,21 @@ export default {
},
// 安卓充值列表
getAndorList() {
var data={
var data = {
type: "point",
qudao: "Android",
}
qudao: "Android",
};
$http
.request({
url: this.urlList.list,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data,
header: {
//默认 无 说明请求头1
"Content-Type": "application/json",
},
})
$http
.request({
url: this.urlList.list,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data,
header: {
//默认 无 说明请求头1
"Content-Type": "application/json",
},
})
.then((res) => {
console.log("res at line 389:", res);
@@ -413,15 +440,20 @@ export default {
},
// 苹果充值列表
getAppleList() {
var data={
var data = {
type: "point",
qudao: "IOS",
}
qudao: "IOS",
};
this.$http
.post(this.urlList.list, {
type: "point",
qudao: "IOS",
$http
.request({
url: this.urlList.list,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data,
header: {
//默认 无 说明请求头1
"Content-Type": "application/json",
},
})
.then((res) => {
console.log("res at line 403:", res);
@@ -466,6 +498,7 @@ export default {
realMoney: that.stepsCj.money * 1, //实收金额
orderStatus: 0, //订单状态
orderType: "point", //订单类型
appName: "zmzm",
productId: that.stepsCj.priceTypeId, // 充值的类型id
};
@@ -500,14 +533,14 @@ export default {
});
setTimeout(() => {
uni.navigateTo({
url: "/pages/mine/wallet/index/index",
url: "/pages/mine/wallet/index/index?source=recharge",
});
}, 2000);
} else {
uni.showToast({
title: "支付失败",
icon: "none",
image: "@/static/icon/ic_close.png",
image: "../../../static/icon/ic_close.png",
});
}
}
@@ -532,7 +565,7 @@ export default {
});
setTimeout(() => {
uni.navigateTo({
url: "/pages/mine/wallet/index/index",
url: "/pages/mine/wallet/index/index?source=recharge",
});
}, 2000);
} else {
@@ -541,13 +574,13 @@ export default {
uni.showToast({
title: "用户取消支付",
icon: "none",
image: "@/static/icon/ic_close.png",
image: "../../../static/icon/ic_close.png",
});
} else {
uni.showToast({
title: "支付失败",
icon: "none",
image: "@/static/icon/ic_close.png",
image: "../../../static/icon/ic_close.png",
});
}
}
@@ -827,7 +860,7 @@ export default {
.agree {
width: auto !important;
}
.commonPageBox{
.commonPageBox {
background-color: #fff !important;
}
</style>