Commit 8a669adc by zhangzhen

细节优化

parent 0117dda4
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
this.$refs.popupPhone.close() this.$refs.popupPhone.close()
}, },
onGetPhoneNumber(e){ onGetPhoneNumber(e){
if(e.detail.errMsg !== "getPhoneNumber:ok") return;
let that = this; let that = this;
this.phoneCode = e.detail.code; this.phoneCode = e.detail.code;
wx.login({ wx.login({
...@@ -85,6 +86,7 @@ ...@@ -85,6 +86,7 @@
phoneCode: this.phoneCode, phoneCode: this.phoneCode,
type: "routine", type: "routine",
}).then(res => { }).then(res => {
uni.hideLoading();
if (res.data.code == 200) { if (res.data.code == 200) {
uni.setStorageSync('tokenHeaders', "Authori-zation") uni.setStorageSync('tokenHeaders', "Authori-zation")
uni.setStorage({ uni.setStorage({
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
}) })
}, },
onGetPhoneNumber(e){ onGetPhoneNumber(e){
if(e.detail.errMsg !== "getPhoneNumber:ok") return;
let that = this; let that = this;
this.phoneCode = e.detail.code; this.phoneCode = e.detail.code;
wx.login({ wx.login({
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
phoneCode: this.phoneCode, phoneCode: this.phoneCode,
type: "routine", type: "routine",
}).then(res => { }).then(res => {
uni.hideLoading();
if (res.data.code == 200) { if (res.data.code == 200) {
uni.setStorageSync('tokenHeaders', "Authori-zation") uni.setStorageSync('tokenHeaders', "Authori-zation")
uni.setStorage({ uni.setStorage({
......
...@@ -125,7 +125,7 @@ import moment from "@/common/moment"; ...@@ -125,7 +125,7 @@ import moment from "@/common/moment";
1:"#e51771", 1:"#e51771",
2:"#aaaaaa", 2:"#aaaaaa",
3:"#EE8A1A", 3:"#EE8A1A",
4:"#ff49ef", 4:"#EE8A1A",
5:"#ff0000", 5:"#ff0000",
6:"#999999", 6:"#999999",
}, },
...@@ -153,7 +153,7 @@ import moment from "@/common/moment"; ...@@ -153,7 +153,7 @@ import moment from "@/common/moment";
{ {
label:"保洁中", label:"保洁中",
status:4, status:4,
color:"#ff49ef" color:"#EE8A1A"
} }
], ],
cleanStatusEnum:{}, cleanStatusEnum:{},
......
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
}) })
}, },
onLoading(d) { onLoading(d) {
console.log(d,"d");
getUseCoupon(d).then(res => { getUseCoupon(d).then(res => {
if (res.statusCode == 200) { if (res.statusCode == 200) {
if (res.data && res.data.data.length) { if (res.data && res.data.data.length) {
......
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