|
@@ -1,12 +1,15 @@
|
|
|
import { Checkbox, Icon, Popup } from 'vant'
|
|
|
-import { defineComponent } from 'vue'
|
|
|
+import { defineComponent, PropType } from 'vue'
|
|
|
import styles from './index.module.less'
|
|
|
import activeButtonIcon from '@common/images/icon_checkbox.png'
|
|
|
import inactiveButtonIcon from '@common/images/icon_checkbox_default.png'
|
|
|
import ColHeader from '../col-header'
|
|
|
import { state } from '@/state'
|
|
|
import request from '@/helpers/request'
|
|
|
-
|
|
|
+const protocolText = {
|
|
|
+ BUY_ORDER: '《酷乐秀平台服务协议》',
|
|
|
+ REGISTER: '《酷乐秀平台注册协议》'
|
|
|
+}
|
|
|
export default defineComponent({
|
|
|
name: 'protocol',
|
|
|
props: {
|
|
@@ -17,6 +20,10 @@ export default defineComponent({
|
|
|
modelValue: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ prototcolType: {
|
|
|
+ type: String as PropType<'BUY_ORDER' | 'REGISTER'>,
|
|
|
+ default: 'BUY_ORDER'
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
@@ -36,7 +43,7 @@ export default defineComponent({
|
|
|
this.baseUrl + '/sysUserContractRecord/checkContractSign',
|
|
|
{
|
|
|
params: {
|
|
|
- contractType: 'BUY_ORDER'
|
|
|
+ contractType: this.prototcolType
|
|
|
}
|
|
|
}
|
|
|
)
|
|
@@ -67,7 +74,7 @@ export default defineComponent({
|
|
|
this.baseUrl + '/sysUserContractRecord/queryContract',
|
|
|
{
|
|
|
params: {
|
|
|
- contractType: 'BUY_ORDER'
|
|
|
+ contractType: this.prototcolType
|
|
|
}
|
|
|
}
|
|
|
)
|
|
@@ -122,7 +129,7 @@ export default defineComponent({
|
|
|
)}
|
|
|
{this.exists && <>查看</>}
|
|
|
<span onClick={this.getContractDetail} class={styles.protocolText}>
|
|
|
- 《酷乐秀平台服务协议》
|
|
|
+ {protocolText[this.prototcolType]}
|
|
|
</span>
|
|
|
|
|
|
<Popup
|