Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-04-13 18:24:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f56a5bb14ccfc9ce99a8d8a0ee28b7d2917130bc
f56a5bb1
1 parent
66ed2216
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
29 deletions
components.d.ts
src/components/ContactField/index.vue
components.d.ts
View file @
f56a5bb
...
...
@@ -31,6 +31,7 @@ declare module '@vue/runtime-core' {
NutCell
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Cell'
]
NutCheckbox
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Checkbox'
]
NutCheckboxGroup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'CheckboxGroup'
]
NutCol
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Col'
]
NutConfigProvider
:
typeof
import
(
'@nutui/nutui-taro'
)[
'ConfigProvider'
]
NutDatePicker
:
typeof
import
(
'@nutui/nutui-taro'
)[
'DatePicker'
]
NutDialog
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Dialog'
]
...
...
@@ -48,6 +49,7 @@ declare module '@vue/runtime-core' {
NutRadio
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Radio'
]
NutRadioGroup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'RadioGroup'
]
NutRate
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Rate'
]
NutRow
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Row'
]
NutSignature
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Signature'
]
NutSwiper
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Swiper'
]
NutSwiperItem
:
typeof
import
(
'@nutui/nutui-taro'
)[
'SwiperItem'
]
...
...
@@ -70,7 +72,3 @@ declare module '@vue/runtime-core' {
VideoField
:
typeof
import
(
'./src/components/VideoField/index.vue'
)[
'default'
]
}
}
ex
.
vue
')['
default
']
VideoField: typeof import('
.
/
src
/
components
/
VideoField
/
index
.
vue
')['
default
'
]
}
}
...
...
src/components/ContactField/index.vue
View file @
f56a5bb
<!--
* @Date: 2022-11-23 14:41:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-04-13 18:
19:36
* @LastEditTime: 2023-04-13 18:
24:01
* @FilePath: /custom_form/src/components/ContactField/index.vue
* @Description: 联系我们控件
-->
<template>
<div v-if="HideShow" class="contact-field-page">
<!-- <van-popover v-model:show="showPopover" placement="left">
<div class="contact-content">
<div class="text-tel">电话联系</div>
<div>
<a
:style="{ color: styleColor.baseColor }"
:href="`tel:${item.component_props.tel}`"
>
{{ item.component_props.tel }}
</a>
</div>
<div v-if="item.component_props.image_url">
<div class="text-qr_code">微信联系</div>
<van-image width="100" height="100" :src="item.component_props.image_url" />
</div>
</div>
<template #reference>
<div class="wrapper">
<van-icon name="phone-o" size="2rem" :color="styleColor.baseColor" />
</div>
</template>
</van-popover> -->
<div class="wrapper">
<Service size="25" :color="styleColor.baseColor" @click="onClick" />
<div class="triangle"></div>
...
...
@@ -75,7 +52,6 @@ const onClick = () => {
// 给每张图片添加查看事件
nextTick(() => {
var img = $('#qr_code');
console.warn(img);
$(img).on('longpress', function (e) {
Taro.previewImage({
// 需要预览的图片链接列表
...
...
Please
register
or
login
to post a comment