feat: 已完成&售后

This commit is contained in:
2025-10-18 17:31:15 +08:00
parent 7214c8dc6f
commit c1c03ba390
2 changed files with 35 additions and 32 deletions
+29 -29
View File
@@ -103,9 +103,9 @@
bgColor="#f1f6ff00" bgColor="#f1f6ff00"
></up-image> ></up-image>
微信登录 微信登录
</view> </view>
<view class="login_other_item" @click="aa"> <!-- <view class="login_other_item" @click="aa"> -->
<!-- <view v-if="!isIOS" class="login_other_item" @click="alipayOneLogin"> --> <view v-if="!isIOS" class="login_other_item" @click="alipayOneLogin">
<up-image <up-image
src="/static/login/ZFB.png" src="/static/login/ZFB.png"
width="44" width="44"
@@ -203,19 +203,19 @@ export default {
loading: false, loading: false,
}; };
}, },
methods: { methods: {
aa(){ aa(){
const nativiPlugin = uni.requireNativePlugin('WITTestUniPlugin'); const nativiPlugin = uni.requireNativePlugin('WITTestUniPlugin');
console.log("隐藏原生tabbar",nativiPlugin) console.log("隐藏原生tabbar",nativiPlugin)
nativiPlugin.testAsyncFunc({}, nativiPlugin.testAsyncFunc({},
(ret) => { (ret) => {
uni.showToast({ uni.showToast({
title: '调用异步方法 ' + ret, title: '调用异步方法 ' + ret,
icon: "none" icon: "none"
}) })
console.log(ret); console.log(ret);
}); });
}, },
jumpHome() { jumpHome() {
// const sysPlatform = getCurrentSysPlatform(); // const sysPlatform = getCurrentSysPlatform();
@@ -266,19 +266,19 @@ export default {
setStorageFun(USER_DATA, userInfo); setStorageFun(USER_DATA, userInfo);
// 当前登录得时间戳 // 当前登录得时间戳
let currentTimeStamp = new Date().getTime(); let currentTimeStamp = new Date().getTime();
setStorageFun(USER_LOGIN_TIME, currentTimeStamp); setStorageFun(USER_LOGIN_TIME, currentTimeStamp);
const res = uni.getSystemInfoSync(); const res = uni.getSystemInfoSync();
uni.setStorageSync('platform', res.platform); uni.setStorageSync('platform', res.platform);
// #ifdef APP-PLUS          // #ifdef APP-PLUS         
// 获取应用版本信息 // 获取应用版本信息
plus.runtime.getProperty(plus.runtime.appid, function(inf) { plus.runtime.getProperty(plus.runtime.appid, function(inf) {
console.log("版本信息",inf.versionCode) console.log("版本信息",inf.versionCode)
uni.setStorageSync('version-1', inf.version); // 大版本号 uni.setStorageSync('version-1', inf.version); // 大版本号
uni.setStorageSync('versionCode', inf.versionCode); // 小版本号 uni.setStorageSync('versionCode', inf.versionCode); // 小版本号
}); });
let uuid = plus.device.uuid; let uuid = plus.device.uuid;
// #endif // #endif
this.$refs.uToastRef.show({ this.$refs.uToastRef.show({
type: "success", type: "success",
+6 -3
View File
@@ -475,25 +475,28 @@ export default {
// 删除 // 删除
deleteOrder(item) { deleteOrder(item) {
console.log("删除", item); console.log("删除", item, this.form.type);
this.deleteShow = true; this.deleteShow = true;
this.deleteInfo = item; this.deleteInfo = item;
}, },
async againDeleteOrder() { async againDeleteOrder() {
let params; let params;
if (this.deleteInfo.status === 4) { if (this.form.type === 4 && (this.deleteInfo.status === 4 || this.deleteInfo.status === 5 || this.deleteInfo.status === 6 || this.deleteInfo.status === 7)) {
params = { params = {
orderId: this.deleteInfo.id, orderId: this.deleteInfo.id,
type: 1 type: 1
} }
} }
if (this.deleteInfo.status === 7) { if (this.form.type === 5 && this.deleteInfo.status === 7) {
params = { params = {
orderId: this.deleteInfo.afterId, orderId: this.deleteInfo.afterId,
type: 2 type: 2
} }
} }
console.log("删除-1", params); console.log("删除-1", params);
if(!params.orderId){
return;
}
const res = await deleteOrderQuery(params); const res = await deleteOrderQuery(params);
if (res.bizcode == 100) { if (res.bizcode == 100) {
this.$refs.uToastRef.show({ this.$refs.uToastRef.show({