Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
杨豪 | 264d9b451c | 3 years ago |
杨豪 | 4e60bca597 | 3 years ago |
Loki | 1073935e79 | 3 years ago |
Loki | 137adad680 | 3 years ago |
杨豪 | 26d8cbe932 | 3 years ago |
杨豪 | 2930cf7298 | 3 years ago |
杨豪 | eb4f18f0dc | 3 years ago |
kk_888 | 6c12c3724e | 3 years ago |
@ -1,2 +1,3 @@ |
|||||||
.idea |
.idea |
||||||
unpackage |
unpackage |
||||||
|
node_modules |
@ -1,7 +1,9 @@ |
|||||||
const ROOTPATH1 = "https://shop.canmoujiang.com/sqx_fast"; |
// const ROOTPATH1 = "http://192.168.0.112:8891/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 |
||||||
}; |
}; |
@ -0,0 +1,55 @@ |
|||||||
|
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 |
||||||
|
} |
||||||
|
} |
||||||
|
}) |
||||||
|
} |
||||||
|
} |
||||||
|
}) |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,69 @@ |
|||||||
|
{ |
||||||
|
"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": [] |
||||||
|
} |
||||||
|
} |
||||||
|
} |
After Width: | Height: | Size: 396 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 715 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 482 B |
After Width: | Height: | Size: 516 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 820 B |
After Width: | Height: | Size: 463 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 987 B |
After Width: | Height: | Size: 688 B |
After Width: | Height: | Size: 659 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.4 KiB |