mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 11:59:16 +08:00
小程序细节优化
This commit is contained in:
parent
9d3967460e
commit
c73aa75a32
@ -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: '请先授权用户信息',
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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: '请绑定手机号码',
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -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: '请绑定手机号码',
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -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: '请绑定手机号码',
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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: '请绑定手机号码',
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user