Commit 18980e2a by 杨明

fixed

1 parent 6f2230e0
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 10:23:52
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -424,6 +424,9 @@ export default {
console.log(val, 999999999999)
this.setMergeImg(val)
},
merchantInfo() {
Object.assign(this.editForm, { merchantname: this.merchantInfo.merchantName, merchantAddress: this.merchantInfo.merchantAddress, merchantId: this.merchantInfo.merchantNo })
},
'editForm.activityPrice'(newValue, oldValue) {
this.editForm.activityPrice = util.limitPrice(newValue, oldValue, 6, 2, 0)
},
......@@ -755,7 +758,9 @@ export default {
if (info.startTime) {
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) {
this.$refs.editFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName)
......
......@@ -233,10 +233,12 @@ export default {
border-bottom: 1px solid #e5e5e5;
.gift-item {
margin-bottom: 20px;
display: inline-flex;
align-items: center;
display: flex;
align-items: flex-start;
line-height: 20px;
.muti-icon {
cursor: pointer;
margin-right: 4px;
}
.gift-coupon-name {
display: inline-block;
......
......@@ -79,7 +79,6 @@
<script>
import homeStep from './components/home-step.vue'
import sceneSubscription from './components/scene-subscription'
import { mapActions } from 'vuex'
export default {
name: 'home',
components: {
......@@ -94,12 +93,8 @@ export default {
},
mounted() {
this.verifyOpen()
this.getMerchantInfo({ merchantId: this.$globalState.session.merchantId })
},
methods: {
...mapActions({
getMerchantInfo: 'marketing/getMerchantInfo'
}),
verifyOpen() {
this.$apis.aiCard.verifyOpen({}).then(res => {
this.verifyOpenStatus = res && res.data
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-11 18:32:20
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -59,11 +59,13 @@ export default {
mounted() {
this.getCalendarListData({ status: 1, recommendMonths: 3 })
this.getCalendarListDataAll()
this.getMerchantInfo({ merchantId: this.$globalState.session.merchantId })
},
methods: {
...mapActions({
getCalendarListData: 'marketing/getCalendarListData',
getCalendarListDataAll: 'marketing/getCalendarListDataAll'
getCalendarListDataAll: 'marketing/getCalendarListDataAll',
getMerchantInfo: 'marketing/getMerchantInfo'
}),
handleShowCalendar(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!