This commit is contained in:
2019-12-18 18:10:15 +08:00
parent ed38614c2c
commit 3166463ac4
16 changed files with 166 additions and 21 deletions

View File

@@ -5,14 +5,17 @@ Page({
* 页面的初始数据
*/
data: {
openid:"",
username:"啦啦啦"
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.setData({
openid:wx.getStorageSync("openid")
})
},
toorder() {
wx.navigateTo({

View File

@@ -2,7 +2,7 @@
<view class="card">
<view class="user">
<image class="head"></image>
<text>于于于宇于</text>
<text bind:tap="login">{{openid == ""?'点击登录':username}}</text>
</view>
<view class="balance">
<text>账户余额</text>