Browse Source

收款方式回显

pull/105/head
pengda 3 weeks ago
parent
commit
1aee8f6586
  1. 8
      src/components/site/addSiteStep/step1.vue
  2. 2
      src/views/agent/Franchise.vue
  3. 10
      src/views/agent/siteAdd.vue

8
src/components/site/addSiteStep/step1.vue

@ -77,6 +77,7 @@
</div>
<div class="register-btns">
<GuipButton v-if="skip" type="ignore" :btnstyle="{ width: '144px', height: '46px' }" @click="jumpStep">去首页</GuipButton>
<GuipButton type="primary" :btnstyle="{ width: '144px', height: '46px' }" @click="saveConfirm">下一步</GuipButton>
</div>
</el-form>
@ -97,6 +98,10 @@ export default {
siteInfo: {
type: Object,
required: true
},
skip: {
type: Boolean,
required: false
}
},
components: {
@ -266,6 +271,9 @@ export default {
this.$router.push(`/agent/siteTemplate?site_type=${this.formData.site_type}`)
}
},
jumpStep(){
this.$router.push('/')
},
saveConfirm() {
const that = this
let formValid = false;

2
src/views/agent/Franchise.vue

@ -301,7 +301,7 @@ export default {
}else{
localStorage.setItem('token', response.data)
that.$message.success(response.info);
that.$router.push(`/agent/siteAdd`)
that.$router.push(`/agent/siteAdd?isFirst=1`)
}
}).catch(error => {
console.error(error, 'error')

10
src/views/agent/siteAdd.vue

@ -51,7 +51,7 @@
<!-- 参数 在子组件页面一样用 props接收 ref绑定的组件示例 -->
<!-- 默认页面展示 的初始组件 Franchise-->
<component :is="process" :key="stepKey" :siteInfo="siteInfo" ref="dynamicComponent" @handelSiteInfo="handelSiteInfo" @handelStep="handelStep"/>
<component :is="process" :key="stepKey" :siteInfo="siteInfo" :skip="canSkip" ref="dynamicComponent" @handelSiteInfo="handelSiteInfo" @handelStep="handelStep"/>
</div>
</template>
<script>
@ -72,7 +72,8 @@ export default {
data() {
return {
siteInfo:{},
showAlert:true,
showAlert:false,
canSkip: false,
stepKey: Date.now(),
activeStep: '1',//
process: '', //
@ -98,6 +99,11 @@ export default {
},
},
mounted() {
//
if(this.$route.query.isFirst) {
this.showAlert = true
this.canSkip = true
}
this.getNotFinishedSite()
},
methods: {

Loading…
Cancel
Save