Commit 040ba831 by 宋冰琦

1

parent 5deb34a1
......@@ -16,7 +16,7 @@
<view class="user-name" v-if="userms">HI!{{ userInfo.customerName || '我是谁' }}</view>
<view class="user-name" v-else>未登录</view>
<view class="dialog">
<view class="content" v-if="userms">希望你今天,明天,天天都开心~</view>
<view class="content" v-if="userms">{{dayTitle}}</view>
<view class="content" v-if="!userms">请您尽快登录~</view>
</view>
</view>
......@@ -109,6 +109,16 @@ export default {
}
},
async onShow() {
const dayTitleList = [
'呼噜咖啡,用对待人生的态度,做一杯专业好咖啡~',
'随手一杯好咖啡,希望你今天,明天,天天都开心~',
'咖啡哪有打工苦,喝完这杯再上班~',
'今天不听大道理,只喝专业好咖啡~',
'来杯美式,少点破事~',
'用咖啡拯救疲惫的灵魂~',
'呼噜咖啡由37%的咖啡加63%的生活构成~'
]
this.dayTitle = dayTitleList[new Date().getDay()]
if(this.userInfo){
const {data} = await User.getCouponNum()
this.tickNum = data?.data||0
......@@ -122,7 +132,8 @@ export default {
return {
loginInfo:"",
img:'',
tickNum:0
tickNum:0,
dayTitle:''
}
},
computed: {
......
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