consumerm模块完成度90%,完善消费者和商家端数据库表,商品、聊天、订单数据对接好了supabase,和商家端对接了聊天功能,安卓端编译通过了css样式,剩余几个页面在处理函数规范问题

This commit is contained in:
cyh666666
2026-02-24 17:17:49 +08:00
parent e2f1dfb097
commit e606c597ca
174 changed files with 37917 additions and 4444 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"sources":["pages/mall/consumer/refund-review.uvue","pages/user/terms.uvue","uni_modules/ak-req/ak-req.uts"],"sourcesContent":["<template>\r\n <view class=\"review-page\">\r\n <view class=\"header\">\r\n <text class=\"title\">服务评价</text>\r\n <text class=\"subtitle\">请对本次售后服务进行评价</text>\r\n </view>\r\n\r\n <view class=\"rating-section\">\r\n <text class=\"label\">服务评分</text>\r\n <view class=\"stars\">\r\n <text \r\n v-for=\"i in 5\" \r\n :key=\"i\" \r\n class=\"star\" \r\n :class=\"{ active: i <= rating }\"\r\n @click=\"setRating(i)\"\r\n >★</text>\r\n </view>\r\n <text class=\"rating-text\">{{ ratingText }}</text>\r\n </view>\r\n\r\n <view class=\"comment-section\">\r\n <textarea \r\n v-model=\"comment\" \r\n class=\"comment-input\" \r\n placeholder=\"请输入您的评价内容,您的建议是我们改进的动力\"\r\n maxlength=\"200\"\r\n />\r\n <text class=\"word-count\">{{ comment.length }}/200</text>\r\n </view>\r\n\r\n <button class=\"submit-btn\" @click=\"submitReview\" :loading=\"submitting\">提交评价</button>\r\n </view>\r\n</template>\r\n\r\n<script setup lang=\"uts\">\r\nimport { ref, computed } from 'vue'\r\n\r\nconst rating = ref(5)\r\nconst comment = ref('')\r\nconst submitting = ref(false)\r\n\r\nconst ratingText = computed(() => {\r\n const texts = ['非常不满意', '不满意', '一般', '满意', '非常满意']\r\n return texts[rating.value - 1]\r\n})\r\n\r\nconst setRating = (val: number) => {\r\n rating.value = val\r\n}\r\n\r\nconst submitReview = () => {\r\n if (submitting.value) return\r\n submitting.value = true\r\n \r\n // 模拟提交\r\n setTimeout(() => {\r\n uni.showToast({\r\n title: '评价成功',\r\n icon: 'success'\r\n })\r\n \r\n setTimeout(() => {\r\n uni.navigateBack()\r\n }, 1500)\r\n \r\n submitting.value = false\r\n }, 1000)\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.review-page {\r\n flex: 1;\r\n background-color: #ffffff;\r\n padding: 20px;\r\n}\r\n\r\n.header {\r\n margin-bottom: 30px;\r\n text-align: center;\r\n}\r\n\r\n.title {\r\n font-size: 20px;\r\n font-weight: bold;\r\n color: #333;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.subtitle {\r\n font-size: 14px;\r\n color: #999;\r\n}\r\n\r\n.rating-section {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n margin-bottom: 30px;\r\n}\r\n\r\n.label {\r\n font-size: 16px;\r\n color: #333;\r\n margin-bottom: 15px;\r\n}\r\n\r\n.stars {\r\n display: flex;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.star {\r\n margin-right: 10px;\r\n font-size: 32px;\r\n color: #ddd;\r\n transition: color 0.2s;\r\n}\r\n\r\n.star.active {\r\n color: #ffca28;\r\n}\r\n\r\n.rating-text {\r\n font-size: 14px;\r\n color: #666;\r\n}\r\n\r\n.comment-section {\r\n position: relative;\r\n margin-bottom: 30px;\r\n}\r\n\r\n.comment-input {\r\n width: 100%;\r\n height: 120px;\r\n background-color: #f5f5f5;\r\n border-radius: 8px;\r\n padding: 15px;\r\n font-size: 14px;\r\n box-sizing: border-box;\r\n}\r\n\r\n.word-count {\r\n position: absolute;\r\n bottom: 10px;\r\n right: 10px;\r\n font-size: 12px;\r\n color: #999;\r\n}\r\n\r\n.submit-btn {\r\n background-color: #007aff;\r\n color: #ffffff;\r\n border-radius: 25px;\r\n font-size: 16px;\r\n font-weight: bold;\r\n height: 50px;\r\n line-height: 50px;\r\n}\r\n</style>\r\n",null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;YAsCA,IAAM,SAAS,IAAI,CAAC;YACpB,IAAM,UAAU,IAAI;YACpB,IAAM,aAAa,IAAI,KAAK;YAE5B,IAAM,aAAa,SAAS,OAAA,MAAA,CAAK;gBAC/B,IAAM,QAAQ;oBAAC;oBAAS;oBAAO;oBAAM;oBAAM;iBAAO;gBAClD,OAAO,KAAK,CAAC,OAAO,KAAK,CAAA,CAAA,CAAG,CAAC,CAAC;YAChC;;YAEA,IAAM,YAAY,IAAC,MAAK,MAAM,CAAI;gBAChC,OAAO,KAAK,GADK;YAEnB;YAEA,IAAM,eAAe,KAAK;gBACxB,IAAI,WAAW,KAAK;oBAAE;;gBACtB,WAAW,KAAK,GAAG,IAAI;gBAGvB,WAAW,KAAK;mDAEZ,QAAO,QACP,OAAM;oBAGR,WAAW,KAAK;;oBAEhB;sBAAG,IAAI;oBAEP,WAAW,KAAK,GAAG,KAAK;gBAC1B;kBAAG,IAAI;YACT;;uBAnEE,IA+BO,QAAA,IA/BD,WAAM,gBAAa;oBACvB,IAGO,QAAA,IAHD,WAAM,WAAQ;wBAClB,IAA+B,QAAA,IAAzB,WAAM,UAAQ;wBACpB,IAA0C,QAAA,IAApC,WAAM,aAAW;;oBAGzB,IAYO,QAAA,IAZD,WAAM,mBAAgB;wBAC1B,IAA+B,QAAA,IAAzB,WAAM,UAAQ;wBACpB,IAQO,QAAA,IARD,WAAM,UAAO;4BACjB,IAMS,UAAA,IAAA,EAAA,cAAA,UAAA,CALK,CAAC,EAAA,IAAN,GAAA,OAAA,SAAC,UAAA,GAAA,CAAA;uCADV,IAMS,QAAA,IAJN,SAAK,GACN,WAAK,IAAA;oCAAC;oCACE,IAAA,aAAA,EAAA,EAAA,CAAA,OAAA,KAAA;iCAAuB,GAC9B,aAAK,KAAA;oCAAE,UAAU;gCAAC;mCACpB,KAAC,EAAA,EAAA;oCAAA;iCAAA;;;;wBAEJ,IAAiD,QAAA,IAA3C,WAAM,gBAAa,IAAI,WAAA,KAAU,GAAA,CAAA;;oBAGzC,IAQO,QAAA,IARD,WAAM,oBAAiB;wBAC3B,IAKE,YAAA,oBAJS,QAAA,KAAO;4BAAP,QAAO,KAAA,GAAA,SAAA,MAAA,CAAA,KAAA;wBAAA;0BAChB,WAAM,iBACN,iBAAY,0BACZ,eAAU;;;;wBAEZ,IAAwD,QAAA,IAAlD,WAAM,eAAY,IAAI,QAAA,KAAO,CAAC,MAAM,EAAA,CAAA,CAAG,QAAI,CAAA;;oBAGnD,IAAoF,UAAA,IAA5E,WAAM,cAAc,aAAO,cAAe,aAAS,WAAA,KAAU,GAAE,QAAI,CAAA,EAAA;wBAAA;qBAAA"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long