diff --git a/README.md b/README.md index 6f3df5f..eb9bf25 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ - 每日一语 - 精选趣文 - 查询列表页面 +- 详情页面 +- 海报生成页面 - 搜索页面 - 我的页面 - 我的关注 @@ -37,6 +39,22 @@ module.exports = { ```` +#### App_id 值变更 + +```js + + 1. 修改 project.config.json + + // "appid": "小程序appid" + + 2. 修改 utils/util.js 文件中 APP_ID & 变量为自己申请的值 + + // const APP_ID = '自己申请的APP_ID'; + // const APP_KEY = '自己申请的APP_KEY'; + +``` + + #### 签名相关逻辑 ```js @@ -128,6 +146,8 @@ function aiReq(param) { ![首页](./images/index.png) ![列表](./images/list.png) +![详情](./images/detail.png) +![海报生成](./images/shareimg.png) ![搜索](./images/search.png) ![我的关注](./images/like.png) ![沸点](./images/feidian.png) diff --git a/cloudfunctions/jokelikes/index.js b/cloudfunctions/jokelikes/index.js index 81f7793..92fcaf7 100644 --- a/cloudfunctions/jokelikes/index.js +++ b/cloudfunctions/jokelikes/index.js @@ -13,9 +13,6 @@ const MAX_LIMIT = 20; // 云函数入口函数 exports.main = async (event, context) => { if (event.getList == true) { - const resultCount = await likesTable.count(); - const total = resultCount.total; - try { return await likesTable.where({ userId: event.userId @@ -33,6 +30,25 @@ exports.main = async (event, context) => { } catch (e) { console.error('likes-getList----0', e) } + } else if (event.getLikes == true) { + try { + return await likesTable.where({ + userId: event.userId, + jokeId: event.jokeId + }).field({ + jokeId: true, + _id: true + }).get({ + success: (res) => { + if (res && res.length > 0) { + return res; + } + return []; + } + }); + } catch (e) { + console.error('likes-getLikes----0', e) + } } else if (event.setSelf == true) { try { let _data = { @@ -44,7 +60,8 @@ exports.main = async (event, context) => { return await likesTable.add({ data: _data }).then(e => { - return _data; + console.log('===========jokelikes add===', e._id); + return Object.assign(_data, e);; }).catch(console.error) } catch (e) { console.error('likes-setSelf----0', e); diff --git a/images/detail.png b/images/detail.png new file mode 100644 index 0000000..de57bad Binary files /dev/null and b/images/detail.png differ diff --git a/images/shareimg.png b/images/shareimg.png new file mode 100644 index 0000000..60b0eb7 Binary files /dev/null and b/images/shareimg.png differ diff --git a/miniprogram/app.json b/miniprogram/app.json index a1d2bc5..7640524 100644 --- a/miniprogram/app.json +++ b/miniprogram/app.json @@ -15,7 +15,9 @@ "pages/translation/index", "pages/translation/texttrans/index", "pages/translation/speechtranslate/index", - "pages/translation/imagetranslate/index" + "pages/translation/imagetranslate/index", + "pages/quwen/detail", + "pages/quwen/share" ], "window": { "backgroundColor": "#F6F6F6", diff --git a/miniprogram/icons/copy.png b/miniprogram/icons/copy.png new file mode 100644 index 0000000..11c910e Binary files /dev/null and b/miniprogram/icons/copy.png differ diff --git a/miniprogram/icons/copy2.png b/miniprogram/icons/copy2.png new file mode 100644 index 0000000..7099822 Binary files /dev/null and b/miniprogram/icons/copy2.png differ diff --git a/miniprogram/icons/follow.png b/miniprogram/icons/follow.png new file mode 100644 index 0000000..c01c571 Binary files /dev/null and b/miniprogram/icons/follow.png differ diff --git a/miniprogram/icons/wxcode.png b/miniprogram/icons/wxcode.png new file mode 100644 index 0000000..2bbfebe Binary files /dev/null and b/miniprogram/icons/wxcode.png differ diff --git a/miniprogram/pages/index/index.js b/miniprogram/pages/index/index.js index 26cd782..e6a7eac 100644 --- a/miniprogram/pages/index/index.js +++ b/miniprogram/pages/index/index.js @@ -29,5 +29,23 @@ Page({ title: '一起欣赏趣文之乐', path: `pages/index/index` } + }, + onDetail: function (e) { + let dataset = e.currentTarget.dataset; + let id = this.data.recommend._id; + + if (dataset && dataset.id) { + id = dataset.id; + } + + app.checkAuth(function (flag) { + if (flag) { + wx.redirectTo({ + url: '/pages/quwen/detail?jokeId=' + id + }); + } else { + app.navigateToLogin(); // 跳转至登录页面 + } + }); } }); \ No newline at end of file diff --git a/miniprogram/pages/index/index.wxml b/miniprogram/pages/index/index.wxml index 27c9cb9..d8d8b97 100644 --- a/miniprogram/pages/index/index.wxml +++ b/miniprogram/pages/index/index.wxml @@ -42,8 +42,8 @@ - - {{ recommend.cont }} + + {{ recommend.cont }} - + {{ item.cont }} - 被关注{{ item.likes }}次 + 被浏览{{ item.likes }}次 # 段子 diff --git a/miniprogram/pages/jokelike/index.wxml b/miniprogram/pages/jokelike/index.wxml index d25cfda..f021a0d 100644 --- a/miniprogram/pages/jokelike/index.wxml +++ b/miniprogram/pages/jokelike/index.wxml @@ -7,7 +7,7 @@ - 被关注{{ item.likes }}次 + 被浏览{{ item.likes }}次 diff --git a/miniprogram/pages/me/index.js b/miniprogram/pages/me/index.js index cb331c9..fbe1782 100644 --- a/miniprogram/pages/me/index.js +++ b/miniprogram/pages/me/index.js @@ -1,4 +1,5 @@ import Util from '../../utils/util'; + const app = getApp(); let self; diff --git a/miniprogram/pages/quwen/detail.js b/miniprogram/pages/quwen/detail.js new file mode 100644 index 0000000..f0d4253 --- /dev/null +++ b/miniprogram/pages/quwen/detail.js @@ -0,0 +1,176 @@ +// miniprogram/pages/quwen/detail.js +const app = getApp(); +let self; + +Page({ + + /** + * 页面的初始数据 + */ + data: { + isFollow: false, + followText: '点击关注', + jokeInfo: {}, + likeId: '' + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + self = this; + this.userId = app.getGlobalData().userId; + let jokeId = options.jokeId || ''; + this.jokeId = jokeId; + + wx.showLoading(); + + Promise.all([this.getListByIds([jokeId]), this.getListByUserId()]).then(function(res) { + wx.hideLoading(); + let _jokeInfo = res[0] && res[0].length > 0 ? res[0][0] : {}; + let jokeLikes = res[1]; + let filterArs = jokeLikes.filter((item) => { + return item.jokeId == jokeId + }); + let _isFollow = false, _id = '', _followText = '点击关注'; + + if (filterArs.length > 0) { + _isFollow = true; + _id = filterArs[0]._id; + _followText = '已关注'; + } + + self.setData({ + isFollow: _isFollow, + jokeInfo: _jokeInfo, + followText: _followText, + likeId: _id + }); + }); + }, + + onShareAppMessage: function () { + + }, + + onClipboard: function() { + wx.setClipboardData({ + data: self.data.jokeInfo.cont, + success(res) { + wx.getClipboardData({ + success(res) { } + }); + } + }); + }, + onShare: function() { + wx.redirectTo({ + url: '/pages/quwen/share?info=' + JSON.stringify(this.data.jokeInfo) + }); + }, + onFollow: function() { + if (this.data.isFollow) { + this.unlike(this.data.likeId); + } else { + this.like(this.userId, this.jokeId); + } + }, + // 获取用户关注的列表 + getListByUserId: function() { + return new Promise((resolve, reject) => { + wx.cloud.callFunction({ + name: 'jokelikes', + data: { + getLikes: true, + userId: self.userId, + jokeId: self.jokeId + }, + success: res => { + if (res.errMsg == "cloud.callFunction:ok") { + resolve(res.result.data); + } + }, + fail: err => { + resolve([]); + } + }); + }); + }, + getListByIds: function (ids) { + return new Promise((resolve, reject) => { + wx.cloud.callFunction({ + name: 'jokes', + data: { + getByIds: true, + ids: ids, + offset: 0 + }, + success: res => { + if (res.errMsg == "cloud.callFunction:ok") { + resolve(res.result.data); + } + }, + fail: err => { + resolve([]); + } + }); + }); + }, + unlike: function(id) { + wx.cloud.callFunction({ + name: 'jokelikes', + data: { + remove: true, + likeId: id + }, + success: res => { + if (res.errMsg == "cloud.callFunction:ok" && res.result.stats.removed == 1) { + wx.showToast({ + title: '关注已取消', + duration: 800, + icon: 'none', + success: function () { + self.setData({ + isFollow: false, + followText: '点击关注' + }); + } + }); + } + }, + fail: err => { + wx.showToast({ + title: '取消关注失败', + duration: 800, + icon: 'none' + }); + } + }); + }, + like: function (userId, jokeId) { + wx.cloud.callFunction({ + name: 'jokelikes', + data: { + setSelf: true, + userId: userId, + jokeId: jokeId + }, + success: res => { + if (res.errMsg == "cloud.callFunction:ok") { + self.setData({ + isFollow: true, + followText: '已关注', + likeId: res.result._id + }); + } + }, + fail: err => { + wx.showToast({ + title: '请检查网络您的状态', + duration: 800, + icon: 'none' + }); + } + }); + }, +}) \ No newline at end of file diff --git a/miniprogram/pages/quwen/detail.json b/miniprogram/pages/quwen/detail.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/miniprogram/pages/quwen/detail.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/miniprogram/pages/quwen/detail.wxml b/miniprogram/pages/quwen/detail.wxml new file mode 100644 index 0000000..b392be3 --- /dev/null +++ b/miniprogram/pages/quwen/detail.wxml @@ -0,0 +1,35 @@ + + + + {{jokeInfo.cont}} + + {{jokeInfo.likes}} 人浏览 + + + # 段子 + + + # 语录 + + + # 心灵短语 + + + # 冷笑话 + + + + + 文本拷贝 + + + + 生成海报 + + + + {{followText}} + + + + \ No newline at end of file diff --git a/miniprogram/pages/quwen/detail.wxss b/miniprogram/pages/quwen/detail.wxss new file mode 100644 index 0000000..abd7013 --- /dev/null +++ b/miniprogram/pages/quwen/detail.wxss @@ -0,0 +1,82 @@ +/* miniprogram/pages/quwen/detail.wxss */ +.quwen-box { + position: relative; + margin: 20rpx 0rpx 40rpx; + padding: 100rpx 20rpx 40rpx; + height: 100%; + font-size: 38rpx; + line-height: 54rpx; + color: #616161; + text-align: justify; + letter-spacing: 1.8px; + background: #FFF; + border-bottom: 0px; +} + +.quwen-box .zan-pennel { + height: 30rpx; + width: 100%; + line-height: 30rpx; + margin-top: 30rpx; + font-size: 24rpx; + text-align: right; + color: #1188FF; +} + +.quwen-box .zan-pennel image { + width: 24rpx; + height: 24rpx; + display: inline-block; + margin-right: 6rpx; + vertical-align: top; +} +.quwen-box .icon-label { + position: absolute; + top: 0; + left: 0; + padding: 6rpx 8rpx; + font-family: PingFangSC-Medium; + font-size: 22rpx; + line-height: 10px; + color: #FFF; + border-radius: 2rpx; +} + +.jakes { + background: #FFBB11; +} + +.quotation { + background: #1188FF; +} + +.phrase { + background: #FF5511; +} + +.jakes2 { + background: #F0594E; +} +.flex { + display: flex; + flex-direction: row; + justify-content: space-around; + align-items: center; + box-sizing: border-box; +} +.bottom-nav { + margin-top: 100rpx; +} + +.bottom-nav .item-box { + position: relative; + font-size: 30rpx; +} + +.bottom-nav .item-box image { + width: 48rpx; + height: 48rpx; + display: inline-block; + margin-right: 10rpx; + vertical-align: top; +} \ No newline at end of file diff --git a/miniprogram/pages/quwen/index.js b/miniprogram/pages/quwen/index.js index d094d96..b78a088 100644 --- a/miniprogram/pages/quwen/index.js +++ b/miniprogram/pages/quwen/index.js @@ -185,8 +185,11 @@ Page({ app.checkAuth(function(flag) { if (flag) { // 与用户关联 - let globalData = app.getGlobalData(); - self.addJokeLikeWithSelf(globalData.userId, _id, function(st) { + // let globalData = app.getGlobalData(); + // self.addJokeLikeWithSelf(globalData.userId, _id, function(st) { + // }); + wx.redirectTo({ + url: '/pages/quwen/detail?jokeId=' + _id }); } else { app.navigateToLogin(); // 跳转至登录页面 diff --git a/miniprogram/pages/quwen/share.js b/miniprogram/pages/quwen/share.js new file mode 100644 index 0000000..0c0f451 --- /dev/null +++ b/miniprogram/pages/quwen/share.js @@ -0,0 +1,253 @@ +// miniprogram/pages/quwen/share.js +import Util from '../../utils/util'; + +const app = getApp(); +let self; + +Page({ + + /** + * 页面的初始数据 + */ + data: { + info: { + cont: '', + likes: 57, + type: 3, + userId: "", + }, + width: 0, + height: 0 + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + let info = JSON.parse(options.info); + self = this; + let systemInfo = app.globalData.systemInfo; + + let windowHeight = systemInfo.screenHeight, + windowWidth = systemInfo.screenWidth; + self.setData({ + width: windowWidth * 0.9, + height: windowHeight * 0.8, + info: info + }); + + wx.showLoading(); + + this.getImageWithUrl(function(res) { + wx.hideLoading(); + + self.setData({ + bgPath: res.path, + bgWidth: res.width, + bgHeight: res.height + }, function () { + self.draw(); + }); + }); + }, + + draw: function() { + const ctx = wx.createCanvasContext('myCanvas'); + let coverWidth = this.data.width, coverHeight = this.data.height; + const infoCont = this.data.info.cont; + const d = new Date(); + const year = d.getFullYear(); + const month = d.getMonth() + 1; + const day = d.getDay(); + const date = d.getDate(); + const time = year + '.' + month + '.' + date; + + ctx.save(); + console.log(self.data.bgPath) + ctx.drawImage(self.data.bgPath, 0, 0, coverWidth, coverHeight - 100); + + ctx.setFontSize(16); + ctx.setFillStyle('#FFFFFF'); + ctx.setTextAlign('right'); + + const metrics = ctx.measureText(time).width; + let timeX = coverWidth - 20, timeY = 50, contWidth = coverWidth - 40; + ctx.fillText(time, timeX, timeY, metrics + 5); + + ctx.moveTo(timeX - metrics, timeY + 12); + ctx.lineTo(timeX, timeY + 12); + ctx.setStrokeStyle('#FFFFFF'); + ctx.stroke(); + + let aliasDay = ['日', '一', '二', '三', '四', '五', '六']; + ctx.fillText('星期' + aliasDay[day], timeX, timeY + 36); + this.drawCont(ctx, infoCont, contWidth, 15, timeY + 100); + + ctx.setFillStyle('#FFFFFF'); + ctx.fillRect(0, coverHeight - 100, coverWidth, 100); + ctx.fill(); + + ctx.setFontSize(22); + ctx.setFillStyle('#262626'); + ctx.setTextAlign('left'); + ctx.fillText('趣文沸点', 15, coverHeight - 60, ctx.measureText('趣文沸点').width + 5); + + ctx.setFontSize(14); + ctx.setFillStyle('#919191'); + ctx.setTextAlign('left'); + ctx.fillText('段子、语录查询工具', 15, coverHeight - 30, ctx.measureText('段子、语录查询工具').width + 5); + + ctx.drawImage('/icons/wxcode.png', contWidth - 60, coverHeight - 96, 90, 90); + + ctx.draw(); + }, + + drawCont: function (ctx, infoCont, contWidth, x, y) { + let w = ctx.measureText(infoCont).width; + ctx.setTextAlign('left'); + ctx.setFontSize(17); + + if (w < contWidth) { + ctx.fillText(infoCont, x + 20, y + 30); + } else { + let lastIndex = 0; + let h = y; + let cw = 0; + for (let i = 0; i < infoCont.length; i++) { + cw += ctx.measureText(infoCont[i]).width; + if (cw > contWidth) { + ctx.fillText(infoCont.substring(lastIndex, i), x, h, cw + 10); + lastIndex = i; + cw = 0; + h += 28; + } + if (i == infoCont.length - 1) { + ctx.fillText(infoCont.substring(lastIndex, i + 1), x, h, cw + 10); + } + } + } + }, + + getImageWithUrl: function(cb) { + let num = Util.randomNum(13) + 1; + wx.getImageInfo({ + src: 'cloud://wx-news123-1wmxj.7778-wx-news123-1wmxj-1256740107/imgs/share/' + num +'.jpg', + success(res) { + cb(res); + } + }); + }, + + onSave: function() { + wx.canvasToTempFilePath({ + x: 0, + y: 0, + width: this.data.width, + height: this.data.height, + canvasId: 'myCanvas', + quality: 1, + success(res) { + self.saveImageToPhotosAlbum(res.tempFilePath); + } + }); + }, + + isWritePhotosAlbum: function(cb) { + wx.authorize({ + scope: 'scope.writePhotosAlbum', + success: () => { + cb() + }, + fail: () => { + wx.showModal({ + title: '提示', + content: '您未授权相册功能,无法保存', + showCancel: true, + confirmText: "授权", + confirmColor: "#52a2d8", + success: (res) => { + if (res.confirm) { + wx.openSetting({ + success: (res) => { + if (!res.authSetting['scope.record']) { + wx.showModal({ + title: '提示', + content: '您未授权相册功能,无法保存', + showCancel: false, + success: function (res) { } + }); + } else { + cb(); + } + }, + fail: () => { } + }); + } + } + }); + } + }); + }, + saveImageToPhotosAlbum: function(path) { + this.isWritePhotosAlbum(function() { + wx.saveImageToPhotosAlbum({ + filePath: path, + success(res) { + wx.showToast({ + title: '保存成功', + duration: 500, + icon: 'none' + }); + } + }); + }); + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/miniprogram/pages/quwen/share.json b/miniprogram/pages/quwen/share.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/miniprogram/pages/quwen/share.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/miniprogram/pages/quwen/share.wxml b/miniprogram/pages/quwen/share.wxml new file mode 100644 index 0000000..623be09 --- /dev/null +++ b/miniprogram/pages/quwen/share.wxml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/miniprogram/pages/quwen/share.wxss b/miniprogram/pages/quwen/share.wxss new file mode 100644 index 0000000..79e11e6 --- /dev/null +++ b/miniprogram/pages/quwen/share.wxss @@ -0,0 +1,15 @@ +/* miniprogram/pages/quwen/share.wxss */ +.container { + width: 100%; + height: 100%; + text-align: center; + box-sizing: border-box; + padding: 10rpx 40rpx; +} +.bottom-box { + margin-top: 20rpx; + text-align: center; +} +.bottom-box button[type=primary] { + background-color: #1188FF; +} \ No newline at end of file diff --git a/miniprogram/pages/translation/imagetranslate/index.js b/miniprogram/pages/translation/imagetranslate/index.js index 3e49c99..419887a 100644 --- a/miniprogram/pages/translation/imagetranslate/index.js +++ b/miniprogram/pages/translation/imagetranslate/index.js @@ -16,7 +16,7 @@ Component({ data: { files: [], show: false, - content: '', + content: [], source: '', // 源语言 target: '', // 目标语言 }, @@ -46,7 +46,7 @@ Component({ const tempFilePath = res.tempFilePaths[0]; if(!tempFilePath.match(/.*.(png|jpg|bmp)/)) { - wx.hideLoading() + wx.hideLoading(); wx.showToast({ title: '暂不支持该格式的图片,请选择png、jpg、bmp格式', icon: 'none' @@ -57,7 +57,7 @@ Component({ var fileSize = res.tempFiles[0].size; if (fileSize / (1024 * 1024) > 1) { - wx.hideLoading() + wx.hideLoading(); wx.showToast({ title: '图片大小超过1M', icon: 'none' @@ -82,6 +82,12 @@ Component({ } }); }, + fail: function() { + wx.hideLoading(); + }, + complete: function() { + wx.hideLoading(); + } }) }, ocrImage: function(data) { @@ -89,7 +95,7 @@ Component({ Util.AiReq({ url: Api.nlp_imagetranslate, data: { - "scene": 'word', + "scene": 'doc', "source": this.data.source, "target": this.data.target, "image": data, @@ -98,9 +104,8 @@ Component({ header: 'application/x-www-form-urlencoded', method: 'POST', success: (res) => { + wx.hideLoading(); if (res.data.ret == 0) { - wx.hideLoading() - that.setData({ content: res.data.data.image_records }); @@ -114,6 +119,13 @@ Component({ } }, fail: (e) => { + wx.hideLoading(); + wx.showToast({ + title: '系统繁忙请稍后重试...', + icon: 'none', + mask: true, + duration: 1000 + }); } }); }, @@ -131,6 +143,25 @@ Component({ source: source, target: target }); + }, + onClipboard: function() { + let cont = this.data.content; + let strs = '', ars = []; + + for (let i = 0; i < cont.length; i ++) { + let contItem = cont[i]; + ars.push(contItem.source_text + '\n' + contItem.target_text); + } + strs = ars.join('\n'); + + wx.setClipboardData({ + data: strs, + success(res) { + wx.getClipboardData({ + success(res) {} + }); + } + }); } } }) \ No newline at end of file diff --git a/miniprogram/pages/translation/imagetranslate/index.wxml b/miniprogram/pages/translation/imagetranslate/index.wxml index 7956390..05dfcac 100644 --- a/miniprogram/pages/translation/imagetranslate/index.wxml +++ b/miniprogram/pages/translation/imagetranslate/index.wxml @@ -20,10 +20,15 @@ - 未识别出内容 + + + + + + diff --git a/miniprogram/pages/translation/imagetranslate/index.wxss b/miniprogram/pages/translation/imagetranslate/index.wxss index 1877e34..1a47803 100644 --- a/miniprogram/pages/translation/imagetranslate/index.wxss +++ b/miniprogram/pages/translation/imagetranslate/index.wxss @@ -56,4 +56,16 @@ margin: 10rpx; border-bottom: 1px solid #f2f2f2; padding: 15rpx; -} \ No newline at end of file +} +.clipboard-box { + position: fixed; + bottom: 80rpx; + right: 50rpx; + opacity: .7; + background: transparent; +} + +.clipboard-box image { + width: 120rpx; + height: 120rpx; +} diff --git a/miniprogram/utils/util.js b/miniprogram/utils/util.js index b254b85..2514d43 100644 --- a/miniprogram/utils/util.js +++ b/miniprogram/utils/util.js @@ -144,6 +144,10 @@ function aiReq(param) { }); } +function randomNum(range) { + return Math.floor(Math.random() * (range - 0)) + 0; +} + module.exports = { formatTime, @@ -152,5 +156,6 @@ module.exports = { showModel, getTempFileURL, AiReq: aiReq, - baseReq: basicRequest + baseReq: basicRequest, + randomNum: randomNum } \ No newline at end of file diff --git a/project.config.json b/project.config.json index 8332719..626ae19 100644 --- a/project.config.json +++ b/project.config.json @@ -20,43 +20,75 @@ } }, "appid": "小程序appid", - "projectname": "qwfd", - "libVersion": "2.8.1", - "simulatorType": "wechat", - "simulatorPluginLibVersion": {}, - "condition": { - "search": { - "current": -1, - "list": [] - }, - "conversation": { - "current": -1, - "list": [] - }, - "plugin": { - "current": -1, - "list": [] - }, - "game": { - "list": [] - }, - "miniprogram": { - "current": 1, - "list": [ - { - "id": -1, - "name": "db guide", - "pathName": "pages/databaseGuide/databaseGuide", - "query": "" - }, - { - "id": 1, - "name": "pages/index/index", - "pathName": "pages/index/index", - "query": "", - "scene": null - } - ] - } - } + "projectname": "qwfd", + "libVersion": "2.9.3", + "simulatorType": "wechat", + "simulatorPluginLibVersion": {}, + "condition": { + "search": { + "current": -1, + "list": [] + }, + "conversation": { + "current": -1, + "list": [] + }, + "plugin": { + "current": -1, + "list": [] + }, + "game": { + "list": [] + }, + "gamePlugin": { + "current": -1, + "list": [] + }, + "miniprogram": { + "current": 5, + "list": [ + { + "id": -1, + "name": "db guide", + "pathName": "pages/databaseGuide/databaseGuide", + "query": "" + }, + { + "id": 1, + "name": "pages/index/index", + "pathName": "pages/index/index", + "query": "", + "scene": null + }, + { + "id": -1, + "name": "pages/me/index", + "pathName": "pages/me/index", + "query": "", + "scene": null + }, + { + "id": 3, + "name": "pages/textchat/index", + "pathName": "pages/textchat/index", + "query": "", + "scene": null + }, + { + "id": -1, + "name": "pages/eqy/index", + "pathName": "pages/eqy/index", + "query": "", + "scene": null + }, + { + "id": 5, + "name": "pages/translation/index", + "pathName": "pages/translation/index", + "query": "", + "scene": null + } + ] + } + } } \ No newline at end of file