Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b820eab5
authored
Oct 24, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
a9a228d5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
api/env/index.js
packageMine/pages/questionnaire/questionnaire.js
packageMine/pages/questionnaire/questionnaire.json
packageMine/pages/questionnaire/questionnaire.scss
packageMine/pages/questionnaire/questionnaire.wxml
api/env/index.js
View file @
b820eab
import
{
preReleaseAppId
}
from
'~/config'
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
let
index
=
1
let
index
=
2
/**
/**
*
*
...
...
packageMine/pages/questionnaire/questionnaire.js
View file @
b820eab
...
@@ -38,7 +38,7 @@ Page({
...
@@ -38,7 +38,7 @@ Page({
if
(
data
.
status
==
-
1
)
{
if
(
data
.
status
==
-
1
)
{
return
wx
.
showModal
({
return
wx
.
showModal
({
title
:
'温馨提示'
,
title
:
'温馨提示'
,
content
:
'问卷已结束。'
,
content
:
'问卷
活动
已结束。'
,
showCancel
:
false
,
showCancel
:
false
,
confirmText
:
'返回首页'
,
confirmText
:
'返回首页'
,
confirmColor
:
'#3772EC'
,
confirmColor
:
'#3772EC'
,
...
...
packageMine/pages/questionnaire/questionnaire.json
View file @
b820eab
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"gl-radio"
:
"./components/Radio/Radio"
,
"gl-radio"
:
"./components/Radio/Radio"
,
"gl-checkbox"
:
"./components/Checkbox/Checkbox"
,
"gl-checkbox"
:
"./components/Checkbox/Checkbox"
,
"gl-select"
:
"./components/Select/Select"
,
"gl-select"
:
"./components/Select/Select"
,
"gl-cascader"
:
"./components/Cascader/Cascader"
,
"gl-cascader"
:
"./components/Cascader/Cascader"
,
"van-field"
:
"@vant/weapp/field/index"
,
"van-field"
:
"@vant/weapp/field/index"
,
"finish"
:
"./components/Finish/Finish"
"finish"
:
"./components/Finish/Finish"
,
"gl-textarea"
:
"/components/GlTextarea/GlTextarea"
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/questionnaire/questionnaire.scss
View file @
b820eab
...
@@ -99,4 +99,8 @@
...
@@ -99,4 +99,8 @@
padding
:
0
!
important
;
padding
:
0
!
important
;
height
:
100%
;
height
:
100%
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
}
.van-field__body--textarea
,
.van-field__control
{
height
:
100%
!
important
;
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/questionnaire/questionnaire.wxml
View file @
b820eab
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<gl-checkbox data="{{item.data}}" num="{{index}}" bindchange="change" />
<gl-checkbox data="{{item.data}}" num="{{index}}" bindchange="change" />
</block>
</block>
<block wx:elif="{{item.type == 3}}">
<block wx:elif="{{item.type == 3}}">
<
van-field type="textarea" autosize placeholder="请输入" border="{{ false }}" bindblur="blur" maxlength="{{item.maxLength}}" data-num="{{index}}" /
>
<
gl-textarea placeholder="请输入" maxlength="{{item.maxLength}}" data-num="{{index}}" bindblur="blur"></gl-textarea
>
</block>
</block>
<block wx:elif="{{item.type == 4}}">
<block wx:elif="{{item.type == 4}}">
<gl-select data="{{item.data}}" title="{{item.text}}" num="{{index}}" bindchange="change" />
<gl-select data="{{item.data}}" title="{{item.text}}" num="{{index}}" bindchange="change" />
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment