浏览代码

推送功能确认添加

asd26269546 2 年之前
父节点
当前提交
87df6d6cc2
共有 64 个文件被更改,包括 39 次插入14 次删除
  1. 24 7
      pages/home.vue
  2. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  3. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  4. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/components/commons-select-time/index.js.map
  5. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/components/htz-image-upload/htz-image-upload.js.map
  6. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-badge/uni-badge.js.map
  7. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-card/uni-card.js.map
  8. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-col/uni-col.js.map
  9. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-data-checkbox/uni-data-checkbox.js.map
  10. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/calendar-item.js.map
  11. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/calendar.js.map
  12. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/time-picker.js.map
  13. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.js.map
  14. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-easyinput/uni-easyinput.js.map
  15. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-forms-item/uni-forms-item.js.map
  16. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-forms/uni-forms.js.map
  17. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.js.map
  18. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-load-more/uni-load-more.js.map
  19. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-number-box/uni-number-box.js.map
  20. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-popup-message/uni-popup-message.js.map
  21. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-popup/uni-popup.js.map
  22. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-row/uni-row.js.map
  23. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-search-bar/uni-search-bar.js.map
  24. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-table/uni-table.js.map
  25. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-td/uni-td.js.map
  26. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-th/filter-dropdown.js.map
  27. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-th/uni-th.js.map
  28. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-tr/table-checkbox.js.map
  29. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-tr/uni-tr.js.map
  30. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/Inventory/Inventory.js.map
  31. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/Inventory/InventoryDtl.js.map
  32. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/Inventory/InventorySubmit.js.map
  33. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/addQrcode/addBatch.js.map
  34. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/addQrcode/addQrcode.js.map
  35. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/addQrcode/selectQrcode.js.map
  36. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/check/check.js.map
  37. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/check/checkDtl.js.map
  38. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/check/checkSubmit.js.map
  39. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/goIn/goIn.js.map
  40. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/goIn/withdrawal.js.map
  41. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/goOut/goOut.js.map
  42. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/home.js.map
  43. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/inOut/inOut.js.map
  44. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  45. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/manageQrcode/manageQrcode.js.map
  46. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/overCloth/overCloth.js.map
  47. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/select/select.js.map
  48. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/shiftHandover/shiftHandover.js.map
  49. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/submit/submit.js.map
  50. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/succession/succession.js.map
  51. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/summary.js.map
  52. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/total.js.map
  53. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/warehouseDtl.js.map
  54. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/warehousingDtl.js.map
  55. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/summary.js.map
  56. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/usedTotal.js.map
  57. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/warehouseDtl.js.map
  58. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/warehousingDtl.js.map
  59. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/user/login.js.map
  60. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/weigh/checkDtl.js.map
  61. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/weigh/checkSubmit.js.map
  62. 0 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/weigh/weigh.js.map
  63. 5 5
      unpackage/dist/dev/mp-weixin/common/vendor.js
  64. 10 2
      unpackage/dist/dev/mp-weixin/pages/home.js

+ 24 - 7
pages/home.vue

