Merge branch 'master' of ssh://193.112.35.168:29418/flqFront
1 文件已重命名
20个文件已修改
3个文件已添加
| | |
| | | width: 100%;
|
| | | height: 4.84rem;
|
| | | display: block;
|
| | | background-image: url("http://img.flqapp.com/resource/s12/top.png");
|
| | | background-image: url("http://img.flqapp.com/resource/618/top.png");
|
| | | background-size: 100% 100%;
|
| | | }
|
| | |
|
| | |
| | | </div>
|
| | |
|
| | | <div class="button" style="position: relative;margin: 0 auto;margin-top: 0.4rem;" id="hongBao">
|
| | | 12.7开始抢红包
|
| | | 5.29开始抢红包
|
| | | </div>
|
| | |
|
| | | <div style="margin-top: 0.1rem;font-size: 0.24rem;color: #FF2B4E;">
|
| | |
| | | <img src="img/1.png" class="stepIcon" />
|
| | | <span class="stepTitle">分享红包口令给朋友</span>
|
| | | </div>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | <div class="step">
|
| | |
| | | <script src="http://img.flqapp.com/resource/app20191021.js"></script>
|
| | | </body>
|
| | | <script>
|
| | | var startTime = 1575648000000;
|
| | | var hongBaoStartTime = 1576130400000;
|
| | | var hongBaoEndTime = 1576132200000;
|
| | | var startTime = 1590681600000;
|
| | | var hongBaoStartTime = 1590681600000;
|
| | | var hongBaoEndTime = 1592668800000;
|
| | |
|
| | | function getSuperHongBaoToken() {
|
| | |
|
| | |
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: params,
|
| | | url: "http://api.flqapp.com/fanli/api/apph5/v1/s11/getSuperHongBaoToken",
|
| | | url: "http://api.flqapp.com/fanli/api/apph5/v1/618/getSuperHongBaoToken",
|
| | | dataType: "jsonp",
|
| | | async: true,
|
| | | success: function(result) {
|
| | |
| | |
|
| | | $("#hongBao").click(function() {
|
| | | var timestamp = (new Date()).getTime();
|
| | | if (timestamp < startTime) {
|
| | | return;
|
| | | }
|
| | | yesApp.jumpBaiChuan(null, 'https://s.click.taobao.com/2K0Nxtv', null);
|
| | | // if (timestamp < startTime) {
|
| | | // return;
|
| | | // }
|
| | | yesApp.jumpBaiChuan(null, 'https://s.click.taobao.com/YRWdShv', null);
|
| | | });
|
| | | $("#shareHongBao").click(function() {
|
| | | if (timestamp < startTime) {
|
| | | return;
|
| | | }
|
| | | // if (timestamp < startTime) {
|
| | | // return;
|
| | | // }
|
| | | getSuperHongBaoToken();
|
| | | });
|
| | | $("#chouJiang").click(function() {
|
| | | if (timestamp < hongBaoStartTime || timestamp > hongBaoEndTime) {
|
| | | return;
|
| | | }
|
| | | yesApp.jumpBaiChuan(null, 'https://s.click.taobao.com/2K0Nxtv', null);
|
| | | yesApp.jumpBaiChuan(null, 'https://s.click.taobao.com/YRWdShv', null);
|
| | | });
|
| | |
|
| | |
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.122:8080";
|
| | | var host1 = "http://192.168.1.114:8848";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | touchindex: function(index) {
|
| | | switch (index) {
|
| | | case 0:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/dataPreview/myPreview.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/dataPreview/myPreview.html', null)
|
| | | break;
|
| | | case 1:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/dataPreview/fund.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/dataPreview/fund.html', null)
|
| | | break;
|
| | | case 2:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/dataPreview/txRecord.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/dataPreview/txRecord.html', null)
|
| | | break;
|
| | | case 3:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/dataPreview/orderPush.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/dataPreview/orderPush.html', null)
|
| | | break;
|
| | | case 4:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/dataPreview/receivedData.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/dataPreview/receivedData.html', null)
|
| | | break;
|
| | | default:
|
| | | break;
|
| | |
| | | </body>
|
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | teamBonus.length == 0 || teamBonus == null) {
|
| | | yesApp.toast('请将信息填写完整');
|
| | | return;
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | yesApp.showLoading();
|
| | | var uid = yesApp.getUid(); |
| | | |
| | | var uid = yesApp.getUid();
|
| | |
|
| | | var params = {
|
| | | uid: uid,
|
| | | preUid: preUid,
|
| | |
| | | selfRebate: selfRebate,
|
| | | shareBonus: shareBonus,
|
| | | teamBonus: teamBonus
|
| | | }; |
| | | |
| | | };
|
| | |
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | |
|
| | | $.ajax({
|
| | |
| | |
|
| | | } else {
|
| | | app.dataParms = result.data;
|
| | | $('#inpunt_preUid').val(result.data.preUid); |
| | | |
| | | $('#inpunt_preUid').val(result.data.preUid);
|
| | |
|
| | | if (app.dataParms.level == 'vip') {
|
| | | app.level == '超级会员'
|
| | | app.showLevel = '超级会员'
|
| | |
| | | </body>
|
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | </body>
|
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | <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="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
| | | |
| | |
|
| | | <script src="js/mobiscroll/mobiscroll_002.js" type="text/javascript"></script>
|
| | | <script src="js/mobiscroll/mobiscroll_004.js" type="text/javascript"></script>
|
| | | <link href="css/mobiscroll/mobiscroll_002.css" rel="stylesheet" type="text/css">
|
| | |
| | | </script>
|
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | var nowDate = new Date();
|
| | | var nowDate = new Date();
|
| | | var year = nowDate.getFullYear();
|
| | |
| | | if (!timeBoll) {
|
| | | yesApp.toast('提现时间不得选择早于当前时间')
|
| | | return;
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | if (parseInt(txMoney) > 1000) {
|
| | | yesApp.toast('单笔最大提现金额不超过1000')
|
| | | return;
|
| | |
| | | <div style="height: 3rem;"></div> |
| | | <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> |
| | | <script src="../../js/vue.js"></script> |
| | | <script src="../../js/app.js?_=12"></script> |
| | | <script src="../../js/app.js?_=13"></script> |
| | | </body> |
| | | <script> |
| | | //网络同步请求 |
| | |
| | | }, |
| | | methods: { |
| | | toGoodsDetail: function(item) { |
| | | yesApp.jumpMianDanGoodsDetail(item.goodsId); |
| | | yesApp.jumpMianDanGoodsDetail(parseInt(item.goodsId)); |
| | | }, |
| | | toGoodsMore: function() { |
| | | yesApp.jumpMianDanGoodsList(); |
| | |
| | | img_select_vip: 1,
|
| | | img_select_use: 1,
|
| | | level: 'highVIP', // 开通的用户等级
|
| | |
|
| | | imgList: [
|
| | |
|
| | | ],
|
| | | imgList: [],
|
| | | readonly: false
|
| | | },
|
| | | watch: {
|
| | |
| | | tirggerFile: function(event) {
|
| | | if (app.readonly)
|
| | | return;
|
| | | if (app.imgList == null || app.imgList == undefined) {
|
| | | app.imgList = new Array();
|
| | | }
|
| | | var list = app.imgList;
|
| | | let file = event.target.files[0];
|
| | | let url = "";
|
| | |
| | | reader.readAsDataURL(file);
|
| | | reader.onload = function(e) {
|
| | | url = this.result.substring(this.result.indexOf(",") + 1);
|
| | | list.push({
|
| | | data: "data:image/png;base64," + url,
|
| | | file: file
|
| | | });
|
| | | app.imgList = list;
|
| | |
|
| | | try {
|
| | | app.imgList.push({
|
| | | data: "data:image/png;base64," + url,
|
| | | file: file
|
| | | });
|
| | | } catch (e) {}
|
| | |
|
| | | };
|
| | | },
|
| | | deleteImg: function(index) {
|
| | |
| | | if (app.readonly) {
|
| | | $(".div_commit").find("div").eq(0).css("background", "#E0E0E0");
|
| | | $(".div_commit").find("div").eq(0).html("待提交资料");
|
| | | $(".div_commit").css("display","none");
|
| | | $(".div_commit").css("display", "none");
|
| | | }
|
| | |
|
| | | } else {
|
| | |
| | |
|
| | | params = JSON.parse(params);
|
| | |
|
| | | for (var i = 0; i < app.imgList.length; i++) {
|
| | | params['imgs_' + i] = (app.imgList[i].file)
|
| | | }
|
| | | if (app.imgList != undefined && app.imgList != null)
|
| | | for (var i = 0; i < app.imgList.length; i++) {
|
| | | params['imgs_' + i] = (app.imgList[i].file)
|
| | | }
|
| | |
|
| | | fileUpload.upload({
|
| | | url: host + '/fanli/api/v1/user/vip/uploadApplyInfo',
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host1 = "http://192.168.1.114:8848";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | touchType: function(type) {
|
| | | switch (type) {
|
| | | case 1:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamOrder/index.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamOrder/index.html', null)
|
| | | break;
|
| | | case 2:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamFans/index.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamFans/index.html', null)
|
| | | break;
|
| | | case 3:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/index.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/index.html', null)
|
| | | break;
|
| | | case 4:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/openVip/index.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/openVip/index.html', null)
|
| | | break;
|
| | | case 5:
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/yjCompute/index.html', null)
|
| | | yesApp.jumpWeb(host1 +'/AppInside/yjCompute/index.html', null)
|
| | | break;
|
| | | case 6:
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/dataPreview/datapreviewmain.html', null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/dataPreview/datapreviewmain.html', null)
|
| | | break;
|
| | | case 7:
|
| | | yesApp.toast('功能开发中...')
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host1 = "http://192.168.1.114:8848";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | |
|
| | | var nowDate = new Date();
|
| | | var year = nowDate.getFullYear();
|
| | |
| | | methods: {
|
| | | touchHistoryDetail: function(datetype) {
|
| | | if (datetype == 1) {
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/teamBonusDay.html?datetype=1&date=' + today, null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/teamBonusDay.html?datetype=1&date=' + today, null)
|
| | |
|
| | | } else if (datetype == 2) {
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/teamBonusMonth.html?datetype=2&date=' + month, null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/teamBonusMonth.html?datetype=2&date=' + month, null)
|
| | | }
|
| | | },
|
| | |
|
| | | touchBonusDetail: function(datetype) {
|
| | | if (datetype == 1) {
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/teamBonusDetail.html?datetype=1&date=' + today, null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/teamBonusDetail.html?datetype=1&date=' + today, null)
|
| | |
|
| | | } else if (datetype == 2) {
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/teamBonusDetail.html?datetype=2&date=' + month, null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/teamBonusDetail.html?datetype=2&date=' + month, null)
|
| | | }
|
| | | },
|
| | |
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host1 = "http://192.168.1.114:8848";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | | var dateRequest = getQueryString('date');
|
| | | var datetypeRequest = getQueryString('datetype');
|
| | |
|
| | |
| | | var day = time.split("年")[1].split("月")[1].split("日")[0];
|
| | |
|
| | | var dateDetail = year + '-' + month + '-' + day;
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/teamBonusDetail.html?datetype=1&date=' + dateDetail,
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/teamBonusDetail.html?datetype=1&date=' + dateDetail,
|
| | | null)
|
| | | },
|
| | |
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | |
|
| | | var date = getQueryString('date');
|
| | | var datetype = getQueryString('datetype');
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host1 = "http://192.168.1.114:8848";
|
| | | var host = "http://api.flqapp.com";
|
| | | var host1 = "http://apph5.banliapp.com";
|
| | |
|
| | | var dateRequest = getQueryString('date');
|
| | | var datetypeRequest = getQueryString('datetype');
|
| | |
| | | var year = date.split("年")[0];
|
| | | var month = date.split("年")[1].split("月")[0];
|
| | | var dateRequest = year + '-' + month;
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/teamBonusDetail.html?datetype=2&date=' + dateRequest,
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/teamBonusDetail.html?datetype=2&date=' + dateRequest,
|
| | | null)
|
| | | },
|
| | |
|
| | |
| | | var month = date.split("年")[1].split("月")[0];
|
| | | var day = getDaysInMonth(year, month);
|
| | | var date = year + '-' + month + '-' + day;
|
| | | yesApp.jumpWeb(host1 + '/flqFront/AppInside/teamBonus/teamBonusDay.html?datetype=1&date=' + date, null)
|
| | | yesApp.jumpWeb(host1 + '/AppInside/teamBonus/teamBonusDay.html?datetype=1&date=' + date, null)
|
| | | },
|
| | |
|
| | | fetchTeamDividendStatistic: function(change) {
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | },
|
| | |
|
| | | didSelect: function(result) {
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamFans/fansSearchResult.html?key=' + result,
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/teamFans/fansSearchResult.html?key=' + result,
|
| | | null)
|
| | | },
|
| | |
|
| | |
| | |
|
| | | localStorage.setItem('fansResut', JSON.stringify(list));
|
| | |
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamFans/fansSearchResult.html?key=' + result,
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/teamFans/fansSearchResult.html?key=' + result,
|
| | | null)
|
| | | },
|
| | | clearAll: function() {
|
| | |
| | |
|
| | | localStorage.setItem('fansResut', JSON.stringify(list));
|
| | |
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamFans/fansSearchResult.html?key=' + key,
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/teamFans/fansSearchResult.html?key=' + key,
|
| | | null)
|
| | | }
|
| | | })
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var requestResult = getQueryString('key');
|
| | |
|
| | | var app = null;
|
| | |
|
| | | $(function() {
|
| | |
| | | </body>
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | },
|
| | | methods: {
|
| | | enterSearch: function() {
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamFans/fansSearchMain.html', null)
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/teamFans/fansSearchMain.html', null)
|
| | | },
|
| | |
|
| | | changeTab: function(type) {
|
| | |
| | | </div>
|
| | | </body>
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | },
|
| | | methods: {
|
| | | enterSearch: function() {
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamOrder/orderSearchMain.html', null)
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/teamOrder/orderSearchMain.html', null)
|
| | | },
|
| | |
|
| | | changeTab: function(type) {
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var h5host = "http://apph5.banliapp.com/";
|
| | | $(function() {
|
| | |
|
| | |
|
| | |
| | | },
|
| | |
|
| | | didSelect: function(result) {
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamOrder/orderSearchResult.html?key=' + result,
|
| | | yesApp.jumpWeb(h5host+'AppInside/teamOrder/orderSearchResult.html?key=' + result,
|
| | | null)
|
| | | },
|
| | |
|
| | |
| | |
|
| | | localStorage.setItem('orderResut', JSON.stringify(list));
|
| | |
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamOrder/orderSearchResult.html?key=' + result,
|
| | | yesApp.jumpWeb(h5host+'AppInside/teamOrder/orderSearchResult.html?key=' + result,
|
| | | null)
|
| | | },
|
| | |
|
| | |
| | |
|
| | | localStorage.setItem('orderResut', JSON.stringify(list));
|
| | |
|
| | | yesApp.jumpWeb('http://192.168.1.114:8848/flqFront/AppInside/teamOrder/orderSearchResult.html?key=' + key,
|
| | | yesApp.jumpWeb(h5host+'AppInside/teamOrder/orderSearchResult.html?key=' + key,
|
| | | null)
|
| | | }
|
| | | })
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.253:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | var key = getQueryString('key');
|
| | | $('#input_key').val(key);
|
| | | var app = null;
|
File was renamed from app20200227.js |
| | |
| | | yesApp.postApi('shareImg', params); |
| | | }); |
| | | }, |
| | | //分享图片 |
| | | shareImgs: function(type, urls) { |
| | | var params = { |
| | | imgUrls: urls |
| | | }; |
| | | yesApp.api(function() { |
| | | yestv.shareImgs(type, urls); |
| | | }, function() { |
| | | params.type = type; |
| | | yesApp.postApi('shareImgs', params); |
| | | }); |
| | | }, |
| | | |
| | | savePicture: function(url) { |
| | | var params = { |
| | | url: url, |
| | |
| | | yesApp.postApi('savePicture', url); |
| | | }); |
| | | }, |
| | | |
| | | savePictures: function(urls) { |
| | | var params = { |
| | | type: 1, |
| | | imgUrls: JSON.stringify(urls) |
| | | } |
| | | |
| | | yesApp.api(function() { |
| | | yestv.savePictures(params.imgUrls); |
| | | }, function() { |
| | | yesApp.postApi('savePictures', params); |
| | | }); |
| | | }, |
| | | |
| | | //分享文本 |
| | | shareText: function(type, text) { |
| | | var params = { |
| | |
| | | }, function() { |
| | | yesApp.postApi('clearClipboard', null); |
| | | }); |
| | | }, |
| | | //跳转京东 |
| | | jumpJD: function(url) { |
| | | yesApp.api(function() { |
| | | yestv.jumpJD(url); |
| | | }, function() { |
| | | yesApp.postApi('jumpJD', { |
| | | url: url |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | |
New file |
| | |
| | | <!DOCTYPE HTML> |
| | | <html> |
| | | <head> |
| | | <title>Home</title> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> |
| | | <style type="text/css"> |
| | | body{ |
| | | margin: 0; |
| | | padding: 0; |
| | | } |
| | | img{ |
| | | width: 100%; |
| | | height: auto; |
| | | display: block; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60"> |
| | | <div class="descimg"></div> |
| | | <script> |
| | | function getiteminfo(itemid,supplierCode) { |
| | | $.ajax({ |
| | | url: "https://product.m.suning.com/pds-web/ajax/selfUniqueInfoJsonpCallbackV1_"+itemid+"_"+supplierCode+"_R9001774_11CC_0_0_01_999_itemUnique.html?_="+ (new Date()).getTime()+"&callback=itemUnique", |
| | | timeout: 1000, |
| | | tryCount: 0, |
| | | retryLimit: 3, |
| | | dataType: 'jsonp', |
| | | jsonp: 'callback', |
| | | success: function(result) { |
| | | |
| | | }, |
| | | error: function(xhr, textStatus, errorThrown) { |
| | | // this.tryCount++; |
| | | // $.ajax(this); |
| | | return; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function itemUnique(item) { |
| | | $(".descimg").html(item.itemDetail.phoneDetail); |
| | | for (var i = 0; i < $(".descimg").find("img").length; i++) { |
| | | $(".descimg").find("img").eq(i).attr("src", $(".descimg").find("img").eq(i).attr("src2")) |
| | | } |
| | | } |
| | | |
| | | //paraName 等找参数的名称 |
| | | function getUrlParam(paraName) { |
| | | var url = document.location.toString(); |
| | | var arrObj = url.split("?"); |
| | | |
| | | if (arrObj.length > 1) { |
| | | var arrPara = arrObj[1].split("&"); |
| | | var arr; |
| | | |
| | | for (var i = 0; i < arrPara.length; i++) { |
| | | arr = arrPara[i].split("="); |
| | | |
| | | if (arr != null && arr[0] == paraName) { |
| | | return arr[1]; |
| | | } |
| | | } |
| | | return ""; |
| | | } else { |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | |
| | | getiteminfo(getUrlParam("id"),getUrlParam("supplierCode")); |
| | | |
| | | function ResumeError() { |
| | | return true; |
| | | } |
| | | window.onerror = ResumeError; |
| | | </script> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>正在跳转</title> |
| | | <script src="http://img.flqapp.com/resource/js/app20200521.js"></script> |
| | | <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> |
| | | </head> |
| | | <body> |
| | | |
| | | |
| | | <script type="text/javascript"> |
| | | $(function() { |
| | | //获取链接 |
| | | function getQueryString(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | var r = window.location.search.substr(1).match(reg); |
| | | if (r != null) return unescape(r[2]); |
| | | return null; |
| | | } |
| | | var link = getQueryString("url"); |
| | | var params = { |
| | | link: link |
| | | }; |
| | | params = yesApp.getRequestBaseParams(params); |
| | | $.ajax({ |
| | | type: "GET", |
| | | data: JSON.parse(params), |
| | | url: "http://api.flqapp.com/fanli/api/v2/goods/convertJDLink", |
| | | dataType: "jsonp", |
| | | async: false, |
| | | success: function(result) { |
| | | if (result.code == 0) { |
| | | yesApp.jumpJD(result.data.link); |
| | | } else { |
| | | yesApp.jumpJD(link); |
| | | } |
| | | setTimeout(function() { |
| | | yesApp.finishPage(); |
| | | }, 1000); |
| | | |
| | | } |
| | | }); |
| | | |
| | | |
| | | }); |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>正在跳转</title> |
| | | <script src="http://img.flqapp.com/resource/js/app20200521.js"></script> |
| | | <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> |
| | | </head> |
| | | <body> |
| | | |
| | | |
| | | <script type="text/javascript"> |
| | | $(function() { |
| | | //获取链接 |
| | | function getQueryString(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | var r = window.location.search.substr(1).match(reg); |
| | | if (r != null) return unescape(r[2]); |
| | | return null; |
| | | } |
| | | var link = getQueryString("url"); |
| | | |
| | | yesApp.jumpPage({actvity:'',controller:'',type:'baichuan'},{url:link}); |
| | | setTimeout(function(){ |
| | | yesApp.finishPage(); |
| | | },1000); |
| | | |
| | | }); |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |