diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index d65fd99b..65b8e9bf 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -15,3 +15,4 @@ ] } + \ No newline at end of file diff --git a/src/pages/facial/index.vue b/src/pages/facial/index.vue index b52f7502..dcb91098 100644 --- a/src/pages/facial/index.vue +++ b/src/pages/facial/index.vue @@ -56,10 +56,14 @@ const submit=async ()=>{ realName:idInfo.value.name }) if (res.code===200){ - msg.value.show({ model: 'success' }) - /* await uni.showToast({title: '实名成功', icon: 'none', duration: 2000})*/ - await getUserInfo() - await uni.navigateBack() + uni.showToast({ + title: '实名成功', + icon: 'none', + duration: 1000 + }) + getUserInfo() + uni.navigateBack() + } } const idInfo=ref({ diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index b5c45ed2..d87eb64e 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -5,7 +5,7 @@
博物馆开馆纪念盲盒
-
剩余 23/20000
+
剩余 {{allRemainingQty}}/{{allIssueQty}}
查看详情
@@ -52,6 +52,8 @@ const viewImg=(item)=>{ indicator:'none' }) } +const allIssueQty=ref(0) +const allRemainingQty=ref(0) const getData=async ()=>{ const data={ "keyword": "", @@ -61,6 +63,8 @@ const getData=async ()=>{ } const res=await ticketlist(data) if (res.code===200){ + allIssueQty.value=res.data.allIssueQty + allRemainingQty.value=res.data.allRemainingQty tableData.value=res.data.data } } diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index ff916612..1a7989a5 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -19,7 +19,7 @@ onLoad((option)=>{ } }) const accTitleList=[{title:'首都博物馆东馆',value:0},{title:'智慧门票',value:1}] -const acc=ref(1) +const acc=ref(0)