diff --git a/common/wskj_function.js b/common/wskj_function.js index 0b179e457a77a551e983cd617bd2c67c9de78d70..d992f5d590ed3f30b7001103fb4d1c93c6c24777 100644 --- a/common/wskj_function.js +++ b/common/wskj_function.js @@ -527,6 +527,23 @@ function toast(text) { uni.$u.toast(text) } +function showModal(title, content, showCancel, callback) { + uni.showModal({ + title: title, + content: content, + showCancel: showCancel, + cancelText: '取消', + confirmText: '确定', + success: function(res) { + if (res.confirm) { + callback && callback(true); + } else if (res.cancel) { + callback && callback(false); + } + } + }); +}; + function isNull(text) { return text == null || text == '' ? true : false } @@ -667,12 +684,14 @@ const wskj_function = { throttle, debounce, toast, + showModal, pay, onSaveImageAlbum, wxBrowserPay, isNullStr, isNull, splitList, + } diff --git a/pages/login/wechatlogin.png b/pages/login/wechatlogin.png deleted file mode 100644 index f78cf1aa43331990ade8c48266eb4ac21841519f..0000000000000000000000000000000000000000 Binary files a/pages/login/wechatlogin.png and /dev/null differ diff --git a/pages/login/wechatlogin.vue b/pages/login/wechatlogin.vue index 8c2581dc06362073a1b688fc8baf68732af99d84..aab74d07d8a9d9d5d4c8ae3a5507ad49fecf1106 100644 --- a/pages/login/wechatlogin.vue +++ b/pages/login/wechatlogin.vue @@ -1,29 +1,31 @@ @@ -115,36 +117,10 @@ \ No newline at end of file diff --git a/pages/wy-bmfw.vue b/pages/wy-bmfw.vue index 8dea1814f823186c43b097b2ea2a6c7c2c1f9216..7ca735a6e0bfa1bb6e1dbf16ed41146982a44bcc 100644 --- a/pages/wy-bmfw.vue +++ b/pages/wy-bmfw.vue @@ -1,7 +1,7 @@