mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
Merge branch 'v1.8.0' of gitee.com:gongfuxiang/shopxo into v1.8.0
This commit is contained in:
commit
c7e64ce3eb
@ -13,14 +13,16 @@
|
||||
</picker>
|
||||
</view>
|
||||
<view class="section fl br-r">
|
||||
<picker name="city" onChange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<picker a:if="{{(province_id || null) != null}}" name="city" onChange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<view class="name {{(city_value == null) ? 'cr-888' : '' }}">{{city_list[city_value].name || default_city}}</view>
|
||||
</picker>
|
||||
<text a:else class="cr-888" onTap="region_select_error_event" data-value="请先选择省份">请先选择省份</text>
|
||||
</view>
|
||||
<view class="section fl">
|
||||
<picker name="county" onChange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<picker a:if="{{(city_id || null) != null}}" name="county" onChange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<view class="name {{(county_value == null) ? 'cr-888' : '' }}">{{county_list[county_value].name || default_county}}</view>
|
||||
</picker>
|
||||
<text a:else class="cr-888" onTap="region_select_error_event" data-value="请先选择城市">请先选择城市</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- end地区选择 -->
|
||||
|
@ -270,6 +270,7 @@ Page({
|
||||
return value;
|
||||
},
|
||||
|
||||
// 数据提交
|
||||
form_submit(e) {
|
||||
var self = this,
|
||||
data = self.data;
|
||||
@ -323,5 +324,14 @@ Page({
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 省市区未按照顺序选择提示
|
||||
region_select_error_event(e) {
|
||||
var value = e.currentTarget.dataset.value || null;
|
||||
if(value != null)
|
||||
{
|
||||
app.showToast(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -261,6 +261,7 @@ Page({
|
||||
return value;
|
||||
},
|
||||
|
||||
// 数据提交
|
||||
form_submit(e) {
|
||||
var self = this,
|
||||
data = self.data;
|
||||
@ -307,5 +308,14 @@ Page({
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 省市区未按照顺序选择提示
|
||||
region_select_error_event(e) {
|
||||
var value = e.currentTarget.dataset.value || null;
|
||||
if(value != null)
|
||||
{
|
||||
app.showToast(value);
|
||||
}
|
||||
}
|
||||
});
|
@ -13,14 +13,16 @@
|
||||
</picker>
|
||||
</view>
|
||||
<view class="section fl br-r">
|
||||
<picker name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<picker s-if="(province_id || null) != null" name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<view class="name {{(city_value == null) ? 'cr-888' : '' }}">{{city_list[city_value].name || default_city}}</view>
|
||||
</picker>
|
||||
<text s-else class="cr-888" bindtap="region_select_error_event" data-value="请先选择省份">请先选择省份</text>
|
||||
</view>
|
||||
<view class="section fl">
|
||||
<picker name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<picker s-if="(city_id || null) != null" name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<view class="name {{(county_value == null) ? 'cr-888' : '' }}">{{county_list[county_value].name || default_county}}</view>
|
||||
</picker>
|
||||
<text s-else class="cr-888" bindtap="region_select_error_event" data-value="请先选择城市">请先选择城市</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- end地区选择 -->
|
||||
|
@ -262,6 +262,7 @@ Page({
|
||||
return value;
|
||||
},
|
||||
|
||||
// 数据提交
|
||||
form_submit(e) {
|
||||
var self = this,
|
||||
data = self.data;
|
||||
@ -315,5 +316,14 @@ Page({
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 省市区未按照顺序选择提示
|
||||
region_select_error_event(e) {
|
||||
var value = e.currentTarget.dataset.value || null;
|
||||
if(value != null)
|
||||
{
|
||||
app.showToast(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -13,14 +13,16 @@
|
||||
</picker>
|
||||
</view>
|
||||
<view class="section fl br-r">
|
||||
<picker name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<picker qq:if="{{(province_id || null) != null}}" name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<view class="name {{(city_value == null) ? 'cr-888' : '' }}">{{city_list[city_value].name || default_city}}</view>
|
||||
</picker>
|
||||
<text qq:else class="cr-888" bindtap="region_select_error_event" data-value="请先选择省份">请先选择省份</text>
|
||||
</view>
|
||||
<view class="section fl">
|
||||
<picker name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<picker qq:if="{{(city_id || null) != null}}" name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<view class="name {{(county_value == null) ? 'cr-888' : '' }}">{{county_list[county_value].name || default_county}}</view>
|
||||
</picker>
|
||||
<text qq:else class="cr-888" bindtap="region_select_error_event" data-value="请先选择城市">请先选择城市</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- end地区选择 -->
|
||||
|
@ -262,6 +262,7 @@ Page({
|
||||
return value;
|
||||
},
|
||||
|
||||
// 数据提交
|
||||
form_submit(e) {
|
||||
var self = this,
|
||||
data = self.data;
|
||||
@ -315,5 +316,14 @@ Page({
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 省市区未按照顺序选择提示
|
||||
region_select_error_event(e) {
|
||||
var value = e.currentTarget.dataset.value || null;
|
||||
if(value != null)
|
||||
{
|
||||
app.showToast(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -13,14 +13,16 @@
|
||||
</picker>
|
||||
</view>
|
||||
<view class="section fl br-r">
|
||||
<picker name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<picker tt:if="{{(province_id || null) != null}}" name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<view class="name {{(city_value == null) ? 'cr-888' : '' }}">{{city_list[city_value].name || default_city}}</view>
|
||||
</picker>
|
||||
<text tt:else class="cr-888" bindtap="region_select_error_event" data-value="请先选择省份">请先选择省份</text>
|
||||
</view>
|
||||
<view class="section fl">
|
||||
<picker name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<picker tt:if="{{(city_id || null) != null}}" name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<view class="name {{(county_value == null) ? 'cr-888' : '' }}">{{county_list[county_value].name || default_county}}</view>
|
||||
</picker>
|
||||
<text tt:else class="cr-888" bindtap="region_select_error_event" data-value="请先选择城市">请先选择城市</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- end地区选择 -->
|
||||
|
@ -262,6 +262,7 @@ Page({
|
||||
return value;
|
||||
},
|
||||
|
||||
// 数据提交
|
||||
form_submit(e) {
|
||||
var self = this,
|
||||
data = self.data;
|
||||
@ -315,5 +316,14 @@ Page({
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 省市区未按照顺序选择提示
|
||||
region_select_error_event(e) {
|
||||
var value = e.currentTarget.dataset.value || null;
|
||||
if(value != null)
|
||||
{
|
||||
app.showToast(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -13,14 +13,16 @@
|
||||
</picker>
|
||||
</view>
|
||||
<view class="section fl br-r">
|
||||
<picker name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<picker wx:if="{{(province_id || null) != null}}" name="city" bindchange="select_city" value="{{city_value}}" range="{{city_list}}" range-key="name">
|
||||
<view class="name {{(city_value == null) ? 'cr-888' : '' }}">{{city_list[city_value].name || default_city}}</view>
|
||||
</picker>
|
||||
<text wx:else class="cr-888" bindtap="region_select_error_event" data-value="请先选择省份">请先选择省份</text>
|
||||
</view>
|
||||
<view class="section fl">
|
||||
<picker name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<picker wx:if="{{(city_id || null) != null}}" name="county" bindchange="select_county" value="{{county_value}}" range="{{county_list}}" range-key="name">
|
||||
<view class="name {{(county_value == null) ? 'cr-888' : '' }}">{{county_list[county_value].name || default_county}}</view>
|
||||
</picker>
|
||||
<text wx:else class="cr-888" bindtap="region_select_error_event" data-value="请先选择城市">请先选择城市</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- end地区选择 -->
|
||||
|
Loading…
Reference in New Issue
Block a user