-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 计算微信数据库 key | ||
|
||
<script> | ||
import MD5 from 'md5' | ||
|
||
export default { | ||
data: () => ({ | ||
_IMEI:'', | ||
uni:'' | ||
}), | ||
computed:{ | ||
IMEI: { | ||
get() { | ||
return this._IMEI | ||
}, | ||
set(value) { | ||
this._IMEI = value.toUpperCase(); | ||
} | ||
}, | ||
key(){ | ||
if (!this.IMEI|| !this.uni) return ''; | ||
const full = this.IMEI + '' + this.uni; | ||
const key = MD5(full).substring(0, 7).toLowerCase() | ||
return key; | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<div> | ||
<div class="form"> | ||
<label for="IMEI"> | ||
<span>IMEI: </span> | ||
<input type="text" name="IMEI" v-model.lazy.trim="IMEI" placeholder="请输入 IMEI"/> | ||
</label> | ||
<br /> | ||
<label for="uni"> | ||
<span>uni: </span> | ||
<input type="text" name="uni" v-model.lazy.trim="uni" placeholder="请输入 uni" /> | ||
</label> | ||
</div> | ||
<p>key: {{ key }}</p> | ||
</div> | ||
|
||
<style lang="sass"> | ||
.form | ||
input | ||
border: 1px solid #333 | ||
</style> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters