generated from duanshuwen/webapp-vue-frontend
feat: 隐藏导航
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
VITE_ENV = production
|
VITE_ENV = production
|
||||||
|
|
||||||
# vconsole开关控制器
|
# vconsole开关控制器
|
||||||
VITE_CONSOLE = 0
|
VITE_CONSOLE = 1
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_BASE_API = https://biz.nianxx.cn/hotelBiz
|
VITE_BASE_API = https://biz.nianxx.cn/hotelBiz
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container" :style="{ backgroundColor: bgColor }">
|
<div class="page-container" :style="{ backgroundColor: bgColor }">
|
||||||
<van-nav-bar class="nav-bar" safe-area-inset-top left-arrow :border="false" @click-left="handleBack">
|
<van-nav-bar v-if="showNavigator" class="nav-bar" safe-area-inset-top left-arrow :border="false"
|
||||||
|
@click-left="handleBack">
|
||||||
<template #title>
|
<template #title>
|
||||||
<slot name="title">{{ title === '首页' ? '' : metaTitle }}</slot>
|
<slot name="title">{{ title === '首页' ? '' : metaTitle }}</slot>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<Layout>
|
<Layout :show="false">
|
||||||
<template #title>{{ questionnaire.title }}</template>
|
<template #title>{{ questionnaire.title }}</template>
|
||||||
|
|
||||||
<van-form @submit="onSubmit">
|
<van-form @submit="onSubmit">
|
||||||
<van-cell-group :title="`${index + 1}. ${item.question}`" v-for="(item, index) in questionnaire.questions" :key="item.id">
|
<van-cell-group :title="`${index + 1}. ${item.question}`" v-for="(item, index) in questionnaire.questions"
|
||||||
|
:key="item.id">
|
||||||
<!-- 单选框 -->
|
<!-- 单选框 -->
|
||||||
<van-field v-if="item.type === 'radio'" name="radio">
|
<van-field v-if="item.type === 'radio'" name="radio">
|
||||||
<template #input>
|
<template #input>
|
||||||
@@ -19,7 +20,8 @@
|
|||||||
<van-field v-if="item.type === 'checkbox'" name="checkboxGroup">
|
<van-field v-if="item.type === 'checkbox'" name="checkboxGroup">
|
||||||
<template #input>
|
<template #input>
|
||||||
<van-checkbox-group v-model="item.answer" shape="square">
|
<van-checkbox-group v-model="item.answer" shape="square">
|
||||||
<van-checkbox v-for="(option, index) in item.options" :key="item.id + index" :name="option.id" class="mb-12">
|
<van-checkbox v-for="(option, index) in item.options" :key="item.id + index" :name="option.id"
|
||||||
|
class="mb-12">
|
||||||
{{ option.text }}
|
{{ option.text }}
|
||||||
</van-checkbox>
|
</van-checkbox>
|
||||||
</van-checkbox-group>
|
</van-checkbox-group>
|
||||||
@@ -30,7 +32,8 @@
|
|||||||
<van-field v-if="item.type === 'text'" v-model="item.answer" placeholder="请填写内容" />
|
<van-field v-if="item.type === 'text'" v-model="item.answer" placeholder="请填写内容" />
|
||||||
|
|
||||||
<!-- 文本域 -->
|
<!-- 文本域 -->
|
||||||
<van-field v-if="item.type === 'textarea'" type="textarea" v-model="item.answer" placeholder="请填写内容" maxlength="100" show-word-limit />
|
<van-field v-if="item.type === 'textarea'" type="textarea" v-model="item.answer" placeholder="请填写内容"
|
||||||
|
maxlength="100" show-word-limit />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
|
|
||||||
<div class="m-16">
|
<div class="m-16">
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
<van-icon name="success" color="#fff" size="70" />
|
<van-icon name="success" color="#fff" size="70" />
|
||||||
</div>
|
</div>
|
||||||
<div class="fz-26 mb-12">提交成功</div>
|
<div class="fz-26 mb-12">提交成功</div>
|
||||||
<div class="color-66 fz-14 line-height-21 mb-12 text-center mb-30">感谢您参与息烽南山天沐温泉的客户调研问卷, 您的宝贵意见将帮助我们不断提升服务质量, 请凭此截图于前台兑换精美礼品一份!</div>
|
<div class="color-66 fz-14 line-height-21 mb-12 text-center mb-30">感谢您参与息烽南山天沐温泉的客户调研问卷, 您的宝贵意见将帮助我们不断提升服务质量,
|
||||||
|
请凭此截图于前台兑换精美礼品一份!</div>
|
||||||
|
|
||||||
<van-button class="fz-14 w-200" round block type="primary" @click="handleClick"> 完成 </van-button>
|
<van-button class="fz-14 w-200" round block type="primary" @click="handleClick"> 完成 </van-button>
|
||||||
</section>
|
</section>
|
||||||
@@ -14,8 +15,8 @@
|
|||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
// 确保在wx.ready中调用
|
// 确保在wx.ready中调用
|
||||||
wx.ready(() => {
|
wx.ready(() => {
|
||||||
// 关闭当前H5页面
|
// 关闭当前webview页面
|
||||||
wx.miniProgram.navigateBack({})
|
wx.miniProgram.closeWebview({})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user