deploy
This commit is contained in:
@ -17,7 +17,7 @@
|
|||||||
<view slot="description">{{times.formatDate(item.date) || "-"}} | {{item.oppositeCompany}}</view>
|
<view slot="description">{{times.formatDate(item.date) || "-"}} | {{item.oppositeCompany}}</view>
|
||||||
<view slot="note" style="color: {{item.type=='finance_type_income'?'#38a169':item.type=='finance_type_expenditure'?'#dd6b20':'transparent'}};">{{item.type=='finance_type_income'?'+':item.type=='finance_type_expenditure'?'-':''}}{{item.amount}}</view>
|
<view slot="note" style="color: {{item.type=='finance_type_income'?'#38a169':item.type=='finance_type_expenditure'?'#dd6b20':'transparent'}};">{{item.type=='finance_type_income'?'+':item.type=='finance_type_expenditure'?'-':''}}{{item.amount}}</view>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<view slot="right" class="btn-wrapper" data-finance-id="{{item.financeId}}" bind:tap="showDeleteDialog">
|
<view wx:if="{{utils.hasPermission('finance:detail:remove', permissions)}}" slot="right" class="btn-wrapper" data-finance-id="{{item.financeId}}" bind:tap="showDeleteDialog">
|
||||||
<view class="btn delete-btn">删除</view>
|
<view class="btn delete-btn">删除</view>
|
||||||
</view>
|
</view>
|
||||||
</t-swipe-cell>
|
</t-swipe-cell>
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
.avatar_login {
|
.avatar_login {
|
||||||
margin-left: 64rpx;
|
margin-left: 64rpx;
|
||||||
@ -33,6 +34,11 @@
|
|||||||
--td-button-primary-text-color: #ffffff;
|
--td-button-primary-text-color: #ffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.nickname {
|
||||||
|
margin-left: 24rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: x-large;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.vip-card {
|
.vip-card {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -8,6 +8,7 @@ Page({
|
|||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
authToken: null,
|
authToken: null,
|
||||||
|
user: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
loginWithWeChat(e: any) {
|
loginWithWeChat(e: any) {
|
||||||
@ -20,6 +21,9 @@ Page({
|
|||||||
setToken(response.token);
|
setToken(response.token);
|
||||||
getInfo(response.token).then((resp: any) => {
|
getInfo(response.token).then((resp: any) => {
|
||||||
getApp().globalData.permissions = resp.permissions;
|
getApp().globalData.permissions = resp.permissions;
|
||||||
|
this.setData({
|
||||||
|
user: resp.user,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -38,6 +42,14 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
authToken,
|
authToken,
|
||||||
});
|
});
|
||||||
|
if (authToken) {
|
||||||
|
getInfo(authToken).then((resp: any) => {
|
||||||
|
const { user } = resp;
|
||||||
|
this.setData({
|
||||||
|
user,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<view class="avatar_login">
|
<view class="avatar_login">
|
||||||
<t-avatar icon="user" />
|
<t-avatar icon="user" />
|
||||||
<t-button wx:if="{{!authToken}}" open-type="getPhoneNumber" bindgetphonenumber="loginWithWeChat" class="login-button" size="medium" theme="primary" variant="text">登录</t-button>
|
<t-button wx:if="{{!authToken}}" open-type="getPhoneNumber" bindgetphonenumber="loginWithWeChat" class="login-button" size="medium" theme="primary" variant="text">登录</t-button>
|
||||||
|
<view class="nickname" wx:else>{{user.nickname}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="vip-card">
|
<view class="vip-card">
|
||||||
<text>中科九章管理层</text>
|
<text>中科九章管理层</text>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"t-fab": "tdesign-miniprogram/fab/fab",
|
"t-fab": "tdesign-miniprogram/fab/fab",
|
||||||
|
"t-sticky": "tdesign-miniprogram/sticky/sticky",
|
||||||
"statistics-card": "/components/statistics-card"
|
"statistics-card": "/components/statistics-card"
|
||||||
},
|
},
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
|
@ -5,10 +5,12 @@
|
|||||||
page {
|
page {
|
||||||
padding-top: 32rpx;
|
padding-top: 32rpx;
|
||||||
}
|
}
|
||||||
.stock-tabs {
|
.stock-stick {
|
||||||
margin: 16rpx 32rpx 0;
|
margin: 16rpx 32rpx 0;
|
||||||
border-radius: 18rpx;
|
.stock-tabs {
|
||||||
overflow: hidden;
|
border-radius: 18rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.stock-list {
|
.stock-list {
|
||||||
padding: 16rpx 0 32rpx;
|
padding: 16rpx 0 32rpx;
|
||||||
|
@ -4,13 +4,15 @@
|
|||||||
<wxs module="times" src="../../utils/time.wxs" />
|
<wxs module="times" src="../../utils/time.wxs" />
|
||||||
<wxs module="utils" src="../../utils/utils.wxs" />
|
<wxs module="utils" src="../../utils/utils.wxs" />
|
||||||
<statistics-card statistics-data="{{statisticsData}}" />
|
<statistics-card statistics-data="{{statisticsData}}" />
|
||||||
<view class="stock-tabs">
|
<t-sticky class="stock-stick">
|
||||||
<t-tabs defaultValue="{{0}}" value="{{stockType}}" bind:change="onTabsChange" theme="tag">
|
<view class="stock-tabs">
|
||||||
<t-tab-panel label="库存" value="{{0}}" />
|
<t-tabs defaultValue="{{0}}" value="{{stockType}}" bind:change="onTabsChange" theme="tag">
|
||||||
<t-tab-panel label="入库" value="{{1}}" />
|
<t-tab-panel label="库存" value="{{0}}" />
|
||||||
<t-tab-panel label="出库" value="{{2}}" />
|
<t-tab-panel label="入库" value="{{1}}" />
|
||||||
</t-tabs>
|
<t-tab-panel label="出库" value="{{2}}" />
|
||||||
</view>
|
</t-tabs>
|
||||||
|
</view>
|
||||||
|
</t-sticky>
|
||||||
<view class="stock-list">
|
<view class="stock-list">
|
||||||
<t-fab wx:if="{{stockType > 0 && utils.hasPermission('product:product:add', permissions)}}" class="float-button" icon="add" aria-label="增加" bind:click="handleAddStock"></t-fab>
|
<t-fab wx:if="{{stockType > 0 && utils.hasPermission('product:product:add', permissions)}}" class="float-button" icon="add" aria-label="增加" bind:click="handleAddStock"></t-fab>
|
||||||
<view hidden="{{stockType!=0}}" class="scroll-container">
|
<view hidden="{{stockType!=0}}" class="scroll-container">
|
||||||
|
Reference in New Issue
Block a user