Commit 18980e2a by 杨明

fixed

1 parent 6f2230e0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 10:23:52 * @Date: 2023-05-16 10:23:52
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-30 16:23:42 * @LastEditTime: 2023-05-31 09:44:42
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\GPTAnalysis.vue * @FilePath: \scrm-micro-home\src\views\home\components\Marketing\GPTAnalysis.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -424,6 +424,9 @@ export default { ...@@ -424,6 +424,9 @@ export default {
console.log(val, 999999999999) console.log(val, 999999999999)
this.setMergeImg(val) this.setMergeImg(val)
}, },
merchantInfo() {
Object.assign(this.editForm, { merchantname: this.merchantInfo.merchantName, merchantAddress: this.merchantInfo.merchantAddress, merchantId: this.merchantInfo.merchantNo })
},
'editForm.activityPrice'(newValue, oldValue) { 'editForm.activityPrice'(newValue, oldValue) {
this.editForm.activityPrice = util.limitPrice(newValue, oldValue, 6, 2, 0) this.editForm.activityPrice = util.limitPrice(newValue, oldValue, 6, 2, 0)
}, },
...@@ -755,7 +758,9 @@ export default { ...@@ -755,7 +758,9 @@ export default {
if (info.startTime) { if (info.startTime) {
this.$set(this.editForm, 'activityTime', [info.startTime.replace(/-/g, '/'), info.endTime.replace(/-/g, '/')]) this.$set(this.editForm, 'activityTime', [info.startTime.replace(/-/g, '/'), info.endTime.replace(/-/g, '/')])
} }
console.log(this.editForm.activityTime) if (info.merchantName) {
this.editForm.merchantname = info.merchantName
}
// 地图 // 地图
if (info.activityAddressProvinceName || info.activityAddressCityName) { if (info.activityAddressProvinceName || info.activityAddressCityName) {
this.$refs.editFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName) this.$refs.editFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName)
......
...@@ -233,10 +233,12 @@ export default { ...@@ -233,10 +233,12 @@ export default {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
.gift-item { .gift-item {
margin-bottom: 20px; margin-bottom: 20px;
display: inline-flex; display: flex;
align-items: center; align-items: flex-start;
line-height: 20px;
.muti-icon { .muti-icon {
cursor: pointer; cursor: pointer;
margin-right: 4px;
} }
.gift-coupon-name { .gift-coupon-name {
display: inline-block; display: inline-block;
......
...@@ -79,7 +79,6 @@ ...@@ -79,7 +79,6 @@
<script> <script>
import homeStep from './components/home-step.vue' import homeStep from './components/home-step.vue'
import sceneSubscription from './components/scene-subscription' import sceneSubscription from './components/scene-subscription'
import { mapActions } from 'vuex'
export default { export default {
name: 'home', name: 'home',
components: { components: {
...@@ -94,12 +93,8 @@ export default { ...@@ -94,12 +93,8 @@ export default {
}, },
mounted() { mounted() {
this.verifyOpen() this.verifyOpen()
this.getMerchantInfo({ merchantId: this.$globalState.session.merchantId })
}, },
methods: { methods: {
...mapActions({
getMerchantInfo: 'marketing/getMerchantInfo'
}),
verifyOpen() { verifyOpen() {
this.$apis.aiCard.verifyOpen({}).then(res => { this.$apis.aiCard.verifyOpen({}).then(res => {
this.verifyOpenStatus = res && res.data this.verifyOpenStatus = res && res.data
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-11 18:32:20 * @Date: 2023-05-11 18:32:20
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-30 14:52:13 * @LastEditTime: 2023-05-31 09:29:44
* @FilePath: \scrm-micro-home\src\views\home\marketing.vue * @FilePath: \scrm-micro-home\src\views\home\marketing.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -59,11 +59,13 @@ export default { ...@@ -59,11 +59,13 @@ export default {
mounted() { mounted() {
this.getCalendarListData({ status: 1, recommendMonths: 3 }) this.getCalendarListData({ status: 1, recommendMonths: 3 })
this.getCalendarListDataAll() this.getCalendarListDataAll()
this.getMerchantInfo({ merchantId: this.$globalState.session.merchantId })
}, },
methods: { methods: {
...mapActions({ ...mapActions({
getCalendarListData: 'marketing/getCalendarListData', getCalendarListData: 'marketing/getCalendarListData',
getCalendarListDataAll: 'marketing/getCalendarListDataAll' getCalendarListDataAll: 'marketing/getCalendarListDataAll',
getMerchantInfo: 'marketing/getMerchantInfo'
}), }),
handleShowCalendar(value) { handleShowCalendar(value) {
this.showCalendar = Boolean(value) this.showCalendar = Boolean(value)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!