h5_link.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. {include file="public/header" /}
  2. <div class="link-wrapper">
  3. <div class="link-left">
  4. <div class="link-menu active" onclick="showBlock(1)" data-id="1">商城页面</div>
  5. <div class="link-menu" onclick="showBlock(2)" data-id="2">营销页面</div>
  6. <div class="link-menu" onclick="showBlock(3)" data-id="3">积分页面</div>
  7. <div class="link-menu" onclick="showBlock(4)" data-id="4">文章页面</div>
  8. <div class="link-menu" onclick="showBlock(5)" data-id="5">店铺页面</div>
  9. <div class="link-menu" onclick="showBlock(6)" data-id="6">商品页面</div>
  10. <div class="link-menu" onclick="showBlock(7)" data-id="7">会员页面</div>
  11. </div>
  12. <div class="link-right">
  13. <div class="link-path" style="display:none"></div>
  14. <!-- 商城页面 -->
  15. <div class="link-list" data-id="1">
  16. <div class="link-item" onclick="setLink('/home/index')">首页</div>
  17. <div class="link-item" onclick="setLink('/home/map')">定位</div>
  18. <div class="link-item" onclick="setLink('/home/brand')">品牌</div>
  19. <div class="link-item" onclick="setLink('/home/search')">搜索</div>
  20. <div class="link-item" onclick="setLink('/home/cart')">购物车</div>
  21. <div class="link-item" onclick="setLink('/home/chain_list')">门店列表</div>
  22. <div class="link-item" onclick="setLink('/home/chain_nearby')">附近门店</div>
  23. <div class="link-item" onclick="setLink('/home/memberregister')">用户注册</div>
  24. <div class="link-item" onclick="setLink('/home/memberlogin')">用户登录</div>
  25. <div class="link-item" onclick="setLink('/home/memberforget')">忘记密码</div>
  26. <div class="link-item" onclick="setLink('/home/sellerlogin')">卖家登录</div>
  27. <div class="link-item" onclick="setLink('/chain/login')">门店登录</div>
  28. </div>
  29. <!-- 营销页面 -->
  30. <div class="link-list" data-id="2" style="display:none">
  31. <div class="link-item" onclick="setLink('/home/activity_list')">活动列表</div>
  32. <div class="link-item" onclick="loadActivity()">活动详情</div>
  33. <div class="link-item" onclick="setLink('/home/pintuan_list')">拼团列表</div>
  34. <div class="link-item" onclick="setLink('/home/bargain_list')">砍价列表</div>
  35. <div class="link-item" onclick="setLink('/home/groupbuy_list')">抢购列表</div>
  36. <div class="link-item" onclick="setLink('/home/vr_groupbuy_list')">虚拟抢购列表</div>
  37. <div class="link-item" onclick="setLink('/home/presell_list')">预售列表</div>
  38. <div class="link-item" onclick="setLink('/member/live_list')">直播列表</div>
  39. <div class="link-item" onclick="loadLive()">直播详情</div>
  40. <div class="link-item" onclick="setLink('/home/marketmanagelist')">抽奖列表</div>
  41. <div class="link-item" onclick="loadMarket(1)">刮刮卡</div>
  42. <div class="link-item" onclick="loadMarket(4)">生肖翻翻看</div>
  43. <div class="link-item" onclick="loadMarket(2)">大转盘</div>
  44. <div class="link-item" onclick="loadMarket(3)">砸金蛋</div>
  45. <div class="link-item" onclick="loadBonus()">红包</div>
  46. <div class="link-item" onclick="loadSpecial(0)">商城装修</div>
  47. </div>
  48. <!-- 积分页面 -->
  49. <div class="link-list" data-id="3" style="display:none">
  50. <div class="link-item" onclick="setLink('/home/pointsgoods')">积分首页</div>
  51. <div class="link-item" onclick="setLink('/home/point_prod')">积分商品</div>
  52. <div class="link-item" onclick="loadPointProd()">积分商品详情</div>
  53. <div class="link-item" onclick="setLink('/home/point_voucher')">积分代金券</div>
  54. <div class="link-item" onclick="setLink('/member/pointscart')">积分购物车</div>
  55. <div class="link-item" onclick="setLink('/member/point_signin')">签到送积分</div>
  56. </div>
  57. <!-- 文章页面 -->
  58. <div class="link-list" data-id="4" style="display:none">
  59. <div class="link-item" onclick="setLink('/home/article_list')">文章列表</div>
  60. <div class="link-item" onclick="loadArticleClass()">文章分类</div>
  61. <div class="link-item" onclick="loadArticle">文章详情</div>
  62. <div class="link-item" onclick="loadDocument()">协议</div>
  63. </div>
  64. <!-- 店铺页面 -->
  65. <div class="link-list" data-id="5" style="display:none">
  66. <div class="link-item" onclick="setLink('/home/storelist')">店铺列表</div>
  67. <div class="link-item" onclick="loadStoreClass()">店铺分类</div>
  68. <div class="link-item" onclick="loadStore(1)">店铺详情</div>
  69. <div class="link-item" onclick="loadStore(2)">店铺装修</div>
  70. <div class="link-item" onclick="loadStore(3)">店铺地图</div>
  71. <div class="link-item" onclick="loadStore(4)">店铺介绍</div>
  72. <div class="link-item" onclick="loadStore(5)">店铺代金券</div>
  73. <div class="link-item" onclick="loadStore(6)">店铺商品分类</div>
  74. <div class="link-item" onclick="loadStore(7)">店铺商品列表</div>
  75. </div>
  76. <!-- 商品页面 -->
  77. <div class="link-list" data-id="6" style="display:none">
  78. <div class="link-item" onclick="setLink('/home/goodslist')">商品列表</div>
  79. <div class="link-item" onclick="loadGoodsClass()">商品分类</div>
  80. <div class="link-item" onclick="loadGoods(1)">商品详情</div>
  81. <div class="link-item" onclick="loadGoods(2)">商品视频</div>
  82. <div class="link-item" onclick="loadGoods(3)">商品咨询</div>
  83. </div>
  84. <!-- 会员页面 -->
  85. <div class="link-list" data-id="7" style="display:none">
  86. <div class="link-item" onclick="setLink('/member/index')">用户中心</div>
  87. <div class="link-item" onclick="setLink('/member/account')">我的钱包</div>
  88. <div class="link-item" onclick="setLink('/member/orderreturn')">退款退货</div>
  89. <div class="link-item" onclick="setLink('/member/predeposit_list')">资金明细</div>
  90. <div class="link-item" onclick="setLink('/member/recharge_card_list')">充值卡明细</div>
  91. <div class="link-item" onclick="setLink('/member/withdraw_list')">提现明细</div>
  92. <div class="link-item" onclick="setLink('/member/chat_list')">聊天列表</div>
  93. <div class="link-item" onclick="setLink('/member/friend_list')">好友列表</div>
  94. <div class="link-item" onclick="setLink('/member/consult_list')">商品咨询列表</div>
  95. <div class="link-item" onclick="setLink('/member/recharge_list')">充值明细</div>
  96. <div class="link-item" onclick="setLink('/member/voucher_list')">代金券列表</div>
  97. <div class="link-item" onclick="setLink('/member/notice_list')">通知列表</div>
  98. <div class="link-item" onclick="setLink('/member/setting')">账号设置</div>
  99. <div class="link-item" onclick="setLink('/member/profile_set')">个人信息</div>
  100. <div class="link-item" onclick="setLink('/member/address_list')">地址列表</div>
  101. <div class="link-item" onclick="setLink('/member/bank_list')">提现账户列表</div>
  102. <div class="link-item" onclick="setLink('/member/refund_list')">退款列表</div>
  103. <div class="link-item" onclick="setLink('/member/vrrefund_list')">虚拟订单退款列表</div>
  104. <div class="link-item" onclick="setLink('/member/return_list')">退货列表</div>
  105. <div class="link-item" onclick="setLink('/member/invoice_list')">发票列表</div>
  106. <div class="link-item" onclick="setLink('/member/inform_list')">举报商家列表</div>
  107. <div class="link-item" onclick="setLink('/member/complaint_list')">投诉商家列表</div>
  108. <div class="link-item" onclick="setLink('/member/order_list')">我的订单</div>
  109. <div class="link-item" onclick="setLink('/member/favorite')">我的收藏</div>
  110. <div class="link-item" onclick="setLink('/member/vrorder_list')">我的虚拟订单</div>
  111. <div class="link-item" onclick="setLink('/member/evaluate_list')">订单评价列表</div>
  112. <div class="link-item" onclick="setLink('/member/inviter_manage')">推广海报</div>
  113. <div class="link-item" onclick="setLink('/member/inviter_user')">推广会员</div>
  114. <div class="link-item" onclick="setLink('/member/inviter_order')">推广佣金</div>
  115. <div class="link-item" onclick="setLink('/member/bargain_list')">用户砍价列表</div>
  116. <div class="link-item" onclick="setLink('/member/marketmanagelog')">活动记录</div>
  117. <div class="link-item" onclick="setLink('/member/bonusreceive')">红包记录</div>
  118. <div class="link-item" onclick="setLink('/member/pointsorder_list')">积分订单列表</div>
  119. <div class="link-item" onclick="setLink('/member/point_list')">积分明细</div>
  120. <div class="link-item" onclick="setLink('/member/arrivalnotice')">到货通知列表</div>
  121. <div class="link-item" onclick="setLink('/member/browse_list')">浏览历史</div>
  122. <div class="link-item" onclick="setLink('/member/feedback')">意见反馈</div>
  123. <div class="link-item" onclick="setLink('/member/auth')">会员认证</div>
  124. <div class="link-item" onclick="setLink('/member/seller_joinin_1')">店铺入驻</div>
  125. </div>
  126. <div id="load_html"></div>
  127. </div>
  128. </div>
  129. <style>
  130. body{background-color: #fff;}
  131. .link-wrapper{display:flex;background-color:#fff;align-items: stretch;}
  132. .link-wrapper .link-left{padding:20px;margin-right:20px;border-right:1px solid #eee}
  133. .link-wrapper .link-left .link-menu{line-height: 40px;cursor: pointer;font-size: 14px;}
  134. .link-wrapper .link-left .link-menu.active{color:#3297ff}
  135. .link-wrapper .link-right{flex:1;padding-right: 20px;padding-top:20px}
  136. .link-wrapper .link-right .link-list .link-item{cursor: pointer;display:inline-block;line-height: 20px;padding:5px 10px;border-radius:2px;border:1px solid #eee;margin:5px 10px;white-space: nowrap;}
  137. .link-path{margin-bottom: 10px;cursor: pointer;}
  138. .link-path .leaf{color:#999;cursor: default;}
  139. .data-search{display: flex;border: 1px solid #e1e1e1;align-items: stretch;height: 30px;line-height: 30px;width:200px;}
  140. .data-search input{border:0;flex:1;width: 100%;}
  141. .data-search .iconfont{border-left:1px solid #e1e1e1;padding:0 10px;cursor: pointer;}
  142. .data-list{height: 250px;overflow: hidden;overflow-y: auto;}
  143. .data-list .data-item{width:450px;cursor: pointer;padding: 10px 0;border-bottom: 1px dashed #eee;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;font-size:14px}
  144. .data-list .data-item img{width:50px;height: 50px;margin-right: 10px;vertical-align: middle;border-radius: 3px;}
  145. .data-list .no-data{text-align: center;padding-top:100px}
  146. .data-class{margin-left:-20px}
  147. .data-class-item{display: flex;font-size: 14px;line-height: 30px;cursor: pointer;}
  148. .data-class-item .iconfont{color:#3297ff;font-size: 14px;width: 20px;}
  149. .data-class-children{padding-left:20px;display: none;}
  150. .data-class .active[data-parent_id] > .data-class-children{display: block;}
  151. </style>
  152. <script>
  153. function showBlock(index){
  154. $('.link-path').hide()
  155. $('#load_html').hide()
  156. $('.link-menu').removeClass('active')
  157. $('.link-list').hide()
  158. $('.link-menu[data-id='+index+']').addClass('active')
  159. $('.link-list[data-id='+index+']').show()
  160. }
  161. function loadActivity(){
  162. $('.link-path').show()
  163. $('#load_html').show()
  164. $('.link-list').hide()
  165. $('.link-path').html('<span onclick="showBlock(2)">营销页面</span>/<span class="leaf">活动详情</span>')
  166. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_activity');
  167. }
  168. function loadLive(){
  169. $('.link-path').show()
  170. $('#load_html').show()
  171. $('.link-list').hide()
  172. $('.link-path').html('<span onclick="showBlock(2)">营销页面</span>/<span class="leaf">直播详情</span>')
  173. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_live');
  174. }
  175. function loadMarket(id){
  176. $('.link-path').show()
  177. $('#load_html').show()
  178. $('.link-list').hide()
  179. var text=''
  180. var path=''
  181. switch(id){
  182. case 1:
  183. path='%2Fhome%2Fmarketcard'
  184. text='刮刮卡'
  185. break
  186. case 2:
  187. path='%2Fhome%2Fmarketwheel'
  188. text='大转盘'
  189. break
  190. case 3:
  191. path='%2Fhome%2Fmarketegg'
  192. text='砸金蛋'
  193. break
  194. case 4:
  195. path='%2Fhome%2Fmarketzodiac'
  196. text='生肖翻翻看'
  197. break
  198. }
  199. $('.link-path').html('<span onclick="showBlock(2)">营销页面</span>/<span class="leaf">'+text+'</span>')
  200. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_market?type='+id+'&path='+path);
  201. }
  202. function loadBonus(){
  203. $('.link-path').show()
  204. $('#load_html').show()
  205. $('.link-list').hide()
  206. $('.link-path').html('<span onclick="showBlock(2)">营销页面</span>/<span class="leaf">红包</span>')
  207. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_bonus');
  208. }
  209. function loadSpecial(id){
  210. $('.link-path').show()
  211. $('#load_html').show()
  212. $('.link-list').hide()
  213. if(!id){
  214. $('.link-path').html('<span onclick="showBlock(2)">营销页面</span>/<span class="leaf">商城装修</span>')
  215. }else{
  216. $('.link-path').html('<span onclick="showBlock(5)">店铺页面</span>/<span onclick="loadStore(2)">选择店铺</span>/<span class="leaf">店铺装修</span>')
  217. }
  218. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_special?store_id='+id);
  219. }
  220. function loadPointProd(){
  221. $('.link-path').show()
  222. $('#load_html').show()
  223. $('.link-list').hide()
  224. $('.link-path').html('<span onclick="showBlock(3)">积分页面</span>/<span class="leaf">积分商品详情</span>')
  225. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_point_prod');
  226. }
  227. function loadArticleClass(){
  228. $('.link-path').show()
  229. $('#load_html').show()
  230. $('.link-list').hide()
  231. $('.link-path').html('<span onclick="showBlock(4)">文章页面</span>/<span class="leaf">文章分类</span>')
  232. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_article_class');
  233. }
  234. function loadArticle(){
  235. $('.link-path').show()
  236. $('#load_html').show()
  237. $('.link-list').hide()
  238. $('.link-path').html('<span onclick="showBlock(4)">文章页面</span>/<span class="leaf">文章详情</span>')
  239. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_article');
  240. }
  241. function loadDocument(){
  242. $('.link-path').show()
  243. $('#load_html').show()
  244. $('.link-list').hide()
  245. $('.link-path').html('<span onclick="showBlock(4)">文章页面</span>/<span class="leaf">协议</span>')
  246. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_document');
  247. }
  248. function loadStoreClass(){
  249. $('.link-path').show()
  250. $('#load_html').show()
  251. $('.link-list').hide()
  252. $('.link-path').html('<span onclick="showBlock(5)">店铺页面</span>/<span class="leaf">店铺分类</span>')
  253. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_store_class');
  254. }
  255. function loadStore(id){
  256. $('.link-path').show()
  257. $('#load_html').show()
  258. $('.link-list').hide()
  259. var text=''
  260. var path=''
  261. var callback=''
  262. switch(id){
  263. case 1:
  264. path='%2Fhome%2Fstoredetail'
  265. text='店铺详情'
  266. break
  267. case 2:
  268. callback='loadSpecial'
  269. text='选择店铺'
  270. break
  271. case 3:
  272. path='%2Fhome%2Fstoremap'
  273. text='店铺地图'
  274. break
  275. case 4:
  276. path='%2Fhome%2Fstoreabout'
  277. text='店铺介绍'
  278. break
  279. case 5:
  280. path='%2Fhome%2Fstorevoucher'
  281. text='店铺代金券'
  282. break
  283. case 6:
  284. path='%2Fhome%2Fstore_goodsclass'
  285. text='店铺商品分类'
  286. break
  287. case 7:
  288. path='%2Fhome%2Fstore_goodslist'
  289. text='店铺商品列表'
  290. break
  291. }
  292. $('.link-path').html('<span onclick="showBlock(5)">店铺页面</span>/<span class="leaf">'+text+'</span>')
  293. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_store?path='+path+'&callback='+callback);
  294. }
  295. function loadGoodsClass(){
  296. $('.link-path').show()
  297. $('#load_html').show()
  298. $('.link-list').hide()
  299. $('.link-path').html('<span onclick="showBlock(6)">商品页面</span>/<span class="leaf">商品分类</span>')
  300. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_goods_class');
  301. }
  302. function loadGoods(id){
  303. $('.link-path').show()
  304. $('#load_html').show()
  305. $('.link-list').hide()
  306. var text=''
  307. var path=''
  308. switch(id){
  309. case 1:
  310. path='%2Fhome%2Fgoodsdetail'
  311. text='商品详情'
  312. break
  313. case 2:
  314. path='%2Fhome%2Fgoods_video'
  315. text='商品视频'
  316. break
  317. case 3:
  318. path='%2Fhome%2Fgoodsconsult'
  319. text='商品咨询'
  320. break
  321. }
  322. $('.link-path').html('<span onclick="showBlock(6)">商品页面</span>/<span class="leaf">'+text+'</span>')
  323. $('#load_html').load(ADMINSITEURL+'/Dashboard/h5_goods?path='+path);
  324. }
  325. function setLink(path){
  326. window.parent.setLink(path)
  327. var index=parent.layer.getFrameIndex(window.name)
  328. parent.layer.close(index)
  329. }
  330. </script>