File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 77 </view >
88 <view class =" uni-btn-v" >
99 <button type =" default" @click =" setText" >改变标题栏文字</button >
10- <!-- #ifndef MP-TOUTIAO -->
1110 <button type =" primary" @click =" setBg" >改变标题栏颜色</button >
12- <!-- #endif -->
1311 </view >
1412 </view >
1513 </view >
Original file line number Diff line number Diff line change 3838 }
3939 },
4040 onUnload () {
41+ uni .hideLoading ()
4142 if (this .socketTask && this .socketTask .close ) {
4243 this .socketTask .close ()
4344 }
44- uni .hideLoading ()
4545 },
4646 methods: {
4747 connect () {
7171 // #ifdef MP-WEIXIN
7272 method: ' GET' ,
7373 // #endif
74- // success(res) {
75- // // 这里是接口调用成功的回调,不是连接成功的回调,请注意
76- // },
77- // fail(err) {
78- // // 这里是接口调用失败的回调,不是连接失败的回调,请注意
79- // }
74+ success (res ) {
75+ // 这里是接口调用成功的回调,不是连接成功的回调,请注意
76+ },
77+ fail (err ) {
78+ // 这里是接口调用失败的回调,不是连接失败的回调,请注意
79+ }
8080 })
81+ console .log (this .socketTask );
8182 this .socketTask .onOpen ((res ) => {
8283 this .connecting = false
8384 this .connected = true
You can’t perform that action at this time.
0 commit comments