Commit 2b6dc7b2 authored by gaodapeng's avatar gaodapeng

修改首页UI

parent 4beee349
......@@ -6,8 +6,8 @@
<text style="position:absolute;font-size:19rpx;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:rgba(0,0,0,0.85);line-height:22rpx;left:55rpx;top:19rpx;">{{storeName}}</text>
</view>
<view style="position:absolute;font-size:22rpx;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(51,51,51,1);line-height:22rpx;left:0rpx;top:19rpx;width:100%;text-align:center;">首页</view>
<view style="display:flex;flex-direction:row-reverse;position:absolute;right:19rpx;top:19rpx;">
<view style="font-size:19rpx;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:rgba(51,51,51,1);line-height:22rpx;">退出</view>
<view style="display:flex;flex-direction:row-reverse;position:absolute;right:19rpx;top:19rpx;width:auto;background:#ffffff;">
<view style="font-size:19rpx;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:rgba(51,51,51,1);line-height:22rpx;margin-right:19rpx;">退出</view>
<image mode="aspectFit" src="/images/icon_exit.png" style="position:relative;width:19rpx;height:19rpx;margin-right:8rpx;margin-top:1rpx;"/>
</view>
......
......@@ -113,24 +113,22 @@ Page({
totalDisc: viewGoodsInfo.totalDisc,
})
}
} else if (res.action == ACTION) {
} else if (res.action == ACTION_GO_SCAN) {
//跳转到
this.goPage("landscan");
context.goPage("landscan");
} else if(res.action == ACTION_GO_BALANCE){
//跳转
this.goPage("waitoperate")
context.goPage("waitoperate")
} else if (res.action == ACTION_ON_PAY_SUCCESS) {
setData({
isPaySuccess: true
})
this.goPage("payresult");
context.goPage("payresult");
} else if (res.action == ACTION_ON_PAY_FAILED) {
setData({
isPaySuccess: false
})
this.goPage("payresult");
context.goPage("payresult");
} else {
//未知指令
}
......
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