疯币改天医疗币
引导页文字修改 配置文件请求地址修改 订单列表页面样式修改
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user