|
...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
import util from '../../../utils/util';
|
|
|
|
import App from '../../../utils/api';
|
|
|
|
const {regeneratorRuntime} = global
|
|
|
|
import PubSub from '../../../utils/PubSub'
|
|
|
|
Page({
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -14,8 +15,9 @@ Page({ |
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
options:{},
|
|
|
|
onLoad: function (options) {
|
|
|
|
|
|
|
|
this.options=options
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -66,8 +68,16 @@ Page({ |
|
|
|
sellerEditor(e){
|
|
|
|
let i=util.attr(e,'index');
|
|
|
|
let sel=this.data.sellers[i];
|
|
|
|
wx.navigateTo({
|
|
|
|
url:'/pages/manager-invitation/setting/seller-editor?seller='+JSON.stringify(sel)
|
|
|
|
})
|
|
|
|
if(this.options.hasQuick){
|
|
|
|
PubSub.emit(
|
|
|
|
'quick',
|
|
|
|
sel
|
|
|
|
)
|
|
|
|
wx.navigateBack();
|
|
|
|
}else{
|
|
|
|
wx.navigateTo({
|
|
|
|
url:'/pages/manager-invitation/setting/seller-editor?seller='+JSON.stringify(sel)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|