pan> 168
+                android:layout_width="match_parent"
169
+                android:layout_height="wrap_content"
170
+                android:paddingRight="6dp"
171
+                android:orientation="vertical">
172
+
173
+                <TextView
174
+                    android:layout_width="match_parent"
175
+                    android:layout_height="44dp"
176
+                    android:gravity="center_vertical"
177
+                    android:text="@string/box_set_ip"
178
+                    android:paddingLeft="10dp"
179
+                    android:textColor="@color/dark_grey"
180
+                    android:textSize="16sp" />
181
+
182
+                <EditText
183
+                    android:id="@+id/et_box_ip"
184
+                    android:layout_width="match_parent"
185
+                    android:layout_height="44dp"
186
+                    android:layout_marginLeft="8dp"
187
+                    android:layout_marginRight="8dp"
188
+                    android:gravity="center"
189
+                    android:textSize="16sp"
190
+                    android:textColor="@color/dark_grey"
191
+                   />
192
+
193
+                <Button
194
+                    android:id="@+id/btn_confirm_ip"
195
+                    android:layout_width="wrap_content"
196
+                    android:layout_height="wrap_content"
197
+                    android:text="@string/ok"
198
+                    android:layout_gravity="center_horizontal"
199
+                    android:textSize="16sp"
200
+                    android:textColor="@color/white"
201
+                    android:background="@drawable/print_rounded_rect_bg"
202
+                    android:layout_marginTop="8dp"
203
+                    android:layout_marginBottom="8dp"
204
+                    android:paddingLeft="35dp"
205
+                    android:paddingRight="35dp"
206
+                    android:paddingBottom="5dp"
207
+                    android:paddingTop="5dp"/>
208
+
209
+
210
+            </LinearLayout>
211
+
159 212
         </LinearLayout>
213
+
214
+
215
+
216
+
217
+
160 218
     </ScrollView>
161 219
 
162 220
 

+ 3 - 0
app/src/main/res/values/strings.xml

@@ -124,4 +124,7 @@
124 124
     <string name="contact_us">联系我们</string>
125 125
     
126 126
     <string name="about_us">关于我们</string>
127
+
128
+    <string name="box_set_ip">BOX IP设置</string>
129
+
127 130
 </resources>

thermometer - Gogs: Go Git Service

暂无描述

wx_views.py 1.2KB

    # -*- coding: utf-8 -*- from __future__ import division from django.conf import settings from django_response import response from pywe_qrcode import qrcode_limit_str_scene from pywe_storage import RedisStorage from utils.error.errno_utils import ParamStatusCode from utils.redis.connect import r def get_limit_scene_qrcode_url(request): scene = str(request.GET.get('scene', '')) if not scene: return response(ParamStatusCode.PARAM_NOT_FOUND) JSAPI = settings.WECHAT.get('JSAPI', {}) appid = JSAPI.get('appID', '') appsecret = JSAPI.get('appsecret', '') if not appid: return response(ParamStatusCode.PARAM_NOT_FOUND) qrurl = qrcode_limit_str_scene(scene_str=scene, appid=appid, secret=appsecret, storage=RedisStorage(r), qrurl=True) return response(data={ 'qrurl': qrurl, }) def get_point_limit_scene_qrcode_url(scene): if not scene: return '' JSAPI = settings.WECHAT.get('JSAPI', {}) appid = JSAPI.get('appID', '') appsecret = JSAPI.get('appsecret', '') if not appid: return '' qrurl = qrcode_limit_str_scene(scene_str=scene, appid=appid, secret=appsecret, storage=RedisStorage(r), qrurl=True, useurl=True) return qrurl