![]()
@@ -38,16 +38,16 @@ export default {
distance: 0, // 拼图移动距离
flag: false, // 判断滑块是否按下
downX: 0, // 鼠标按下位置
- bgColor: 'aqua', // 滑动背景颜色
+ bgColor: '#04ad11', // 滑动背景颜色
verifyText: '拖动滑块解锁' // 文字提示
};
},
methods: {
- mouseDown (e) { // 鼠标按下操作,
+ mouseDown (e) {
this.downX = e.clientX;
this.flag = true;
},
- mouseMove (e) { // 鼠标移动
+ mouseMove (e) {
if (this.flag) {
let offset = e.clientX - this.downX;
@@ -60,7 +60,7 @@ export default {
}
}
},
- mouseUp () { // 鼠标抬起
+ mouseUp () {
if (!this.flag) return false;
this.flag = false;
let params = {
@@ -83,33 +83,31 @@ export default {
}
});
},
- refresh () { // 刷新验证图片
+ refresh () { // 刷新滑块
this.flag = false;
this.downX = 0;
this.distance = 0;
- this.bgColor = 'aqua';
+ this.bgColor = '#04ad11';
this.verifyText = '拖动滑块解锁';
- this.getImg();
+ this.init();
},
- getImg () { // 获取验证图片
+ init () { // 初始化数据
getVerifyImg(this.type).then(res => {
- this.data = res.result;
+ if (res.result) {
+ this.data = res.result;
+ this.show = true;
+ } else {
+ this.$Message.warning('请求失败请重试!')
+ }
});
}
},
- created () {
- // this.getImg();
- },
watch: {
verifyType: {
immediate: true,
handler: function (v) {
this.type = v;
- // this.refresh();
}
- },
- show (v) {
- if (v) this.refresh();
}
}
};
@@ -143,7 +141,7 @@ export default {
}
}
.handle {
- border: 1px solid rgb(134, 134, 134);
+ border: 1px solid #e4dede;
margin-top: 5px;
height: 42px;
background: #ddd;
@@ -156,7 +154,7 @@ export default {
width: 40px;
height: 40px;
opacity: 0.5;
- background: aqua;
+ background: #04ad11;
}
.swiper {
diff --git a/buyer/src/config/index.js b/buyer/src/config/index.js
index c3161388..e3011596 100644
--- a/buyer/src/config/index.js
+++ b/buyer/src/config/index.js
@@ -17,15 +17,15 @@ export default {
* @description api请求基础路径
*/
api_dev: {
- common: 'http://192.168.0.100:8890',
- buyer: 'http://192.168.0.100:8888',
- seller: 'http://192.168.0.100:8889',
- manager: 'http://192.168.0.100:8887'
+ // common: 'http://192.168.0.100:8890',
+ // buyer: 'http://192.168.0.100:8888',
+ // seller: 'http://192.168.0.100:8889',
+ // manager: 'http://192.168.0.100:8887'
- // common: 'https://common-api.pickmall.cn',
- // buyer: 'https://buyer-api.pickmall.cn',
- // seller: 'https://store-api.pickmall.cn',
- // manager: 'https://admin-api.pickmall.cn'
+ common: 'https://common-api.pickmall.cn',
+ buyer: 'https://buyer-api.pickmall.cn',
+ seller: 'https://store-api.pickmall.cn',
+ manager: 'https://admin-api.pickmall.cn'
},
api_prod: {
common: 'https://common-api.pickmall.cn',
diff --git a/buyer/src/pages/Login.vue b/buyer/src/pages/Login.vue
index a078e266..66c65a86 100644
--- a/buyer/src/pages/Login.vue
+++ b/buyer/src/pages/Login.vue
@@ -1,7 +1,7 @@
-
+
-
+

@@ -23,7 +23,7 @@
-