提交 6ade603d 编写于 作者: Q qiang

Merge branch 'dev' of github.com:dcloudio/uni-app into dev

...@@ -222,7 +222,7 @@ function _handleSystemInfo (result) { ...@@ -222,7 +222,7 @@ function _handleSystemInfo (result) {
} }
const protocols = { // 需要做转换的 API 列表 const protocols = { // 需要做转换的 API 列表
returnValue (methodName, res) { // 通用 returnValue 解析 returnValue (methodName, res = {}) { // 通用 returnValue 解析
if (res.error || res.errorMessage) { if (res.error || res.errorMessage) {
res.errMsg = `${methodName}:fail ${res.errorMessage || res.error}`; res.errMsg = `${methodName}:fail ${res.errorMessage || res.error}`;
delete res.error; delete res.error;
......
{ {
"name": "@dcloudio/uni-mp-alipay", "name": "@dcloudio/uni-mp-alipay",
"version": "0.0.812", "version": "0.0.813",
"description": "uni-app mp-alipay", "description": "uni-app mp-alipay",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
<template> <template>
<transition name="uni-fade"> <transition name="uni-fade">
<uni-toast <uni-toast
v-show="visible" v-if="visible"
:class="{'uni-toast-fixed':mask}"
:data-duration="duration"> :data-duration="duration">
<div <div
v-if="mask" v-if="mask"
...@@ -86,20 +85,17 @@ export default { ...@@ -86,20 +85,17 @@ export default {
} }
</script> </script>
<style> <style>
uni-toast { uni-toast {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 999;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
} }
uni-toast .uni-toast-fixed {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 999;
}
uni-toast .uni-sample-toast { uni-toast .uni-sample-toast {
position: fixed; position: fixed;
z-index: 999; z-index: 999;
......
...@@ -74,7 +74,7 @@ function _handleSystemInfo (result) { ...@@ -74,7 +74,7 @@ function _handleSystemInfo (result) {
} }
const protocols = { // 需要做转换的 API 列表 const protocols = { // 需要做转换的 API 列表
returnValue (methodName, res) { // 通用 returnValue 解析 returnValue (methodName, res = {}) { // 通用 returnValue 解析
if (res.error || res.errorMessage) { if (res.error || res.errorMessage) {
res.errMsg = `${methodName}:fail ${res.errorMessage || res.error}` res.errMsg = `${methodName}:fail ${res.errorMessage || res.error}`
delete res.error delete res.error
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册