Commit b2766fea authored by maxiaoliang's avatar maxiaoliang

个人中心添加申请代理

parent f5ac4279
......@@ -104,12 +104,18 @@
android:name="org.apache.http.legacy"
android:required="false" />
<meta-data
android:name="design_width_in_dp"
android:value="420"/>
<meta-data
android:name="design_height_in_dp"
android:value="740"/>
<!-- <meta-data-->
<!-- android:name="design_width_in_dp"-->
<!-- android:value="420"/>-->
<!-- <meta-data-->
<!-- android:name="design_height_in_dp"-->
<!-- android:value="740"/>-->
<!-- <meta-data-->
<!-- android:name="design_width_in_dp"-->
<!-- android:value="360"/>-->
<!-- <meta-data-->
<!-- android:name="design_height_in_dp"-->
<!-- android:value="640"/>-->
</application>
</manifest>
\ No newline at end of file
......@@ -80,7 +80,9 @@ class UserCenterFragment : BaseFragment(), AdCallback<String> {
id_ll_zaixiankefu?.setOnClickListener {
JumpUtils.UserQuestion()
}
id_tv_daili?.setOnClickListener {
DialogUtils.showDaili(mActivity)
}
}
private fun showIntriAd() {
......
......@@ -696,4 +696,24 @@ object DialogUtils {
})
visToInvis?.start()
}
fun showDaili(context: Activity?) {
if (context == null) return
val mDialog = Dialog(context, R.style.CenterCompatDialogTheme)
val mDialogView =
showBottomDialog(
R.layout.dialog_layout_daili,
context,
mDialog,
0,
Gravity.CENTER
)
mDialogView.findViewById<ImageView>(R.id.id_img_i_know).setOnClickListener {
mDialog.dismiss()
}
mDialog.setCanceledOnTouchOutside(false)
mDialog.setCancelable(false)
mDialog.show()
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:background="@drawable/shape_ffffff_r10"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:layout_marginRight="10dp"
android:gravity="center"
android:text="@string/text_agent"
android:textColor="@color/color_333333"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="20dp"
android:gravity="center"
android:text="@string/text_agent_desc"
android:textColor="@color/color_f7403b"
android:textSize="14sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/id_img_i_know"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:src="@drawable/button_wozhidaol" />
</LinearLayout>
</LinearLayout>
......@@ -221,6 +221,7 @@
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:visibility="gone"
android:background="@drawable/shape_ffffff_r10_s"
android:orientation="horizontal">
......@@ -569,6 +570,18 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/id_tv_daili"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:textColor="@color/color_333333"
android:background="@color/white"
android:textSize="14sp"
android:gravity="center"
android:text="申请成为代理"/>
<RelativeLayout
android:id="@+id/id_fragment_user_ad_layout"
android:layout_width="match_parent"
......
......@@ -26,5 +26,7 @@
<!-- <string name="user_answer_5"><Data><![CDATA[如需退款,可直接点击链接进行自助退款,退款链接:<font color="#03A9F4">http://h5.zxhuichuan.com/xiaoxiang_refund</font>(最快10分钟-72小时)]]></Data></string>-->
<string name="user_answer_5">如权益未到账 可退款,填写自助退款链接后,会在72小时内操作到账(工作日),如已产生用户id 权益已到账,不支持退款。</string>
<string name="user_answer_6">TEL:4000033616</string>
<string name="text_agent">如有意向申请成为代理,可发邮件至dingyuping@zhangxinhulian.com</string>
<string name="text_agent_desc">注:需邮件正文中写明微信号及电话号,方便商务进行联系沟通。</string>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment