viewActivity.wxml 2.95 KB
<!--packageIndex/pages/servicerAdviser/viewActivity/viewActivity.wxml-->
<glsx-privacy appletName="嘀加车主服务" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class='layout'>
	<view class='swiper-box'>
		<swiper>
			<block wx:for='{{list}}' wx:key='index'>
				<swiper-item>
					<block wx:if='{{item.type == "video"}}'>
						<video class='produceVideo y-center' src="{{serviceInfo.videoUrl}}"></video>
					</block>
					<block wx:else>
						<image class='producePic y-center' src="../../../images/myimage.jpeg" bindtap="previewImage" mode='widthFix'></image>
					</block>
				</swiper-item>
			</block>
		</swiper>
		<view class='goods-info'>
			<view class='name text-hide'>{{serviceInfo.title}}</view>
			<view class="goods-content" wx:if='{{activity}}' bindtap="goDetails">
				<image class="goods-img" wx:if="{{activity.thumbnailUrl || activity.bgimgList.length > 0}}" src="{{activity.thumbnailUrl?activity.thumbnailUrl:activity.bgimgList[0].bgmUrl}}"></image>
				<view class="goods-text">
					<view class="goods-title">{{activity.shopName}}</view>
					<view class="goods-price" wx:if="{{activity.flashSalePrice}}">¥{{activity.flashSalePrice}}
						<view class="goods-oldPrice" wx:if="{{activity.retailPrice}}">¥{{activity.retailPrice}}</view>
					</view>
				</view>
				<image class="goods-arrow" src="../../../resources/images/arrow.png"></image>
			</view>
			<!-- <view class='more' bindtap="goDetails">详情</view> -->
		</view>
		<view class='btn-group'>
			<view class='user' bindtap="toServicer">
				<image src="{{adviser?adviser.photo:merchant.shopPhoto}}"></image>
			</view>
			<view class='btn' wx:if="{{qrUrl}}">
				<image bindtap="openQR" src="../../../resources/images/jiaqun-consult.png"></image>
				<!-- <view>分享</view> -->
			</view>
			<!-- <view class='btn'>
				<image bindtap="toCustomer" src="../../../resources/images/customer-service.png"></image>
				<view>收藏</view>
			</view> -->
			<view class='btn' bindtap="share">
				<image class="btn-share" src="../../../resources/images/icon-share.png"></image>
				<!-- <view>下载</view> -->
			</view>
		</view>
	</view>
	<!-- <view class='details'>
    <view class='title'>
      <image src="../../images/rule.png"></image>
      详情介绍
    </view>
  </view> -->
</view>


<!-- 分享弹框 -->
<share show='{{showShare}}' bindcallBack='shareCallBack' bindinit='init' isVideo data='{{obj}}' bindhide='hideShare' bindsharewx='sharewx' />



<block wx:if='{{showQrBox}}'>
	<view class='fixed-box'>
		<view class='bg' bindtap="hideQrBox"></view>
		<view class='qr-box'>
			<image class='close' src="../../../resources/images/close.png" bindtap="hideQrBox"></image>
			<!-- <image src="../../../resources/images/close.png" class='icon'></image> -->
			<view class='name'>进群二维码</view>
      <image class='qr' src="{{qrUrl}}" bindlongpress="showQR" mode="aspectFit" ></image>
			保存至相册,在微信中“扫一扫”添加
		</view>
	</view>
</block>