diff --git a/manifest.json b/manifest.json index 80ffc02..361dba2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "AI销讲助手", + "name" : "AI销管", "appid" : "__UNI__D88F14A", "description" : "AI销讲助手", "versionName" : "1.1.0", @@ -91,7 +91,7 @@ }, "quickapp" : {}, "mp-weixin" : { - "appid" : "wx83fec12ec03d9349", + "appid" : "wxd6dd7eae72606ca2", "setting" : { "urlCheck" : false, "es6" : true, diff --git a/pages/mine/ScoringPlaylist.vue b/pages/mine/ScoringPlaylist.vue index 4a425f4..410027e 100644 --- a/pages/mine/ScoringPlaylist.vue +++ b/pages/mine/ScoringPlaylist.vue @@ -24,13 +24,15 @@ customerId:'', listarr:[], id:'', - type:'' + type:'', + tipsFncName: '', // 提醒页面变更的值 }; }, - onLoad: function(options) { + onLoad(options) { this.customerId = options.customerId; this.id=options.id; this.type=options.type; + if (options.UpDateEvent) this.tipsFncName = options.UpDateEvent this.searchinfo() }, methods: { @@ -84,10 +86,13 @@ uni.setStorageSync("entrance", 2); //写入缓存 uni.setStorageSync("searchobj", d[0]); //写入缓存 if(res[0].merge==0){ - let newobj = res[0]; - uni.navigateTo({ - url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(d[0])}&stateisshow=${'2'}` - }) + if (this.tipsFncName) uni.$emit(this.tipsFncName, d[0]) + uni.$emit('newobjStatus', newobj.status) + uni.navigateBack() + // let newobj = res[0]; + // uni.navigateTo({ + // url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(d[0])}&stateisshow=${'2'}` + // }) }else{ let newobj = res[0]; uni.navigateTo({ diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 5dc82ff..ac469a7 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -561,6 +561,11 @@ uni.$on('DETAILS2INIT', (info) => { this.init(info) }); + + // 当前页面状态 + uni.$on('newobjStatus', status => { + this.status = status + }) }, @@ -596,6 +601,7 @@ onUnload() { uni.$off('DETAILS2INIT') + uni.$off('newobjStatus') //卸载不需要的业务和获取播放状态的业务,提高页面性能 this.$zaudio.off('seek', this.ACTION); this.$zaudio.off('stop', this.ACTION); @@ -653,9 +659,11 @@ }, argece(item) { if (item.selected == 0) { + // 关闭当前页面弹窗 + this.Pinspeak = false uni.navigateTo({ url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item - .keywordsId + "&type=" + 1 + .keywordsId + "&type=" + 1 + '&UpDateEvent=DETAILS2INIT' }) } }, @@ -694,6 +702,8 @@ //评分点击 clickaudeopal(item) { if (item.selected == 0) { + // 关闭当前页面弹窗 + this.Pinspeak = false uni.navigateTo({ url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item .marketingId + "&type=" + 0 diff --git a/utils/domain.js b/utils/domain.js index 459a2a9..2eef5ea 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,9 +1,9 @@ -const base = 'http://81.70.55.170:9999' ;// 测试站 +// const base = 'http://81.70.55.170:9999' ;// 测试站 // const base = 'http://8kdmng.natappfree.cc' ;// 佳豪 // const base = 'http://192.168.31.134:9999' ;// 佳豪 // const base = 'http://192.168.31.86:9999' ;// 胜浩 // const base = 'http://192.168.31.167:9999' // 长龙 -// const base = 'https://zanyong.hfju.com';// 正式 AI销管 +const base = 'https://zanyong.hfju.com';// 正式 AI销管 // const base = 'https://hxz.quhouse.com';// 正式 AI销讲助手 // http.js使用