小程序
小游戏
企业微信
微信支付
扫描小程序码分享
开发工具是最新版本
我的微信也是最新版本
线上基础库版本已经是1.6.4
求助,谢谢!
小程序码 ( appid:wx9c2d79dd9db7a2d9 )
14 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
js文件
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<!-- btn -->
<
view
wx:if
=
"{{item.name == 'btn'}}"
class
"page_btn"
style
"background:{{item.params.mbg}};padding:{{item.params.padding}}px"
>
button
hover-class
"none"
"click_button"
open-type
"{{ item.params.type == 'kefu' ? 'contact' : (item.params.type == 'share' ? 'share':'') }}"
catchtap
"{{ item.params.type == 'tel' ? 'callphone' : (item.params.type == 'map' ? 'location' : (item.params.type == 'other' ? 'otherapp' : (item.params.type == 'url' || !item.params.type ? 'navigateto' : (item.params.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
data-appid
"{{item.params.appid}}"
data-appurl
"{{item.params.appurl}}"
data-tel
"{{item.params.tel}}"
data-lat
"{{item.params.lat}}"
data-lng
"{{item.params.lng}}"
data-url
"{{item.params.url}}"
data-weburl
"{{item.params.weburl}}"
"background:{{item.params.bgcolor}}!important;color:{{item.params.color}}!important;font-size:{{item.params.size}}px!important;height:{{item.params.height}}px!important;line-height:{{item.params.height}}px!important;width:{{item.params.width}}%!important;border-radius:{{item.params.radius}}px!important"
{{item.params.text}}
</
<!-- fix -->
"{{item.name == 'fix'}}"
"page_fix"
"background:{{item.params.mbg}};padding:{{item.params.padding}}px;top:{{item.params.top}}%;right:{{item.params.right}}%"
navigator
"{{item.params.type == 'url'}}"
url
"navigate"
image
"width:{{item.params.width}}px;height:{{item.params.height}}px"
src
"{{item.params.img}}"
></
wx:else
"{{ item.params.type == 'tel' ? 'callphone' : (item.params.type == 'map' ? 'location' : (item.params.type == 'other' ? 'otherapp' : (item.params.type == 'weburl' ? 'toweburl' : '' ) ) ) }}"
"width: {{item.params.width}}px;height: {{item.params.height}}px;"
<!-- article -->
"{{item.name == 'article'}}"
"page_article"
"background:{{item.params.bgcolor}};padding:{{item.params.paddingv}}px {{item.params.paddings}}px;"
"{{item.params.title}}"
"temp_article_head"
"font-size:{{item.params.topsize}}px;color:{{item.params.topcolor}}"
{{item.params.title}}
"temp_article_list"
"article_list_item item_cell_box"
wx:for
"{{item.artlist}}"
wx:for-item
"r"
"{{r.url}}"
"article_list_l"
mode
"widthFix"
"{{r.img}}"
"item_cell_flex article_list_r"
"article_list_title"
"color:{{item.params.titlecolor}}"
>{{r.title}}</
"item_cell_box article_list_time"
"color:{{item.params.timecolor}}"
""
>{{r.time}}</
"item_cell_flex tr icon_r"
"temp_article_bot"
"{{item.params.botfont}}"
"/zofui_sitetemp/pages/artlist/artlist"
"temp_article_more"
"border:1px solid {{item.params.botbord}};color:{{item.params.botcolor}}"
{{item.params.botfont}}
web-view
"{{item.name == 'webview'}}"
include
"/zofui_sitetemp/pages/common/copyright.wxml"
/>
"/zofui_sitetemp/pages/common/footer.wxml"
接楼上。
这样看得出来哪里错吗?
"{{item.name == 'form'}}"
"page_form"
"background:{{item.params.bgcolor}};padding:{{item.params.padding}}px"
form
bindsubmit
"formSubmit"
"{{item.params.data}}"
"page_form_item"
"v"
"app_form_item"
"{{v.type == 'input'}}"
"{{v.name}}"
>{{v.name}}</
"show_form_r"
input
type
"text"
"show_form_input"
placeholder
"{{v.pla}}"
name
"{{v.type == 'text'}}"
textarea
"show_form_text"
"app_form_item item_cell_box"
"{{v.type == 'time'}}"
"show_form_l"
"show_form_r border_bot"
picker
"date"
"font_999"
value
start
"1990-01-01"
end
"2155-01-01"
data-i
"{{item.id}}"
data-n
"{{v.id}}"
bindchange
"bindDateChange"
{{v.time ? v.time : (v.pla ? v.pla : '选择日期')}}
"{{v.type == 'times'}}"
"time"
"bindTimeChange"
{{v.time ? v.time : (v.pla ? v.pla : '选择时间')}}
"{{v.type == 'city'}}"
"region"
"bindRegionChange"
{{v.region ? v.region[0] + ',' + v.region[1] + ',' + v.region[2]: (v.pla ? v.pla : '选择城市')}}
"{{v.type == 'radio'}}"
radio-group
"radio-group item_cell_box form_radio_box"
label
"radio item_cell_box alenter alenter_radio"
"{{v.data}}"
"vv"
radio
"radio_item"
"{{vv.name}}"
/><
"show_form_inname"
>{{vv.name}} </
"{{v.type == 'checkbox'}}"
checkbox-group
"item_cell_box form_radio_box"
"checkbox item_cell_box alenter alenter_radio"
checkbox
"display: none;"
"zofui_sitetemp_fid"
"app_form_submit"
formType
"submit"
data-id
"1"
"background:{{item.params.btnbg}};color:{{item.params.btncolor}}"
>提交</
<!-- news -->
"{{item.name == 'newstitle'}}"
"page_news"
"temp_news_title"
"font-size:{{item.params.size}}px;color:{{item.params.color}}"
{{item.params.content}}
"temp_news_time"
"color:{{item.params.color2}}"
text
"{{item.params.author}}"
"margin-right: 10px;"
>{{item.params.author}}</
>{{item.params.time}}</
<!-- vedio -->
"{{item.name == 'video'}}"
"page_video"
"section tc"
video
"{{item.params.type == 1}}"
poster
"{{item.params.thumb}}"
objectFit
"fill"
autoplay
"{{item.params.isauto == 0 ? true : false}}"
controls></
"{{item.params.type == 0}}"
"display:{{item.params.upurl ? 'block' : 'none'}}"
"{{item.params.upurl}}"
"{{item.params.type == 0 && !item.params.upurl}}"
"page_video_wait"
>视频加载中</
接楼上
"page"
"{{page.data}}"
"item"
<!-- 轮播 -->
"{{item.name == 'slide'}}"
"page_slide"
swiper
indicator-dots
"{{item.params.showpoint == 0}}"
indicator-color
"{{item.params.pointcolor}}"
indicator-active-color
"{{item.params.actcolor}}"
"{{item.params.ischange == 0}}"
interval
"{{item.params.changetime*1000}}"
duration
"{{item.params.changelast}}"
data-no
"height:{{item.params.data[item.params.current].height}}px;"
block
"img"
swiper-item
"{{ img.type == 'kefu' ? 'contact' : (img.type == 'share' ? 'share':'') }}"
"{{ img.type == 'tel' ? 'callphone' : (img.type == 'map' ? 'location' : (img.type == 'other' ? 'otherapp' : (img.type == 'url' || !img.type ? 'navigateto' : (img.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
"{{img.appid}}"
"{{img.appurl}}"
"{{img.tel}}"
"{{img.lat}}"
"{{img.lng}}"
"{{img.url}}"
"{{img.weburl}}"
"{{img.img}}"
"slide-image"
bindload
"imageLoad"
data-inno
"{{img.id}}"
"height:{{img.height}}px;"
<!-- 导航 -->
"{{item.name == 'nav'}}"
"page_nav"
"background:{{item.params.bgcolor}}"
"item_cell_box"
"width: {{100/item.params.num}}%"
"nav"
wx:for-index
"idx"
"{{ !(idx == 4 && item.params.num == 4) }}"
"{{ nav.type == 'kefu' ? 'contact' : (nav.type == 'share' ? 'share':'') }}"
"{{ nav.type == 'tel' ? 'callphone' : (nav.type == 'map' ? 'location' : (nav.type == 'other' ? 'otherapp' : (nav.type == 'url' || !nav.type ? 'navigateto' : (nav.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
"{{nav.appid}}"
"{{nav.appurl}}"
"{{nav.tel}}"
"{{nav.lat}}"
"{{nav.lng}}"
"{{nav.url}}"
"{{nav.weburl}}"
"page_nav_item"
"padding: {{item.params.padding}}px"
"{{nav.img}}"
"page_nav_img"
"{{nav.id}}"
"border-radius: {{item.params.radius}}px"
"page_nav_title"
"color: {{item.params.fontcolor}}"
>{{nav.title}}</
<!-- 图片 -->
"{{item.name == 'image'}}"
"page_image"
"width: {{ (item.params.type == 1 ? 100 : (item.params.type == 2 ? 50 : 33.3)) }}%"
"page_image_item"
"page_image_img"
"page_image_title"
"color: {{item.params.fontcolor}};font-size: {{item.params.fontsize}}px"
<!-- 卡片 -->
"{{item.name == 'card'}}"
"page_card"
"temp_card_top"
"{{item.params.ishead == 1}}"
"font-size:{{item.params.headsize}}px;color:{{item.params.headcolor}};text-align:{{item.params.headalign}}"
{{item.params.headcontent}}
"temp_card_content"
"font-size:{{item.params.fontsize}}px"
"temp_card_bot"
"{{item.params.isbot == 1}}"
"font-size:{{item.params.botsize}}px;color:{{item.params.botcolor}};text-align:{{item.params.botalign}}"
{{item.params.botcontent}}
"{{item.name == 'space'}}"
"page_space"
"height:{{item.params.height}}px;background:{{item.params.bgcolor}}"
"{{item.name == 'text'}}"
"page_text"
"padding:{{item.params.padding}}px;margin:{{item.params.margin}}px;background:{{item.params.bgcolor}}"
import
"/zofui_sitetemp/resource/wxParse/wxParse.wxml"
template
is
"wxParse"
data
"{{wxParseData:item.params.node.nodes}}"
<!-- list -->
"{{item.name == 'list'}}"
"page_list"
"page_list_item"
"in"
"{{ in.type == 'kefu' ? 'contact' : (in.type == 'share' ? 'share':'') }}"
"{{ in.type == 'tel' ? 'callphone' : (in.type == 'map' ? 'location' : (in.type == 'other' ? 'otherapp' : (in.type == 'url' || !in.type ? 'navigateto' : (in.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
"{{in.appid}}"
"{{in.appurl}}"
"{{in.tel}}"
"{{in.lat}}"
"{{in.lng}}"
"{{in.url}}"
"{{in.weburl}}"
"item_cell_box alenter"
"list_img"
"{{in.img}}"
"page_list_img"
"{{in.id}}"
"item_cell_flex list_r"
"list_title"
"color:{{item.params.color}};font-size:{{item.params.titlesize}}px"
{{in.title}}
"list_desc"
"color:{{item.params.color}};font-size:{{item.params.descsize}}px"
{{in.desc}}
<!-- title -->
"{{item.name == 'title'}}"
"page_title"
"background:{{item.params.bgcolor}};padding:{{item.params.paddingv}}px {{item.params.paddingh}}px"
"title_img"
"{{item.params.lefticon == 1}}"
"{{item.params.leftimg}}"
"width:{{item.params.lwidth}}px"
"page_title_img"
"item_cell_flex"
"text-align:{{item.params.pos}};font-size: {{item.params.size}}px;color: {{item.params.color}}"
"{{item.params.righticon == 1}}"
"{{item.params.rightimg}}"
"width:{{item.params.rwidth}}px"
是这个吗? page.wxml
你页面onload里面有个接口调用成功后的回调有问题
应该是你调用接口成功后的问题
报这么多错。
-0-你微信 是x5内核的吗
传了图片能看到吗
微信右上角三个点 打开后 里面有个 调试,然后你查看下 请求
正在加载...
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
js文件
<!-- btn -->
<
view
wx:if
=
"{{item.name == 'btn'}}"
class
=
"page_btn"
style
=
"background:{{item.params.mbg}};padding:{{item.params.padding}}px"
>
<
button
hover-class
=
"none"
class
=
"click_button"
open-type
=
"{{ item.params.type == 'kefu' ? 'contact' : (item.params.type == 'share' ? 'share':'') }}"
catchtap
=
"{{ item.params.type == 'tel' ? 'callphone' : (item.params.type == 'map' ? 'location' : (item.params.type == 'other' ? 'otherapp' : (item.params.type == 'url' || !item.params.type ? 'navigateto' : (item.params.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
data-appid
=
"{{item.params.appid}}"
data-appurl
=
"{{item.params.appurl}}"
data-tel
=
"{{item.params.tel}}"
data-lat
=
"{{item.params.lat}}"
data-lng
=
"{{item.params.lng}}"
data-url
=
"{{item.params.url}}"
data-weburl
=
"{{item.params.weburl}}"
style
=
"background:{{item.params.bgcolor}}!important;color:{{item.params.color}}!important;font-size:{{item.params.size}}px!important;height:{{item.params.height}}px!important;line-height:{{item.params.height}}px!important;width:{{item.params.width}}%!important;border-radius:{{item.params.radius}}px!important"
>
{{item.params.text}}
</
button
>
</
view
>
<!-- fix -->
<
view
wx:if
=
"{{item.name == 'fix'}}"
class
=
"page_fix"
style
=
"background:{{item.params.mbg}};padding:{{item.params.padding}}px;top:{{item.params.top}}%;right:{{item.params.right}}%"
>
<
navigator
hover-class
=
"none"
wx:if
=
"{{item.params.type == 'url'}}"
url
=
"{{item.params.url}}"
open-type
=
"navigate"
>
<
image
style
=
"width:{{item.params.width}}px;height:{{item.params.height}}px"
src
=
"{{item.params.img}}"
></
image
>
</
navigator
>
<
button
wx:else
open-type
=
"{{ item.params.type == 'kefu' ? 'contact' : (item.params.type == 'share' ? 'share':'') }}"
catchtap
=
"{{ item.params.type == 'tel' ? 'callphone' : (item.params.type == 'map' ? 'location' : (item.params.type == 'other' ? 'otherapp' : (item.params.type == 'weburl' ? 'toweburl' : '' ) ) ) }}"
data-appid
=
"{{item.params.appid}}"
data-appurl
=
"{{item.params.appurl}}"
data-tel
=
"{{item.params.tel}}"
data-lat
=
"{{item.params.lat}}"
data-lng
=
"{{item.params.lng}}"
data-weburl
=
"{{item.params.weburl}}"
>
<
image
style
=
"width: {{item.params.width}}px;height: {{item.params.height}}px;"
src
=
"{{item.params.img}}"
></
image
>
</
button
>
</
view
>
<!-- article -->
<
view
wx:if
=
"{{item.name == 'article'}}"
class
=
"page_article"
style
=
"background:{{item.params.bgcolor}};padding:{{item.params.paddingv}}px {{item.params.paddings}}px;"
>
<
view
wx:if
=
"{{item.params.title}}"
class
=
"temp_article_head"
style
=
"font-size:{{item.params.topsize}}px;color:{{item.params.topcolor}}"
>
{{item.params.title}}
</
view
>
<
view
class
=
"temp_article_list"
>
<
navigator
hover-class
=
"none"
class
=
"article_list_item item_cell_box"
wx:for
=
"{{item.artlist}}"
wx:for-item
=
"r"
url
=
"{{r.url}}"
>
<
view
class
=
"article_list_l"
>
<
image
mode
=
"widthFix"
src
=
"{{r.img}}"
></
image
>
</
view
>
<
view
class
=
"item_cell_flex article_list_r"
>
<
view
class
=
"article_list_title"
style
=
"color:{{item.params.titlecolor}}"
>{{r.title}}</
view
>
<
view
class
=
"item_cell_box article_list_time"
style
=
"color:{{item.params.timecolor}}"
>
<
view
class
=
""
>{{r.time}}</
view
>
<
view
class
=
"item_cell_flex tr icon_r"
></
view
>
</
view
>
</
view
>
</
navigator
>
</
view
>
<
view
class
=
"temp_article_bot"
wx:if
=
"{{item.params.botfont}}"
>
<
navigator
url
=
"/zofui_sitetemp/pages/artlist/artlist"
hover-class
=
"none"
class
=
"temp_article_more"
style
=
"border:1px solid {{item.params.botbord}};color:{{item.params.botcolor}}"
>
{{item.params.botfont}}
</
navigator
>
</
view
>
</
view
>
<
web-view
wx:if
=
"{{item.name == 'webview'}}"
src
=
"{{item.params.url}}"
></
web-view
>
</
view
>
<
include
src
=
"/zofui_sitetemp/pages/common/copyright.wxml"
/>
</
view
>
<
include
src
=
"/zofui_sitetemp/pages/common/footer.wxml"
/>
接楼上。
这样看得出来哪里错吗?
<
view
wx:if
=
"{{item.name == 'form'}}"
class
=
"page_form"
style
=
"background:{{item.params.bgcolor}};padding:{{item.params.padding}}px"
>
<
form
bindsubmit
=
"formSubmit"
>
<
view
wx:for
=
"{{item.params.data}}"
class
=
"page_form_item"
wx:for-item
=
"v"
>
<
view
class
=
"app_form_item"
wx:if
=
"{{v.type == 'input'}}"
>
<
view
class
=
""
wx:if
=
"{{v.name}}"
>{{v.name}}</
view
>
<
view
class
=
"show_form_r"
>
<
input
type
=
"text"
class
=
"show_form_input"
placeholder
=
"{{v.pla}}"
name
=
"{{v.name}}"
/>
</
view
>
</
view
>
<
view
class
=
"app_form_item"
wx:if
=
"{{v.type == 'text'}}"
>
<
view
class
=
""
wx:if
=
"{{v.name}}"
>{{v.name}}</
view
>
<
view
class
=
"show_form_r"
>
<
textarea
class
=
"show_form_text"
placeholder
=
"{{v.pla}}"
name
=
"{{v.name}}"
></
textarea
>
</
view
>
</
view
>
<
view
class
=
"app_form_item item_cell_box"
wx:if
=
"{{v.type == 'time'}}"
>
<
view
class
=
"show_form_l"
wx:if
=
"{{v.name}}"
>{{v.name}}</
view
>
<
view
class
=
"show_form_r border_bot"
>
<
picker
mode
=
"date"
class
=
"font_999"
value
=
""
name
=
"{{v.name}}"
start
=
"1990-01-01"
end
=
"2155-01-01"
data-i
=
"{{item.id}}"
data-n
=
"{{v.id}}"
bindchange
=
"bindDateChange"
>
{{v.time ? v.time : (v.pla ? v.pla : '选择日期')}}
</
picker
>
</
view
>
</
view
>
<
view
class
=
"app_form_item item_cell_box"
wx:if
=
"{{v.type == 'times'}}"
>
<
view
class
=
"show_form_l"
wx:if
=
"{{v.name}}"
>{{v.name}}</
view
>
<
view
class
=
"show_form_r border_bot"
>
<
picker
mode
=
"time"
class
=
"font_999"
value
=
""
name
=
"{{v.name}}"
data-i
=
"{{item.id}}"
data-n
=
"{{v.id}}"
bindchange
=
"bindTimeChange"
>
{{v.time ? v.time : (v.pla ? v.pla : '选择时间')}}
</
picker
>
</
view
>
</
view
>
<
view
class
=
"app_form_item item_cell_box"
wx:if
=
"{{v.type == 'city'}}"
>
<
view
class
=
"show_form_l"
wx:if
=
"{{v.name}}"
>{{v.name}}</
view
>
<
view
class
=
"show_form_r border_bot"
>
<
picker
mode
=
"region"
class
=
"font_999"
name
=
"{{v.name}}"
bindchange
=
"bindRegionChange"
data-i
=
"{{item.id}}"
data-n
=
"{{v.id}}"
value
=
""
>
{{v.region ? v.region[0] + ',' + v.region[1] + ',' + v.region[2]: (v.pla ? v.pla : '选择城市')}}
</
picker
>
</
view
>
</
view
>
<
view
class
=
"app_form_item"
wx:if
=
"{{v.type == 'radio'}}"
>
<
view
class
=
""
wx:if
=
"{{v.name}}"
>{{v.name}}</
view
>
<
view
class
=
"show_form_r"
>
<
radio-group
class
=
"radio-group item_cell_box form_radio_box"
name
=
"{{v.name}}"
>
<
label
class
=
"radio item_cell_box alenter alenter_radio"
wx:for
=
"{{v.data}}"
wx:for-item
=
"vv"
>
<
radio
class
=
"radio_item"
value
=
"{{vv.name}}"
/><
view
class
=
"show_form_inname"
>{{vv.name}} </
view
>
</
label
>
</
radio-group
>
</
view
>
</
view
>
<
view
class
=
"app_form_item"
wx:if
=
"{{v.type == 'checkbox'}}"
>
<
view
class
=
""
wx:if
=
"{{v.name}}"
>{{v.name}}</
view
>
<
view
class
=
"show_form_r"
>
<
checkbox-group
class
=
"item_cell_box form_radio_box"
name
=
"{{v.name}}"
>
<
label
class
=
"checkbox item_cell_box alenter alenter_radio"
wx:for
=
"{{v.data}}"
wx:for-item
=
"vv"
>
<
checkbox
class
=
"radio_item"
value
=
"{{vv.name}}"
/><
view
class
=
"show_form_inname"
>{{vv.name}} </
view
>
</
label
>
</
checkbox-group
>
</
view
>
</
view
>
</
view
>
<
input
type
=
"text"
style
=
"display: none;"
name
=
"zofui_sitetemp_fid"
value
=
"{{item.id}}"
/>
<
button
class
=
"app_form_submit"
formType
=
"submit"
data-id
=
"1"
style
=
"background:{{item.params.btnbg}};color:{{item.params.btncolor}}"
>提交</
button
>
</
form
>
</
view
>
<!-- news -->
<
view
wx:if
=
"{{item.name == 'newstitle'}}"
class
=
"page_news"
style
=
"background:{{item.params.bgcolor}};padding:{{item.params.padding}}px"
>
<
view
class
=
"temp_news_title"
style
=
"font-size:{{item.params.size}}px;color:{{item.params.color}}"
>
{{item.params.content}}
</
view
>
<
view
class
=
"temp_news_time"
style
=
"color:{{item.params.color2}}"
>
<
text
wx:if
=
"{{item.params.author}}"
style
=
"margin-right: 10px;"
>{{item.params.author}}</
text
>
<
text
>{{item.params.time}}</
text
>
</
view
>
</
view
>
<!-- vedio -->
<
view
wx:if
=
"{{item.name == 'video'}}"
class
=
"page_video"
style
=
"background:{{item.params.bgcolor}};padding:{{item.params.padding}}px"
>
<
view
class
=
"section tc"
>
<
video
wx:if
=
"{{item.params.type == 1}}"
poster
=
"{{item.params.thumb}}"
objectFit
=
"fill"
autoplay
=
"{{item.params.isauto == 0 ? true : false}}"
src
=
"{{item.params.url}}"
controls></
video
>
<
video
wx:if
=
"{{item.params.type == 0}}"
poster
=
"{{item.params.thumb}}"
style
=
"display:{{item.params.upurl ? 'block' : 'none'}}"
objectFit
=
"fill"
autoplay
=
"{{item.params.isauto == 0 ? true : false}}"
src
=
"{{item.params.upurl}}"
controls></
video
>
<
view
wx:if
=
"{{item.params.type == 0 && !item.params.upurl}}"
class
=
"page_video_wait"
>视频加载中</
view
>
</
view
>
</
view
>
接楼上
<
view
class
=
"page"
>
<
view
wx:for
=
"{{page.data}}"
wx:for-item
=
"item"
>
<!-- 轮播 -->
<
view
wx:if
=
"{{item.name == 'slide'}}"
class
=
"page_slide"
>
<
swiper
indicator-dots
=
"{{item.params.showpoint == 0}}"
indicator-color
=
"{{item.params.pointcolor}}"
indicator-active-color
=
"{{item.params.actcolor}}"
autoplay
=
"{{item.params.ischange == 0}}"
interval
=
"{{item.params.changetime*1000}}"
duration
=
"{{item.params.changelast}}"
data-no
=
"{{item.id}}"
style
=
"height:{{item.params.data[item.params.current].height}}px;"
>
<
block
wx:for
=
"{{item.params.data}}"
wx:for-item
=
"img"
>
<
swiper-item
>
<
button
class
=
"click_button"
open-type
=
"{{ img.type == 'kefu' ? 'contact' : (img.type == 'share' ? 'share':'') }}"
catchtap
=
"{{ img.type == 'tel' ? 'callphone' : (img.type == 'map' ? 'location' : (img.type == 'other' ? 'otherapp' : (img.type == 'url' || !img.type ? 'navigateto' : (img.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
data-appid
=
"{{img.appid}}"
data-appurl
=
"{{img.appurl}}"
data-tel
=
"{{img.tel}}"
data-lat
=
"{{img.lat}}"
data-lng
=
"{{img.lng}}"
data-url
=
"{{img.url}}"
data-weburl
=
"{{img.weburl}}"
>
<
image
src
=
"{{img.img}}"
class
=
"slide-image"
bindload
=
"imageLoad"
mode
=
"widthFix"
data-no
=
"{{item.id}}"
data-inno
=
"{{img.id}}"
style
=
"height:{{img.height}}px;"
/>
</
button
>
</
swiper-item
>
</
block
>
</
swiper
>
</
view
>
<!-- 导航 -->
<
view
wx:if
=
"{{item.name == 'nav'}}"
class
=
"page_nav"
style
=
"background:{{item.params.bgcolor}}"
>
<
view
class
=
"item_cell_box"
>
<
view
wx:for
=
"{{item.params.data}}"
style
=
"width: {{100/item.params.num}}%"
wx:for-item
=
"nav"
wx:for-index
=
"idx"
wx:if
=
"{{ !(idx == 4 && item.params.num == 4) }}"
>
<
button
class
=
"click_button"
open-type
=
"{{ nav.type == 'kefu' ? 'contact' : (nav.type == 'share' ? 'share':'') }}"
catchtap
=
"{{ nav.type == 'tel' ? 'callphone' : (nav.type == 'map' ? 'location' : (nav.type == 'other' ? 'otherapp' : (nav.type == 'url' || !nav.type ? 'navigateto' : (nav.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
data-appid
=
"{{nav.appid}}"
data-appurl
=
"{{nav.appurl}}"
data-tel
=
"{{nav.tel}}"
data-lat
=
"{{nav.lat}}"
data-lng
=
"{{nav.lng}}"
data-url
=
"{{nav.url}}"
data-weburl
=
"{{nav.weburl}}"
>
<
view
class
=
"page_nav_item"
style
=
"padding: {{item.params.padding}}px"
>
<
image
src
=
"{{nav.img}}"
class
=
"page_nav_img"
data-no
=
"{{item.id}}"
data-inno
=
"{{nav.id}}"
style
=
"border-radius: {{item.params.radius}}px"
/>
<
view
class
=
"page_nav_title"
style
=
"color: {{item.params.fontcolor}}"
>{{nav.title}}</
view
>
</
view
>
</
button
>
</
view
>
</
view
>
</
view
>
<!-- 图片 -->
<
view
wx:if
=
"{{item.name == 'image'}}"
class
=
"page_image"
style
=
"background:{{item.params.bgcolor}}"
>
<
view
class
=
"item_cell_box"
>
<
view
wx:for
=
"{{item.params.data}}"
style
=
"width: {{ (item.params.type == 1 ? 100 : (item.params.type == 2 ? 50 : 33.3)) }}%"
wx:for-item
=
"nav"
wx:for-index
=
"idx"
>
<
button
class
=
"click_button"
open-type
=
"{{ nav.type == 'kefu' ? 'contact' : (nav.type == 'share' ? 'share':'') }}"
catchtap
=
"{{ nav.type == 'tel' ? 'callphone' : (nav.type == 'map' ? 'location' : (nav.type == 'other' ? 'otherapp' : (nav.type == 'url' || !nav.type ? 'navigateto' : (nav.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
data-appid
=
"{{nav.appid}}"
data-appurl
=
"{{nav.appurl}}"
data-tel
=
"{{nav.tel}}"
data-lat
=
"{{nav.lat}}"
data-lng
=
"{{nav.lng}}"
data-url
=
"{{nav.url}}"
data-weburl
=
"{{nav.weburl}}"
>
<
view
class
=
"page_image_item"
style
=
"padding: {{item.params.padding}}px"
>
<
image
src
=
"{{nav.img}}"
mode
=
"widthFix"
class
=
"page_image_img"
data-no
=
"{{item.id}}"
data-inno
=
"{{nav.id}}"
style
=
"border-radius: {{item.params.radius}}px"
/>
<
view
class
=
"page_image_title"
style
=
"color: {{item.params.fontcolor}};font-size: {{item.params.fontsize}}px"
>{{nav.title}}</
view
>
</
view
>
</
button
>
</
view
>
</
view
>
</
view
>
<!-- 卡片 -->
<
view
wx:if
=
"{{item.name == 'card'}}"
class
=
"page_card"
style
=
"background:{{item.params.bgcolor}}"
>
<
view
class
=
"temp_card_top"
wx:if
=
"{{item.params.ishead == 1}}"
style
=
"font-size:{{item.params.headsize}}px;color:{{item.params.headcolor}};text-align:{{item.params.headalign}}"
>
{{item.params.headcontent}}
</
view
>
<
view
class
=
"temp_card_content"
style
=
"font-size:{{item.params.fontsize}}px"
>
{{item.params.content}}
</
view
>
<
view
class
=
"temp_card_bot"
wx:if
=
"{{item.params.isbot == 1}}"
style
=
"font-size:{{item.params.botsize}}px;color:{{item.params.botcolor}};text-align:{{item.params.botalign}}"
>
{{item.params.botcontent}}
</
view
>
</
view
>
<
view
wx:if
=
"{{item.name == 'space'}}"
class
=
"page_space"
style
=
"height:{{item.params.height}}px;background:{{item.params.bgcolor}}"
>
</
view
>
<
view
wx:if
=
"{{item.name == 'text'}}"
class
=
"page_text"
style
=
"padding:{{item.params.padding}}px;margin:{{item.params.margin}}px;background:{{item.params.bgcolor}}"
>
<
import
src
=
"/zofui_sitetemp/resource/wxParse/wxParse.wxml"
/>
<
template
is
=
"wxParse"
data
=
"{{wxParseData:item.params.node.nodes}}"
/>
</
view
>
<!-- list -->
<
view
wx:if
=
"{{item.name == 'list'}}"
class
=
"page_list"
style
=
"background:{{item.params.bgcolor}};padding:{{item.params.padding}}px"
>
<
view
wx:for
=
"{{item.params.data}}"
class
=
"page_list_item"
wx:for-item
=
"in"
>
<
button
class
=
"click_button"
open-type
=
"{{ in.type == 'kefu' ? 'contact' : (in.type == 'share' ? 'share':'') }}"
catchtap
=
"{{ in.type == 'tel' ? 'callphone' : (in.type == 'map' ? 'location' : (in.type == 'other' ? 'otherapp' : (in.type == 'url' || !in.type ? 'navigateto' : (in.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
data-appid
=
"{{in.appid}}"
data-appurl
=
"{{in.appurl}}"
data-tel
=
"{{in.tel}}"
data-lat
=
"{{in.lat}}"
data-lng
=
"{{in.lng}}"
data-url
=
"{{in.url}}"
data-weburl
=
"{{in.weburl}}"
>
<
view
class
=
"item_cell_box alenter"
>
<
view
class
=
"list_img"
>
<
image
src
=
"{{in.img}}"
mode
=
"widthFix"
class
=
"page_list_img"
data-no
=
"{{item.id}}"
data-inno
=
"{{in.id}}"
/>
</
view
>
<
view
class
=
"item_cell_flex list_r"
>
<
view
class
=
"list_title"
style
=
"color:{{item.params.color}};font-size:{{item.params.titlesize}}px"
>
{{in.title}}
</
view
>
<
view
class
=
"list_desc"
style
=
"color:{{item.params.color}};font-size:{{item.params.descsize}}px"
>
{{in.desc}}
</
view
>
</
view
>
</
view
>
</
button
>
</
view
>
</
view
>
<!-- title -->
<
view
wx:if
=
"{{item.name == 'title'}}"
class
=
"page_title"
style
=
"background:{{item.params.bgcolor}};padding:{{item.params.paddingv}}px {{item.params.paddingh}}px"
>
<
button
class
=
"click_button"
open-type
=
"{{ item.params.type == 'kefu' ? 'contact' : (item.params.type == 'share' ? 'share':'') }}"
catchtap
=
"{{ item.params.type == 'tel' ? 'callphone' : (item.params.type == 'map' ? 'location' : (item.params.type == 'other' ? 'otherapp' : (item.params.type == 'url' || !item.params.type ? 'navigateto' : (item.params.type == 'weburl' ? 'toweburl' : '' ) ) ) ) }}"
data-appid
=
"{{item.params.appid}}"
data-appurl
=
"{{item.params.appurl}}"
data-tel
=
"{{item.params.tel}}"
data-lat
=
"{{item.params.lat}}"
data-lng
=
"{{item.params.lng}}"
data-url
=
"{{item.params.url}}"
data-weburl
=
"{{item.params.weburl}}"
>
<
view
class
=
"item_cell_box alenter"
>
<
view
class
=
"title_img"
wx:if
=
"{{item.params.lefticon == 1}}"
>
<
image
src
=
"{{item.params.leftimg}}"
style
=
"width:{{item.params.lwidth}}px"
mode
=
"widthFix"
class
=
"page_title_img"
/>
</
view
>
<
view
class
=
"item_cell_flex"
style
=
"text-align:{{item.params.pos}};font-size: {{item.params.size}}px;color: {{item.params.color}}"
>
{{item.params.content}}
</
view
>
<
view
class
=
"title_img"
wx:if
=
"{{item.params.righticon == 1}}"
>
<
image
src
=
"{{item.params.rightimg}}"
style
=
"width:{{item.params.rwidth}}px"
mode
=
"widthFix"
class
=
"page_title_img"
/>
</
view
>
</
view
>
</
button
>
</
view
>
是这个吗? page.wxml
你页面onload里面有个接口调用成功后的回调有问题
应该是你调用接口成功后的问题
报这么多错。
-0-你微信 是x5内核的吗
传了图片能看到吗
微信右上角三个点 打开后 里面有个 调试,然后你查看下 请求