index.wxml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='product-con'>
  3. <view class="product_a">
  4. <productConSwiper imgUrls="{{storeInfo.slider_image}}"></productConSwiper>
  5. <view class="product_b">
  6. <view class="product_p">截团时间:<text>{{storeInfo.tuan_end_time}}</text></view>
  7. </view>
  8. <view class="product_c">
  9. <view class="product_p1">团购价</view>
  10. <view class="product_p2">¥<text>{{storeInfo.now_price}}</text></view>
  11. <view class="product_p3">¥<text>{{storeInfo.price}}</text></view>
  12. </view>
  13. </view>
  14. <view class='wrapper'>
  15. <view class='share acea-row row-between row-bottom'>
  16. <view class='money font-color'>
  17. <text class='num detail_a'>{{storeInfo.store_name}}</text>
  18. <!-- <text class='vip-money' wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}">¥{{storeInfo.vip_price}}</text> -->
  19. <!-- <image wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}" src="/images/vip.png"></image> -->
  20. </view>
  21. <view class='share_a' bindtap='listenerActionSheet'> <image src="/images/icon_chare.png" class="share_img"></image> 分享</view>
  22. </view>
  23. <!-- <view class="share_b">
  24. <view class="share_c">
  25. <view class="share_p1">商品参数</view>
  26. <view class="share_p2 iconfont icon-xiangyou"></view>
  27. </view>
  28. </view> -->
  29. </view>
  30. <!-- <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr'>
  31. <view>{{attr}}:
  32. <text class='atterTxt'>{{attrValue}}</text>
  33. </view>
  34. <view class='iconfont icon-jiantou'></view>
  35. </view> -->
  36. <view class='product-intro'>
  37. <view class='title'><text class="title_line"></text>商品详情<text class="title_linea"></text></view>
  38. <view class='conter'>
  39. <template is="wxParse" data="{{wxParseData:description.nodes}}" />
  40. </view>
  41. </view>
  42. <view style='height:120rpx;'></view>
  43. <view class='footer acea-row row-between-wrapper'>
  44. <navigator class="item" hover-class='none' url='/pages/index/index' open-type='switchTab' >
  45. <view class='iconfont icon-shouye-xianxing'></view>
  46. <view>首页</view>
  47. </navigator>
  48. <navigator open-type='switchTab' class="animated item {{animated==true?'bounceIn':''}}" url='/pages/order_addcart/order_addcart'>
  49. <view class='iconfont icon-gouwuche1'>
  50. <text class='num bg-color'>{{CartCount || 0}}</text>
  51. </view>
  52. <view>购物车</view>
  53. </navigator>
  54. <view class='bnt acea-row'>
  55. <form bindsubmit="joinCart" report-submit='true'>
  56. <button class='joinCart bnts' formType="submit">加入购物车</button>
  57. </form>
  58. <form bindsubmit="goBuy" report-submit='true'>
  59. <button class='buy bnts' formType="submit">立即购买</button>
  60. </form>
  61. </view>
  62. </view>
  63. <shareRedPackets sharePacket="{{sharePacket}}" bind:listenerActionSheet="listenerActionSheet"></shareRedPackets>
  64. </view>
  65. <!-- 分享按钮 -->
  66. <action-sheet hidden="{{actionSheetHidden}}" bindchange="listenerActionSheet" class='pro-wrapper' hover-class='none'>
  67. <view class="press"><text class="press_line"></text>邀请好友来看看<text class="press_linea"></text></view>
  68. <action-sheet-item hover-class='none'>
  69. <button open-type="share" class='contact' hover-class='none'>
  70. <view class='iconn'></view>
  71. 发送给朋友
  72. </button>
  73. <button class='contact' bindtap='goPoster' hover-class='none'>
  74. <view class='iconn iconn1'></view>
  75. 生成海报
  76. </button>
  77. </action-sheet-item>
  78. </action-sheet>
  79. <!-- 海报展示 -->
  80. <view class='poster-pop' wx:if="{{posterImageStatus}}">
  81. <image src='/images/poster-close.png' class='close' bindtap='posterImageClose'></image>
  82. <image src='{{posterImage}}'></image>
  83. <view class='save-poster' bindtap='savePosterPath'>保存到手机</view>
  84. </view>
  85. <view class='mask' wx:if="{{posterImageStatus}}"></view>
  86. <canvas class="canvas" canvas-id='myCanvas' wx:if="{{canvasStatus}}"></canvas>
  87. <!-- 组件 -->
  88. <product-window iSplus='{{iSplus}}' attribute='{{attribute}}' productAttr="{{productAttr}}" productSelect="{{productSelect}}" bind:myevent="onMyEvent" bind:ChangeAttr="ChangeAttr" bind:ChangeCartNum="ChangeCartNum" id='product-window' bind:iptCartNum="iptCartNum" ></product-window>
  89. <coupon-list-window coupon='{{coupon}}' bind:ChangCouponsClone="ChangCouponsClone" bind:ChangCoupons="ChangCoupons"></coupon-list-window>
  90. <authorize bind:onLoadFun="onLoadFun" isAuto="{{isAuto}}" iShidden="{{iShidden}}"></authorize>
  91. <!-- html转wxml -->
  92. <import src="/wxParse/wxParse.wxml" />
  93. <home></home>