|
|
"use strict";const e=require("../../common/vendor.js"),g=require("../../api/index.js");require("../../utils/request.js");if(!Array){const c=e.resolveComponent("u-navbar"),s=e.resolveComponent("u-rate");(c+s)()}const f=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js",b=()=>"../../uni_modules/uview-plus/components/u-rate/u-rate.js";Math||(f+b)();const C={__name:"evaluate",setup(c){const s=e.ref(5),l=e.ref(0);let n=e.reactive([]);const u=e.ref([]);let a=e.ref("");const{proxy:v}=e.getCurrentInstance(),p=()=>{h()},i=e.ref(0);e.onLoad(t=>{i.value=t.id});const _=()=>v.$methods.upload("http://health.shs.broing.cn/api/common/upload",t=>{console.log("返回图片",t),u.value.push(t.upImg),n.push(t.avatar)}),d=t=>{u.value.splice(t,1),n.splice(t,1)},h=async()=>{try{let t={id:i.value,image:u.value.join(","),content:a.value};const m=await g.getComment(t);e.index.showToast({title:"感谢您的评论~",icon:"none"}),setTimeout(()=>{e.index.navigateBack()},1e3),console.log("getComment",m)}catch(t){e.index.showToast({title:t,icon:"none"}),console.log("getComment",t)}};return(t,m)=>({a:e.p({placeholder:!0,title:"评价",bgColor:"transparent",autoBack:!0}),b:e.f(e.unref(n),(o,r,w)=>({a:o,b:e.o(x=>d(r),r),c:r})),c:e.t(5-e.unref(n).length),d:e.o(_),e:e.unref(a),f:e.o(o=>e.isRef(a)?a.value=o.detail.value:a=o.detail.value),g:e.o(o=>l.value=o),h:e.p({activeColor:"#FEA302",count:s.value,modelValue:l.value}),i:e.o(p)})}},y=e._export_sfc(C,[["__file","D:/vue/大健康商城/healthMall/pages/mine/evaluate.vue"]]);wx.createPage(y); |
|
|
"use strict";const e=require("../../common/vendor.js"),h=require("../../api/index.js");require("../../utils/request.js");if(!Array){const c=e.resolveComponent("u-navbar"),s=e.resolveComponent("u-rate");(c+s)()}const f=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js",b=()=>"../../uni_modules/uview-plus/components/u-rate/u-rate.js";Math||(f+b)();const C={__name:"evaluate",setup(c){const s=e.ref(5),l=e.ref(0);let n=e.reactive([]);const u=e.ref([]);let a=e.ref("");const{proxy:v}=e.getCurrentInstance(),p=()=>{g()},i=e.ref(0);e.onLoad(t=>{i.value=t.id});const _=()=>v.$methods.upload("https://dajiankang.y.broing.cn/api/common/upload",t=>{console.log("返回图片",t),u.value.push(t.upImg),n.push(t.avatar)}),d=t=>{u.value.splice(t,1),n.splice(t,1)},g=async()=>{try{let t={id:i.value,image:u.value.join(","),content:a.value};const m=await h.getComment(t);e.index.showToast({title:"感谢您的评论~",icon:"none"}),setTimeout(()=>{e.index.navigateBack()},1e3),console.log("getComment",m)}catch(t){e.index.showToast({title:t,icon:"none"}),console.log("getComment",t)}};return(t,m)=>({a:e.p({placeholder:!0,title:"评价",bgColor:"transparent",autoBack:!0}),b:e.f(e.unref(n),(o,r,w)=>({a:o,b:e.o(x=>d(r),r),c:r})),c:e.t(5-e.unref(n).length),d:e.o(_),e:e.unref(a),f:e.o(o=>e.isRef(a)?a.value=o.detail.value:a=o.detail.value),g:e.o(o=>l.value=o),h:e.p({activeColor:"#FEA302",count:s.value,modelValue:l.value}),i:e.o(p)})}},y=e._export_sfc(C,[["__file","D:/vue/大健康商城/healthMall/pages/mine/evaluate.vue"]]);wx.createPage(y); |
...
|
...
|
|