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.

252 line
12 KiB

  1. <!-- 初始模板 -->
  2. <view wx:if="{{mouldType==0}}">
  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. </view>
  20. <!-- 成长值 -->
  21. <view class="user-data fl" bindtap='gotoChengzhangzhi' style="{{typeLsit.sy_xxb.styleClass}}">
  22. <view class='nameBox'>
  23. <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data>
  24. <view class='chengzhangBox' style='background:{{chengzhangBox}}'>
  25. <text class='chengzhang'>{{levelName}}</text>
  26. </view>
  27. </view>
  28. <view class="view">
  29. <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" />
  30. <view class='remainchengzhangzhi' style="{{typeLsit.sy_xxb_cf.styleClass}}">还需{{upgradeScore}}成长值可升级</view>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 二维码 -->
  35. <view class='qrcode fr' bindtap='qrcode' style="{{typeLsit.sy_qrc.styleClass}}">
  36. <image src="{{typeLsit.sy_qrc.icon}}" class='qrcodeimg' mode='widthFix'></image>
  37. </view>
  38. </view>
  39. <!-- banner -->
  40. <c-banner wx:key="unique" list="{{list}}" />
  41. <!-- 频道 -->
  42. <view class="channelBox" wx:if="{{ifStoreApp!=1&&moduleList.length>0}}" style="{{typeLsit.sy_mbg.styleClass}}">
  43. <view class='kjBox' bindtap='goPage' data-obj="{{item}}" wx:for="{{moduleList}}" wx:key="{{index}}">
  44. <image src='{{item.icon}}' mode='aspectFill'></image>
  45. <view class="text">{{item.name}}</view>
  46. </view>
  47. </view>
  48. <view class='channelBox' wx:if="{{ifStoreApp==1}}" style="width:525rpx;">
  49. <view class='kjBox' bindtap='gotoBargain'>
  50. <image src='{{kanjia}}' mode='aspectFill'></image>
  51. <text>砍价</text>
  52. </view>
  53. <view class='kjBox' bindtap='gotoSpellGroup'>
  54. <image src='{{pintuan}}' mode='aspectFill'></image>
  55. <text>拼团</text>
  56. </view>
  57. <view class='kjBox' bindtap='gotoRushBuy'>
  58. <image src='{{xiaofeika}}' mode='aspectFill'></image>
  59. <text>限时抢购</text>
  60. </view>
  61. </view>
  62. </view>
  63. <view class='toutiao1' wx:if="{{showQg&&ifStoreApp!=1}}">
  64. <view class='xianshi' bindtap='gotoRushBuy'>
  65. <text>限时专区</text>
  66. <text>限时惊爆价 轻松拎回家</text>
  67. </view>
  68. <view class='xsCon'>
  69. <view wx:for="{{xslist}}" wx:key="index">
  70. <view class='igBox' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap='gotodetail'>
  71. <image src='{{xslist[index].coverImg}}' mode='widthFix' class='imageH'></image>
  72. <view class='imTit'>{{xslist[index].title}}</view>
  73. </view>
  74. </view>
  75. <view>
  76. <view class='igBox' bindtap='gotoRushBuy'>
  77. <image src='{{more}}' mode='widthFix' class='more'></image>
  78. <view class='imTit'>更多...</view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <!-- 爆款专区 -->
  84. <c-hot id="hot" />
  85. <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'>
  86. <image src='{{cover}}' mode='widthFix'></image>
  87. </view>
  88. <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" />
  89. <!-- 游戏蒙层 -->
  90. <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" />
  91. <!-- 广告蒙层 -->
  92. <c-advertisement id="advertisement" wx:if="{{showGg&&!played&&!havePlayEd1}}" ggdata="{{ggdata}}" />
  93. </view>
  94. <!-- 顶部签到成长值 -->
  95. <view class='signin' wx:if="{{fistLogin}}" animation="{{alphaData}}">
  96. <open-data class="open" type="userAvatarUrl"></open-data>
  97. <text class='text'>您今日签到成功,获得{{fistLogin}}成长值</text>
  98. </view>
  99. <view class="integralBox" wx:if="{{businessSwitch}}">
  100. <!--是未授权微信且未授权手机号 -->
  101. <navigator url="/pages/getuserinfo/index" open-type="navigate" wx:if="{{accreditFlag==1}}">
  102. <image src='https://formall.oss-accelerate.aliyuncs.com/cimg/self-help-integral.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
  103. </navigator>
  104. <!-- 授权了微信 没授权手机号 -->
  105. <navigator url="/pages/getuserinfo/index" open-type="navigate" wx:if="{{accreditFlag==2}}">
  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="{{goUrl}}" wx:if="{{accreditFlag==3}}">
  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. </view>
  113. </view>
  114. <!-- 欢乐城模板 -->
  115. <view wx:if="{{mouldType==1}}">
  116. <view class="container1">
  117. <!-- 会员信息 -->
  118. <view class="color_box1">
  119. <view style="height:{{navigationBarHeight}};overflow: hidden;" class="goSqunar1" bindtap="goSquareList">
  120. <view class="title1" style="line-height:{{navLineHeight}}">{{marketName}}</view>
  121. <view style="height:{{navLineHeight}};position:relative;margin-right: 80rpx">
  122. <image wx:if="{{isShowSqare}}" src="{{huanlechengImgurl}}home_ic_xialajt.png" mode='widthFix' class="xia"></image>
  123. </view>
  124. </view>
  125. <view class='userinfo1' wx:if="{{ifStoreApp!=1}}">
  126. <!-- 头像 -->
  127. <view class='infoLeft' style="{{typeLsit.sy_xxb.styleClass}}">
  128. <view class="user-avatar1">
  129. <open-data class="open" type="userAvatarUrl"></open-data>
  130. </view>
  131. <!-- 成长值-->
  132. <view class="user-data1 fl" style="{{typeLsit.sy_xxb.styleClass}}">
  133. <view class='nameBox' bindtap="goIntegralmall">
  134. <!-- <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> -->
  135. <open-data type="userNickName" style="font-size: 26rpx;color:#292723;"></open-data>
  136. <!-- <image src="{{huanlechengImgurl+'home_ic_vip.png'}}" mode='widthFix'></image> -->
  137. <view class="vgrade">{{levelName}}</view>
  138. <view class="integralNum">积分:{{credit}}</view>
  139. </view>
  140. <view class="view" bindtap='gotoChengzhangzhi'>
  141. <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" />
  142. <!-- <view class='remainchengzhangzhi' style="{{typeLsit.sy_xxb_cf.styleClass}}">还需{{upgradeScore}}成长值可升级</view> -->
  143. <view class='remainchengzhangzhi'>还需
  144. <p style="color:#4D4941">{{upgradeScore}}成长值</p>可升级</view>
  145. </view>
  146. </view>
  147. </view>
  148. <!-- 二维码 style="{{typeLsit.sy_qrc.styleClass}}" -->
  149. <view class='qrcode1 fr' bindtap='qrcode'>
  150. <!-- <image src="{{typeLsit.sy_qrc.icon}}" class='qrcodeimg' mode='widthFix'></image> -->
  151. <image src="https://formall.oss-accelerate.aliyuncs.com/cimg/lqcbarcode.png" class='qrcodeimg' mode='widthFix'></image>
  152. </view>
  153. </view>
  154. <!-- banner -->
  155. <c-banner wx:key="unique" list="{{list}}" />
  156. <!-- 频道 -->
  157. <view class="channelBox" wx:if="{{ifStoreApp!=1&&moduleList.length>0}}" style="{{typeLsit.sy_mbg.styleClass}}">
  158. <view class='kjBox1' bindtap='goPage' data-obj="{{item}}" wx:for="{{moduleList}}" wx:key="{{index}}">
  159. <image src='{{item.icon}}' mode='aspectFill'></image>
  160. <view class="text">{{item.name}}</view>
  161. </view>
  162. </view>
  163. <!-- 频道 -->
  164. <view class='channelBox' wx:if="{{ifStoreApp==1}}" style="width:525rpx;">
  165. <view class='kjBox' bindtap='gotoBargain'>
  166. <image src='{{kanjia}}' mode='aspectFill'></image>
  167. <text>砍价</text>
  168. </view>
  169. <view class='kjBox' bindtap='gotoSpellGroup'>
  170. <image src='{{pintuan}}' mode='aspectFill'></image>
  171. <text>拼团</text>
  172. </view>
  173. <view class='kjBox' bindtap='gotoRushBuy'>
  174. <image src='{{xiaofeika}}' mode='aspectFill'></image>
  175. <text>限时抢购</text>
  176. </view>
  177. </view>
  178. </view>
  179. <!-- <view class='toutiao1' wx:if="{{showQg&&ifStoreApp!=1}}">
  180. <view class='xianshi' bindtap='gotoRushBuy'>
  181. <text>限时专区</text>
  182. <text>限时惊爆价 轻松拎回家</text>
  183. </view>
  184. <view class='xsCon'>
  185. <view wx:for="{{xslist}}" wx:key="index">
  186. <view class='igBox' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap='gotodetail'>
  187. <image src='{{xslist[index].coverImg}}' mode='widthFix' class='imageH'></image>
  188. <view class='imTit'>{{xslist[index].title}}</view>
  189. </view>
  190. </view>
  191. <view>
  192. <view class='igBox' bindtap='gotoRushBuy'>
  193. <image src='{{more}}' mode='widthFix' class='more'></image>
  194. <view class='imTit'>更多...</view>
  195. </view>
  196. </view>
  197. </view>
  198. </view>
  199. -->
  200. <!-- 限时抢购 -->
  201. <c-mould wx:if="{{topicObj2}}" obj="{{topicObj2}}" isShowCount titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_xsqw.png" />
  202. <!-- 砍价 -->
  203. <c-mould wx:if="{{topicObj3}}" obj="{{topicObj3}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_kj.png" />
  204. <!-- 拼团 -->
  205. <c-mould wx:if="{{topicObj4}}" obj="{{topicObj4}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_pt.png" />
  206. <!-- 专题 -->
  207. <c-mould wx:if="{{specialLsit.length>0}}" wx:for="{{specialLsit}}" wx:key="{{index}}" obj="{{item}}" special/>
  208. <!-- 消费卡 -->
  209. <c-mould wx:if="{{topicObj5}}" obj="{{topicObj5}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_xfk.png" />
  210. <!-- 积分商城 -->
  211. <c-mould wx:if="{{topicObj6}}" obj="{{topicObj6}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_jfsc.png" />
  212. <optimization wx:if="{{businessList.length>0}}" businessList="{{businessList}}" businessData="{{businessData}}" bind:businessid="getBusineData" />
  213. <!-- <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" /> -->
  214. <!-- 游戏蒙层 -->
  215. <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" />
  216. <!-- 广告蒙层 -->
  217. <c-advertisement id="advertisement" wx:if="{{showGg&&!played&&!havePlayEd1}}" ggdata="{{ggdata}}" />
  218. </view>
  219. <!-- 顶部签到成长值 -->
  220. <view class='signin' wx:if="{{fistLogin}}" animation="{{alphaData}}">
  221. <open-data class="open" type="userAvatarUrl"></open-data>
  222. <text class='text'>您今日签到成功,获得{{fistLogin}}成长值</text>
  223. </view>
  224. <view class="integralBox1" wx:if="{{businessSwitch}}">
  225. <!--是未授权微信且未授权手机号 -->
  226. <navigator url="/pages/getuserinfo/index" open-type="navigate" wx:if="{{accreditFlag==1}}">
  227. <image src='{{huanlechengImgurl}}home_icon_wgjf.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
  228. </navigator>
  229. <!-- 授权了微信 没授权手机号 -->
  230. <navigator url="/pages/getuserinfo/index" open-type="navigate" wx:if="{{accreditFlag==2}}">
  231. <image src='{{huanlechengImgurl}}home_icon_wgjf.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
  232. </navigator>
  233. <!-- 微信和手机号都授权了 跳转到商圈-->
  234. <navigator url="{{goUrl}}" wx:if="{{accreditFlag==3}}">
  235. <image src='{{huanlechengImgurl}}home_icon_wgjf.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
  236. </navigator>
  237. </view>
  238. </view>