<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport"/> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>学考无忧-我的推广</title> <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css"> <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css"> <style> html, body { width: 100%; height: 100%; display: flex; display: -webkit-flex; justify-content: flex-start; align-items: flex-start; flex-direction: column; } /*.code_Box {*/ /*background: #FF5C19 url("{:cmf_get_image_url($share_image)}") no-repeat top left;*/ /*background-size: 100%;*/ /*-webkit-background-size: 100%;*/ /*}*/ </style> </head> <body> <!-- 顶部 --> <div class="order_top" style="background-color: #FF5C19"> <a href="javascript:history.back(-1)"> <img src="__TMPL__/public/assets/images/left2.png" alt=""> </a> <p style="color:white">我的推广</p> </div> <div class="code_Box" style="<if condition='$status eq 2'>background-color: #FE3A00;<else />background-color: #fff;</if>margin-top: 0.88rem;"> <img src="{:cmf_get_image_url($share_image)}" style="-webkit-background-size: 100%;background-size: 100%;height: auto;width: 100%;"/> </div> <script src="__TMPL__/public/assets/js/base.js"></script> <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> </body> <script> wx.config({$jssdk}); wx.ready(function () { var shareData = { title: "{$share.share_title}", desc: "{$share.share_desc}", link: "{$share.share_url}", imgUrl: "{$share.share_image}", success: function () { //分享成功返回信息 } } //分享到朋友圈 wx.onMenuShareTimeline(shareData); //分享给朋友 wx.onMenuShareAppMessage(shareData); }) </script> </html>