小程序细节优化

This commit is contained in:
Devil 2019-12-01 20:00:16 +08:00
parent 9d3967460e
commit c73aa75a32
7 changed files with 10 additions and 25 deletions

View File

@ -23,23 +23,8 @@ Page({
my.redirectTo({
url: "/pages/login/login?event_callback=init"
});
this.setData({
data_list_loding_status: 2,
data_list_loding_msg: '请先绑定手机号码',
});
return false;
} else {
this.setData({
data_list_loding_status: 0,
data_list_loding_msg: '',
});
}
} else {
this.setData({
data_list_loding_status: 2,
data_list_loding_msg: '请先授权用户信息',
});
}
},

View File

@ -41,7 +41,7 @@ Page({
this.setData({
data_list_loding_status: 0,
data_bottom_line_status: false,
data_list_loding_msg: '请绑定手机号码',
data_list_loding_msg: '请绑定手机号码',
});
}
},

View File

@ -28,7 +28,7 @@ Page({
if (app.user_is_need_login(user)) {
swan.showModal({
title: '温馨提示',
content: msg,
content: '绑定手机号码',
confirmText: '确认',
cancelText: '暂不',
success: (result) => {
@ -40,7 +40,7 @@ Page({
this.setData({
data_list_loding_status: 0,
data_bottom_line_status: false,
data_list_loding_msg: '请先' + msg,
data_list_loding_msg: '请绑定手机号码',
});
}
},

View File

@ -28,7 +28,7 @@ Page({
if (app.user_is_need_login(user)) {
qq.showModal({
title: '温馨提示',
content: msg,
content: '绑定手机号码',
confirmText: '确认',
cancelText: '暂不',
success: (result) => {
@ -40,7 +40,7 @@ Page({
this.setData({
data_list_loding_status: 0,
data_bottom_line_status: false,
data_list_loding_msg: '请先' + msg,
data_list_loding_msg: '请绑定手机号码',
});
}
},

View File

@ -12,9 +12,9 @@
<view class="text fr">{{item.province_name}}{{item.city_name}}{{item.county_name}}{{item.address}}</view>
</view>
</view>
<view class="operation br-t oh">
<!-- <view class="operation br-t oh">
<button qq:if="{{item.lng > 0 && item.lat > 0}}" class="fr cr-666 map-submit br" type="default" size="mini" bindtap="address_map_event" data-index="{{index}}" hover-class="none"></button>
</view>
</view> -->
</view>
</view>

View File

@ -10,7 +10,7 @@
<image class="icon fl" src="/images/user-address.png" mode="widthFix" />
<view class="text fr">
{{detail.address_data.province_name}}{{detail.address_data.city_name}}{{detail.address_data.county_name}}{{detail.address_data.address}}
<text qq:if="{{detail.order_model == 2 && (detail.address_data.lng || 0) > 0 && (detail.address_data.lat || 0) > 0}}" class="cr-666 br address-map-submit" bindtap="address_map_event"></text>
<!-- <text qq:if="{{detail.order_model == 2 && (detail.address_data.lng || 0) > 0 && (detail.address_data.lat || 0) > 0}}" class="cr-666 br address-map-submit" bindtap="address_map_event"></text> -->
</view>
</view>
</view>

View File

@ -28,7 +28,7 @@ Page({
if (app.user_is_need_login(user)) {
wx.showModal({
title: '温馨提示',
content: msg,
content: '绑定手机号码',
confirmText: '确认',
cancelText: '暂不',
success: (result) => {
@ -40,7 +40,7 @@ Page({
this.setData({
data_list_loding_status: 0,
data_bottom_line_status: false,
data_list_loding_msg: '请先' + msg,
data_list_loding_msg: '请绑定手机号码',
});
}
},