<import src="/utils/wxParse/wxParse.wxml" />
<view class="page">
  <view class="detail-hard" style="{{merch.storebg?'background-image:url('+merch.storebg+')':'background:#333333'}}">
    <block wx:if="{{merch.logo}}">
      <image class="logo" src="{{merch.logo}}"></image>
    </block>
    <block wx:else>
      <image class="logo" src="/static/images/noface.png"></image>
    </block>
  </view>
  <view class="intro">
    <text class="name">{{merch.merchname}}</text>
    <block wx:if="{{merch.salecate}}">
      <text class="des">主营：{{merch.salecate}}</text></block>
    <block wx:if="{{merch.tel}}">
      <text bindtap="callme" class="des" data-id="{{merch.tel}}">客服电话：{{merch.tel}}</text></block>
    <block wx:if="{{merch.address}}">
      <text class="des">地址：{{merch.address}}</text></block>
    <view class="info">
      <view class="wxParse">
        <template data="{{wxParseData:wxParseData.nodes}}" is="wxParse" /></view>
    </view>
    <block wx:if="{{merch.lat&&merch.lng}}">
      <map covers="{{covers}}" latitude="{{merch.lat}}" longitude="{{merch.lng}}" markers="{{markers}}" style="width: 100%; height: 300px;margin-top:30px"></map>
    </block>
  </view>
</view>