Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
brandEventLibraryMiniProgram
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LinChengbiao
brandEventLibraryMiniProgram
Commits
e66cb47f
Commit
e66cb47f
authored
Oct 18, 2018
by
LinChengbiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改动保存
parent
63e878a7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
.wepycache
+0
-0
README.md
+1
-0
src/components/home/heatList.wpy
+1
-1
src/components/searchList/eventCard.wpy
+0
-1
src/pages/login.wpy
+12
-12
No files found.
.wepycache
View file @
e66cb47f
This diff is collapsed.
Click to expand it.
README.md
View file @
e66cb47f
...
...
@@ -68,6 +68,7 @@
*
这个坑点常常会导致一些莫名其妙的bug,解决方法: 先
`npmr run clean`
删除
`dist`
(也可以手动删除,但是需要关闭开发工具),然后重新
`npm run dev`
生成新的
`dist`
。
*
提交代码之前需要
`npm run build`
一次。
*
有时候运行时没报错,
`npm run build`
完反而报错了,这种情况,再次执行
`npm run build`
就行了。
*
再次运行
`npm run build`
依然有
`thirdScriptError `
报错,请尝试重启微信开发工具(关闭当前项目重新打开)。
*
**真机调试坑点**
*
如果发现某一个元素内文字一直是首行缩进(非
`text-indent`
情况)可以尝试把元素内的内容写成一行:
...
...
src/components/home/heatList.wpy
View file @
e66cb47f
...
...
@@ -3,7 +3,7 @@
<view class="title">热度榜</view>
<view class="content">
<repeat for="{{ heatListData }}" item="n" index="i" key="i">
<repeat for="{{ heatListData }}" item="n" index="i" key="i"
wx:if="{{ i < 5 }}"
>
<view class="item" @tap="pageTo('/pages/eventDetail?eventId={{ n.eventId }}')">
<view class="serial">{{ i + 1 }}.</view>
...
...
src/components/searchList/eventCard.wpy
View file @
e66cb47f
...
...
@@ -48,7 +48,6 @@ export default class eventCard extends wepy.component {
display: flex;
padding: 20rpx 0rpx 10rpx;
font-size: 32rpx;
font-weight: lighter;
.left{
line-height: 1.2;
}
...
...
src/pages/login.wpy
View file @
e66cb47f
...
...
@@ -50,7 +50,7 @@ export default class login extends wepy.page {
password: ''
},
alertData: {},
autoLogin
: true,
beforeBind
: true,
wait: true
}
...
...
@@ -66,7 +66,7 @@ export default class login extends wepy.page {
show: true,
type: 'warn',
text: [ '有未填写项' ],
duration:
4
,
duration:
2
,
callback: () => {}
}
} else {
...
...
@@ -92,7 +92,7 @@ export default class login extends wepy.page {
show: true,
type: 'warn',
text: [ res.errMsg ],
duration:
4
,
duration:
2
,
callback: () => {}
}
this.$apply()
...
...
@@ -106,7 +106,7 @@ export default class login extends wepy.page {
// 绑定接口
async zhiweiBind () {
this.
autoLogin
= false
this.
beforeBind
= false
axiosFormat({
url: 'base/bindingBrandSmall.do',
method: 'POST',
...
...
@@ -138,7 +138,7 @@ export default class login extends wepy.page {
show: true,
type: 'warn',
text: [ res.data.message ],
duration:
4
,
duration:
2
,
callback: () => {}
}
}
...
...
@@ -148,7 +148,7 @@ export default class login extends wepy.page {
show: true,
type: 'warn',
text: [ err.message ],
duration:
4
,
duration:
2
,
callback: () => {}
}
this.$apply()
...
...
@@ -169,7 +169,7 @@ export default class login extends wepy.page {
if (res.data.state) {
let data = res.data.data
console.log('loginBrandSmall: ', data)
if (this.
autoLogin
) {
if (this.
beforeBind
) {
this.alertData = {
show: true,
type: 'success',
...
...
@@ -192,25 +192,25 @@ export default class login extends wepy.page {
})
}
} else {
if (!this.
autoLogin
) {
if (!this.
beforeBind
) {
this.alertData = {
show: true,
type: 'warn',
text: [ res.data.message ],
duration:
4
,
duration:
2
,
callback: () => {}
}
}
}
this.wait = true
}
this.$apply()
}).catch(err => {
if (!this.
autoLogin
) {
if (!this.
beforeBind
) {
this.alertData = {
show: true,
type: 'warn',
text: [ err.message ],
duration:
4
,
duration:
2
,
callback: () => {}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment