diff --git a/css/my_help_sale.css b/css/my_help_sale.css new file mode 100644 index 0000000..45a66f4 --- /dev/null +++ b/css/my_help_sale.css @@ -0,0 +1,62 @@ +.mydata .mydata-content{ + background: #fff; + width: 100%; + display: flex; + justify-content: flex-start; + flex-wrap: wrap; +} + +.mydata .mydata-content .mydata-table-view-cell{ + width: 20%; + text-align: center; + border-right: 1px solid #ECECEC; + border-bottom: 1px solid #ECECEC; + +} +.mydata .mydata-content .mydata-table-view-cell a { + color:#525252 ; + display: inline-block; + width: 100%; +} +.mydata .mydata-content .mydata-table-view-cell p { + font-size: 18px; +} +.mydata .mydata-content .mydata-table-view-cell .mydata-media-body { + font-size: 13px; +} + +.helpSaleTableRow .c1 { + font-size: 18px; + color: black; + line-height: 42px; + width: 22%; + display: inline-block; + text-align: center; +} + +.helpSaleTableRow .c2 { + font-size: 18px; + color: black; + line-height: 42px; + width: 30%; + display: inline-block; + text-align: center; +} + +.helpSaleTableRow .c3 { + font-size: 18px; + color: black; + line-height: 42px; + width: 30%; + display: inline-block; + text-align: center; +} + +.helpSaleTableRow .c4 { + font-size: 18px; + color: black; + line-height: 42px; + width: 16%; + display: inline-block; + text-align: center; +} diff --git a/css/setting.css b/css/setting.css index c7039d3..152867d 100644 --- a/css/setting.css +++ b/css/setting.css @@ -49,7 +49,7 @@ body .header1{ .z{ width: 100%; - height: 66px; + height: 50px; } .block{ margin-top: 36px; diff --git a/index.html b/index.html index 1f255de..23bd546 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,7 @@ - diff --git a/js/my.js b/js/my.js index 3b1c60a..694dc42 100644 --- a/js/my.js +++ b/js/my.js @@ -305,6 +305,9 @@ var localAuthType = localStorage.getItem("authType"); mui.alert('只有合作认证才可以申请商厦') } }) + $('.mydata-content').on('tap', '.help_sale', function() { + JZL.openWindow('my_help_sale.html', 'my_help_sale.html') + }) // setTimeout(function() { // //console.log(authType); // if (2 == authType) { // 合作认证 diff --git a/js/my_help_sale.js b/js/my_help_sale.js new file mode 100644 index 0000000..3c9235f --- /dev/null +++ b/js/my_help_sale.js @@ -0,0 +1,55 @@ +mui.plusReady(function(){ + // some Ajax + var data = [ + {level_id: 1, level_name: '一层', helpSaleCount: 2, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 2, level_name: '二层', helpSaleCount: 4, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 3, level_name: '三层', helpSaleCount: 5, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 4, level_name: '四层', helpSaleCount: 7, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 5, level_name: '五层', helpSaleCount: 8, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 6, level_name: '六层', helpSaleCount: 10, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 7, level_name: '七层', helpSaleCount: 17, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 8, level_name: '八层', helpSaleCount: 28, preGetHelpSale: 123.456, cancelledHelpSale: 78.90}, + {level_id: 9, level_name: '⑨层', helpSaleCount: 99, preGetHelpSale: 999.999, cancelledHelpSale: 99.999}, + ]; + for (let i in data) { + let each = data[i]; + $("#helpSaleTable").append('
'+each.helpSaleCount+''+each.preGetHelpSale+''+ + ''+each.cancelledHelpSale+''+each.level_name+'
') + } + $("#userName").text(localStorage.getItem("userName")) + // some Ajax + JZL.ajax(qlgUrl('app/users/getIndex'), {}, function(data) { + // console.log(data); //服务器返回响应,根据响应结果,分析是否登录成功; + var data = toJson(data, 1); + if (data.status == 1) { + userId = parseInt(data.data.user.userId); + localStorage.setItem("userName", data.data.user.userName) + $("#userName").text(data.data.user.userName) + $("#preGetCouponCount").text("预获产品券:¥"+data.data.expectedCouponsNum); + } + }) + $("#preGetCoupon").on("tap",function(){ + JZL.openWindow("vouchers.html", "vouchers.html", { + data_href: 'expectedProduct', + data_type: '1', + data_expect: '1' + }) + }) + $("#myHelpSaleOrder").on("tap", function(){ + mui.openWindow({ + url: 'indent.html', + id: 'all', + extras: { + data_href: 'all' + }, + createNew: false, //是否重复创建同样id的webview,默认为false:不重复创建,直接显示 + waiting: { + autoShow: true, //自动显示等待框,默认为true + title: '正在加载...', //等待对话框上显示的提示内容 + } + }) + }) + $("#toHelpSale").on("tap", function(){ + JZL.openWindow('zhugouba.html', 'zhugouba.html'); + }) +}) \ No newline at end of file diff --git a/js/setting.js b/js/setting.js index a514890..30756b8 100644 --- a/js/setting.js +++ b/js/setting.js @@ -50,6 +50,8 @@ mui.plusReady(function() { success: function(data) { //服务器返回响应,根据响应结果,分析是否登录成功; // //console.log(data.data.goodsFavoritesNum) localStorage.removeItem("token"); + localStorage.removeItem("userId"); + localStorage.removeItem("userName"); mui.fire(plus.webview.getWebviewById('templete/my.html'), 'refresh'); mui.fire(plus.webview.getWebviewById('templete/shoppingcart.html'), 'refresh'); mui.back(); diff --git a/js/start.js b/js/start.js index ff58650..de14b6e 100644 --- a/js/start.js +++ b/js/start.js @@ -88,7 +88,7 @@ function jumpPage(ipxSizeBottom) { var bSize = 50 + (+ipxSizeBottom) + 'px'; var subpages = ['templete/home.html', 'templete/shops.html', 'templete/zhuweiba.html', - // 'templete/zhugouba.html', + 'templete/zhugouba.html', 'templete/my.html' ]; var subpage_style = { @@ -103,8 +103,10 @@ function jumpPage(ipxSizeBottom) { window.addEventListener('refresh', function(e) { var my = plus.webview.getWebviewById('templete/my.html'); //触发父页面的自定义事件(refresh),从而进行刷新 var zhuweiba = plus.webview.getWebviewById('templete/zhuweiba.html'); //触发父页面的自定义事件(refresh),从而进行刷新 + var zhugouba = plus.webview.getWebviewById('templete/zhugouba.html'); //触发父页面的自定义事件(refresh),从而进行刷新 mui.fire(my, 'refresh'); mui.fire(zhuweiba, 'refresh'); + mui.fire(zhugouba, 'refresh'); }) // launchScreen(); plus.screen.lockOrientation("portrait-primary"); diff --git a/templete/my.html b/templete/my.html index eb4a468..82567c9 100644 --- a/templete/my.html +++ b/templete/my.html @@ -201,6 +201,14 @@

申请商都

+ +
+ +
+
+

助购

+
+
diff --git a/templete/my_help_sale.html b/templete/my_help_sale.html new file mode 100644 index 0000000..15488f3 --- /dev/null +++ b/templete/my_help_sale.html @@ -0,0 +1,137 @@ + + + + + + + 助购 + + + + +
+
+ + +

助购

+
+
+
+
+
我家订单我家全部订单
+
+ + +
+
+ +
+
+
+
助购户助购预获 + 放弃购物购物
+
+
+ + + + + +