Compare commits
2 Commits
fbe0e064a4
...
0a8c7b0504
Author | SHA1 | Date |
---|---|---|
zmj | 0a8c7b0504 | |
zmj | 4b1c909d5e |
File diff suppressed because it is too large
Load Diff
|
@ -9,7 +9,7 @@
|
|||
<view class="login-box">
|
||||
<image class="logo" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/35adb202404271727457954.png">
|
||||
</image>
|
||||
<view class="tips">欢迎登录惠农批发</view>
|
||||
<view class="tips">欢迎登录泸优采</view>
|
||||
<block v-if="showWeixin">
|
||||
<up-transition :show="showWeixin">
|
||||
<view class="btn">
|
||||
|
@ -18,7 +18,7 @@
|
|||
</view>
|
||||
<view class="btn" v-if="config.ENV=='dev'">
|
||||
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
|
||||
name="weixin-fill" color="#fff" size="28"></up-icon>账号登录</up-button>
|
||||
name="account-fill" color="#fff" size="28"></up-icon>账号登录</up-button>
|
||||
</view>
|
||||
<!-- <view class="btn">
|
||||
<up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff"
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
<view style="text-align: center;">
|
||||
<image class="logo" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/35adb202404271727457954.png">
|
||||
</image>
|
||||
<view class="tips">欢迎登录惠农批发</view>
|
||||
<view class="tips">欢迎登录泸优采</view>
|
||||
</view>
|
||||
|
||||
<view class='card'>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<text>手机号:</text> <up-input v-model="formData.account" placeholder="请输入手机号"></up-input>
|
||||
<text>手机号:</text>
|
||||
<up-input v-model="formData.account" placeholder="请输入手机号"></up-input>
|
||||
</view>
|
||||
<view style="margin: 30rpx 0;">
|
||||
</view>
|
||||
|
@ -24,18 +25,12 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="submit-btn">
|
||||
<up-button @click="submit" color="#20B128" size="large">
|
||||
登录</up-button>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -92,16 +87,11 @@
|
|||
|
||||
const submit = () => {
|
||||
userLoginApi({
|
||||
account: zh.value,
|
||||
"password": "123456",
|
||||
"terminal": 2,
|
||||
"scene": 1
|
||||
...formData
|
||||
}).then(res => {
|
||||
|
||||
getStoreInfo().then(res => {
|
||||
uni.setStorageSync("STORE_INFO", JSON.stringify(res.data))
|
||||
})
|
||||
|
||||
uni.setStorageSync('token', res.data.token);
|
||||
userStore.setToken(res.data.token);
|
||||
console.log(res.data.token)
|
||||
|
|
Loading…
Reference in New Issue