diff --git a/pages.json b/pages.json index d137194..6a0f929 100644 --- a/pages.json +++ b/pages.json @@ -5,7 +5,7 @@ "style": { "navigationBar":"custom", "navigationBarTitleText":"", - "navigationBarBackgroundImage":"/static/style/bg.png" + "navigationStyle":"custom" } }, { diff --git a/pages/index/result.vue b/pages/index/result.vue index 9f53841..4518324 100644 --- a/pages/index/result.vue +++ b/pages/index/result.vue @@ -31,7 +31,7 @@ const show_ = ref(false) // 函数 function randomFunc() { - bg_index.value = parseInt((Math.random()*3)) + bg_index.value = parseInt((Math.random()*store.bgList.length)) uni.getImageInfo({ // src:bg_imgs.value[bg_index.value], src:bg_imgs.value[bg_index.value].url,