魏超 vor 5 Jahren
Ursprung
Commit
1d48246ed7
1 geänderte Dateien mit 9 neuen und 5 gelöschten Zeilen
  1. 9
    5
      src/pages/h5SampleManager/h5Sample/detail.jsx

+ 9
- 5
src/pages/h5SampleManager/h5Sample/detail.jsx Datei anzeigen

@@ -121,9 +121,11 @@ const header = props => {
121 121
         </Form.Item>
122 122
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
123 123
           <div style={{ margin: '0.16rem 0 0.06rem' }}>
124
-            <Button type="primary" onClick={toAddH5(sampleId)} style={{ marginRight: '20px' }}>
125
-              创建H5活动
126
-          </Button>
124
+            <AuthButton name="admin.h5Sample.activity.add" noRight={null}>
125
+              <Button type="primary" onClick={toAddH5(sampleId)} style={{ marginRight: '20px' }}>
126
+                创建H5活动
127
+              </Button>
128
+            </AuthButton>
127 129
             <Button type="primary" onClick={toDetail(sampleId)} style={{ marginRight: '20px' }}>
128 130
               提交需求
129 131
           </Button>
@@ -134,9 +136,11 @@ const header = props => {
134 136
         </Form.Item>
135 137
         <div style={{ position: 'fixed', right: '0.4rem', bottom: '6%' }}>
136 138
           <div style={{ display: 'flex', alignItems: 'center', minWidth: '1.1rem', justifyContent: 'space-between', marginBottom: '20px' }}>样例可直接使用 <span style={{ color: '#EF273A', margin: '0 0.1rem' }}>>></span>
137
-            <Button type="primary" onClick={toAddH5(sampleId)} >
138
-              创建H5活动
139
+            <AuthButton name="admin.h5Sample.activity.add" noRight={null}>
140
+              <Button type="primary" onClick={toAddH5(sampleId)} >
141
+                创建H5活动
139 142
               </Button>
143
+            </AuthButton>
140 144
           </div>
141 145
           <div style={{ display: 'flex', alignItems: 'center', minWidth: '1.1rem', justifyContent: 'space-between' }}>我想办类似活动 <span style={{ color: '#EF273A', margin: '0 0.1rem' }}>>></span>
142 146
             <Button type="primary" onClick={toDetail(sampleId)} >