|
|
@@ -8,7 +8,7 @@
|
|
|
* 姜永辉 2022-11-22 1.00 新建
|
|
|
*******************************************************************************/
|
|
|
const mixins = require('@/mixins/index.js')
|
|
|
-const Constants = require('@/utils/Constants.js');
|
|
|
+const Constants = require('@/utils/Constants.js');
|
|
|
|
|
|
const app = getApp()
|
|
|
Page({
|
|
|
@@ -29,7 +29,7 @@ Page({
|
|
|
{ code: 'shopSize', type: 'str', readonly: 'true', title: mixins.$t('shopSize') },
|
|
|
{ code: 'feedback', type: 'textarea', readonly: 'true', title: mixins.$t('feedback') },
|
|
|
],
|
|
|
- },
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
@@ -48,7 +48,7 @@ Page({
|
|
|
},
|
|
|
success: function (res) {
|
|
|
// 通过eventChannel向被打开页面传送数据 TODO 测试例子url是写死的,实际中,需要从route中读取
|
|
|
- res.eventChannel.emit('params', { })
|
|
|
+ res.eventChannel.emit('params', {})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -65,12 +65,13 @@ Page({
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
- * @desc : 给表单赋值
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 姜永辉
|
|
|
- */
|
|
|
+ * @desc : 给表单赋值
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 姜永辉
|
|
|
+ */
|
|
|
setValuesByEdit(data) {
|
|
|
- let contentObj = this.data.contentObj
|
|
|
+ console.log('setValuesByEdit');
|
|
|
+ let contentObj = this.data.contentObj
|
|
|
this.setData({
|
|
|
formData: JSON.stringify(data)
|
|
|
})
|