s_rank.js
1.38 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
//logs.js
var util = require('../../utils/util.js')
var uri=require('../../utils/uri.js')
Page({
data: {
list:[
{
id:1,
role_name:'管理员'
},
{
id:1,
role_name:'店长'
},
{
id:1,
role_name:'客户经理'
},
{
id:1,
role_name:'收银员'
},
{
id:1,
role_name:'服务员'
}
],
},
onLoad: function () {
var that = this;
util.setBarTitle('职级管理')
this.setData({
sellerid: util.cache("sellerid")
})
},
onShow:function(){
var that=this;
// this.rankList()
// util.postSuccessFun=function(json,uri_code){
// switch (uri_code) {
// case uri.CGI__USER_AUTHRANKLIST__CODE:
// that.setData({
// list:json.data
// })
// break;
// }
// }
},
netchange:function(){
this.onShow();
}
// rankList:function(){
// var sellerid=util.cache('user').sellerid;
// util.post(uri.CGI__USER_AUTHRANKLIST,{sellerid:this.data.sellerid},uri.CGI__USER_AUTHRANKLIST__CODE);
// },
})