1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| <template>
| </template>
|
| <script>
| export default {
| data() {
| return {}
| },
| onLoad(option) {
| if (option.code) { //根据code获取openid
| let data={
| code:option.code
| }
| this.$http.post('/smsapi/WxBack/GetOpenId', data).then(e => {
| uni.setStorageSync("smsopenid",e.result);
| uni.switchTab({
| url: '/pages/index/index'
| })
| }).catch(function(err) {
| console.log(err);
| })
| /* uni.switchTab({
| url: '/pages/index/index'
| }) */
| }
| },
| methods: {
| sendsms() {
| uni.navigateTo({
| url: '/pages/sendsms/index'
| })
| },
| getsms() {
| uni.switchTab({
| url: '/pages/charthistory/index'
| })
| }
|
| }
| }
| </script>
|
| <style>
| </style>
|
|