|
@@ -0,0 +1,100 @@
|
|
|
+<div class="weui-btn-area">
|
|
|
+ <div>
|
|
|
+ <div class="weui-flex__item">
|
|
|
+ <div class="placeholder" style="display: inline;float: left">当前参团:</div>
|
|
|
+ <div style="display: inline;">107</div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-flex__item">
|
|
|
+ <div style="display: inline;" class="placeholder">状态:</div>
|
|
|
+ <div style="display: inline;">在团</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-flex">
|
|
|
+ <div class="weui-flex__item">
|
|
|
+ <div style="display: inline;text-align: center;">我的团购:</div>
|
|
|
+ <div style="display: inline;">
|
|
|
+ <input type="text" id="buyCount"
|
|
|
+ style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh; width: 20%;"
|
|
|
+ maxlength="3" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-flex__item">
|
|
|
+ <div style="display: inline;">金额¥:</div>
|
|
|
+ <div style="display: inline;" id="myMenory">107</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-flex">
|
|
|
+ <div class="weui-flex__item">
|
|
|
+ <div style="display: inline;">联系电话:</div>
|
|
|
+ <div class="weui-flex__item" style="display: inline;">
|
|
|
+ <input type="text" maxlength="11" id="myPhone" onkeyup="value=value.replace(/[^\d]/g,'')"
|
|
|
+ maxlength=11
|
|
|
+ style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; height: 5vh; width: 50%;"">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh;">
|
|
|
+ <div style="color:#1e282c;height: 5vh; line-height: 5vh;margin-right: 2vw;width: 13%;">备注:</div>
|
|
|
+ <textarea id="Myremarks" class="weui-textarea" placeholder="输入内容(200字内)" rows="3"
|
|
|
+ style="border: 1px solid rgba(0,0,0,.2);box-sizing:border-box; border-radius: 5px; margin-top: 1vh;"></textarea>
|
|
|
+ </div>
|
|
|
+ <div style="display:flex; flex-direction: row; justify-content: space-between; margin-top: 1vh; margin-bottom: 5vh;">
|
|
|
+ <a id="buyBack" onclick="buyBack()" href="javascript:;" class="weui-btn weui-btn_default"
|
|
|
+ style="width: 30%;">返回</a>
|
|
|
+ <a id="buyRepeal" onclick="buyBack()" href="javascript:;" class="weui-btn weui-btn_default"
|
|
|
+ style="width: 30%;display: none">撤销</a>
|
|
|
+ <a id="buyCommit" onclick="buyCommit()" href="javascript:;" class="weui-btn weui-btn_primary"
|
|
|
+ style="margin-top: 0;width: 30%;">提交</a>
|
|
|
+ </div>
|
|
|
+
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+ <#--返回-->
|
|
|
+ function buyBack() {
|
|
|
+ $('#details')[0].style.display = 'none';
|
|
|
+ }
|
|
|
+
|
|
|
+ //提交
|
|
|
+ function buyCommit() {
|
|
|
+ if ($('#buyCount').val() == '' || $('#buyCount').val() == undefined) {
|
|
|
+ $.alert("请填写团购数量");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if ($('#myPhone').val() == undefined || $('#myPhone').val() == '') {
|
|
|
+ $.alert("请填写联系电话");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if ($('#Myremarks').val() == undefined || $('#Myremarks').val() == '') {
|
|
|
+ $.alert("请填写备注");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ /* $.ajax({
|
|
|
+ url: '/home/home/buyGroup',
|
|
|
+ data: {
|
|
|
+ userId: $('#userId').val(),
|
|
|
+ buyCount: $('#buyCount').val(),
|
|
|
+ phone: $('#myPhone').val(),
|
|
|
+ remark: $('#Myremarks').val(),
|
|
|
+ buyMoney: $('#myMenory').text(),
|
|
|
+
|
|
|
+ },
|
|
|
+ type: 'GET',
|
|
|
+ success: function (data) {
|
|
|
+ console.log(data);
|
|
|
+ buyBack();
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ }
|
|
|
+ });*/
|
|
|
+ }
|
|
|
+
|
|
|
+ /* //输入数量自动结算金额
|
|
|
+ function menory() {
|
|
|
+ $('#myMenory').val($('#buyCount').val()*6)
|
|
|
+ }*/
|
|
|
+
|
|
|
+</script>
|