Commit 1210ea10ffb79842f12bb0820953d067cbef4d01

Authored by taiyuan
1 parent a5de259a

服务项目

pages/user/my_service/i_service.wxml
@@ -11,54 +11,58 @@ @@ -11,54 +11,58 @@
11 <!-- 预约内容 --> 11 <!-- 预约内容 -->
12 <!-- 项目框架 --> 12 <!-- 项目框架 -->
13 <view class="Serviceitems" catchtap="close"> 13 <view class="Serviceitems" catchtap="close">
14 - <!-- 单个项目 -->  
15 - <view class="rel" wx:for="{{service_List}}">  
16 - <view class="abs">  
17 - <!-- 皇冠log -->  
18 - <block wx:if="{{item.BuyType==4}}">  
19 - <image class="equity_money" src="{{iurl}}/miniapp/images//yyservice/equity.png" lazy-load="true"></image>  
20 - </block>  
21 - <!-- 金钱log -->  
22 - <block wx:if="{{item.BuyType==1 || item.BuyType==2 }}">  
23 - <image class="equity_money" src="{{iurl}}/miniapp/images/yyservice/money.png" lazy-load="true"></image>  
24 - </block>  
25 - <!-- 礼包log -->  
26 - <block wx:if="{{item.BuyType==3}}">  
27 - <image class="equity_money" src="{{iurl}}/miniapp/images/yyservice/giftpackage.png" lazy-load="true"></image>  
28 - </block>  
29 - </view>  
30 - <view>  
31 - <view class="flex-center">  
32 - <image class="itemimage" src="{{item.ImageUrl==''?iurl+defimgurl:item.ImageUrl}}" lazy-load="true" data-errorimg="service_List[{{index}}].ImageUrl" binderror="bind_bnerr1" data-img="{{item.ImageUrl}}"></image>  
33 - </view>  
34 -  
35 - <view class="flex-center itemName">  
36 - <view class="fs32 Name ellipsis-1">{{item.ServiceName}}</view>  
37 - </view>  
38 -  
39 - <view class="flex-center fs24 itemCount">  
40 - <view>剩余次数:</view>  
41 - <view>{{item.ObtainTimes}}</view>  
42 - </view>  
43 -  
44 - <view class="flex-center fs24 itemEffective">  
45 - <view>有效期至</view>  
46 - <view class="Date">{{item.Validay==""?"长期有效":item.Validay}}</view>  
47 - </view>  
48 -  
49 - </view>  
50 -  
51 - <view class="flex-center fs28 functionMax">  
52 - <view class="flex-level Use" bindtap="open_fw" data-ind="{{index}}" data-service_id="{{item.ServiceID}}">  
53 - <view>立即使用</view>  
54 - </view>  
55 - <!-- 可预约 -->  
56 - <view wx:if="{{item.State>0}}" class="flex-level appointment yellow-b" data-url="/pages/user/my_service/appment_main?service_id={{item.ServiceID}}&BuyType={{item.BuyType}}&ProjectID={{item.ProjectID}}&Validay={{item.Validay}}" bindtap="correcting" data-service_id="{{item.ServiceID}}" data-project_id="{{item.ProjectID}}">  
57 - <view>预约</view>  
58 - </view>  
59 - </view>  
60 - </view>  
61 - <view class="After_all flex-center fs26">选择更多服务卡项,<text class="ctb" data-url="/packageA/pages/cardList/cardList" bindtap="goto">立即购买!</text></view> 14 + <view>
  15 + <!-- 单个项目 -->
  16 + <view class="rel" wx:for="{{service_List}}">
  17 + <view class="abs">
  18 + <!-- 皇冠log -->
  19 + <block wx:if="{{item.BuyType==4}}">
  20 + <image class="equity_money" src="{{iurl}}/miniapp/images//yyservice/equity.png" lazy-load="true"></image>
  21 + </block>
  22 + <!-- 金钱log -->
  23 + <block wx:if="{{item.BuyType==1 || item.BuyType==2 }}">
  24 + <image class="equity_money" src="{{iurl}}/miniapp/images/yyservice/money.png" lazy-load="true"></image>
  25 + </block>
  26 + <!-- 礼包log -->
  27 + <block wx:if="{{item.BuyType==3}}">
  28 + <image class="equity_money" src="{{iurl}}/miniapp/images/yyservice/giftpackage.png" lazy-load="true"></image>
  29 + </block>
  30 + </view>
  31 + <view>
  32 + <view class="flex-center">
  33 + <image class="itemimage" src="{{item.ImageUrl==''?iurl+defimgurl:item.ImageUrl}}" lazy-load="true" data-errorimg="service_List[{{index}}].ImageUrl" binderror="bind_bnerr1" data-img="{{item.ImageUrl}}"></image>
  34 + </view>
  35 +
  36 + <view class="flex-center itemName">
  37 + <view class="fs32 Name ellipsis-1">{{item.ServiceName}}</view>
  38 + </view>
  39 +
  40 + <view class="flex-center fs24 itemCount">
  41 + <view>剩余次数:</view>
  42 + <view>{{item.ObtainTimes}}</view>
  43 + </view>
  44 +
  45 + <view class="flex-center fs24 itemEffective">
  46 + <view>有效期至</view>
  47 + <view class="Date">{{item.Validay==""?"长期有效":item.Validay}}</view>
  48 + </view>
  49 +
  50 + </view>
  51 +
  52 + <view class="flex-center fs28 functionMax">
  53 + <view class="flex-level Use" bindtap="open_fw" data-ind="{{index}}" data-service_id="{{item.ServiceID}}">
  54 + <view>立即使用</view>
  55 + </view>
  56 + <!-- 可预约 -->
  57 + <view wx:if="{{item.State>0}}" class="flex-level appointment yellow-b" data-url="/pages/user/my_service/appment_main?service_id={{item.ServiceID}}&BuyType={{item.BuyType}}&ProjectID={{item.ProjectID}}&Validay={{item.Validay}}" bindtap="correcting" data-service_id="{{item.ServiceID}}" data-project_id="{{item.ProjectID}}">
  58 + <view>预约</view>
  59 + </view>
  60 + </view>
  61 + </view>
  62 + </view>
  63 +
  64 +
  65 +<view class="After_all flex-center fs26">选择更多服务卡项,<text class="ctb" data-url="/packageA/pages/cardList/cardList" bindtap="goto">立即购买!</text></view>
62 <!-- 没有数据 --> 66 <!-- 没有数据 -->
63 <!-- 加载完毕并且数据大于=页大小 --> 67 <!-- 加载完毕并且数据大于=页大小 -->
64 <view class="After_all flex-center" wx:if="{{ismore && service_List.length>=6}}"> 68 <view class="After_all flex-center" wx:if="{{ismore && service_List.length>=6}}">