This commit is contained in:
yangzhq68909 2025-01-07 09:44:59 +08:00
parent a472d67520
commit 23e4f9f409
3 changed files with 21 additions and 20 deletions

View File

@ -2,8 +2,8 @@
"name" : "数智产销", "name" : "数智产销",
"appid" : "__UNI__9F097F0", "appid" : "__UNI__9F097F0",
"description" : "", "description" : "",
"versionName" : "1.1.0", "versionName" : "1.1.1",
"versionCode" : 20241222, "versionCode" : 20250106,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -25,7 +25,7 @@
</view> </view>
<tree-select :dataSource="dataSource" v-model="type" dataValue="name" /> <tree-select :dataSource="dataSource" v-model="type" dataValue="name" />
</view> </view>
<picker mode="date" fields="day" @change="chooseStart" :value="beginTime"> <picker mode="date" fields="day" @change="chooseStart" :value="beginTime" :end="endTime">
<view class="f-row aic jcb box"> <view class="f-row aic jcb box">
<view class="title"> <view class="title">
开始时间 开始时间

View File

@ -32,11 +32,10 @@
</view> </view>
</view> </view>
<view class="login f-col aic"> <view class="login f-col aic">
<text style="font-size: 10px;">Copyright (c) 2024 天然气产销厂</text>
<text style="font-size: 10px;">Copyright (c) 2024 天然气产销厂 信息化支持中心</text> <text style="font-size: 10px;">版本号:{{systemInfo.appWgtVersion}}</text>
<text style="font-size: 10px;">版本号1.0.3</text>
</view> </view>
</view> </view>
</template> </template>
@ -65,7 +64,9 @@
const { const {
proxy proxy
} = getCurrentInstance() } = getCurrentInstance()
/** 系统信息 */
const systemInfo = uni.getSystemInfoSync()
/**是否明文显示密码*/ /**是否明文显示密码*/
const showpwd = ref(false) const showpwd = ref(false)
/**用于用户缓存账号和密码*/ /**用于用户缓存账号和密码*/
@ -97,20 +98,19 @@
}); });
/*生产环境 begin */ /*生产环境 begin */
// loginApi({ loginApi({
// username: un, username: un,
// password: pw, password: pw,
// ip: getDeviceIp() ip: getDeviceIp()
/*生产环境 end */ /*生产环境 end */
/*开发环境 begin */ /*开发环境 begin */
localLoginApi({ // localLoginApi({
username: username.value, // username: username.value,
password: password.value, // password: password.value,
captcha: 'app' // captcha: 'app'
/*开发环境 end */ /*开发环境 end */
}).then((loginres) => { }).then((loginres) => {
// console.log("===============",loginres)
if (loginres.success) { if (loginres.success) {
uni.setStorageSync('token', loginres.result.token) uni.setStorageSync('token', loginres.result.token)
store.setToken(loginres.result.token) store.setToken(loginres.result.token)
@ -130,7 +130,7 @@
store.setUserInfo(loginres.result.userInfo) store.setUserInfo(loginres.result.userInfo)
// //
loadBadge() loadBadge()
// //
uni.switchTab({ uni.switchTab({
url: '/pages/tab/index' url: '/pages/tab/index'
@ -174,6 +174,7 @@
} }
function getDeviceIp() { function getDeviceIp() {
// #ifdef APP-PLUS // #ifdef APP-PLUS