|
@@ -2,53 +2,131 @@
|
|
|
<#include "/home/frag.head.ftl" />
|
|
|
|
|
|
<div class="page__bd">
|
|
|
-<div class="weui-tab">
|
|
|
- <header class="demos-header">
|
|
|
- <h1 class="demos-title">团购</h1>
|
|
|
- </header>
|
|
|
- <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
- <span class="weui-loadmore__tips">团购信息</span>
|
|
|
- <div class="weui-media-box__bd">
|
|
|
- <h3>萝卜青椒大白菜</h3>
|
|
|
+ <div class="weui-tab">
|
|
|
+<#-- <header class="demos-header">-->
|
|
|
+<#-- <h1 class="demos-title">团购</h1>-->
|
|
|
+<#-- </header>-->
|
|
|
+ <div class="weui-btn-area" style="display: flex; flex-direction: row;">
|
|
|
+ <a class="weui-btn weui-btn_primary" href="javascript:goback();" style="width: 25vw; height: 6vh; line-height: 6vh;">返回</a>
|
|
|
+ <div style="width: 65%;"></div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
-
|
|
|
- <p style="text-indent: -0em;margin-left: 2em;">供应商: 接口的法国红酒返回打撒借款方和德生科技发送到返回的是否合适看警方海口市</p>
|
|
|
-
|
|
|
- <p style="text-indent: -0em;margin-left: 2em;">套 餐: 没有套餐</p>
|
|
|
-
|
|
|
- <p style="text-indent: -0em;margin-left: 2em;">单 价: 10</p>
|
|
|
-
|
|
|
- <p style="text-indent: -0em;margin-left: 2em;">最新起定量(份): 20</p>
|
|
|
-
|
|
|
- <p style="text-indent: -0em;margin-left: 2em;">截止时间: 2020-02-11</p>
|
|
|
-
|
|
|
- <p style="text-indent: -0em;margin-left: 2em;">预计送货时间: 2020-02-10</p>
|
|
|
-
|
|
|
- <p style="text-indent: -0em;margin-left: 2em;">服务电话: 12345678912</p>
|
|
|
- </div>
|
|
|
- <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
- <span class="weui-loadmore__tips">参团情况</span>
|
|
|
- <div class="weui-cells__title">当前参团43/100</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="weui-btn-area">
|
|
|
- <p id="zb" class="weui-btn weui-btn_primary">增补修订</p>
|
|
|
- <p id="qc" class="weui-btn weui-btn_primary">取消团购</p>
|
|
|
- <p id="wc" class="weui-btn weui-btn_primary">完成团购</p>
|
|
|
- <p id="ck" class="weui-btn weui-btn_primary">查看参团信息</p>
|
|
|
- </div>
|
|
|
+ <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
+ <span class="weui-loadmore__tips">团购信息</span>
|
|
|
+ <div class="weui-media-box__bd">
|
|
|
+ <h3>${ tgItem.tgTitle }</h3>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
|
|
|
+ <p style="text-indent: -0em;margin-left: 2em;">供应商: ${ tgItem.tgSupplier }</p>
|
|
|
+
|
|
|
+ <p style="text-indent: -0em;margin-left: 2em;">套 餐: ${ tgItem.tgGoods }</p>
|
|
|
+
|
|
|
+ <p style="text-indent: -0em;margin-left: 2em;">单 价: ${ tgItem.tgPrice }</p>
|
|
|
+
|
|
|
+ <p style="text-indent: -0em;margin-left: 2em;">最新起定量(份): ${ tgItem.tgMinNum }</p>
|
|
|
+
|
|
|
+ <p id="p_endTime" style="text-indent: -0em;margin-left: 2em;">截止时间: </p>
|
|
|
+
|
|
|
+ <p id="p_deliverTime" style="text-indent: -0em;margin-left: 2em;">预计送货时间: </p>
|
|
|
+
|
|
|
+ <p style="text-indent: -0em;margin-left: 2em;">服务电话: ${ tgItem.tgPhoneNumber }</p>
|
|
|
+ </div>
|
|
|
+ <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
+ <span class="weui-loadmore__tips">参团情况</span>
|
|
|
+ <div class="weui-cells__title">当前参团${ tgItem.currentNum }/${ tgItem.tgMinNum }</div>
|
|
|
+ </div>
|
|
|
+ <#if isMine=='mine' && tgItem.tgStatus==1>
|
|
|
+ <div class="weui-btn-area">
|
|
|
+ <p id="gb_zb" class="weui-btn weui-btn_primary">增补修订</p>
|
|
|
+ <p id="gb_qx" class="weui-btn weui-btn_primary">取消团购</p>
|
|
|
+ <p id="gb_wc" class="weui-btn weui-btn_primary">完成团购</p>
|
|
|
+ <p id="gb_ck" class="weui-btn weui-btn_primary">查看参团信息</p>
|
|
|
+ </div>
|
|
|
+ </#if>
|
|
|
+ <#if isMine!='mine' && tgItem.tgStatus==1>
|
|
|
+ <div class="weui-btn-area">
|
|
|
+ <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
+ <span class="weui-loadmore__tips">参团状态</span>
|
|
|
+ <div class="weui-cells__title">在团</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </#if>
|
|
|
+ <#if tgItem.tgStatus==2>
|
|
|
+ <div class="weui-btn-area">
|
|
|
+ <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
+ <span class="weui-loadmore__tips">参团状态</span>
|
|
|
+ <div class="weui-cells__title">发货</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </#if>
|
|
|
+ <#if tgItem.tgStatus==3>
|
|
|
+ <div class="weui-btn-area">
|
|
|
+ <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
+ <span class="weui-loadmore__tips">参团状态</span>
|
|
|
+ <div class="weui-cells__title">完成</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </#if>
|
|
|
+ <#if tgItem.tgStatus==4>
|
|
|
+ <div class="weui-btn-area">
|
|
|
+ <div class="weui-loadmore weui-loadmore_line" style="width: 100%">
|
|
|
+ <span class="weui-loadmore__tips">参团状态</span>
|
|
|
+ <div class="weui-cells__title">取消</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </#if>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
<#include "/home/frag.foot.ftl" />
|
|
|
|
|
|
- <script>
|
|
|
- $('#zb').on('click', function () {
|
|
|
- window.location.href = "/groupBuying/groupBuyingCx.html"
|
|
|
- });
|
|
|
+<script>
|
|
|
+
|
|
|
+ var userId = ${userId};
|
|
|
+ var tgItem = ${tgItemJson};
|
|
|
|
|
|
+ $('#p_endTime').append(tgItem.tgEndTime);
|
|
|
+ $('#p_deliverTime').append(tgItem.tgDeliverTime);
|
|
|
|
|
|
+ $('#gb_zb').on('click', function () {
|
|
|
+ window.location.href = "/yeweihui/groupBuyingCx.html?operation=remark&jmId=" + tgItem.jmId + "&userId=" + userId;
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#gb_qx').on('click', function () {
|
|
|
+ window.location.href = "/yeweihui/groupBuyingCx.html?operation=cancel&jmId=" + tgItem.jmId + "&userId=" + userId;
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#gb_wc').on('click', function () {
|
|
|
+ let sendData = {
|
|
|
+ jmId: tgItem.jmId,
|
|
|
+ status: 3
|
|
|
+ };
|
|
|
+ $.ajax({
|
|
|
+ url: '/yeweihui/groupBuyingCx/remark/add.json',
|
|
|
+ type: 'post',
|
|
|
+ data: sendData,
|
|
|
+ success: function (data) {
|
|
|
+ if (data.success) {
|
|
|
+ $.alert("操作成功");
|
|
|
+ goback();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $.alert("操作失败");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ $.alert("网络异常");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
+ $('#gb_ck').on('click', function () {
|
|
|
+ console.log("查看");
|
|
|
+ });
|
|
|
|
|
|
- </script>
|
|
|
+ function goback() {
|
|
|
+ window.location.href = "/yeweihui/home.html?show=tuangou&userId=" + userId;
|
|
|
+ }
|
|
|
+</script>
|