疯币改天医疗币

引导页文字修改
配置文件请求地址修改
订单列表页面样式修改
This commit is contained in:
@fawn-nine
2023-10-09 11:12:05 +08:00
parent 626c85008e
commit d4fdb37a84
18 changed files with 151 additions and 88 deletions

View File

@@ -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"