|
楼主 |
发表于 2016-12-28 15:43:37
|
显示全部楼层
this.comp("productData").refreshData();
if(sign=='1'){
this.comp("orderDetailData").refreshData();
var params = {
"OrderID" : orderID,
"fUserID" : fUserID,
"fUserTicket" : fUserTicket
};
var success = function(resultData) {
// self.getElementByXid("qrCode").src = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket="+ resultData.fOrderTicket;
self.getElementByXid("qrCode").src = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQHq7zoAAAAAAAAAASxodHRwOi8vd2VpeGluLnFxLmNvbS9xL0VFaXRzUFRsUmpzLUY4WWdQbVNaAAIEdj_pVwMEAAAAAA==";// + resultData.fOrderTicket;
};
Baas.sendRequest({
"url" : "/shopuser",
"action" : "createTempOrdersTicket",
"params" : params,
"success" : success
});
$(self.getElementByXid("div1")).show();
self.comp("printHtml1").set({
"target":"div1"
});
}else{
this.comp("inoutstoreData").refreshData();
$(self.getElementByXid("div2")).show();
self.comp("printHtml1").set({
"target":"div2"
});
}
debugger;
this.comp("printHtml1").print() |
|