diff --git a/README.md b/README.md index b3b77f4..5119e77 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ 12. [Android平台隐私与政策提示框](https://uniapp.dcloud.net.cn/tutorial/app-privacy-android.html) 13. 在ios中,子组件内的dom元素,有时click事件不生效,需要将dom的宽高设置大一下 14. 2024-11-16后的销售页面未更新 -15. 04-14完成 \ No newline at end of file +15. 05-08完成 \ No newline at end of file diff --git a/api/index.js b/api/index.js index 0f4bd39..2713ed2 100644 --- a/api/index.js +++ b/api/index.js @@ -3,8 +3,8 @@ const url = 'https://shop.chutang66.com' // 正式 // const url = 'http://warehouse.dev.chutang66.com' // 测试 // const url = 'http://192.168.31.70:82' // 本地1 // const url = 'http://192.168.30.6:8092' // 本地2 -const appId = 'wx73163c7bace1750b' -const protoId = 'gh_ca74730c9f77' +const appId = 'wxfc3c7f3778e3036a' +const protoId = 'gh_a2bdca31e535' const webUrl = 'http://uniapp.dcloud.io' const name = '妙选商城' const version = '1.0.3' diff --git a/components/callCenter/index.vue b/components/callCenter/index.vue index 1df5e3b..77f2e60 100644 --- a/components/callCenter/index.vue +++ b/components/callCenter/index.vue @@ -81,7 +81,7 @@ import { func } from '../../uni_modules/uview-plus/libs/function/test' const toMiniProgram = () => { data.sweixin.launchMiniProgram({ - id: 'gh_ca74730c9f77', + id: 'gh_a2bdca31e535', path: 'pages/user/index?type=kefu' }) data.showService = false diff --git a/components/common.js b/components/common.js index e645d01..583391d 100644 --- a/components/common.js +++ b/components/common.js @@ -37,6 +37,7 @@ export function login() { uni.setStorageSync('sessionKey', val.data.session_key) uni.setStorageSync('saveTime', Date.now()) // 存储时间 uni.setStorageSync('expires_in', val.data.expires_in * 1000) // 失效时间 + uni.setStorageSync('is_crop_user', val.data.crop_user) } resolve(val.data) } @@ -122,8 +123,7 @@ export async function userBind(params) { company_id = params.company_id || '', scene = params.scene let has_sale = uni.getStorageSync('has_sale') - let index = getCurrentPages().length - 1 - let link = getCurrentPages()[index].route + let link = '/pages/index/index' if (from > 0 || company_id || !has_sale) { await post('/api/v1/user/bind', {from, s, u, group_id, scene, company_id, link}).then((res) => { uni.setStorageSync('has_sale', true) @@ -1030,7 +1030,7 @@ export const toMiniProgram = (path) => { } sweixin = shares['weixin'] sweixin.launchMiniProgram({ - id: 'gh_ca74730c9f77', + id: 'gh_a2bdca31e535', path: path }) }, function(e) { diff --git a/components/img.js b/components/img.js index 028f43c..b75b416 100644 --- a/components/img.js +++ b/components/img.js @@ -1,2 +1,4 @@ // 雪碧图 export const sp2 = 'https://ct-upimg.yx090.com/g.ii090/images/sprite/11791720144991.jpg' + +export const provTxt = { 110000:'北京',120000:'天津',130000:'河北',140000:'山西',150000:'内蒙古',210000:'辽宁',220000:'吉林',230000:'黑龙江',310000:'上海',320000:'江苏',330000:'浙江',340000:'安徽',350000:'福建',360000:'江西',370000:'山东',410000:'河南',420000:'湖北',430000:'湖南',440000:'广东',450000:'广西',460000:'海南',500000:'重庆',510000:'四川',520000:'贵州',530000:'云南',540000:'西藏',610000:'陕西',620000:'甘肃',630000:'青海',640000:'宁夏',650000:'新疆',710000:'台湾',810000:'香港',820000:'澳门'} diff --git a/components/ktt/comment.vue b/components/ktt/comment.vue index 7bfdd88..265918c 100644 --- a/components/ktt/comment.vue +++ b/components/ktt/comment.vue @@ -8,7 +8,7 @@ - + @@ -23,6 +23,10 @@ + + 屏蔽 + 举报 + — 没有更多了 — @@ -102,6 +106,17 @@ context.emit('close') } + function toTousu(item) { + let text = '举报用户“' + item.user.nickname + '”' + '在团购ID“' + data.id + '”的评论' + uni.navigateTo({ + url: '/pages/mine/msg/complaint?type=2&desc=' + text + }) + } + + function toPingbi(i) { + data.list.splice(i, 1) + } + watch(props, async (newProps) => { if (newProps.show) { data.show = true @@ -119,7 +134,9 @@ getInfo, close, scorllBottom, - viewImg + viewImg, + toPingbi, + toTousu } } } @@ -215,6 +232,17 @@ } } } + .btm{ + display: flex; + align-items: center; + justify-content: flex-end; + font-size: 24rpx; + color: #666; + padding: 16rpx 24rpx; + background: #f6f6f6; + border-radius: 4px; + margin-top: 20rpx; + } } } } diff --git a/components/newVip/index.vue b/components/newVip/index.vue index 77ac59d..f683375 100644 --- a/components/newVip/index.vue +++ b/components/newVip/index.vue @@ -22,7 +22,8 @@ - 领取 + + 好的 diff --git a/components/order/chooseAddr.vue b/components/order/chooseAddr.vue index 6ebf16b..bc595fd 100644 --- a/components/order/chooseAddr.vue +++ b/components/order/chooseAddr.vue @@ -14,7 +14,7 @@ - + diff --git a/components/sku/ChooseSku.vue b/components/sku/ChooseSku.vue index 6047160..d26de7d 100644 --- a/components/sku/ChooseSku.vue +++ b/components/sku/ChooseSku.vue @@ -273,7 +273,6 @@ bgColor: Style[uni.getStorageSync('theme_index') * 1].bgColor, sourceId: 0, sourceType: '', - isSale: uni.getStorageSync('role') == 1, canClick: true, remind_stock: false, showPreview: false, diff --git a/components/sku/multiple.vue b/components/sku/multiple.vue index d997d4e..c7b39dd 100644 --- a/components/sku/multiple.vue +++ b/components/sku/multiple.vue @@ -210,7 +210,6 @@ action: false, topNum: 0, specsNum: 0, - isSale: uni.getStorageSync('role') == 1, canClick: true, remindStock: false }) diff --git a/manifest.json b/manifest.json index 5cb4cba..6ed0507 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "妙选商城", "appid" : "__UNI__743F2C0", "description" : "", - "versionName" : "1.0.7", - "versionCode" : 107, + "versionName" : "1.1.1", + "versionCode" : 111, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -48,7 +48,7 @@ "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "minSdkVersion" : 21, "targetSdkVersion" : 30, - "schemes" : "miaoxuan" + "schemes" : "xiaoman" }, /* ios打包配置 */ "ios" : { @@ -58,6 +58,12 @@ "entitlements" : { "com.apple.developer.associated-domains" : [ "guan.chutang66.com" ] } + }, + "privacyDescription" : { + "NSPhotoLibraryUsageDescription" : "获取您的相册用于更新头像", + "NSPhotoLibraryAddUsageDescription" : "保存海报到您的相册", + "NSCameraUsageDescription" : "拍摄照片以更新头像", + "NSLocalNetworkUsageDescription" : "使用您的网络以正常访问APP" } }, /* SDK配置 */ @@ -133,7 +139,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx73163c7bace1750b", + "appid" : "wxfc3c7f3778e3036a", "setting" : { "urlCheck" : false }, diff --git a/pages.json b/pages.json index 71b7047..d295df5 100644 --- a/pages.json +++ b/pages.json @@ -543,6 +543,12 @@ "style": { "navigationBarTitleText": "会员介绍" } + }, + { + "path": "mine/sheng", + "style": { + "navigationBarTitleText": "省钱账单" + } } ] } diff --git a/pages/groups/comment.vue b/pages/groups/comment.vue index 4f5a386..700fc71 100644 --- a/pages/groups/comment.vue +++ b/pages/groups/comment.vue @@ -18,96 +18,110 @@ - - - - - {{goodCommentRate}} - 好评率 + + + + + + + {{goodCommentRate}} + 好评率 + + + + - - + + {{item.name}} {{item.count}} - - {{item.name}} {{item.count}} + + + + + + + + + + + {{parseName(item.user.nickname)}} + 已购{{item.report && item.report.total_trade_count}}次 + + {{item.date.replace(/-/g, '/')}}发布于{{provTxt[item.order.province_id]}} + + + + + + + + + + {{it.name}} + + + + + + {{item.item.goods_name}} + + + + + {{item.comment}} + + + + + + + + 店家回复 + {{item.reply}} + + + + + 屏蔽 + 举报 + + + - 到底啦 - + 加载中... + + + - - - - - - - {{item.user.nickname}} - 已购{{item.report && item.report.total_trade_count}}次 - - {{item.date.replace(/-/g, '/')}}发布于{{provTxt[item.order.province_id]}} - - - - - - - - - - - {{item.item.goods_name}} - - - - {{it.name}} - - - - {{item.comment}} - - - - - - - - 店家回复 - {{item.reply}} - - - - - 到底啦 - - - - - - @@ -123,9 +137,9 @@ import { get } from '@/api/request.js' import { Style } from '@/utils/list.js' import privacyPopup from '@/components/privacyPopup/index.vue' - import { getDayDiff } from '@/components/common.js' + import { judgePrivacy, getDayDiff } from '@/components/common.js' import videoDialog from '@/components/videoDialog/index.vue' - import { provTxt } from '@/components/scene.js' + import { provTxt } from '@/components/img.js' export default { components: { @@ -217,7 +231,11 @@ } // 复制评论 - const copyComment = (text) => { + const copyComment = async (text) => { + if(await judgePrivacy()) { + data.showPrivacy = true + return false + } uni.setClipboardData({ data: String(text), success: function () { @@ -279,6 +297,22 @@ getList() } + function parseName(name) { + const regex = /^(.{2}).+(.{2})$/ + return name.replace(regex, '$1**$2') + } + + function toTousu(item) { + let text = '举报用户“' + item.user.nickname + '”' + '在团购ID“' + data.id + '”的评论' + uni.navigateTo({ + url: '/pages/mine/msg/complaint?type=2&desc=' + text + }) + } + + function toPingbi(i) { + data.infoList.splice(i, 1) + } + return { getDayDiff, provTxt, @@ -290,7 +324,10 @@ changeTab, changeTag, getTags, - toFilter + toFilter, + parseName, + toTousu, + toPingbi } }, async onLoad(options) { @@ -355,12 +392,23 @@ position: relative; .icon{ display: flex; - align-items: center; - justify-content: flex-end; + flex-direction: column; + justify-content: center; height: 30px; - width: 30px; - .iconfont{ - font-size: 18px; + padding-top: 3px; + .heng{ + width: 28rpx; + height: 2px; + background-color: #444; + margin-bottom: 3px; + &.er{ + width: 24rpx; + margin-right: 4rpx; + } + &.san{ + width: 20rpx; + margin-right: 10rpx; + } } } .box{ @@ -397,12 +445,15 @@ } } } - .oneBox{ + .contBox{ padding: 24rpx; + } + .oneBox{ + border-bottom: 1rpx solid #e8e8e8; .cont{ background-color: #fff; padding: 24rpx 24rpx 8rpx; - border-radius: 10rpx; + border-radius: 10rpx 10rpx 0 0; } .top{ display: flex; @@ -445,13 +496,18 @@ } } .listBox{ - padding: 0 24rpx 24rpx; + // padding: 0 24rpx 24rpx; .item{ padding: 20rpx; - margin-bottom: 24rpx; + border-bottom: 1rpx solid #F5F5F5; background-color: #fff; + .cont{ + padding: 0 0 20rpx; + border-bottom: 1rpx solid #f7f2f2; + } .userInfo{ display: flex; + align-items: center; margin-bottom: 20rpx; image{ width: 70rpx; @@ -460,14 +516,18 @@ margin-right: 15rpx; } .box{ - display: flex; - justify-content: space-between; - align-items: center; width: 100%; + .user{ + display: flex; + justify-content: space-between; + align-items: center; + } .right{ font-size: 22rpx; color: #98989f; width: calc(100% - 150rpx); + display: flex; + align-items: center; .name{ font-size: 28rpx; color: #333; @@ -476,11 +536,10 @@ display: inline-block; } .border{ - height: 32rpx; background: rgba(255, 255, 255, 0.39); border: 1px solid v-bind('Color'); color: v-bind('Color'); - padding: 0 10rpx; + padding: 1px 10rpx; border-radius: 5rpx; font-size: 20rpx; font-weight: normal; @@ -493,10 +552,15 @@ } } } + .sku_name{ + color: #999; + margin-top: 10rpx; + font-size: 24rpx; + } .starBox{ - background-color: #F9F9F9; - padding: 16rpx 20rpx 20rpx; - border-radius: 8rpx; + display: flex; + align-items: center; + margin-top: 6rpx; .rate{ display: flex; align-items: center; @@ -504,16 +568,10 @@ margin-right: 3px; } } - .sku_name{ - color: #999; - margin-top: 10rpx; - font-size: 24rpx; - width: 100%; - } .tags{ - margin-top: 16rpx; - color: #555; - font-size: 24rpx; + margin-left: 10rpx; + color: #666; + font-size: 20rpx; } } @@ -538,6 +596,7 @@ width: 100%; height: 100%; vertical-align: bottom; + border-radius: 8rpx; } .play{ position: absolute; @@ -549,6 +608,7 @@ justify-content: center; width: 100%; height: 100%; + border-radius: 8rpx; z-index: 1; } } @@ -585,6 +645,17 @@ } } } + .btm{ + display: flex; + align-items: center; + justify-content: flex-end; + font-size: 24rpx; + color: #666; + padding: 16rpx 24rpx; + background: #f6f6f6; + border-radius: 4px; + margin-top: 20rpx; + } } .bottom { text-align: center; diff --git a/pages/groups/index.vue b/pages/groups/index.vue index bc7fd5a..7572b03 100644 --- a/pages/groups/index.vue +++ b/pages/groups/index.vue @@ -162,7 +162,7 @@ {{item.description}}