|
@@ -131,6 +131,12 @@ export default{
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.login = true;
|
|
|
+ if (option && option.name) {
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title:option.name
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
this.Dever.config.code = option.code;
|
|
|
this.getData();
|
|
|
},
|
|
@@ -192,7 +198,7 @@ export default{
|
|
|
this.Dever.location('dream/view?id=1');
|
|
|
},
|
|
|
initDrawer : function() {
|
|
|
- this.getContentId();
|
|
|
+ //this.getContentId();
|
|
|
var i = '';
|
|
|
this.drawer.button = [];
|
|
|
for (i in this.drawer.item) {
|
|
@@ -206,6 +212,9 @@ export default{
|
|
|
var self = this;
|
|
|
self.drawer.item = {};
|
|
|
this.Dever.get(this, 'app/collection/?l=api.getContent', {code:this.Dever.config.code}, function(t) {
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title:t.info.name
|
|
|
+ });
|
|
|
self.swiper.index = parseInt(t.index);
|
|
|
self.record();
|
|
|
if (t && t['func']) {
|