main
fanfan 6 months ago
parent 9392de7f5d
commit 05e8ef87d1
  1. 7
      api/captcha.js
  2. 32
      pages/login/index.vue

@ -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 })
}

@ -37,10 +37,10 @@
<u-navbar title="" :border-bottom="false" background="rgba(255, 233, 240, 1)"></u-navbar>
</view>
<view class="login-logo">
<image src="../../static/login_logo.png" mode=""></image>
<image :src="loginInfo.login_img" mode="widthFix"></image>
</view>
<view class="login-name">
京苏云商
{{loginInfo.store_name}}
</view>
<view class="c">
<u-checkbox active-color="#FF343C" v-model="isCheckout" style="margin-right: -20rpx"></u-checkbox>
@ -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%;
}
}

Loading…
Cancel
Save