微吧跳转
This commit is contained in:
parent
03d8bbe860
commit
4d6f30d4a3
@ -267,7 +267,18 @@ mui.plusReady(function() {
|
||||
'件商品 小计:<o class="on">¥' + this.goodsMoney + '</o> + 运费:<o class="on">¥' + this.shippingMoney +
|
||||
'</o></div></div></div></div></div>';
|
||||
});
|
||||
html += '<div class="cost"><div class="c2 clearfix"><div class="c1_l">发货方式:</div><div class="c1_r"><select name="" id="deliverType" class="yhq"><option value="0" selected>快递发货</option><option value="1" >门店自提【免运费】</option>';
|
||||
html += `<div class="cost"><div class="c2 clearfix">
|
||||
<div class="c1_l">发货方式:</div>
|
||||
<div class="c1_r">
|
||||
<select name="" id="deliverType" class="yhq">
|
||||
<option value="0" selected>快递发货</option>
|
||||
<option value="1">门店自提【免运费】</option>
|
||||
<option value="2">顺带件</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
//双11优惠券
|
||||
// html += '<div class="cost"><div class="c2 clearfix"><div class="c1_l">选择优惠券:</div><div class="c1_r"><select name="" id="userCoupon" class="yhq"><option value="0">不使用优惠券</option>';
|
||||
|
3
js/my.js
3
js/my.js
@ -361,8 +361,7 @@ var localAuthType = localStorage.getItem("authType");
|
||||
|
||||
$('.mydata-content').on('tap', '.zhuweiba', function() { //助威吧
|
||||
// JZL.openWindow('essay.html', 'essay.html')
|
||||
mui.alert("功能开发中......")
|
||||
|
||||
mui.fire(plus.webview.getWebviewById('HBuilder'), 'NAV_TO', 3);
|
||||
})
|
||||
let CoUnTeR = 0
|
||||
|
||||
|
14
js/start.js
14
js/start.js
@ -142,9 +142,20 @@ function jumpPage(ipxSizeBottom) {
|
||||
});
|
||||
//当前激活选项
|
||||
var activeTab = subpages[0];
|
||||
document.addEventListener("NAV_TO", function(e){
|
||||
var id = parseInt(e.detail);
|
||||
var $all = $(".mui-bar-tab a");
|
||||
if (id > $all.length || id < 0) return;
|
||||
var href = $all.eq(id).attr('href');
|
||||
plus.webview.show(href, "fade-in", 300);
|
||||
activeTab = href;
|
||||
$all.eq(id).trigger('tap').click();
|
||||
})
|
||||
|
||||
//选项卡点击事件
|
||||
mui('.mui-bar-tab').on('tap', 'a', function(e) {
|
||||
var targetTab = this.getAttribute('href');
|
||||
console.log(targetTab);
|
||||
if (targetTab == activeTab) {
|
||||
// var targetTab = plus.webview.getWebviewById(targetTab);
|
||||
// mui.fire(targetTab, 'refresh');
|
||||
@ -282,8 +293,9 @@ $('.mui-bar').on('tap', '.mui-tab-item', function(e) {
|
||||
$('.nav_out').removeClass('ni');
|
||||
}
|
||||
nav(num);
|
||||
|
||||
})
|
||||
|
||||
|
||||
document.addEventListener('plusready', function() {
|
||||
checkArguments();
|
||||
}, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user