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

bug处理

parent eeca550a
...@@ -2,10 +2,15 @@ ...@@ -2,10 +2,15 @@
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0", "version": "0.0",
"configurations": [{ "configurations": [{
"type": "uniCloud", "default" :
"default": { {
"launchtype": "local" "launchtype" : "local"
} },
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
} }
] ]
} }
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<view> <view>
{{item.useStartDate}}-{{item.useEndDate}} {{item.useStartDate}}-{{item.useEndDate}}
<text> <text>
<text>¥</text>{{item.savedMoney.toFixed(2)}} <text>¥</text>{{parseFloat(item.savedMoney.toFixed(2))}}
</text> </text>
</view> </view>
</label> </label>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<view> <view>
{{item.couponRule}} {{item.couponRule}}
<text> <text>
<text>¥</text>{{item.savedMoney.toFixed(2)}} <text>¥</text>{{parseFloat(item.savedMoney.toFixed(2))}}
</text> </text>
</view> </view>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
let enterOptions=uni.getStorageSync("enterOptions") let enterOptions=uni.getStorageSync("enterOptions")
if(token){ if(token){
uni.redirectTo({ uni.redirectTo({
url:"/"+enterOptions.path+"?"+encodeURIComponent(JSON.parse(enterOptions.query)) url:"/"+enterOptions.path+"?"
}) })
// uni.navigateBack({ // uni.navigateBack({
// delta:1 // delta:1
......
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
}, },
couponChoose(data) { //---------------------------------------------------------------子组件券选择之后触发的事件 couponChoose(data) { //---------------------------------------------------------------子组件券选择之后触发的事件
this.chooseCouponObj = 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 this.savedMoney=this.chooseCouponObj.slaveList[0].savedMoney
}else{ }else{
this.savedMoney=this.chooseCouponObj.savedMoney 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