1.对接ios 的推送消息

huipay-app-dev
杨杰 1 year ago
parent 55730706ac
commit 91f4822df1
  1. 2
      Utils/Api.js
  2. 5
      manifest.json
  3. 8
      pages/index/bindScan/bindScan.vue

@ -271,7 +271,7 @@ export const connectStoreCid = params => {
return POST('POST', `${base}/storeCid/connectStoreCid`, params).then(res => res.data); return POST('POST', `${base}/storeCid/connectStoreCid`, params).then(res => res.data);
} }
//解除绑定 //解除绑定
export const unbindStore = params => { export const qrcodeunbindStore = params => {
return POST('POST', `${base}/payQrCode/unbindStore`, params).then(res => res.data); return POST('POST', `${base}/payQrCode/unbindStore`, params).then(res => res.data);
} }

@ -52,10 +52,7 @@
/* SDK */ /* SDK */
"sdkConfigs" : { "sdkConfigs" : {
"push" : { "push" : {
"unipush" : { "unipush" : {}
"offline" : false,
"hms" : {}
}
}, },
"ad" : {} "ad" : {}
}, },

@ -17,7 +17,7 @@
<view class="mart10 fcor666 padleft15 font14" v-else>创建: {{item.createTime | timeFormat('yyyy-mm-dd')}} <view class="mart10 fcor666 padleft15 font14" v-else>创建: {{item.createTime | timeFormat('yyyy-mm-dd')}}
{{item.createTime | timeFormat('hh:mm')}} {{item.createTime | timeFormat('hh:mm')}}
</view> </view>
<button class="btns" @click="unbindStore(item.id)">解除绑定</button> <button class="btns" @click="qrcodeunbindStore(item.id)">解除绑定</button>
</view> </view>
</view> </view>
</template> </template>
@ -26,7 +26,7 @@
import { import {
getSalesmanQrCodeList, getSalesmanQrCodeList,
getStoreQrCodeList, getStoreQrCodeList,
unbindStore qrcodeunbindStore
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp(); let app = getApp();
export default { export default {
@ -136,7 +136,7 @@
}); });
}, },
// //
unbindStore(item) { qrcodeunbindStore(item) {
let that = this; let that = this;
uni.showModal({ uni.showModal({
title: '解绑二维码', title: '解绑二维码',
@ -150,7 +150,7 @@
"qrCodeId": item, "qrCodeId": item,
"storeId": that.storeId "storeId": that.storeId
} }
unbindStore(params).then(res => { qrcodeunbindStore(params).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.showToast({ uni.showToast({

Loading…
Cancel
Save