C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
6.0 KiB

  1. <!-- 初始模板 -->
  2. <view >
  3. <navbar color="{{typeLsit.sy_top_f.styleClass}}" background="{{typeLsit.sy_top.styleClass}}" text="首页"></navbar>
  4. <!-- style="padding-top:{{navigationBarHeight}}" -->
  5. <view class="container">
  6. <view style="height:{{navigationBarHeight}} "></view>
  7. <!-- 会员信息 -->
  8. <view class="color_box" style="{{typeLsit.sy_bbg.styleClass}}">
  9. <!-- 所属集团 -->
  10. <view class="underling" bindtap="goSquareList" wx:if="{{squareName}}">
  11. <image class="underlingImg" mode="widthFix" src="https://formall.oss-accelerate.aliyuncs.com/cimg/dingwei.png"></image>
  12. <view class="underlingName">{{squareName}} ↓</view>
  13. </view>
  14. <view class='userinfo' wx:if="{{ifStoreApp!=1}}">
  15. <!-- 头像 -->
  16. <view class='infoLeft' style="{{typeLsit.sy_xxb.styleClass}}">
  17. <view class="user-avatar">
  18. <!-- <open-data class="open" type="userAvatarUrl"></open-data> -->
  19. <image wx:if="{{userAvatarUrl!=''}}" class="userAvatarUrl" src="{{userAvatarUrl}}"></image>
  20. <image wx:if="{{userAvatarUrl==''}}" class="userAvatarUrl" src="../assets/images/default.png"></image>
  21. </view>
  22. <!-- 成长值 -->
  23. <view class="user-data fl" bindtap='gotoChengzhangzhi' style="{{typeLsit.sy_xxb.styleClass}}">
  24. <view class='nameBox'>
  25. <!-- <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> -->
  26. <p style="font-size: 28rpx;color:#292723;float: left;">{{userName}}</p>
  27. <view class='chengzhangBox' style='background:{{chengzhangBox}}'>
  28. <text class='chengzhang'>{{levelName}}</text>
  29. </view>
  30. </view>
  31. <view class="view">
  32. <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" />
  33. <view class='remainchengzhangzhi' style="{{typeLsit.sy_xxb_cf.styleClass}}">还需{{upgradeScore}}成长值可升级</view>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 二维码 -->
  38. <view class='qrcode fr' bindtap='qrcode' style="{{typeLsit.sy_qrc.styleClass}}">
  39. <image src="{{typeLsit.sy_qrc.icon}}" class='qrcodeimg' mode='widthFix'></image>
  40. </view>
  41. </view>
  42. <!-- banner -->
  43. <c-banner wx:key="unique" list="{{list}}" />
  44. <!-- 频道 -->
  45. <view class="channelBox" wx:if="{{ifStoreApp!=1&&moduleList.length>0}}" style="{{typeLsit.sy_mbg.styleClass}}">
  46. <view class='kjBox' bindtap='goPage' data-obj="{{item}}" wx:for="{{moduleList}}" wx:key="{{index}}">
  47. <image src='{{item.icon}}' mode='aspectFill'></image>
  48. <view class="text">{{item.name}}</view>
  49. </view>
  50. </view>
  51. <view class='channelBox' wx:if="{{ifStoreApp==1}}" style="width:525rpx;">
  52. <view class='kjBox' bindtap='gotoBargain'>
  53. <image src='{{kanjia}}' mode='aspectFill'></image>
  54. <text>砍价</text>
  55. </view>
  56. <view class='kjBox' bindtap='gotoSpellGroup'>
  57. <image src='{{pintuan}}' mode='aspectFill'></image>
  58. <text>拼团</text>
  59. </view>
  60. <view class='kjBox' bindtap='gotoRushBuy'>
  61. <image src='{{xiaofeika}}' mode='aspectFill'></image>
  62. <text>限时抢购</text>
  63. </view>
  64. </view>
  65. </view>
  66. <view class='toutiao1' wx:if="{{showQg&&ifStoreApp!=1}}">
  67. <view class='xianshi' bindtap='gotoRushBuy'>
  68. <text>限时专区</text>
  69. <text>限时惊爆价 轻松拎回家</text>
  70. </view>
  71. <view class='xsCon'>
  72. <view wx:for="{{xslist}}" wx:key="index">
  73. <view class='igBox' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap='gotodetail'>
  74. <image src='{{xslist[index].coverImg}}' mode='widthFix' class='imageH'></image>
  75. <view class='imTit'>{{xslist[index].title}}</view>
  76. </view>
  77. </view>
  78. <view>
  79. <view class='igBox' bindtap='gotoRushBuy'>
  80. <image src='{{more}}' mode='widthFix' class='more'></image>
  81. <view class='imTit'>更多...</view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 爆款专区 -->
  87. <c-hot id="hot" />
  88. <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'>
  89. <image src='{{cover}}' mode='widthFix'></image>
  90. </view>
  91. <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" />
  92. <!-- 游戏蒙层 -->
  93. <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" />
  94. <!-- 广告蒙层 -->
  95. <c-advertisement id="advertisement" wx:if="{{showGg&&!played&&!havePlayEd1}}" ggdata="{{ggdata}}" />
  96. </view>
  97. <!-- 顶部签到成长值 -->
  98. <view class='signin' wx:if="{{fistLogin}}" animation="{{alphaData}}">
  99. <!-- <open-data class="open" type="userAvatarUrl"></open-data> -->
  100. <image class="userAvatarUrl" src="{{userAvatarUrl}}"></image>
  101. <text class='text'>您今日签到成功,获得{{fistLogin}}成长值</text>
  102. </view>
  103. <view class="integralBox" wx:if="{{businessSwitch}}">
  104. <!--是未授权微信且未授权手机号 -->
  105. <navigator url="/pages/getuserinfo/index" open-type="navigate" wx:if="{{accreditFlag==1}}">
  106. <image src='https://formall.oss-accelerate.aliyuncs.com/cimg/self-help-integral.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
  107. </navigator>
  108. <!-- 授权了微信 没授权手机号 -->
  109. <navigator url="/pages/getuserinfo/index" open-type="navigate" wx:if="{{accreditFlag==2}}">
  110. <image src='https://formall.oss-accelerate.aliyuncs.com/cimg/self-help-integral.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
  111. </navigator>
  112. <!-- 微信和手机号都授权了 跳转到商圈-->
  113. <navigator url="{{goUrl}}" wx:if="{{accreditFlag==3}}">
  114. <image src='https://formall.oss-accelerate.aliyuncs.com/cimg/self-help-integral.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
  115. </navigator>
  116. </view>
  117. </view>