@@ -46,16 +46,25 @@
 		data() {
 			return {
 				userInfoData: [],
-				notificationData:[],
-				isRoom:false,
+				notificationData: [],
+				isRoom: false,
 			}
 		},
 		onLoad() {
+			// wx.requestSubscribeMessage({
+			// 	tmplIds: ['Tt0C6SOrtd2QXIdLqrm0CNdarUE4LG_lNJblUnkqTPM'],
+			// 	success(res) {
+					
+			// 	},
+			// 	fail(err){
+			// 		console.log(err)
+			// 	}
+			// })
 			const v = this
-			if(
-				Vue.prototype.$token.role_id == '1552548151620026370' || 
-				Vue.prototype.$token.role_id == '1552550790307004417' || 
-				Vue.prototype.$token.role_id == '1552550978346041346'){
+			if (
+				Vue.prototype.$token.role_id == '1552548151620026370' ||
+				Vue.prototype.$token.role_id == '1552550790307004417' ||
+				Vue.prototype.$token.role_id == '1552550978346041346') {
 				this.isRoom = true
 			}
 			// v.$post('/wx/login/getUserInfo').then(res => {
@@ -77,7 +86,15 @@
 		methods: {
 			toRouter(j) {
 				console.log(j)
-				
+				wx.requestSubscribeMessage({
+					tmplIds: ['Tt0C6SOrtd2QXIdLqrm0CNdarUE4LG_lNJblUnkqTPM'],
+					success(res) {
+						
+					},
+					fail(err){
+						console.log(err)
+					}
+				})
 				uni.navigateTo({
 					url: '/pages' + j
 				})

文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/components/commons-select-time/index.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/components/htz-image-upload/htz-image-upload.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-badge/uni-badge.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-card/uni-card.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-col/uni-col.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-data-checkbox/uni-data-checkbox.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/calendar-item.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/calendar.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/time-picker.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-easyinput/uni-easyinput.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-forms-item/uni-forms-item.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-forms/uni-forms.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-load-more/uni-load-more.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-number-box/uni-number-box.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-popup-message/uni-popup-message.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-popup/uni-popup.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-row/uni-row.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-search-bar/uni-search-bar.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-table/uni-table.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-td/uni-td.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-th/filter-dropdown.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-th/uni-th.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-tr/table-checkbox.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-tr/uni-tr.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/Inventory/Inventory.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/Inventory/InventoryDtl.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/Inventory/InventorySubmit.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/addQrcode/addBatch.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/addQrcode/addQrcode.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/addQrcode/selectQrcode.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/check/check.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/check/checkDtl.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/check/checkSubmit.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/goIn/goIn.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/goIn/withdrawal.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/goOut/goOut.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/home.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/inOut/inOut.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/manageQrcode/manageQrcode.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/overCloth/overCloth.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/select/select.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/shiftHandover/shiftHandover.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/submit/submit.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/succession/succession.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/summary.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/total.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/warehouseDtl.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/total/warehousingDtl.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/summary.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/usedTotal.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/warehouseDtl.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/usedTotal/warehousingDtl.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/user/login.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/weigh/checkDtl.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/weigh/checkSubmit.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/weigh/weigh.js.map


+ 5 - 5
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -1430,7 +1430,7 @@ function initData(vueOptions, context) {
     try {
       data = data.call(context); // 支持 Vue.prototype 上挂的数据
     } catch (e) {
-      if (Object({"NODE_ENV":"development","VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
+      if (Object({"VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
         console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
       }
     }
@@ -11749,7 +11749,7 @@ function type(obj) {
 
 function flushCallbacks$1(vm) {
     if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
-        if (Object({"NODE_ENV":"development","VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
+        if (Object({"VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
             var mpInstance = vm.$scope;
             console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
                 ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
@@ -11770,14 +11770,14 @@ function nextTick$1(vm, cb) {
     //1.nextTick 之前 已 setData 且 setData 还未回调完成
     //2.nextTick 之前存在 render watcher
     if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
-        if(Object({"NODE_ENV":"development","VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
+        if(Object({"VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
             var mpInstance = vm.$scope;
             console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
                 ']:nextVueTick');
         }
         return nextTick(cb, vm)
     }else{
-        if(Object({"NODE_ENV":"development","VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
+        if(Object({"VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
             var mpInstance$1 = vm.$scope;
             console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
                 ']:nextMPTick');
@@ -11863,7 +11863,7 @@ var patch = function(oldVnode, vnode) {
     });
     var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
     if (Object.keys(diffData).length) {
-      if (Object({"NODE_ENV":"development","VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
+      if (Object({"VUE_APP_NAME":"wechat","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
         console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
           ']差量更新',
           JSON.stringify(diffData));

+ 10 - 2
unpackage/dist/dev/mp-weixin/pages/home.js

@@ -237,7 +237,15 @@ var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));function _i
 //
 //
 //
-var _default = { data: function data() {return { userInfoData: [], notificationData: [], isRoom: false };}, onLoad: function onLoad() {var v = this;if (_vue.default.prototype.$token.role_id == '1552548151620026370' || _vue.default.prototype.$token.role_id == '1552550790307004417' || _vue.default.prototype.$token.role_id == '1552550978346041346') {this.isRoom = true;} // v.$post('/wx/login/getUserInfo').then(res => {
+var _default = { data: function data() {return { userInfoData: [], notificationData: [], isRoom: false };}, onLoad: function onLoad() {// wx.requestSubscribeMessage({
+    // 	tmplIds: ['Tt0C6SOrtd2QXIdLqrm0CNdarUE4LG_lNJblUnkqTPM'],
+    // 	success(res) {
+    // 	},
+    // 	fail(err){
+    // 		console.log(err)
+    // 	}
+    // })
+    var v = this;if (_vue.default.prototype.$token.role_id == '1552548151620026370' || _vue.default.prototype.$token.role_id == '1552550790307004417' || _vue.default.prototype.$token.role_id == '1552550978346041346') {this.isRoom = true;} // v.$post('/wx/login/getUserInfo').then(res => {
     // 	v.userInfoData = res.data
     // 	Vue.prototype.$userInfo = res.data
     // 	uni.setStorage({
@@ -251,7 +259,7 @@ var _default = { data: function data() {return { userInfoData: [], notificationD
     // v.$post('/wx/message/notification',{}).then(res=>{
     // 	v.notificationData = res.data
     // })
-  }, methods: { toRouter: function toRouter(j) {console.log(j);uni.navigateTo({ url: '/pages' + j });} } };exports.default = _default;
+  }, methods: { toRouter: function toRouter(j) {console.log(j);wx.requestSubscribeMessage({ tmplIds: ['Tt0C6SOrtd2QXIdLqrm0CNdarUE4LG_lNJblUnkqTPM'], success: function success(res) {}, fail: function fail(err) {console.log(err);} });uni.navigateTo({ url: '/pages' + j });} } };exports.default = _default;
 /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
 
 /***/ }),

部分文件因为文件数量过多而无法显示