Commit aafab021 authored by 潘永坪's avatar 潘永坪

bug处理

parent eeca550a
......@@ -2,10 +2,15 @@
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"type": "uniCloud",
"default": {
"launchtype": "local"
}
"default" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}
......@@ -28,7 +28,7 @@
<view>
{{item.useStartDate}}-{{item.useEndDate}}
<text>
<text>¥</text>{{item.savedMoney.toFixed(2)}}
<text>¥</text>{{parseFloat(item.savedMoney.toFixed(2))}}
</text>
</view>
</label>
......@@ -51,7 +51,7 @@
<view>
{{item.couponRule}}
<text>
<text>¥</text>{{item.savedMoney.toFixed(2)}}
<text>¥</text>{{parseFloat(item.savedMoney.toFixed(2))}}
</text>
</view>
......
......@@ -50,7 +50,7 @@
let enterOptions=uni.getStorageSync("enterOptions")
if(token){
uni.redirectTo({
url:"/"+enterOptions.path+"?"+encodeURIComponent(JSON.parse(enterOptions.query))
url:"/"+enterOptions.path+"?"
})
// uni.navigateBack({
// delta:1
......
......@@ -271,7 +271,7 @@
},
couponChoose(data) { //---------------------------------------------------------------子组件券选择之后触发的事件
this.chooseCouponObj = data
if(this.chooseCouponObj.slaveList.length>0){
if(this.chooseCouponObj.slaveList&&this.chooseCouponObj.slaveList.length>0){
this.savedMoney=this.chooseCouponObj.slaveList[0].savedMoney
}else{
this.savedMoney=this.chooseCouponObj.savedMoney
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment