收藏
回答

你好,为什么在开发工具正常显示,在微信中却一片空白呢

开发工具是最新版本

我的微信也是最新版本

线上基础库版本已经是1.6.4

求助,谢谢!



小程序码  ( appid:wx9c2d79dd9db7a2d9 )


回答关注问题邀请回答
收藏

14 个回答

  • 九歌^
    九歌^
    2017-12-22

    js文件

    2017-12-22
    有用
    回复
  • 系爱古紫之灶得         .
    系爱古紫之灶得 .
    2017-12-21
           <!-- 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"/>


    接楼上。


    这样看得出来哪里错吗?

    2017-12-21
    有用
    回复
  • 系爱古紫之灶得         .
    系爱古紫之灶得 .
    2017-12-21
           <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>
      
     


    接楼上

    2017-12-21
    有用
    回复
  • 系爱古紫之灶得         .
    系爱古紫之灶得 .
    2017-12-21
    <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

    2017-12-21
    有用
    回复
  • 九歌^
    九歌^
    2017-12-21

    你页面onload里面有个接口调用成功后的回调有问题

    2017-12-21
    有用
    回复
  • 九歌^
    九歌^
    2017-12-21

    应该是你调用接口成功后的问题

    2017-12-21
    有用
    回复
  • 九歌^
    九歌^
    2017-12-21

    报这么多错。

    2017-12-21
    有用
    回复
  • 九歌^
    九歌^
    2017-12-21

    -0-你微信 是x5内核的吗

    2017-12-21
    有用
    回复
  • 系爱古紫之灶得         .
    系爱古紫之灶得 .
    2017-12-21


    传了图片能看到吗

    2017-12-21
    有用
    回复
  • 九歌^
    九歌^
    2017-12-21

    微信右上角三个点 打开后 里面有个 调试,然后你查看下 请求


    2017-12-21
    有用
    回复

正在加载...

登录 后发表内容