Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译wxss错误 #144

Open
duanzhichao opened this issue Aug 11, 2021 · 0 comments
Open

编译wxss错误 #144

duanzhichao opened this issue Aug 11, 2021 · 0 comments

Comments

@duanzhichao
Copy link

  • wept --version: 0.9.6
  • node --version: 14.17.0
  • 操作系统: ubuntu20.04
  • 操作平台(浏览器|IOS): 浏览器

错误日志

pages/index/index.wxss 编译失败,请检查
Error: pages/index/index.wxss 编译失败,请检查
    at /usr/lib/node_modules/wept/build/parser.js:79:27
    at ChildProcess.exithandler (child_process.js:326:5)
    at ChildProcess.emit (events.js:376:20)
    at maybeClose (internal/child_process.js:1055:16)
    at Socket.<anonymous> (internal/child_process.js:441:11)
    at Socket.emit (events.js:376:20)
    at Pipe.<anonymous> (net.js:673:12)

代码内容

page {
  /* --bgColor1: linear-gradient(45deg, #f38369, #fac882);
  --bgColor2: linear-gradient(45deg, #31c6e0, #89d4fa);
  --bgColor3: linear-gradient(45deg, #b5dd5a, #beda7d);
  --bgColor4: linear-gradient(45deg, #82bbf8, #abe2fd); */
  --bgColor1: linear-gradient(45deg, #39b54a, #b3ec62);
  --bgColor2: linear-gradient(45deg, #0081ff, #46e4dc);
  --bgColor3: linear-gradient(45deg, #9000ff, #a775fc);
  --bgColor4: linear-gradient(45deg, #ec008c, #834be2);
  --bgColor5: linear-gradient(45deg, #f43f3b, #f350b2);
  --bgColor6: linear-gradient(45deg, #ff9700, #f35c61);

}



.Index-bg {
  background-color: #0075FF;
  background-size: cover;
  height: 130rpx;
  display: flex;
  justify-content: center;
  padding-top: 40rpx;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  font-weight: 2000;
}






/* menu样式 */
.menu-grid {
  background-color: #0075FF !important;
}

.menu-grid2 {
  background-color: rgb(255, 255, 255) !important;
  border-radius: 12rpx;
}

.index-page {
  background-color: #f0f0f0 !important;
}


.menu-grid-right {
  background-color: #0075FF !important;
  padding: 10px 8px;
  border-right: solid 1px #4E92FF;
}

.menu-grid-text {
  color: #ffffff !important;
  font-size: 30rpx !important;
  font-weight: 400;
}
/* menu样式 */


/* 主要菜单 */
/* 主要菜单 */


/* 分组测试和我的病历 */
.comp-grid {
  border-radius: 12rpx;
}
.comp-grid-item {
  background-color: #51a0fa !important;
  padding: 10px 8px;
  border-radius: 12rpx;
}
.comp-grid-item-custom-left{
  padding: 10rpx 12rpx 10rpx 0;
  height: 180rpx;
}
.comp-grid-item-custom-right {
  padding: 10rpx 12rpx;
  height: 180rpx;
}
.comp-grid-text {
  color: #ffffff !important;
  border-radius: 12rpx;
  font-size: 30rpx !important;
  font-weight: 400;
}
/* 分组测试 */

.bg-color1 {
  background-image: var(--bgColor1);
  color: #ffffff;
  font-weight: bold;
}

.bg-color2 {
  background-image: var(--bgColor2);
  color: #ffffff;
  font-weight: bold;
}

.bg-color3 {
  background-image: var(--bgColor3);
  color: #ffffff;
  font-weight: bold;
}
.bg-color4 {
  background-image: var(--bgColor4);
  color: #ffffff;
  font-weight: bold;
}
.bg-color5 {
  background-image: var(--bgColor5);
  color: #ffffff;
  font-weight: bold;
}
.bg-color6 {
  background-image: var(--bgColor6);
  color: #ffffff;
  font-weight: bold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant