diff --git a/App.vue b/App.vue index 1343a64..a9f7ed5 100644 --- a/App.vue +++ b/App.vue @@ -3,6 +3,7 @@ import { go2 } from '@/utils/hook.js' import { isString } from '@/utils/is.js' import store from '@/store/index.js' import handlePushMsg from '@/utils/handlePushMsg.js' +import { checkUpdate } from '@/apis/commonApi.js' export default { onLaunch: function () { const token = store.state.qnToken @@ -14,12 +15,12 @@ export default { go2('client') } // #ifdef APP-PLUS - let client = uni.getSystemInfoSync().platform setTimeout(() => { plus.push.addEventListener( 'click', function (msg) { + console.log('click msg',msg) handlePushMsg(msg) }, false @@ -37,7 +38,7 @@ export default { let title = msg.title let payload = JSON.stringify(msg.payload) plus.push.createMessage(content, payload, { - title: title, + title: title }) if (msg.payload.messageType == 4) { enquiryVoice() @@ -45,10 +46,11 @@ export default { } } if (client === 'android') { + console.log('receive msg',msg) let title = msg.title let content = msg.content plus.push.createMessage(content, JSON.stringify(msg.payload), { - title: title, + title: title }) if (msg.payload.messageType == 4) { enquiryVoice() @@ -79,12 +81,22 @@ export default { }) }, 3000) } + // app更新 + //#ifdef APP-PLUS + checkUpdate().then((version) => { + let curVersion = plus.runtime.version + // if(version != curVersion) { + // plus.runtime.openURL(`https://www.pgyer.com/ST8i`) + // } + console.log(version, curVersion) + }) + //#endif }, onShow: function () { // 先默认进入应用就清除所有消息 plus.runtime.setBadgeNumber(0) }, - onHide: function () {}, + onHide: function () {} } diff --git a/apis/commonApi.js b/apis/commonApi.js index 0d15d95..21dc9e9 100644 --- a/apis/commonApi.js +++ b/apis/commonApi.js @@ -159,3 +159,15 @@ export function getFrontIdCardOcr(data = {}) { data: data }) } + +/** + * 获取当前应用版本号 + * @param {object} data + * @value {string} version + */ +export function checkUpdate(data = {}) { + return http.get({ + url: '/base-paper-trading/get/app/version', + data: data + }) +} diff --git a/hybrid/html/share.html b/hybrid/html/share.html deleted file mode 100644 index 55b15e3..0000000 --- a/hybrid/html/share.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - Document - - - - - - - - - - - \ No newline at end of file diff --git a/manifest.json b/manifest.json index 54b3900..bfacc94 100644 --- a/manifest.json +++ b/manifest.json @@ -144,22 +144,7 @@ "uniStatistics" : { "enable" : true }, - "nativePlugins" : { - "DC-PushSound" : { - "__plugin_info__" : { - "name" : "自定义推送铃声(iOS)", - "description" : "自定义iOS推送铃声", - "platforms" : "iOS", - "url" : "https://ext.dcloud.net.cn/plugin?id=690", - "android_package_name" : "paper.shopkeeper.sdk", - "ios_bundle_id" : "com.qniao.paper.shopkeeper", - "isCloud" : true, - "bought" : 1, - "pid" : "690", - "parameters" : {} - } - } - } + "nativePlugins" : {} }, /* 快应用特有相关 */ "quickapp" : {}, diff --git a/nativeplugins/DC-PushSound/ios/pushsound.caf b/nativeplugins/DC-PushSound/ios/pushsound.caf deleted file mode 100644 index e699d36..0000000 Binary files a/nativeplugins/DC-PushSound/ios/pushsound.caf and /dev/null differ diff --git a/pages/credit-company-order/index.vue b/pages/credit-company-order/index.vue index 46e6c45..3331d88 100644 --- a/pages/credit-company-order/index.vue +++ b/pages/credit-company-order/index.vue @@ -71,6 +71,7 @@ + 暂无相关订单 diff --git a/pages/mall/index.vue b/pages/mall/index.vue index 2ef0312..e665007 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -1,6 +1,6 @@