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地址 // api地址
const api = { const api = {
image: 'captcha/image', image: 'captcha/image',
sendSmsCaptcha: 'captcha/sendSmsCaptcha' sendSmsCaptcha: 'captcha/sendSmsCaptcha',
getStoreInfo:'store/getStoreInfo'
} }
// 图形验证码 // 图形验证码
@ -15,3 +16,7 @@ export function image() {
export function sendSmsCaptcha(data) { export function sendSmsCaptcha(data) {
return request.post(api.sendSmsCaptcha, data, { load: false }) 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> <u-navbar title="" :border-bottom="false" background="rgba(255, 233, 240, 1)"></u-navbar>
</view> </view>
<view class="login-logo"> <view class="login-logo">
<image src="../../static/login_logo.png" mode=""></image> <image :src="loginInfo.login_img" mode="widthFix"></image>
</view> </view>
<view class="login-name"> <view class="login-name">
京苏云商 {{loginInfo.store_name}}
</view> </view>
<view class="c"> <view class="c">
<u-checkbox active-color="#FF343C" v-model="isCheckout" style="margin-right: -20rpx"></u-checkbox> <u-checkbox active-color="#FF343C" v-model="isCheckout" style="margin-right: -20rpx"></u-checkbox>
@ -83,6 +83,7 @@
countDownFun: null, countDownFun: null,
code: "", code: "",
refereeId: "", refereeId: "",
loginInfo:{}
}; };
}, },
onLoad(o) { onLoad(o) {
@ -96,8 +97,25 @@
console.log(scene.refereeId) console.log(scene.refereeId)
console.log("refereeId", refereeId) console.log("refereeId", refereeId)
console.log(this.refereeId) console.log(this.refereeId)
this.getLogoName()
}, },
methods: { 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) { toTextPage(n) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/news1/text?pageFlag=" + n, url: "/pages/news1/text?pageFlag=" + n,
@ -238,13 +256,13 @@
width: 132rpx; width: 132rpx;
height: 132rpx; height: 132rpx;
border-radius: 24rpx; border-radius: 24rpx;
background: rgba(243, 74, 64, 1); overflow: hidden;
box-shadow: -4rpx -8rpx 20rpx rgba(243, 74, 64, 0.16); // background: rgba(243, 74, 64, 1);
// box-shadow: -4rpx -8rpx 20rpx rgba(243, 74, 64, 0.16);
image { image {
width: 75rpx; width: 100%;
height: 85rpx; height: 100%;
margin: 23.5rpx 0 0 28.5rpx;
} }
} }

Loading…
Cancel
Save