Commit e66cb47f by LinChengbiao

改动保存

parent 63e878a7
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
* 这个坑点常常会导致一些莫名其妙的bug,解决方法: 先 `npmr run clean` 删除 `dist` (也可以手动删除,但是需要关闭开发工具),然后重新 `npm run dev` 生成新的 `dist` * 这个坑点常常会导致一些莫名其妙的bug,解决方法: 先 `npmr run clean` 删除 `dist` (也可以手动删除,但是需要关闭开发工具),然后重新 `npm run dev` 生成新的 `dist`
* 提交代码之前需要 `npm run build` 一次。 * 提交代码之前需要 `npm run build` 一次。
* 有时候运行时没报错, `npm run build` 完反而报错了,这种情况,再次执行 `npm run build` 就行了。 * 有时候运行时没报错, `npm run build` 完反而报错了,这种情况,再次执行 `npm run build` 就行了。
* 再次运行 `npm run build` 依然有 `thirdScriptError ` 报错,请尝试重启微信开发工具(关闭当前项目重新打开)。
* **真机调试坑点** * **真机调试坑点**
* 如果发现某一个元素内文字一直是首行缩进(非 `text-indent` 情况)可以尝试把元素内的内容写成一行: * 如果发现某一个元素内文字一直是首行缩进(非 `text-indent` 情况)可以尝试把元素内的内容写成一行:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="title">热度榜</view> <view class="title">热度榜</view>
<view class="content"> <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="item" @tap="pageTo('/pages/eventDetail?eventId={{ n.eventId }}')">
<view class="serial">{{ i + 1 }}.</view> <view class="serial">{{ i + 1 }}.</view>
......
...@@ -48,7 +48,6 @@ export default class eventCard extends wepy.component { ...@@ -48,7 +48,6 @@ export default class eventCard extends wepy.component {
display: flex; display: flex;
padding: 20rpx 0rpx 10rpx; padding: 20rpx 0rpx 10rpx;
font-size: 32rpx; font-size: 32rpx;
font-weight: lighter;
.left{ .left{
line-height: 1.2; line-height: 1.2;
} }
......
...@@ -50,7 +50,7 @@ export default class login extends wepy.page { ...@@ -50,7 +50,7 @@ export default class login extends wepy.page {
password: '' password: ''
}, },
alertData: {}, alertData: {},
autoLogin: true, beforeBind: true,
wait: true wait: true
} }
...@@ -66,7 +66,7 @@ export default class login extends wepy.page { ...@@ -66,7 +66,7 @@ export default class login extends wepy.page {
show: true, show: true,
type: 'warn', type: 'warn',
text: [ '有未填写项' ], text: [ '有未填写项' ],
duration: 4, duration: 2,
callback: () => {} callback: () => {}
} }
} else { } else {
...@@ -92,7 +92,7 @@ export default class login extends wepy.page { ...@@ -92,7 +92,7 @@ export default class login extends wepy.page {
show: true, show: true,
type: 'warn', type: 'warn',
text: [ res.errMsg ], text: [ res.errMsg ],
duration: 4, duration: 2,
callback: () => {} callback: () => {}
} }
this.$apply() this.$apply()
...@@ -106,7 +106,7 @@ export default class login extends wepy.page { ...@@ -106,7 +106,7 @@ export default class login extends wepy.page {
// 绑定接口 // 绑定接口
async zhiweiBind () { async zhiweiBind () {
this.autoLogin = false this.beforeBind = false
axiosFormat({ axiosFormat({
url: 'base/bindingBrandSmall.do', url: 'base/bindingBrandSmall.do',
method: 'POST', method: 'POST',
...@@ -138,7 +138,7 @@ export default class login extends wepy.page { ...@@ -138,7 +138,7 @@ export default class login extends wepy.page {
show: true, show: true,
type: 'warn', type: 'warn',
text: [ res.data.message ], text: [ res.data.message ],
duration: 4, duration: 2,
callback: () => {} callback: () => {}
} }
} }
...@@ -148,7 +148,7 @@ export default class login extends wepy.page { ...@@ -148,7 +148,7 @@ export default class login extends wepy.page {
show: true, show: true,
type: 'warn', type: 'warn',
text: [ err.message ], text: [ err.message ],
duration: 4, duration: 2,
callback: () => {} callback: () => {}
} }
this.$apply() this.$apply()
...@@ -169,7 +169,7 @@ export default class login extends wepy.page { ...@@ -169,7 +169,7 @@ export default class login extends wepy.page {
if (res.data.state) { if (res.data.state) {
let data = res.data.data let data = res.data.data
console.log('loginBrandSmall: ', data) console.log('loginBrandSmall: ', data)
if (this.autoLogin) { if (this.beforeBind) {
this.alertData = { this.alertData = {
show: true, show: true,
type: 'success', type: 'success',
...@@ -192,25 +192,25 @@ export default class login extends wepy.page { ...@@ -192,25 +192,25 @@ export default class login extends wepy.page {
}) })
} }
} else { } else {
if (!this.autoLogin) { if (!this.beforeBind) {
this.alertData = { this.alertData = {
show: true, show: true,
type: 'warn', type: 'warn',
text: [ res.data.message ], text: [ res.data.message ],
duration: 4, duration: 2,
callback: () => {} callback: () => {}
} }
} }
this.wait = true
} }
this.wait = true
this.$apply() this.$apply()
}).catch(err => { }).catch(err => {
if (!this.autoLogin) { if (!this.beforeBind) {
this.alertData = { this.alertData = {
show: true, show: true,
type: 'warn', type: 'warn',
text: [ err.message ], text: [ err.message ],
duration: 4, duration: 2,
callback: () => {} 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