Explorar o código

修改意见反馈

zs hai 1 ano
pai
achega
3b7f2aeec0

+ 3 - 2
pagesMy/opinion/index.vue

@@ -72,8 +72,9 @@
 				that.$set(that.form, `${e.name}`, arr)
 			},
 			submit(ref) {
-				this.$refs[ref].validate().then(async data => {
-					data.user = this.user._id
+				const that = this;
+				that.$refs[ref].validate().then(async data => {
+					data.user = that.user._id
 					const res = await that.$api(`/opinion`, 'POST', data);
 					if (res.errcode == '0') {
 						uni.showToast({

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/opinion/index.js.map


+ 3 - 3
unpackage/dist/dev/mp-weixin/pagesMy/opinion/index.js

@@ -235,15 +235,15 @@ var _default = {
       that.$set(that.form, "".concat(e.name), arr);
     },
     submit: function submit(ref) {
-      var _this = this;
-      this.$refs[ref].validate().then( /*#__PURE__*/function () {
+      var that = this;
+      that.$refs[ref].validate().then( /*#__PURE__*/function () {
         var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(data) {
           var res;
           return _regenerator.default.wrap(function _callee$(_context) {
             while (1) {
               switch (_context.prev = _context.next) {
                 case 0:
-                  data.user = _this.user._id;
+                  data.user = that.user._id;
                   _context.next = 3;
                   return that.$api("/opinion", 'POST', data);
                 case 3: