疯币改天医疗币
引导页文字修改 配置文件请求地址修改 订单列表页面样式修改
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
<view class="guide_pages_bg2">
|
||||
疯子读书,
|
||||
<br>
|
||||
让阅读无处不在
|
||||
古今一统,中西互参
|
||||
</view>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<view class="guide_pages_bg3">
|
||||
疯子读书,
|
||||
<br>
|
||||
让阅读无处不在
|
||||
和光同尘,普惠人间
|
||||
</view>
|
||||
<button v-if="screenHeight > 667" class="guide_pages_close close_1624" @click="onClose">开始使用</button>
|
||||
<button v-else class="guide_pages_close close_1334" @click="onClose">开始使用</button>
|
||||
|
||||
@@ -5,12 +5,15 @@ if (process.env.NODE_ENV === 'development') {
|
||||
// baseUrl = "http://localhost:7001/";
|
||||
// socketUrl = "ws://localhost:6001/";
|
||||
// baseUrl = "https://twin-ui.com/demo/";
|
||||
// baseUrl = "http://59.110.212.44:9100/pb/";
|
||||
baseUrl = "http://192.168.110.100:9100/pb/";
|
||||
// baseUrl = "http://59.110.212.44:9200/pb/";
|
||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
||||
baseUrl = "http://192.168.110.38:9200/pb/"; // 吴春磊笔记本
|
||||
// socketUrl = "ws://8.129.186.35:6001/";
|
||||
} else if (process.env.NODE_ENV === 'production') {
|
||||
// 生产环境11
|
||||
baseUrl = "http://59.110.212.44:9100/pb/";
|
||||
// baseUrl = "http://59.110.212.44:9100/pb/";
|
||||
baseUrl = "https://api.nuttyreading.com/";
|
||||
// baseUrl = "ws://twin-ui.com:6001/";
|
||||
// socketUrl = "ws://twin-ui.com:6001/";
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ export const getLatLon = function(tip) {
|
||||
});
|
||||
}
|
||||
|
||||
// 单独重新微信支付
|
||||
// 单独微信支付
|
||||
export const setWXPay = function(payInfo, callback) {
|
||||
$http.request({
|
||||
url: "/pay/placeAnOrder/shoppingpay",
|
||||
|
||||
3
main.js
3
main.js
@@ -8,7 +8,8 @@ Vue.prototype.$bgm = bgm
|
||||
|
||||
// 地址
|
||||
// Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
||||
Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
||||
// Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
||||
Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,17 +5,20 @@
|
||||
<!-- <z-nav-bar title="我的订单"></z-nav-bar> -->
|
||||
<z-nav-bar backState="2000" title="我的订单"></z-nav-bar>
|
||||
|
||||
<view class="orderTabs">
|
||||
<view class="orderTabs flexbox">
|
||||
<view v-for="(item,index) in orderTabs" @click="orderTabCLi(item.value)"
|
||||
:class="orderListTab==item.value?'ordStyle':''">{{item.name}}</view>
|
||||
</view>
|
||||
|
||||
<view class="orderList">
|
||||
<view class="orderItem" v-for="(ifex,inten) in orderList">
|
||||
<view class="orderState" v-if="ifex.orderStatus==0">待支付</view>
|
||||
<view class="orderState" v-if="ifex.orderStatus==1">待发货</view>
|
||||
<view class="orderState" v-if="ifex.orderStatus==2">待收货</view>
|
||||
<view class="orderState" v-if="ifex.orderStatus==3">已完成</view>
|
||||
<text class="orderState orderState0" v-if="ifex.orderStatus==0">待支付</text>
|
||||
<text class="orderState orderState1" v-if="ifex.orderStatus==1">待发货</text>
|
||||
<text class="orderState orderState2" v-if="ifex.orderStatus==2">待收货</text>
|
||||
<text class="orderState orderState3" v-if="ifex.orderStatus==3">已完成</text>
|
||||
<view class="flexbox orderSn">
|
||||
<text class="">订单编号: {{ifex.orderSn}}</text>
|
||||
</view>
|
||||
<view class="orderContent" :key="index" v-if="ifex.orderType=='order'"
|
||||
v-for="(item,index) in ifex.products" @click="goOrdiCont(ifex)">
|
||||
<image :src="item.image" mode=""></image>
|
||||
@@ -36,7 +39,7 @@
|
||||
<image src="../../static/icon/oder_chong.png" mode="" style="height: 150rpx;"></image>
|
||||
<view class="itemJian">
|
||||
<view class="orderTitle">
|
||||
<text>花生币充值</text>
|
||||
<text>天医币充值</text>
|
||||
</view>
|
||||
<view class="orderPrice">
|
||||
¥<text style="font-weight: bold;">{{ifex.realMoney}}</text>
|
||||
@@ -59,8 +62,8 @@
|
||||
<br clear="both">
|
||||
</view>
|
||||
<view class="orderReal">
|
||||
<span style="color: #666; float: left; font-size: 12px;">下单时间:{{ifex.createTime}}</span>
|
||||
<span style="color: #666;margin-right: 10rpx;">实付款 : </span>
|
||||
<span style="color: #999; float: left; font-size: 12px;">下单时间:{{ifex.createTime}}</span>
|
||||
<span style="color: #999;margin-right: 10rpx;">实付款 : </span>
|
||||
<span>¥</span>{{ifex.realMoney}}
|
||||
</view>
|
||||
<view class="orderOper" v-if="ifex.orderStatus==0">
|
||||
@@ -174,7 +177,7 @@ import {
|
||||
},
|
||||
|
||||
// 订单详情
|
||||
goOrdiCont(e) {
|
||||
goOrdiCont(e) {
|
||||
uni.navigateTo({
|
||||
url: './orderLCont?orderId=' + e.orderId + '&orderType=' + e.orderStatus + '&orderSn=' + e.orderSn
|
||||
});
|
||||
@@ -507,27 +510,34 @@ import {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '@/style/mixin.scss';
|
||||
|
||||
.flexbox{display: flex;}
|
||||
.orderTabs {
|
||||
margin: 70rpx 0 0 0;
|
||||
|
||||
margin: 100rpx 0 0 0;
|
||||
width: 100%;
|
||||
|
||||
padding: 0 3% 3% 3%;
|
||||
position: fixed;
|
||||
top: 80rpx;
|
||||
background-color: #f7faf9;
|
||||
|
||||
background-color: #fff;
|
||||
z-index: 100;
|
||||
|
||||
view {
|
||||
border-radius: 20rpx;
|
||||
border:1px solid #d0d0d0 ;
|
||||
display: inline-block;
|
||||
padding: 0 0 20rpx 0;
|
||||
margin: 40rpx 0 15rpx 0;
|
||||
padding: 20rpx 0;
|
||||
margin: 0 6rpx;
|
||||
// margin: 40rpx 0 15rpx 0;
|
||||
width: 20%;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.ordStyle {
|
||||
border-bottom: 5rpx solid #54a966;
|
||||
background: #f0f9eb;
|
||||
border: 2rpx solid #54a966;
|
||||
color: #54a966;
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -538,26 +548,30 @@ import {
|
||||
margin-top: 130rpx;
|
||||
|
||||
.orderItem {
|
||||
position: relative;
|
||||
padding: 30rpx 10rpx 30rpx 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.orderState {
|
||||
|
||||
text-align: right;
|
||||
font-size: 30rpx;
|
||||
margin: 0 20rpx 30rpx 0;
|
||||
font-weight: bold;
|
||||
color: #d70808;
|
||||
.orderSn{font-size: 26rpx; color: #999; padding-bottom: 20rpx; border-bottom: 1px solid #eee; color: #666; margin-top: 60rpx; margin-bottom: 30rpx;}
|
||||
.orderState { color: #fff;
|
||||
|
||||
position: absolute; left: 0; top: 20rpx;
|
||||
padding:10rpx; border-radius: 0 24rpx 24rpx 0;
|
||||
font-size: 26rpx;
|
||||
// font-weight: bold;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.orderState0{background-color: #e6a23c;}
|
||||
.orderState1{background-color: #409eff;}
|
||||
.orderState2{background-color: #f56c6c;}
|
||||
.orderState3{background-color: #67c23a;}
|
||||
.orderContent {
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
image {
|
||||
width: 150rpx;
|
||||
height: 180rpx;
|
||||
width: 130rpx;
|
||||
height: 140rpx;
|
||||
margin-right: 20rpx;
|
||||
float: left;
|
||||
}
|
||||
@@ -567,8 +581,8 @@ import {
|
||||
width: 470rpx;
|
||||
|
||||
.orderTitle {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
// font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
margin: 0 0 20rpx 0;
|
||||
float: left;
|
||||
width: 410rpx;
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<view v-for="(item, index) in paylist" class="zhif_xuanx">
|
||||
<image :src="item.img"></image>
|
||||
{{item.title}}
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}疯币可用</span>
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}天医币可用</span>
|
||||
<span @click.stop="buPoint" style="color: #bf0c0c; margin-left: 10px;" v-if="item.id == 4" class="chongBtn">去充值</span>
|
||||
<u-radio :key="index" activeColor="#fe6e09" :name='item.id'
|
||||
style="float: right;margin-top: 5rpx;" ></u-radio>
|
||||
@@ -93,7 +93,7 @@
|
||||
<view v-for="(item, index) in paylistIos" class="zhif_xuanx">
|
||||
<image :src="item.img"></image>
|
||||
{{item.title}}
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}疯币可用</span>
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}天医币可用</span>
|
||||
<span @click.stop="buPoint" style="color: #bf0c0c; margin-left: 10px;" v-if="item.id == 4" class="chongBtn">去充值</span>
|
||||
<u-radio :key="index" activeColor="#fe6e09" :name='item.id'
|
||||
style="float: right;margin-top: 5rpx;" ></u-radio>
|
||||
@@ -110,7 +110,7 @@
|
||||
</view>
|
||||
<view class="commodityPrice" v-if="payType == 4">
|
||||
<span style="color: #666;margin-right: 10rpx; font-size: 15px;">实付款: </span>
|
||||
{{realPrice}}<span>疯币</span>
|
||||
{{realPrice}}<span>天医币</span>
|
||||
</view>
|
||||
<view class="operate" @click="goBuyJie" v-if="payType != 4">
|
||||
<view class="goBuy">
|
||||
@@ -245,7 +245,7 @@
|
||||
img: '../../static/icon/pay_2.png'
|
||||
},
|
||||
{
|
||||
title: '疯币购买',
|
||||
title: '天医币购买',
|
||||
id: 4,
|
||||
img: '../../static/icon/oder_chong.png'
|
||||
},
|
||||
@@ -266,7 +266,7 @@
|
||||
// img: '../../static/icon/pay_2.png'
|
||||
// },
|
||||
{
|
||||
title: '疯币购买',
|
||||
title: '天医币购买',
|
||||
id: 4,
|
||||
img: '../../static/icon/oder_chong.png'
|
||||
},
|
||||
@@ -317,7 +317,7 @@
|
||||
this.isAndorid = false
|
||||
}
|
||||
},
|
||||
// 充值疯币
|
||||
// 充值天医币
|
||||
buPoint() {
|
||||
uni.navigateTo({
|
||||
url: '../peanut/reCharge'
|
||||
@@ -363,7 +363,7 @@
|
||||
goPoinBuy(){
|
||||
if(this.realPrice > this.userMes.peanutCoin){
|
||||
uni.showToast({
|
||||
title:'疯币不足,请充值',
|
||||
title:'天医币不足,请充值',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
@@ -458,12 +458,13 @@
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
}).then(res => {
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.farePrice = res.price
|
||||
}else{
|
||||
this.farePrice = 0
|
||||
}
|
||||
console.log('需要的运费',res.price)
|
||||
this.allPrice()
|
||||
})
|
||||
},
|
||||
@@ -589,7 +590,7 @@
|
||||
city: this.adressMoRen.areaidpathtext.split(' ')[1], //市
|
||||
district: this.adressMoRen.areaidpathtext.split(' ')[2], //区
|
||||
address: this.adressMoRen.useraddress, //地址
|
||||
paymentMethod: this.payType, //支付方式 2支付宝,1微信,3ios内购 4,疯币购买
|
||||
paymentMethod: this.payType, //支付方式 2支付宝,1微信,3ios内购 4,天医币购买
|
||||
orderMoney: this.totalPrice, //订单金额
|
||||
realMoney: this.realPrice, //实收金额
|
||||
shippingMoney: this.farePrice, //运费
|
||||
@@ -604,7 +605,7 @@
|
||||
}
|
||||
$http.request({
|
||||
// url: "book/buyorder/save",
|
||||
url: "book/buyorder/buysave",
|
||||
url: "book/buyorder/buySave",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data,
|
||||
header: { //默认 无 说明:请求头
|
||||
@@ -694,7 +695,7 @@
|
||||
}
|
||||
})
|
||||
}else if(this.payType == 4){
|
||||
// 疯币支付
|
||||
// 天医币支付
|
||||
uni.showToast({
|
||||
title: "购买成功",
|
||||
icon: "success"
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<view v-for="(item, index) in paylist" class="zhif_xuanx">
|
||||
<image :src="item.img"></image>
|
||||
{{item.title}}
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}疯币可用</span>
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}天医币可用</span>
|
||||
<span @click.stop="buPoint" style="color: #bf0c0c; margin-left: 10px;" v-if="item.id == 4" class="chongBtn">去充值</span>
|
||||
<u-radio :key="index" activeColor="#fe6e09" :name='item.id'
|
||||
style="float: right;margin-top: 5rpx;" ></u-radio>
|
||||
@@ -93,7 +93,7 @@
|
||||
<view v-for="(item, index) in paylistIos" class="zhif_xuanx">
|
||||
<image :src="item.img"></image>
|
||||
{{item.title}}
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}疯币可用</span>
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}天医币可用</span>
|
||||
<span @click.stop="buPoint" style="color: #bf0c0c; margin-left: 10px;" v-if="item.id == 4" class="chongBtn">去充值</span>
|
||||
<u-radio :key="index" activeColor="#fe6e09" :name='item.id'
|
||||
style="float: right;margin-top: 5rpx;" ></u-radio>
|
||||
@@ -110,7 +110,7 @@
|
||||
</view>
|
||||
<view class="commodityPrice" v-if="payType == 4">
|
||||
<span style="color: #666;margin-right: 10rpx; font-size: 15px;">实付款: </span>
|
||||
{{realPrice}}<span>疯币</span>
|
||||
{{realPrice}}<span>天医币</span>
|
||||
</view>
|
||||
<view class="operate" @click="goBuyJie" v-if="payType != 4">
|
||||
<view class="goBuy">
|
||||
@@ -246,7 +246,7 @@
|
||||
img: '../../static/icon/pay_2.png'
|
||||
},
|
||||
{
|
||||
title: '疯币购买',
|
||||
title: '天医币购买',
|
||||
id: 4,
|
||||
img: '../../static/icon/oder_chong.png'
|
||||
},
|
||||
@@ -267,7 +267,7 @@
|
||||
// img: '../../static/icon/pay_2.png'
|
||||
// },
|
||||
{
|
||||
title: '疯币购买',
|
||||
title: '天医币购买',
|
||||
id: 4,
|
||||
img: '../../static/icon/oder_chong.png'
|
||||
},
|
||||
@@ -341,7 +341,7 @@
|
||||
this.isAndorid = false
|
||||
}
|
||||
},
|
||||
// 充值疯币
|
||||
// 充值天医币
|
||||
buPoint() {
|
||||
uni.navigateTo({
|
||||
url: '../peanut/reCharge'
|
||||
@@ -387,7 +387,7 @@
|
||||
goPoinBuy(){
|
||||
if(this.realPrice > this.userMes.peanutCoin){
|
||||
uni.showToast({
|
||||
title:'疯币不足,请充值',
|
||||
title:'天医币不足,请充值',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
@@ -612,7 +612,7 @@
|
||||
city: this.adressMoRen.areaidpathtext.split(' ')[1], //市
|
||||
district: this.adressMoRen.areaidpathtext.split(' ')[2], //区
|
||||
address: this.adressMoRen.useraddress, //地址
|
||||
paymentMethod: this.payType, //支付方式 2支付宝,1微信,3ios内购 4,疯币购买
|
||||
paymentMethod: this.payType, //支付方式 2支付宝,1微信,3ios内购 4,天医币购买
|
||||
orderMoney: this.totalPrice, //订单金额
|
||||
realMoney: this.realPrice, //实收金额
|
||||
shippingMoney: this.farePrice, //运费
|
||||
@@ -717,7 +717,7 @@
|
||||
}
|
||||
})
|
||||
}else if(this.payType == 4){
|
||||
// 疯币支付
|
||||
// 天医币支付
|
||||
uni.showToast({
|
||||
title: "购买成功",
|
||||
icon: "success"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<view class="search_box flexbox" @click="onPageJump('../peanut/searchFor')">
|
||||
<view class="search">
|
||||
<text class="icon_search"></text>
|
||||
<text class="prompt">请输入想要搜索的书名</text>
|
||||
<text class="prompt">请输入书名</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="searBtn flexbox">
|
||||
|
||||
@@ -10,14 +10,24 @@
|
||||
<text class="prompt">搜索...</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="contentButton">
|
||||
<!-- <view class="contentButton">
|
||||
<u-tabs :scrollable="false" bg-color="#d4d4d4" active-color="#2979ff" inactive-color="#606266"
|
||||
bar-height="10" :list="contentButtonList" @click="contentButtonClick" lineWidth="42"
|
||||
:inactiveStyle="{fontSize:'32rpx'}"
|
||||
:activeStyle="{color: '#303133',fontWeight: 'bold', transform: 'scale(1.01)'}"></u-tabs>
|
||||
</view> -->
|
||||
<view class="" style="padding:40rpx 20rpx;">
|
||||
<view class="mytabs flexbox">
|
||||
<view :class="['item','item1', contentShow == 1 ? 'active' :'']" @click="setData(1)">
|
||||
已购图书
|
||||
</view>
|
||||
<view :class="['item','item2', contentShow == 2 ? 'active' :'']" @click="setData(2)">
|
||||
推荐图书
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="listenList" v-if="bookList.length > 0 || tjBookLIst.length > 0">
|
||||
<view class="wrap" v-if="contentShow == 0" >
|
||||
<view class="wrap" v-if="contentShow == 1" >
|
||||
<view class="" v-if="bookList.length > 0">
|
||||
<u-row gutter="16" justify="flex-start" >
|
||||
<u-col span="4" v-for="(item,index) in bookList" :key="index">
|
||||
@@ -44,7 +54,7 @@
|
||||
<u-divider v-else text="暂无已购买书籍~"></u-divider>
|
||||
</view>
|
||||
|
||||
<view class="wrap" v-if="contentShow == 1">
|
||||
<view class="wrap" v-if="contentShow == 2">
|
||||
<u-row gutter="16" justify="flex-start" v-if="tjBookLIst.length > 0">
|
||||
<u-col span="4" v-for="(item,index) in tjBookLIst" :key="index">
|
||||
<view class="videoBox demo-layout bg-purple" @click="goDetail(item)">
|
||||
@@ -89,7 +99,7 @@
|
||||
bookList: [],
|
||||
freeTotalPage:0,
|
||||
freeStatus:3, // 已购买图书状态
|
||||
contentShow: 0,
|
||||
contentShow: 1,
|
||||
page: 1, // 页码
|
||||
status: 3,
|
||||
ygtotalPage: 1,
|
||||
@@ -97,13 +107,13 @@
|
||||
tjTotalPage: 1,
|
||||
tjPageSize:9,
|
||||
tjBookLIst: [],
|
||||
contentButtonList: [{
|
||||
name: '已购图书'
|
||||
},
|
||||
{
|
||||
name: '推荐图书'
|
||||
}
|
||||
],
|
||||
// contentButtonList: [{
|
||||
// name: '已购图书'
|
||||
// },
|
||||
// {
|
||||
// name: '推荐图书'
|
||||
// }
|
||||
// ],
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -130,7 +140,7 @@
|
||||
this.loadingNow = true
|
||||
console.log('到底了')
|
||||
|
||||
if(this.contentShow == 0){
|
||||
if(this.contentShow == 1){
|
||||
//console.log(this.page , this.ygtotalPage)
|
||||
if(this.page+1 <= this.freeTotalPage){
|
||||
this.page++
|
||||
@@ -146,7 +156,7 @@
|
||||
|
||||
}
|
||||
|
||||
if (this.contentShow == 1) {
|
||||
if (this.contentShow == 2) {
|
||||
if (this.tjPage+1 <= this.tjTotalPage) {
|
||||
this.tjPage++
|
||||
console.log('加载', this.tjPage)
|
||||
@@ -167,6 +177,9 @@
|
||||
...mapState(['userInfo'])
|
||||
},
|
||||
methods: {
|
||||
setData(e) {
|
||||
this.contentShow = e
|
||||
},
|
||||
// 未购买图书,评书跳转
|
||||
wgGoPingshu(item) {
|
||||
console.log('未购买评书', item)
|
||||
@@ -316,7 +329,31 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '@/style/mixin.scss';
|
||||
.mytabs {
|
||||
// background: url('@/static/icon/bgtushu.png') no-repeat left top;
|
||||
height: 80rpx;
|
||||
// margin-bottom: 30rpx;
|
||||
|
||||
.item {
|
||||
border-radius: 10rpx;
|
||||
background-color: #c6ead0;
|
||||
width: 48%;
|
||||
// margin: 0 10rpx;
|
||||
text-align: center;
|
||||
color: #3c7f56;
|
||||
font-size: 36rpx;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
|
||||
.item.active {
|
||||
background-color: #3c7f56;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.item1 {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
.contentButton {
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="search_box flexbox" @click="onPageJump('../peanut/searchFor')">
|
||||
<view class="search">
|
||||
<text class="icon_search"></text>
|
||||
<text class="prompt">请输入想要搜索的书名</text>
|
||||
<text class="prompt">请输入书名</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="searBtn flexbox">
|
||||
@@ -150,8 +150,8 @@
|
||||
<image :src="item.image"></image>
|
||||
<view class="lt_title">{{item.bookName}}</view>
|
||||
<view class="lt_author">{{item.authorName}} [著]</view>
|
||||
<view class="lt_yuan">{{item.price}}疯币</view>
|
||||
<view class="lt_xian">{{item.salePrice}}疯币</view>
|
||||
<view class="lt_yuan">{{item.price}}天医币</view>
|
||||
<view class="lt_xian">{{item.salePrice}}天医币</view>
|
||||
<b v-if="item.isVip==1" style="background: #c79119;">VIP</b>
|
||||
<b v-if="item.isVip==2" style="background: #c74119;">付费</b>
|
||||
</view>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<view class="chong_list">
|
||||
<view>
|
||||
<b>{{userMes.peanutCoin}}</b>
|
||||
疯币
|
||||
天医币
|
||||
</view>
|
||||
<view>
|
||||
<b>{{userMes.conponsCount}}</b>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<view v-for="(item, index) in paylist" @click="choseType(item.id)" class="vf_xuanx">
|
||||
<image :src="item.img"></image>
|
||||
{{item.title}}
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}疯币可用</span>
|
||||
<span v-if="item.id == 4" style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}天医币可用</span>
|
||||
<span @click.stop="buPoint" style="color: #bf0c0c; margin-left: 10px;" v-if="item.id == 4" class="chongBtn">去充值</span>
|
||||
<u-radio :key="index" activeColor="#fe6e09" :name='item.id'
|
||||
style="float: right;margin-top: 5rpx;"></u-radio>
|
||||
@@ -135,7 +135,7 @@
|
||||
// img: '../../static/icon/pay_1.png'
|
||||
// },
|
||||
{
|
||||
title: '疯币充值',
|
||||
title: '天医币充值',
|
||||
id: 4,
|
||||
img: '../../static/icon/oder_chong.png'
|
||||
}
|
||||
@@ -192,13 +192,13 @@
|
||||
|
||||
if(this.stepsVc.money > this.userMes.peanutCoin){
|
||||
// uni.showToast({
|
||||
// title:'疯币不足,请充值',
|
||||
// title:'天医币不足,请充值',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '疯币不足',
|
||||
content: '天医币不足',
|
||||
confirmText:'去充值',
|
||||
showCancel:'知道了',
|
||||
success: function (res) {
|
||||
@@ -225,7 +225,7 @@
|
||||
return false
|
||||
}
|
||||
},
|
||||
// 充值疯币
|
||||
// 充值天医币
|
||||
buPoint() {
|
||||
uni.navigateTo({
|
||||
url: '../peanut/reCharge'
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<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_yl">{{item.money}} 天医币</view>
|
||||
<view class="pr_lj">限时特惠</view>
|
||||
</view>
|
||||
<br clear="both">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<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_yl">{{item.money}} 天医币</view>
|
||||
<view class="pr_lj">限时特惠</view>
|
||||
</view>
|
||||
<br clear="both">
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
<view class="selectAll">
|
||||
<checkbox :checked="all" @click="isSelectAll()" class="round checkedItem" />
|
||||
<text class="cartCho">全选</text>
|
||||
<text class="cartDel" v-if="isCartDelShow" @click="delCart()">删除</text>
|
||||
<!-- <text class="cartDel" >删除</text> -->
|
||||
<button class="mini-btn" style="border-radius: 40rpx; font-size: 30rpx; height: 56rpx; line-height: 56rpx; margin-left: 6rpx;" v-if="isCartDelShow" @click="delCart()" type="warn" size="mini">删除</button>
|
||||
</view>
|
||||
<view class="exhibition">
|
||||
<text class="total">合计: <b>¥{{totalPrice}}</b></text>
|
||||
@@ -208,7 +209,9 @@
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
}).then(res => {
|
||||
this.getCartList()
|
||||
this.isCartDelShow = false
|
||||
this.totalPrice = 0
|
||||
this.getCartList()
|
||||
uni.hideLoading()
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<view style="font-weight: bold;margin-bottom: 30rpx;">
|
||||
{{bookInfo.name}}
|
||||
</view>
|
||||
<view
|
||||
<view v-if="bookInfo.author != null"
|
||||
style="color: #9b9b9b;font-size: 28rpx;margin:20rpx 0 0 0;max-width: 400rpx;line-height: 38rpx;">
|
||||
<p @click="onAuCHJump(bookInfo.author.id,1)" style="margin-bottom: 20rpx;">
|
||||
{{bookInfo.author.authorName}} [著] >
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<view v-if="tab_muJian==0">
|
||||
<view class="AC_mes">
|
||||
<view style="font-size: 50rpx;font-weight: bold;">{{userMes.peanutCoin}}</view>
|
||||
<view style="color: #888;font-size: 30rpx;margin-top: 10rpx;">疯币</view>
|
||||
<view style="color: #888;font-size: 30rpx;margin-top: 10rpx;">天医币</view>
|
||||
<text class="AC_chong" @click="buPoint()">充值</text>
|
||||
</view>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<view>
|
||||
<text v-if="item.changeAmount>0">+</text>
|
||||
<text>{{item.changeAmount}}</text>
|
||||
疯币
|
||||
天医币
|
||||
</view>
|
||||
</view>
|
||||
<view class="AC_mark">{{item.remark}}</view>
|
||||
@@ -113,7 +113,7 @@
|
||||
return {
|
||||
playData:{},
|
||||
tab_list: [{
|
||||
name: '疯币',
|
||||
name: '天医币',
|
||||
}, {
|
||||
name: '优惠券',
|
||||
}],
|
||||
@@ -247,7 +247,7 @@
|
||||
|
||||
|
||||
|
||||
// 充值疯币
|
||||
// 充值天医币
|
||||
buPoint() {
|
||||
uni.navigateTo({
|
||||
url: '../peanut/reCharge'
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
import store from '@/store/index.js'
|
||||
import $http from '@/config/requestConfig.js';
|
||||
// #ifdef APP-PLUS
|
||||
const bgm = uni.getBackgroundAudioManager();
|
||||
// const bgm = {};
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
const bgm = {};
|
||||
// #endif
|
||||
// const bgm = uni.createInnerAudioContext();
|
||||
bgm.musicList = [] // 播放目录
|
||||
bgm.src = ''
|
||||
|
||||
Reference in New Issue
Block a user