|
|
@@ -24,9 +24,12 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="up_btn"> |
|
|
|
<button aria-disabled="true" @click="btn" :disabled="disabled"> |
|
|
|
<button aria-disabled="true" @click="btn" :disabled="disabled" v-if="!state.isSuccess"> |
|
|
|
点击开始激活 |
|
|
|
</button> |
|
|
|
<button aria-disabled="true" @click="back" v-else> |
|
|
|
点击返回首页 |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 激活成功popup --> |
|
|
@@ -44,7 +47,8 @@ |
|
|
|
formatTime, |
|
|
|
expireDate, |
|
|
|
expireDate2, |
|
|
|
getFormatDate |
|
|
|
getFormatDate, |
|
|
|
msg |
|
|
|
} from "@/utils/utils"; |
|
|
|
import { |
|
|
|
onLoad |
|
|
@@ -77,7 +81,8 @@ |
|
|
|
orderId: "", |
|
|
|
id: "", |
|
|
|
cardStatus: "", |
|
|
|
obuStatus: "" |
|
|
|
obuStatus: "", |
|
|
|
isSuccess: false //是否激活成功 |
|
|
|
}) |
|
|
|
onLoad(() => { |
|
|
|
//读取传入 存储的数据orderInfo |
|
|
@@ -818,12 +823,18 @@ |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
msg("激活成功") |
|
|
|
state.isSuccess = true |
|
|
|
// #endif |
|
|
|
|
|
|
|
DataSynchronizationRequest(); |
|
|
|
|
|
|
|
|
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/subpackage/after-sale/deviceInfo/deviceInfo", |
|
|
|
}); |
|
|
|
// #endif |
|
|
|
} |
|
|
|
}) |
|
|
|
}; |
|
|
@@ -840,6 +851,11 @@ |
|
|
|
const data = stringToJson(res.bizContent); |
|
|
|
}) |
|
|
|
} |
|
|
|
const back = () => { |
|
|
|
uni.switchTab({ |
|
|
|
url: "/pages/index/index" |
|
|
|
}); |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style> |