Commit e66cb47f by LinChengbiao

改动保存

parent 63e878a7
......@@ -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` 情况)可以尝试把元素内的内容写成一行:
......
......@@ -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>
......
......@@ -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;
}
......
......@@ -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.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: () => {}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment