xcx
parent
89af496432
commit
d49398c3d4
|
|
@ -9,7 +9,8 @@ Component({
|
|||
propPosition: String,
|
||||
propMask: Boolean,
|
||||
propAnimation: Boolean,
|
||||
propDisablescroll: Boolean
|
||||
propDisablescroll: Boolean,
|
||||
propOnclose: String
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -23,6 +24,13 @@ Component({
|
|||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onMaskTap: function onMaskTap() {
|
||||
var onClose = this.propOnclose;
|
||||
console.log(onClose)
|
||||
|
||||
if (onClose) {
|
||||
onClose();
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -19,10 +19,11 @@ Page({
|
|||
init(e) {
|
||||
var user = app.get_user_cache_info(this, "init");
|
||||
// 用户未绑定用户则转到登录页面
|
||||
var msg = (user == false) ? '授权用户信息' : '绑定手机号码';
|
||||
if (user == false || ((user.mobile || null) == null)) {
|
||||
wx.showModal({
|
||||
title: '温馨提示',
|
||||
content: '绑定手机号码',
|
||||
content: msg,
|
||||
confirmText: '确认',
|
||||
cancelText: '暂不',
|
||||
success: (result) => {
|
||||
|
|
@ -30,6 +31,12 @@ Page({
|
|||
wx.navigateTo({
|
||||
url: "/pages/login/login?event_callback=init"
|
||||
});
|
||||
} else {
|
||||
this.setData({
|
||||
data_list_loding_status: 2,
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_msg: '请先' + msg,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -66,5 +66,5 @@
|
|||
|
||||
<view wx:if="{{data_list.length == 0 && data_list_loding_status != 0}}">
|
||||
<import src="/pages/common/nodata.wxml" />
|
||||
<template is="nodata" data="{{status: data_list_loding_status}}"></template>
|
||||
<template is="nodata" data="{{status: data_list_loding_status, msg: data_list_loding_msg}}"></template>
|
||||
</view>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"popup": "mini-antui/es/popup/index"
|
||||
"component-popup": "/components/popup/popup"
|
||||
}
|
||||
}
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
</scroll-view>
|
||||
|
||||
<!-- 支付方式 popup -->
|
||||
<popup show="{{is_show_payment_popup}}" position="bottom" onClose="payment_popup_event_close">
|
||||
<component-popup prop-show="{{is_show_payment_popup}}" prop-position="bottom" prop-onclose="payment_popup_event_close">
|
||||
<view wx:if="{{payment_list.length > 0}}" class="payment-list oh bg-white">
|
||||
<view class="item tc fl" wx:for="{{payment_list}}">
|
||||
<view class="item-content br" data-value="{{item.id}}" bindtap="popup_payment_event">
|
||||
|
|
@ -67,4 +67,4 @@
|
|||
</view>
|
||||
</view>
|
||||
<view wx:else class="payment-list oh bg-white tc cr-888">没有支付方式</view>
|
||||
</popup>
|
||||
</component-popup>
|
||||
|
|
@ -55,10 +55,11 @@ Page({
|
|||
var user = app.get_user_cache_info(this, "init"),
|
||||
self = this;
|
||||
// 用户未绑定用户则转到登录页面
|
||||
var msg = (user == false) ? '授权用户信息' : '绑定手机号码';
|
||||
if (user == false || ((user.mobile || null) == null)) {
|
||||
wx.showModal({
|
||||
title: '温馨提示',
|
||||
content: '绑定手机号码',
|
||||
content: msg,
|
||||
confirmText: '确认',
|
||||
cancelText: '暂不',
|
||||
success: (result) => {
|
||||
|
|
@ -71,7 +72,6 @@ Page({
|
|||
avatar: user.avatar || app.data.default_user_head_src,
|
||||
nickname: user.nickname,
|
||||
});
|
||||
self.get_data();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue