|
@@ -264,6 +264,35 @@ $(function () {
|
|
|
$('.coupon-picker').hide()
|
|
|
})
|
|
|
|
|
|
+ // 关键词匹配方式
|
|
|
+ var defaultVal = $('.match-way-value').text()
|
|
|
+ var $iosActionsheet = $('#iosActionsheet');
|
|
|
+ var $iosMask = $('#iosMask');
|
|
|
+ function hideActionSheet() {
|
|
|
+ $iosActionsheet.removeClass('weui-actionsheet_toggle');
|
|
|
+ $iosMask.fadeOut(200);
|
|
|
+ }
|
|
|
+ $iosMask.on('click', hideActionSheet);
|
|
|
+ $('#iosActionsheet .weui-actionsheet__cell').each(function(index,item){
|
|
|
+ var t = $(item).children().text().trim();
|
|
|
+ // console.log(t,$(this))
|
|
|
+ if (t == defaultVal) {
|
|
|
+ $(this).addClass('active')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('#iosActionsheetCancel').on('click', hideActionSheet);
|
|
|
+ $('body').on('click', '.match-way', function(){
|
|
|
+ $iosActionsheet.addClass('weui-actionsheet_toggle');
|
|
|
+ $iosMask.fadeIn(200);
|
|
|
+ })
|
|
|
+ $('#iosActionsheet .weui-actionsheet__cell').on('click',function(){
|
|
|
+ $(this).addClass('active').siblings().removeClass('active');
|
|
|
+ $iosActionsheet.removeClass('weui-actionsheet_toggle');
|
|
|
+ $iosMask.fadeOut(200);
|
|
|
+ console.log($(this).children('.cell_title').text())
|
|
|
+ $('.match-way-value').text($(this).children('.cell_title').text())
|
|
|
+ })
|
|
|
+
|
|
|
|
|
|
$('body').on('click', '.jy-dialog .weui-mask', function () {
|
|
|
pickerShow('.jy-dialog', false)
|
|
@@ -886,35 +915,6 @@ $(function () {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
- // 关键词匹配方式
|
|
|
- var defaultVal = $('.match-way-value').text()
|
|
|
- var $iosActionsheet = $('#iosActionsheet');
|
|
|
- var $iosMask = $('#iosMask');
|
|
|
- function hideActionSheet() {
|
|
|
- $iosActionsheet.removeClass('weui-actionsheet_toggle');
|
|
|
- $iosMask.fadeOut(200);
|
|
|
- }
|
|
|
- $iosMask.on('click', hideActionSheet);
|
|
|
- $('#iosActionsheet .weui-actionsheet__cell').each(function(index,item){
|
|
|
- var t = $(item).children().text().trim();
|
|
|
- // console.log(t,$(this))
|
|
|
- if (t == defaultVal) {
|
|
|
- $(this).addClass('active')
|
|
|
- }
|
|
|
- })
|
|
|
- $('#iosActionsheetCancel').on('click', hideActionSheet);
|
|
|
- $('body').on('click', '.match-way', function(){
|
|
|
- $iosActionsheet.addClass('weui-actionsheet_toggle');
|
|
|
- $iosMask.fadeIn(200);
|
|
|
- })
|
|
|
- $('#iosActionsheet .weui-actionsheet__cell').on('click',function(){
|
|
|
- $(this).addClass('active').siblings().removeClass('active');
|
|
|
- $iosActionsheet.removeClass('weui-actionsheet_toggle');
|
|
|
- $iosMask.fadeOut(200);
|
|
|
- console.log($(this).children('.cell_title').text())
|
|
|
- $('.match-way-value').text($(this).children('.cell_title').text())
|
|
|
- })
|
|
|
-
|
|
|
});
|
|
|
|
|
|
function clearSessionStorage() {
|