| | |
| | | window.onresize();
|
| | | </script>
|
| | | <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
|
| | | <script src="http://img.flqapp.com/resource/js/app2019112217.js"></script>
|
| | | <script src="http://img.flqapp.com/resource/js/app20200227.js"></script>
|
| | | <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
| | | <script type="text/javascript" src="js/layer.js"></script>
|
| | | </head>
|
| | | <body>
|
| | | <div id="root">
|
| | | <div class="div_recommendedText">
|
| | | <div id="root" style="display: none;">
|
| | | <div class="div_recommendedText" v-if="title">
|
| | | <div id="recommendedText_title" class="title">推荐文本</div>
|
| | | <div class="div_recommendedText_content">
|
| | | <textarea rows="" cols="" class="textareas"></textarea>
|
| | | <div class="textareas" v-html="title">
|
| | |
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | <div class="div_commentText">
|
| | | <div class="div_commentText" v-if="comment">
|
| | | <div id="recommendedText_title" class="title">评论文本</div>
|
| | | <div class="div_commentText_content">
|
| | | <textarea rows="" cols="" class="textareas_comment"></textarea>
|
| | | <div class="textareas" v-html="comment">
|
| | |
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | <div class="div_item_bg">
|
| | | <div class="div_items" v-for="(item, index) in dataList">
|
| | | <div class="div_items" v-for="(item, index) in imgs" style="font-size: 0;">
|
| | |
|
| | | <img v-bind:src="item" style="">
|
| | |
|
| | | </div>
|
| | | </div>
|
| | |
| | |
|
| | | <div class="div_commit">
|
| | | <!-- 提交申请 -->
|
| | | <div @click="shareActivity" style="margin-left: 0.3rem;">分享活动</div>
|
| | | <div @click="browseDetails" style="margin-left: 0.1rem;">浏览详情</div>
|
| | | <div @click="copyComment" style="margin-left: 0.3rem;">分享活动</div>
|
| | | <div @click="jumpDetail" style="margin-left: 0.1rem;">浏览详情</div>
|
| | | </div>
|
| | |
|
| | | <div id="share" style="display: none;">
|
| | | <div class="share_title">分享网页</div>
|
| | | <div class="share_title">分享活动</div>
|
| | | <div class="share_content">
|
| | |
|
| | | <div class="share_content_content" onclick="shareText(1)">
|
| | |
| | | <img src="img/icon_copy.png">
|
| | | </div>
|
| | | <div class="share_content_content_title">
|
| | | 复制链接
|
| | | 复制评论
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | <script>
|
| | | var layerIndex;
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.122:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var app = null;
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | app = new Vue({
|
| | | el: '#root',
|
| | | data: {
|
| | | dataList: [{}, {}]
|
| | | dataList: [{}, {}],
|
| | | title: '',
|
| | | comment: '',
|
| | | imgs: [],
|
| | | jump: {},
|
| | | shareContent: ''
|
| | | },
|
| | | watch: {},
|
| | | watch: {
|
| | | imgs: function(e) {
|
| | | $("#root").css("display", "block");
|
| | | }
|
| | | },
|
| | | methods: {
|
| | | shareActivity: function() {
|
| | | layerIndex = layer.open({
|
| | |
| | | style: 'position:fixed; bottom:0; left:0; width: 100%; height: 3.4rem; padding:0 0; border:none;background-color: white'
|
| | | });
|
| | | },
|
| | | browseDetails: function() {
|
| | | getQueryString: function(name) {
|
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
|
| | | var r = window.location.search.substr(1).match(reg);
|
| | | if (r != null) return unescape(r[2]);
|
| | | return null;
|
| | | },
|
| | | //复制评论语
|
| | | copyComment: function() {
|
| | | var id = app.getQueryString("id");
|
| | | var type = app.getQueryString("type");
|
| | |
|
| | | var params = {
|
| | | id: id,
|
| | | type:type
|
| | | };
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | |
|
| | | var url = "http://api.flqapp.com/fanli/api/v2/dynamic/copyShareComment"
|
| | | |
| | | yesApp.showLoading();
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: url,
|
| | | dataType: "jsonp",
|
| | | async: true,
|
| | | success: function(result) {
|
| | | if (result.code == 0) {
|
| | | app.shareContent = result.data.text;
|
| | | app.shareActivity();
|
| | | } else {
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | complete: function(e) {
|
| | | yesApp.hideLoading();
|
| | | }
|
| | | });
|
| | |
|
| | | },
|
| | | getData: function() { //获取数据
|
| | | var uid = yesApp.getUid();
|
| | | if (uid == null || uid == '' || uid == '0') {
|
| | | yesApp.login();
|
| | | yesApp.finishPage();
|
| | | return;
|
| | | }
|
| | |
|
| | | // cancelShare: function() {
|
| | | // layer.close(layerIndex);
|
| | | // },
|
| | | var id = app.getQueryString("id");
|
| | | var type = app.getQueryString("type");
|
| | | var params = {
|
| | | id: id,
|
| | | type: type
|
| | | };
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | | // yesApp.showLoading();
|
| | |
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: "http://api.flqapp.com/fanli/api/v2/dynamic/getActivityDetail",
|
| | | dataType: "jsonp",
|
| | | async: false,
|
| | | success: function(result) {
|
| | | yesApp.hideLoading();
|
| | | if (result.code == 0) {
|
| | | app.title = result.data.title;
|
| | | app.comment = result.data.comment;
|
| | | app.imgs = result.data.imgs;
|
| | | app.jump.params = result.data.params;
|
| | | app.jump.jumpDetail = result.data.jumpDetail;
|
| | | } else {
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | complete: function(e) {
|
| | | yesApp.hideLoading();
|
| | | }
|
| | | });
|
| | | },
|
| | |
|
| | | jumpDetail: function() {
|
| | | if (app.jump.jumpDetail != null) {
|
| | | //跳转详情
|
| | | yesApp.jumpPage(app.jump.jumpDetail, app.jump.params);
|
| | | }
|
| | | },
|
| | |
|
| | | },
|
| | |
|
| | | });
|
| | |
|
| | | app.getData();
|
| | | });
|
| | |
|
| | | //关闭分享弹框
|
| | |
| | | layer.close(layerIndex);
|
| | | }
|
| | |
|
| | | function shareText(type) { |
| | | function shareText(type) {
|
| | | if (type == 5) {
|
| | | yesApp.toast("复制成功");
|
| | | } else {
|
| | | yesApp.shareText(type, app.shareContent);
|
| | | }
|
| | | layer.close(layerIndex);
|
| | | yesApp.shareText(type, 'sssss')
|
| | | }
|
| | | </script>
|
| | | </html> |