Compare commits
No commits in common. 'yh' and 'master' have entirely different histories.
@ -1,3 +1,2 @@ |
|||||||
.idea |
.idea |
||||||
unpackage |
unpackage |
||||||
node_modules |
|
@ -1,9 +1,7 @@ |
|||||||
// const ROOTPATH1 = "http://192.168.0.112:8891/sqx_fast";
|
const ROOTPATH1 = "https://shop.canmoujiang.com/sqx_fast"; |
||||||
const ROOTPATH1 = "http://10.11.32.109:8891/sqx_fast"; |
|
||||||
// const ROOTPATH1 = "https://fanqie.app.cyjyyjy.com/sqx_fast";
|
|
||||||
// const ROOTPATH1 = "http://192.168.1.17:8891/sqx_fast";
|
// const ROOTPATH1 = "http://192.168.1.17:8891/sqx_fast";
|
||||||
const ROOTPATH = "https://shop.canmoujiang.com/sqx_fast"; |
const ROOTPATH = "https://shop.canmoujiang.com/sqx_fast"; |
||||||
module.exports = { |
module.exports = { |
||||||
APIHOST: ROOTPATH, |
APIHOST: ROOTPATH, |
||||||
APIHOST1: ROOTPATH1 |
APIHOST1: ROOTPATH1 |
||||||
}; |
}; |
@ -1,55 +0,0 @@ |
|||||||
export default { |
|
||||||
|
|
||||||
openMsg(){ |
|
||||||
var that = this |
|
||||||
|
|
||||||
|
|
||||||
return console.log("test..."); |
|
||||||
|
|
||||||
wx.getSetting({ |
|
||||||
withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
|
|
||||||
success(ret) { |
|
||||||
// console.log(ret,'------------------')
|
|
||||||
// console.log(Object.keys(ret.subscriptionsSetting.itemSettings).length)
|
|
||||||
// if (JSON.stringify(ret.subscriptionsSetting.itemSettings).indexOf('accept')!=-1) {
|
|
||||||
if (ret.subscriptionsSetting.itemSettings) { |
|
||||||
uni.setStorageSync('sendtaskMsg', true) |
|
||||||
uni.openSetting({ // 打开设置页
|
|
||||||
success(rea) { |
|
||||||
console.log(rea.authSetting) |
|
||||||
} |
|
||||||
}); |
|
||||||
} else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
|
|
||||||
uni.setStorageSync('sendtaskMsg', false) |
|
||||||
uni.showModal({ |
|
||||||
title: '提示', |
|
||||||
content: '为了更好的体验,请绑定消息推送', |
|
||||||
confirmText: '确定', |
|
||||||
cancelText: '取消', |
|
||||||
success: function(res) { |
|
||||||
if (res.confirm) { |
|
||||||
uni.requestSubscribeMessage({ |
|
||||||
tmplIds: that.arr, |
|
||||||
success(re) { |
|
||||||
// console.log(re,'**********')
|
|
||||||
var datas = JSON.stringify(re); |
|
||||||
if (datas.indexOf("accept") != -1) { |
|
||||||
console.log(re) |
|
||||||
} |
|
||||||
}, |
|
||||||
fail: (res) => { |
|
||||||
console.log(res) |
|
||||||
} |
|
||||||
}) |
|
||||||
that.showModal = false |
|
||||||
} else if (res.cancel) { |
|
||||||
that.showModal = true |
|
||||||
} |
|
||||||
} |
|
||||||
}) |
|
||||||
} |
|
||||||
} |
|
||||||
}) |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
@ -1,69 +0,0 @@ |
|||||||
{ |
|
||||||
"description": "项目配置文件", |
|
||||||
"packOptions": { |
|
||||||
"ignore": [] |
|
||||||
}, |
|
||||||
"setting": { |
|
||||||
"bundle": false, |
|
||||||
"userConfirmedBundleSwitch": false, |
|
||||||
"urlCheck": true, |
|
||||||
"scopeDataCheck": false, |
|
||||||
"coverView": true, |
|
||||||
"es6": true, |
|
||||||
"postcss": true, |
|
||||||
"compileHotReLoad": false, |
|
||||||
"lazyloadPlaceholderEnable": false, |
|
||||||
"preloadBackgroundData": false, |
|
||||||
"minified": true, |
|
||||||
"autoAudits": false, |
|
||||||
"newFeature": false, |
|
||||||
"uglifyFileName": false, |
|
||||||
"uploadWithSourceMap": true, |
|
||||||
"useIsolateContext": true, |
|
||||||
"nodeModules": false, |
|
||||||
"enhance": true, |
|
||||||
"useMultiFrameRuntime": true, |
|
||||||
"useApiHook": true, |
|
||||||
"useApiHostProcess": true, |
|
||||||
"showShadowRootInWxmlPanel": true, |
|
||||||
"packNpmManually": false, |
|
||||||
"enableEngineNative": false, |
|
||||||
"packNpmRelationList": [], |
|
||||||
"minifyWXSS": true, |
|
||||||
"showES6CompileOption": false, |
|
||||||
"minifyWXML": true |
|
||||||
}, |
|
||||||
"compileType": "miniprogram", |
|
||||||
"libVersion": "2.20.2", |
|
||||||
"appid": "wx5f5b49c361569a10", |
|
||||||
"projectname": "miniprogram-1", |
|
||||||
"debugOptions": { |
|
||||||
"hidedInDevtools": [] |
|
||||||
}, |
|
||||||
"scripts": {}, |
|
||||||
"staticServerOptions": { |
|
||||||
"baseURL": "", |
|
||||||
"servePath": "" |
|
||||||
}, |
|
||||||
"isGameTourist": false, |
|
||||||
"condition": { |
|
||||||
"search": { |
|
||||||
"list": [] |
|
||||||
}, |
|
||||||
"conversation": { |
|
||||||
"list": [] |
|
||||||
}, |
|
||||||
"game": { |
|
||||||
"list": [] |
|
||||||
}, |
|
||||||
"plugin": { |
|
||||||
"list": [] |
|
||||||
}, |
|
||||||
"gamePlugin": { |
|
||||||
"list": [] |
|
||||||
}, |
|
||||||
"miniprogram": { |
|
||||||
"list": [] |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
Before Width: | Height: | Size: 396 B |
Before Width: | Height: | Size: 588 B |
Before Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 715 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 482 B |
Before Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 659 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.4 KiB |