在搞加密解密
This commit is contained in:
@@ -3,29 +3,31 @@
|
||||
<cu-custom class="main-topbar bg-main-oil" bgColor="bg-main-oil">
|
||||
<block slot="content">绑定星油云站</block>
|
||||
</cu-custom>
|
||||
<view class="pannel">
|
||||
<view class="logo margin-top">
|
||||
<img :src="baseURL+'/static/img/order-xy.png'" mode="" />
|
||||
</view>
|
||||
<view class="bg-gradual-orange margin padding radius shadow-warp">
|
||||
<view class="text-bold text-lg padding-bottom text-center">
|
||||
<view class="bg-img margin flex padding-lg radius align-center text-center" :style="'background-image: url('+mainURL+'login-bg.png)'">
|
||||
<view class="padding-lg margin text-center text-lg text-white w100">
|
||||
<text class="">
|
||||
油站工作人员绑定油站
|
||||
</view>
|
||||
<view class=" padding-bottom text-center">
|
||||
请确认您的手机号码已注册星油云站管理员账号
|
||||
</view>
|
||||
<view class="cu-form-group radius">
|
||||
<view class="title text-black">云站号</view>
|
||||
<input type="number" v-model="oilSiteNo" placeholder="请输入云站编号" name="input"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin margin-top-xl">
|
||||
<button class="bg-main-oil" @tap="nextStep">
|
||||
下一步
|
||||
</button>
|
||||
</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="pannel">
|
||||
<view class="bg-white margin padding radius shadow-warp">
|
||||
<view class="cu-form-group radius">
|
||||
<view class="title text-black">云站号</view>
|
||||
<input type="number" class="text-right" v-model="oilSiteNo" placeholder="请输入云站编号" name="input"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-left">
|
||||
<text class="cuIcon-infofill padding-right-xs text-sm oil-main-color"></text>
|
||||
<text class="text-sm">请确认您的手机号已添加为星油云站管理员账号</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-lg padding-lg bottom-bg">
|
||||
<button class="bg-main-oil round" @tap="nextStep">
|
||||
下一步
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -36,11 +38,13 @@
|
||||
data() {
|
||||
return {
|
||||
baseURL: this.global.baseURL,
|
||||
mainURL: this.global.mainURL,
|
||||
forcedLogin: true,
|
||||
oilSiteNo: ''
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showShareMenu()
|
||||
this.loginWeixin()
|
||||
},
|
||||
methods: {
|
||||
@@ -52,7 +56,7 @@
|
||||
console.log(code)
|
||||
loginApi.loginWeixin(code).then(res => {
|
||||
if (res.code === 20000) {
|
||||
uni.navigateTo({
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index',
|
||||
fail: (err) => {
|
||||
console.log(err)
|
||||
@@ -77,6 +81,8 @@
|
||||
console.log('deviceopenid', res.data.openid)
|
||||
}
|
||||
})
|
||||
uni.setStorageSync('userMenu',res.data.loginUser.procedureAuthList)
|
||||
uni.setStorageSync('loginUser',{id:res.data.loginUser.id,name:res.data.loginUser.name})
|
||||
} else {
|
||||
console.log('res', res.code)
|
||||
}
|
||||
@@ -196,6 +202,7 @@
|
||||
<style scoped>
|
||||
.page-content {
|
||||
min-height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.logo {
|
||||
@@ -209,4 +216,9 @@
|
||||
background-size: contain;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.bottom-bg {
|
||||
position: sticky;
|
||||
bottom: 50upx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user