| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | data: JSON.parse(params), |
| | | url: "http://192.168.1.253:8080/fanli/api/v2/invite/countMyTeamV2", |
| | | url: "http://api.flqapp.com/fanli/api/v2/invite/countMyTeamV2", |
| | | dataType: "jsonp", |
| | | async: true, |
| | | success: function(result) { |
| | |
| | | * {
|
| | | margin: 0;
|
| | | top: 0;
|
| | | /* 不允许复制 */
|
| | | -moz-user-select: none;
|
| | | /* Firefox私有属性 */
|
| | |
| | | .div_header {
|
| | | position: fixed;
|
| | | width: 100%; |
| | | z-index: 100
|
| | | z-index: 100;
|
| | | top: 0
|
| | | }
|
| | |
|
| | | .div_header_title {
|
| | |
| | | height: 2.1rem;
|
| | | border: none;
|
| | | outline: medium;
|
| | | padding-left: 0.32rem;
|
| | | padding: 0.3rem;
|
| | | color: #000000;
|
| | | font-size: 0.3rem;
|
| | | }
|
| | |
| | | position: fixed;
|
| | | width: 7.5rem;
|
| | | height: 0.96rem;
|
| | | top: 11.1rem;
|
| | |
|
| | | bottom: 0;
|
| | | z-index: 9999;
|
| | | display: -webkit-flex;
|
| | | align-items: center;
|
| | | justify-content: center;
|
| | |
|
| | | }
|
| | |
|
| | | .div_commit div {
|
| | |
| | | align-items: center;
|
| | | justify-content: center;
|
| | | } |
| | |
|
| | | @supports (bottom: env(safe-area-inset-bottom)) {
|
| | | .div_commit {
|
| | | padding-bottom: env(safe-area-inset-bottom);
|
| | | }
|
| | | } |
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.122:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | |
|
| | | <script>
|
| | | // "http://api.flqapp.com";
|
| | | var host = "http://192.168.1.122:8080";
|
| | | var host = "http://api.flqapp.com";
|
| | | $(function() {
|
| | | var app = new Vue({
|
| | | el: '#root',
|
| | |
| | | case 3:
|
| | | break;
|
| | | case 4:
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/openVip/index.html', null)
|
| | | break;
|
| | | case 5:
|
| | | yesApp.jumpWeb('http://192.168.1.66:8848/flqFront/AppInside/yjCompute/index.html', null)
|
| | | yesApp.jumpWeb('http://apph5.banliapp.com/AppInside/yjCompute/index.html', null)
|
| | | break;
|
| | | case 6:
|
| | | yesApp.jumpWeb('http://192.168.1.66:8848/flqFront/AppInside/dataPreview/datapreviewmain.html', null)
|
| | | yesApp.jumpWeb('http://192.168.1.122:8848/flqFront/AppInside/dataPreview/datapreviewmain.html', null)
|
| | | break;
|
| | | case 7:
|
| | | break;
|
| | |
| | | * {
|
| | | margin: 0;
|
| | | top: 0;
|
| | | /* 不允许复制 */
|
| | | -moz-user-select: none;
|
| | | /* Firefox私有属性 */
|
| | |
| | | }
|
| | |
|
| | | .content {
|
| | | color: #888888;
|
| | | color: #333333;
|
| | | font-size: 0.36rem;
|
| | | margin-right: 0.35rem;
|
| | | font-weight: bold;
|
| | | border-style: none;
|
| | | text-align: right;
|
| | | border: 0;
|
| | | outline: none;
|
| | | }
|
| | |
|
| | | .div_commit {
|
| | | bottom: 0;
|
| | | background-color: #FFFFFF;
|
| | | position: fixed;
|
| | | width: 7.5rem;
|
| | | height: 0.96rem;
|
| | | top: 11.1rem;
|
| | |
|
| | | bottom: 0;
|
| | | z-index: 1000;
|
| | | display: -webkit-flex;
|
| | | align-items: center;
|
| | |
| | | justify-content: center;
|
| | | }
|
| | |
|
| | | @supports (bottom: env(safe-area-inset-bottom)) {
|
| | | .div_commit {
|
| | | padding-bottom: env(safe-area-inset-bottom);
|
| | | }
|
| | | }
|
| | |
|
| | | .div_add_bg {
|
| | | background-color: #F3F3F3;
|
| | | margin-top: 0.25rem;
|
| | |
| | | <div class="div_item_bg">
|
| | | <div class="div_items" v-for="(item, index) in yjlist">
|
| | | <div class="title">{{item.title}}</div>
|
| | | <div class="content">{{item.content}}</div>
|
| | | <input type="text" class="content" v-bind:placeholder="index==yjlist.length-1?item.content:''" :value="state==0?'':item.content"
|
| | | v-bind:readonly="index==yjlist.length-1?(state==0?false:true):true" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" />
|
| | | </div>
|
| | | </div>
|
| | | <!-- 添加粉丝 -->
|
| | | <div class="div_add_bg" @click="addFans">
|
| | | <div class="div_add_bg" @click="addFans" v-if="state==0">
|
| | | <div class="div_img">
|
| | | <img src="img/icon_add.png">
|
| | | </div>
|
| | | <div class="div_add_desc">添加粉丝</div>
|
| | | </div>
|
| | | <div class="div_desc">建议粉丝数不超过9代</div>
|
| | | <div class="div_desc" v-if="state==0">建议粉丝数不超过9代</div>
|
| | |
|
| | | <div style="height: 1.5rem;"></div>
|
| | | <!-- 提交申请 -->
|
| | |
| | | buttonName: '开始计算',
|
| | | yjlist: [],
|
| | | n: 0,
|
| | | typelist: ['超级会员', '高级会员', '快省达人']
|
| | | typelist: ['超级会员', '高级会员', '快省达人'],
|
| | | state: 0 //0-输入模式 1-显示模式
|
| | | },
|
| | | watch: {
|
| | | yjlist: function(val) {
|
| | |
| | | },
|
| | | methods: {
|
| | | addFans: function() {
|
| | | if (app.yjlist != null && app.yjlist.length >= 9)
|
| | | return;
|
| | | $('.dialogmask').css('display', 'block')
|
| | | },
|
| | |
|
| | |
| | | if (app.n == 0) {
|
| | | params = {
|
| | | title: '超级会员',
|
| | | content: '¥0.00'
|
| | | content: '¥0.00',
|
| | | level: 'superVIP'
|
| | | }
|
| | |
|
| | | } else if (app.n == 1) {
|
| | | params = {
|
| | | title: '普通会员',
|
| | | content: '¥0.00'
|
| | | title: '高级会员',
|
| | | content: '¥0.00',
|
| | | level: 'highVIP'
|
| | | }
|
| | |
|
| | | } else if (app.n == 2) {
|
| | | params = {
|
| | | title: '快省达人',
|
| | | content: '¥0.00'
|
| | | content: '¥0.00',
|
| | | level: 'daRen'
|
| | | }
|
| | | }
|
| | | var list = app.yjlist;
|
| | |
| | | if (app.buttonName == '开始计算') {
|
| | | if (app.yjlist == null || app.yjlist.length <= 0) return;
|
| | | //请求数据改变
|
| | | app.buttonName = '重新填写';
|
| | |
|
| | | app.compute();
|
| | | } else {
|
| | | app.state = 0;
|
| | | //重新填写清空数据
|
| | | app.yjlist.splice(0, app.yjlist.length);
|
| | | app.buttonName = '开始计算';
|
| | | }
|
| | | },
|
| | |
|
| | |
|
| | | compute: function() {
|
| | |
|
| | | var json = new Array();
|
| | | for (var i = 0; i < app.yjlist.length; i++) {
|
| | | json.push(app.yjlist[i].level);
|
| | | }
|
| | |
|
| | |
|
| | | var money = $("input[type=text]:last").val();
|
| | | if (money == null || money == '' || money.length < 1) {
|
| | | yesApp.toast("请输入金额");
|
| | | return;
|
| | | }
|
| | |
|
| | |
|
| | | var params = {
|
| | | list: JSON.stringify(json),
|
| | | money: money
|
| | | };
|
| | |
|
| | |
|
| | |
|
| | | params = yesApp.getRequestBaseParams(params);
|
| | | yesApp.showLoading();
|
| | | $.ajax({
|
| | | type: "GET",
|
| | | data: JSON.parse(params),
|
| | | url: "http://api.flqapp.com/fanli/api/v1/help/computeCommission",
|
| | | dataType: "jsonp",
|
| | | async: true,
|
| | | success: function(result) {
|
| | | yesApp.hideLoading();
|
| | | app.state = 1;
|
| | | if (result.code == 0) {
|
| | | var list = result.data.list;
|
| | | var appList = app.yjlist;
|
| | | for (var i = 0; i < list.length; i++) {
|
| | | appList[i].content = list[i];
|
| | | appList[i].show = 1;
|
| | | }
|
| | |
|
| | | app.buttonName = '重新填写';
|
| | |
|
| | | } else {
|
| | | yesApp.toast(result.msg);
|
| | | }
|
| | | },
|
| | | fail: function(res) {
|
| | | yesApp.hideLoading();
|
| | | }
|
| | | });
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | | });
|
| | | });
|