- ts 开发的 Page data是有值的 在模板可以显示出值 this.data.xxx 拿不到?
[图片][图片] 是用了 mobx-miniprogram-bindings 在Page 中这么写的 Page({ data: <any>{ days: <any>[], day: <any>null, tabIndex: <any>0, rangeIndex: <any>0, isRangeSelected: false }, onLoad(options?) { this.setMobxBindings(); }, setMobxBindings() { this.storeBindings = createStoreBindings(this, { store, fields: ['library'], actions: ['setAppointmentSuccess'], }) }, onUnload() { this.storeBindings.destroyStoreBindings() }, onShow() { console.log(this.data) console.log(this.data.library) // this.getDays(); }, })
2021-10-15 - 我们的企业微信第三方小程序也可以在微信环境中运行 如何识别外部联系人和微信中为同一客户?
企业微信第三方小程序添加外部联系人 同时这个客户也可以在本小程序微信端登录做操作 在两端的环境目前识别为两个客户 如何才能识别为同一客户呢? 目前根据https://zhuanlan.zhihu.com/p/166557045 这篇里面的指导 可以实现一个同主体的企业微信和开放平台绑定的unionid一致 但我们是第三方小程序 所以想安装给多个企业用 但是一个小程序只能绑定一个开放平台 就实现不了绑定到多个上面了 实现多企业同用的需求了
2021-06-28 - 无法构建npm 提示没有找到可以构建的npm包?
开发者工具版本 1.05.2103200 package.json { "name": "cxd_fa", "version": "1.0.0", "scripts": { "compile": "./node_modules/typescript/bin/tsc", "tsc": "node ./node_modules/typescript/lib/tsc.js", "ttsc": "node ./node_modules/ttypescript/lib/tsc.js", "eslint": "eslint --fix miniprogram/app.ts miniprogram/pages miniprogram/adviser miniprogram/saas miniprogram/store miniprogram/utils" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "mobx-miniprogram": "^4.13.2", "mobx-miniprogram-bindings": "^1.2.1", "moment": "^2.29.1", "weui-miniprogram": "^1.0.6" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.10.0", "@typescript-eslint/parser": "^4.10.0", "babel-eslint": "^10.1.0", "eslint": "^7.15.0", "eslint-plugin-import": "^2.22.1", "miniprogram-api-typings": "^3.2.0", "ttypescript": "^1.5.12", "typescript": "^3.9.7", "typescript-transform-paths": "2.2.1" }, "main": ".eslintrc.js", "repository": { "type": "git", "url": "http://g.miinno.cn/tencent/wax_cxd_work_fa.git" }, "description": "" } project.config.json { "description": "项目配置文件", "packOptions": { "ignore": [] }, "miniprogramRoot": "miniprogram/", "compileType": "miniprogram", "libVersion": "2.16.1", "projectname": "cxd_operate_dev_v1_potential", "scripts": { "beforeCompile": "npm run tsc", "beforePreview": "npm run tsc", "beforeUpload": "npm run tsc" }, "setting": { "urlCheck": false, "es6": true, "enhance": false, "postcss": true, "preloadBackgroundData": false, "minified": true, "newFeature": false, "coverView": true, "nodeModules": true, "autoAudits": false, "showShadowRootInWxmlPanel": true, "scopeDataCheck": false, "uglifyFileName": false, "checkInvalidKey": true, "checkSiteMap": true, "uploadWithSourceMap": true, "compileHotReLoad": false, "useMultiFrameRuntime": true, "useApiHook": true, "useApiHostProcess": false, "babelSetting": { "ignore": [], "disablePlugins": [], "outputPath": "" }, "enableEngineNative": false, "useIsolateContext": true, "useCompilerModule": true, "userConfirmedUseCompilerModuleSwitch": false, "userConfirmedBundleSwitch": false, "packNpmManually": false, "packNpmRelationList": [], "minifyWXSS": true, "bundle": false }, "simulatorType": "qywx_simulator_plugin", "simulatorPluginLibVersion": { "qywx_simulator_plugin": "2.4.0" }, "appid": "wx3e862335bbc1dfa9", "condition": { "plugin": { "list": [] }, "game": { "list": [] }, "gamePlugin": { "list": [] }, "miniprogram": { "list": [ { "name": "客户列表", "pathName": "pages/customer/index", "query": "", "scene": null }, { "name": "线索详情", "pathName": "pages/customer/clue/index", "query": "id=1", "scene": null }, { "name": "工具", "pathName": "pages/tools/index", "query": "", "scene": null }, { "name": "auth", "pathName": "pages/auth/index", "query": "", "scene": null }, { "name": "noAuth", "pathName": "pages/noAuth/index", "query": "", "scene": null }, { "name": "客户档案", "pathName": "pages/customer/profile/index", "query": "", "scene": null }, { "name": "编辑客户档案", "pathName": "pages/customer/editProfile/index", "query": "id=1", "scene": null }, { "name": "客户统计", "pathName": "pages/statistics/customer/index", "query": "", "scene": null }, { "name": "客户量排名", "pathName": "pages/statistics/adviserRanking/index", "query": "id=1", "scene": null }, { "name": "沟通量排名", "pathName": "pages/statistics/contactRanking/index", "query": "", "scene": null }, { "name": "销售名片列表", "pathName": "pages/extended/saleCard/index", "query": "", "scene": null }, { "name": "创建销售名片", "pathName": "pages/extended/saleCard/add/index", "query": "", "scene": null }, { "name": "工具/话术库", "pathName": "pages/extended/reply/index", "query": "", "scene": null }, { "name": "素材列表", "pathName": "pages/extended/material/index", "query": "", "scene": null }, { "name": "店铺活动列表", "pathName": "pages/extended/material/promotion/index", "query": "", "scene": null }, { "name": "车辆介绍列表", "pathName": "pages/extended/material/vehicle/index", "query": "", "scene": null }, { "name": "一键拉群", "pathName": "pages/product/openChatGroup/index", "query": "", "scene": null }, { "name": "创建群发任务", "pathName": "pages/product/addMsgTemplateS/index", "query": "", "scene": null }, { "name": "客户跟进阶段", "pathName": "pages/customer/editStage/index", "query": "id=1", "scene": null }, { "name": "跟进记录", "pathName": "pages/customer/stageLog/index", "query": "id=1", "scene": null }, { "name": "首页", "pathName": "pages/index/index", "query": "id=1", "scene": null }, { "name": "海报", "pathName": "pages/poster/index", "query": "", "scene": null }, { "name": "文章列表", "pathName": "pages/extended/material/news/index", "query": "", "scene": null }, { "name": "pages/extended/saleCard/old/index", "pathName": "pages/extended/saleCard/old/index", "query": "", "scene": null }, { "name": "群群发", "pathName": "pages/product/addMsgTemplateM/index", "query": "", "scene": null }, { "name": "pages/customer/editStage/index", "pathName": "pages/customer/editStage/index", "query": "id=e477d9f5-d2e0-4f2c-82a1-000d3153b89d", "scene": null }, { "name": "pages/customer/profile/index", "pathName": "pages/customer/profile/index", "query": "id=e477d9f5-d2e0-4f2c-82a1-000d3153b89d", "scene": null }, { "name": "pages/customer/editProfile/index", "pathName": "pages/customer/editProfile/index", "query": "id=e477d9f5-d2e0-4f2c-82a1-000d3153b89d", "scene": null }, { "name": "添加话术", "pathName": "pages/extended/reply/add/index", "query": "", "scene": null }, { "name": "pages/extended/reply/send/index", "pathName": "pages/extended/reply/send/index", "query": "", "scene": null }, { "name": "销售员登录", "pathName": "pages/login/index", "scene": null } ] } } } 之前可以构建的 现在怎么不行了 [图片]
2021-06-15 - 用开发者工具快速创建ts开发的小程序怎么配置路径别名?
现在在tsconfig.json中配置了 { "compilerOptions": { "strictNullChecks": true, "noImplicitAny": true, "module": "CommonJS", "target": "ES5", "allowJs": false, "experimentalDecorators": true, "noImplicitThis": true, "noImplicitReturns": true, "alwaysStrict": true, "inlineSourceMap": true, "inlineSources": true, "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, "strict": true, "removeComments": true, "pretty": true, "strictPropertyInitialization": true, "lib": ["es2015", "es2017"], "baseUrl": "./", "paths": { "@/*": ["miniprogram/*"], "@common/*": ["miniprogram/common/*"], "@sr": ["miniprogram/supermarket"], "@sr/*": ["miniprogram/supermarket/*"] }, "plugins": [{ "transform": "typescript-transform-paths", "after": true }], "importHelpers": true, "typeRoots": [ "./typings" ] }, "include": [ "./**/*.ts" ], "exclude": [ "node_modules" ] } 但是执行yarn tsc ts中的别名引用没替换 应该怎么实现路径别名呢
2021-06-15 - 请问企业微信三方开发 怎么获取某个外部联系人的externalUserid?
在会话里是可以获取到加了微信的外部联系人的externnalUserId的 但是 如果不是会话 外部联系人通过其他途径打开我们的第三方企业微信小程序 怎么能获取到这个外部联系人的externnalUserId呢
2021-06-02 - 手机系统有特殊字体企微添加外部联系人获取昵称是特殊字符ios可以正常显示部分android无法显示?
[图片] 这种显示问题可以处理么 应该如何处理
2021-05-18 - wx.qy.login 开发者工具报错 真机可以 请问什么时候能恢复?
今天上午开始 wx.qy.login开发者工具就开始报错 真机没问题 但是无法调试 请问什么时候可以解决 社区已经出现好几条这个问题的反馈了
2021-04-23 - 小程序 wxss 怎么实现文字环绕的效果?
[图片] 类似这种 想要内容文字环绕收起按钮
2021-02-22 - 可以通过js实现关闭小程序的需求么?
请问可以通过api或者其他实现点击操作关闭当前小程序么 我们有个业务场景就是点击向会话发送消息然后希望可以发送成功关闭小程序 可以实现么
2021-01-25 - 企业微信第三方小程序通过接口打开联系人会话然后点击工具栏配置的小程ios会提示已打开小程序无法使用?
ios 会出现这个问题 这样工具栏就没法用小程序了 这个是100%会复现的问题请官方重视一下
2021-01-06