mixin.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. export function setVueTiflyThemeBlack() {
  2. let vueTifly_black = this.$tm.vx.state().tmVuetify.black
  3. if (vueTifly_black === true) {
  4. uni.setTabBarStyle({
  5. backgroundColor: "#212121"
  6. })
  7. } else {
  8. uni.setTabBarStyle({
  9. backgroundColor: "#FFFFFF"
  10. })
  11. }
  12. }
  13. // ...mapMutations(['setTmVuetifyColor', 'setTmVuetifyBlack']),
  14. // 检测提供的字符串是否是颜色值还是颜色主题。true,表示颜色主题名称。否则为false.
  15. export function $TestColor(color) {
  16. if (typeof color !== 'string') return false;
  17. if (color.indexOf('rgb') > -1 || color.indexOf('rgba') > -1 || color.indexOf('#') > -1) {
  18. return {
  19. theme: false,
  20. color: color
  21. };
  22. } else {
  23. return {
  24. theme: true,
  25. color: color
  26. };
  27. }
  28. }
  29. // 检查给定的值。如果是带有vw,vh,rem,em,upx,rpx,%则返回.如果是px,或者45数字,则转换为upx单位的数值。
  30. export function $TestUnit(n) {
  31. if (typeof n !== 'string' && typeof n !== 'number') return 0;
  32. if (typeof n === 'number') return {
  33. type: 'number',
  34. value: uni.upx2px(n)
  35. };
  36. let reg = /(vw|vh|rem|em|\%|upx|rpx|auto|px)/g;
  37. if (reg.test(n)) {
  38. return {
  39. type: 'string',
  40. value: n
  41. };
  42. }
  43. let num = parseFloat(n);
  44. if (isNaN(n)) return 0;
  45. return {
  46. type: 'number',
  47. value: uni.upx2px(n)
  48. };
  49. }
PANIC: session(release): write data/sessions/d/3/d30e8852ad2475b3: no space left on device

PANIC

session(release): write data/sessions/d/3/d30e8852ad2475b3: no space left on device
/root/go/pkg/mod/github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8bc0f8)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/context.go:81 (0x83623b)
/root/go/pkg/mod/github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80b5f4)
/root/go/pkg/mod/github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80b51c)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/context.go:125 (0x8363b2)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/context.go:115 (0x8473a6)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/recovery.go:161 (0x84739d)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/logger.go:40 (0x839a24)
/root/go/pkg/mod/github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80b5f4)
/root/go/pkg/mod/github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80b51c)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/context.go:125 (0x8363b2)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/router.go:187 (0x8412dd)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/router.go:304 (0x8423ec)
/root/go/pkg/mod/gopkg.in/macaron.v1@v1.5.0/macaron.go:218 (0x83adde)
/usr/local/btgo/src/net/http/server.go:2936 (0x7b23b5)
	serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/btgo/src/net/http/server.go:1995 (0x7add91)
	(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/btgo/src/runtime/asm_amd64.s:1598 (0x47e160)
	goexit: BYTE	$0x90	// NOP