diff --git a/api/captcha.js b/api/captcha.js
index 6fff247..8f9e806 100644
--- a/api/captcha.js
+++ b/api/captcha.js
@@ -3,7 +3,8 @@ import request from '@/utils/request'
// api地址
const api = {
image: 'captcha/image',
- sendSmsCaptcha: 'captcha/sendSmsCaptcha'
+ sendSmsCaptcha: 'captcha/sendSmsCaptcha',
+ getStoreInfo:'store/getStoreInfo'
}
// 图形验证码
@@ -15,3 +16,7 @@ export function image() {
export function sendSmsCaptcha(data) {
return request.post(api.sendSmsCaptcha, data, { load: false })
}
+// 发送短信验证码
+export function getStoreInfo(data) {
+ return request.get(api.getStoreInfo, data, { load: false })
+}
diff --git a/pages/login/index.vue b/pages/login/index.vue
index 3cdb300..0437525 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -37,10 +37,10 @@
-
+
- 京苏云商
+ {{loginInfo.store_name}}
@@ -83,6 +83,7 @@
countDownFun: null,
code: "",
refereeId: "",
+ loginInfo:{}
};
},
onLoad(o) {
@@ -96,8 +97,25 @@
console.log(scene.refereeId)
console.log("refereeId", refereeId)
console.log(this.refereeId)
+ this.getLogoName()
},
methods: {
+ getLogoName() {
+ let that = this
+ CaptchaApi.getStoreInfo({
+ mobile: that.phoneNum
+ }).then((res) => {
+ if (res.status == 200) {
+ that.loginInfo=res.data
+ console.log(that.loginInfo)
+ } else {
+ uni.showToast({
+ icon: "none",
+ title: res.message,
+ });
+ }
+ });
+ },
toTextPage(n) {
uni.navigateTo({
url: "/pages/news1/text?pageFlag=" + n,
@@ -238,13 +256,13 @@
width: 132rpx;
height: 132rpx;
border-radius: 24rpx;
- background: rgba(243, 74, 64, 1);
- box-shadow: -4rpx -8rpx 20rpx rgba(243, 74, 64, 0.16);
+ overflow: hidden;
+ // background: rgba(243, 74, 64, 1);
+ // box-shadow: -4rpx -8rpx 20rpx rgba(243, 74, 64, 0.16);
image {
- width: 75rpx;
- height: 85rpx;
- margin: 23.5rpx 0 0 28.5rpx;
+ width: 100%;
+ height: 100%;
}
}