This commit is contained in:
weipengfei 2023-08-30 09:27:53 +08:00
parent 384054474c
commit 03e0addbff
4 changed files with 8 additions and 24 deletions

View File

@ -87,25 +87,16 @@ export function clearStorage() {
@title 最多汉字数量7个 @title 最多汉字数量7个
@icon success loading none @icon success loading none
*/ */
export function Toast(title, icon = 'none', obj = {}, duration = 800) { export function Toast(title, icon = 'none', obj = {}, duration = 700) {
let toastData = { let toastData = {
title: title, title: title,
duration: duration, duration: duration,
position: 'center', // position: 'center',
mask: true, mask: true,
icon: icon ? icon : 'none', icon: icon ? icon : 'none',
...obj ...obj
}; };
uni.showToast(toastData); uni.showToast(toastData);
// #ifdef APP-PLUS
setTimeout(function() {
try{
uni.hideToast();
}catch(e){
//TODO handle the exception
}
}, 800)
// #endif
} }
/* /*
显示loading提示框,需要手动隐藏 显示loading提示框,需要手动隐藏

View File

@ -4,7 +4,7 @@ import { getConfig } from "@/api/config.js";
const state = { const state = {
eyeType: Cache.get('eyeType') || true, // 小眼睛 eyeType: Cache.get('eyeType') || true, // 小眼睛
request: Cache.get('request') || true, // 网络请求 request: Cache.get('request') || true, // 网络请求
config: {} config: Cache.get('config') || {}
}; };
const mutations = { const mutations = {
@ -18,6 +18,7 @@ const mutations = {
}, },
SET_CONFIG(state, data){ SET_CONFIG(state, data){
state.config = {...data}; state.config = {...data};
Cache.set('config', state.config);
} }
}; };

View File

@ -12,10 +12,10 @@
<view class="text">{{task.content}}</view> <view class="text">{{task.content}}</view>
</view> </view>
<view class="card"> <view class="card">
<view class="title">历史记录</view> <view class="title">事件记录</view>
<u-line style="margin: 14rpx 0;"></u-line> <u-line style="margin: 14rpx 0;"></u-line>
<u-steps v-if="task.extend&&task.extend.shareholder" :current="-1" direction="column" activeColor="#0122c7" dot inactiveColor="#0122c7"> <u-steps v-if="task.extend&&task.extend.shareholder" :current="-1" direction="column" activeColor="#0122c7" dot inactiveColor="#0122c7">
<u-steps-item v-for="(item, index) in task.extend.shareholder.user_list" :title="item.time" :desc="`${item.name}入股了 ${item.money} 元`"> <u-steps-item v-for="(item, index) in task.extend.shareholder.user_list" :title="item.time" :desc="item.info">
</u-steps-item> </u-steps-item>
</u-steps> </u-steps>
</view> </view>

View File

@ -40,18 +40,10 @@ import { Toast } from '../../libs/uniApi';
}, },
methods:{ methods:{
retreat(){ retreat(){
uni.showToast({ Toast('开发中')
icon:'none',
title:'开发中',
duration: 700
})
}, },
hand(){ hand(){
uni.showToast({ Toast('开发中')
icon:'none',
title:'开发中',
duration: 700
})
} }
} }
} }