提交
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
<template><page-meta
|
||||
:page-font-size="$baseFontSize() + 'px'"
|
||||
:root-font-size="$baseFontSize() + 'px'"
|
||||
></page-meta>
|
||||
<template><page-meta :page-font-size="$baseFontSize() + 'px'" :root-font-size="$baseFontSize() + 'px'"></page-meta>
|
||||
<view style="
|
||||
height: 100vh;
|
||||
padding: 0 0;
|
||||
@@ -257,8 +254,8 @@
|
||||
<view class="text" style="line-height: 40rpx">{{
|
||||
userMes.jf ? userMes.jf : 0
|
||||
}}</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
<view
|
||||
class="chong_list_item"
|
||||
@@ -277,13 +274,8 @@
|
||||
}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- v-if="iosHide" -->
|
||||
|
||||
<!-- <view v-if="iosHide" class="chong_list_item">
|
||||
<b>{{ userMes.conponsCount }}</b>
|
||||
优惠券
|
||||
</view> -->
|
||||
<!-- v-if="$platform!='ios'" -->
|
||||
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')">充 值</b> -->
|
||||
<view class="chong_list_item" style="
|
||||
display: flex;
|
||||
@@ -291,7 +283,7 @@
|
||||
margin-right: 0;
|
||||
justify-content: center;
|
||||
">
|
||||
<view class="chong_btn" v-if="iosHide"
|
||||
<view class="chong_btn"
|
||||
@click="onPageJump('/pages/mine/wallet/recharge/index')">充 值</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -473,12 +465,11 @@
|
||||
isAndorid: true,
|
||||
platform: null, // 设备系统
|
||||
|
||||
pageList: [
|
||||
{
|
||||
name: "我的订单",
|
||||
url: "/pages/bookShop/orderList?type=mine",
|
||||
pageList: [{
|
||||
name: "我的订单",
|
||||
url: "/pages/bookShop/orderList?type=mine",
|
||||
|
||||
type: "switchTab",
|
||||
type: "switchTab",
|
||||
},
|
||||
// {
|
||||
// name: "购物车",
|
||||
@@ -538,7 +529,8 @@
|
||||
// 隐藏原生的tabbar
|
||||
// uni.hideTabBar();
|
||||
this.getBookList();
|
||||
this.getData();await this.getUserCouponList();
|
||||
this.getData();
|
||||
await this.getUserCouponList();
|
||||
},
|
||||
async onTabItemTap() {
|
||||
this.getBookList();
|
||||
@@ -551,32 +543,32 @@
|
||||
methods: {
|
||||
...mapMutations(["setUserInfo"]),
|
||||
async getUserCouponList() {
|
||||
await this.$http
|
||||
.request({
|
||||
url: "common/coupon/getCouponHistoryList",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
getType: "", //获取类型 0 后台赠送 1 主动获取
|
||||
status: "0", //使用状态 0 未使用 1 已使用 2 已过期
|
||||
userInfo: "", //用户信息
|
||||
userId: this.userInfo.id,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (res.code != 0) return this.$commonJS.showToast(res.errMsg);
|
||||
this.userCouponNum = res.couponList.total;
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e);
|
||||
this.$commonJS.showToast(e.errMsg);
|
||||
});
|
||||
},
|
||||
await this.$http
|
||||
.request({
|
||||
url: "common/coupon/getCouponHistoryList",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
getType: "", //获取类型 0 后台赠送 1 主动获取
|
||||
status: "0", //使用状态 0 未使用 1 已使用 2 已过期
|
||||
userInfo: "", //用户信息
|
||||
userId: this.userInfo.id,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (res.code != 0) return this.$commonJS.showToast(res.errMsg);
|
||||
this.userCouponNum = res.couponList.total;
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e);
|
||||
this.$commonJS.showToast(e.errMsg);
|
||||
});
|
||||
},
|
||||
getBookList(flag, refreshflag) {
|
||||
this.isLoadingHide = false;
|
||||
var that = this;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
activeColor="cadetblue"
|
||||
style="float: left;"
|
||||
v-model="fontSizeBlod"
|
||||
size="14"
|
||||
size="16"
|
||||
@change="asyncChange"
|
||||
></u-switch>
|
||||
<text style="margin-left: 5px;font-size: 14px !important;float: left;color: cadetblue;font-weight: bold;">最大</text>
|
||||
@@ -40,7 +40,8 @@
|
||||
</template>
|
||||
</list>
|
||||
</view>
|
||||
<view class="button_box">
|
||||
<!-- v-if="iosHide" -->
|
||||
<view class="button_box" >
|
||||
<u-button
|
||||
shape="square"
|
||||
type=""
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
:root-font-size="$baseFontSize() + 'px'"
|
||||
></page-meta>
|
||||
<view>
|
||||
{{ iosHide }}
|
||||
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
productId: result.payment.productid.slice(1), // 产品id
|
||||
orderId: result.payment.username, // 系统订单号
|
||||
receiptData: result.transactionReceipt, // 苹果返回收据
|
||||
// isSandBox: true, //测试数据
|
||||
// sandBox: true, //测试数据
|
||||
// body: that.stepsCj.priceTypeId // 充值类型id
|
||||
};
|
||||
console.log("提交给后台的数据", data);
|
||||
|
||||
Reference in New Issue
Block a user