s_handover.js
1.19 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
var util = require('../../utils/util.js')
var uri=require('../../utils/uri.js')
Page({
data:{
},
onLoad:function(){
wx.setNavigationBarTitle({
title:'转交店铺'
})
this.setData({
sellerid:util.cache('sellerid'),
openid:util.cache('openid')
})
},
onShow:function(){
this.getseller();
},
getseller:function(){
var that=this;
wx.request({
url: "https://xt.colorcun.com/WechatApi/WechatApi/CreateDcSubQrcode/appid/wx28fa5be22ae0ad55/sellerid/"+that.data.sellerid
+"/transfer/1",
header: {
'content-type': 'application/json'
},
success: function(res) {
if(res.data.data){
that.setData({
dc_adduser_code:res.data.data
})
}
}
})
},
// onUnload:function(){
// this.getInfo();
// },
// getInfo:function(){
// util.post(uri.CGI__USER_GETSYSTEMBYOPENID,{openid:this.data.openid},uri.CGI__USER_GETSYSTEMBYOPENID__CODE)
// },
netchange:function () {
this.onShow()
}
})