123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>我的</title>
- <link rel="stylesheet" href="../css/main.css" />
- <link rel="stylesheet" href="../font/iconfont.css" />
- <link rel="stylesheet" href="../css/head.css">
- <script src="../js/flexible.js"></script>
- <script src="../js/api.js"></script>
- <script src="../js/checkLanguage.js"></script>
- </head>
- <body>
- <div >
- <div class="my-bg ub ub-ac plr25">
- <div class="ub-f1 ub ub-ac" id="upUserInfo">
- <div class="dx-boyhead mr20"><img src="../images/dx-boyhead.png" alt=""></div>
- <div class="ub-f1 fz30 c81">
- <p class="fz30 c3d" id="uName"></p>
- <div class="ub ub-ac pt10 dsib" id="datum">
- <p class="fz24 c81 word-break mr10 dsib" id="company"></p>
- <span class="true-icon remind3" id="auth"></span>
- </div>
- </div>
- </div>
- </div>
- <div class="ub bb ub-ac plr25 ptb10 bgff">
- <i class="dx-my-icon dx-icon-love"></i>
- <p class="fz30 c3d ml10 list1"></p>
- </div>
- <ul class="service-list bgff bb fnList">
- <li class="ub ub-ac">
- <a href="javascript:;" class="ub ub-ac ub-ver ub-f1 ptb20 hid">
- <i class="icon-list dx-icon-shop"></i>
- <span class="fz22 list2"></span>
- </a>
- <a href="javascript:;" class="ub ub-ac ub-ver ub-f1 ptb20">
- <i class="icon-list dx-icon-route"></i>
- <span class="fz22 list3"></span>
- </a>
- <a href="javascript:;" class="ub ub-ac ub-ver ub-f1 ptb20">
- <i class="icon-list dx-icon-business"></i>
- <span class="fz22 list4"></span>
- </a>
- <a href="javascript:;" class="ub ub-ac ub-ver ub-f1 ptb20">
- <i class="icon-list dx-icon-panter"></i>
- <span class="fz22 list5"></span>
- </a>
- </li>
- </ul>
- <ul class="mt20 navList">
- <li>
- <a href="javascript:;" class="ub bb ub-ac plr25 ptb20 bgff">
- <i class="dx-my-icon dx-icon-order"></i>
- <b class="fz30 c3d ml10 ub-f1 list6"></b>
- <i class="iconfont icon-jiantou cbc"></i>
- </a>
- </li>
- <li>
- <a href="javascript:;" class="ub bb ub-ac plr25 ptb20 bgff">
- <i class="dx-my-icon dx-icon-price"></i>
- <b class="fz30 c3d ml10 ub-f1 list7"></b>
- <i class="iconfont icon-jiantou cbc"></i>
- </a>
- </li>
- <li>
- <a href="javascript:;" class="ub bb ub-ac plr25 ptb20 bgff">
- <i class="dx-my-icon dx-icon-shopmanger"></i>
- <b class="fz30 c3d ml10 ub-f1 list8"></b>
- <i class="iconfont icon-jiantou cbc"></i>
- </a>
- </li>
- <li>
- <a href="javascript:;" class="ub bb ub-ac plr25 ptb20 bgff">
- <i class="dx-my-icon dx-icon-money"></i>
- <b class="fz30 c3d ml10 ub-f1 list9"></b>
- <i class="iconfont icon-jiantou cbc"></i>
- </a>
- </li>
- <li>
- <a href="javascript:;" class="ub bb ub-ac plr25 ptb20 bgff">
- <i class="dx-my-icon dx-icon-setting"></i>
- <b class="fz30 c3d ml10 ub-f1 list10"></b>
- <i class="iconfont icon-jiantou cbc"></i>
- </a>
- </li>
- <!--<li>-->
- <!--<a href="javascript:;" class="ub bb ub-ac plr25 ptb20 bgff">-->
- <!--<i class="dx-my-icon dx-icon-pay"></i>-->
- <!--<b class="fz30 c3d ml10 ub-f1">申请付费服务</b>-->
- <!--<i class="iconfont icon-jiantou cbc"></i>-->
- <!--</a>-->
- <!--</li>-->
- </ul>
- <ul class="mt20 un-fnList">
- <li>
- <a href="javascript:;" class="ub bb ub-ac plr25 ptb20 bgff">
- <i class="dx-my-icon dx-icon-loan"></i>
- <b class="fz30 c3d ml10 ub-f1 list11"></b>
- </a>
- </li>
- </ul>
- </div>
- <script type="text/javascript">
- try {
- var text=languages.myPage;
- $api.dom(".list1").innerText=text.list1;
- $api.dom(".list2").innerText=text.list2;
- $api.dom(".list3").innerText=text.list3;
- $api.dom(".list4").innerText=text.list4;
- $api.dom(".list5").innerText=text.list5;
- $api.dom(".list6").innerText=text.list6;
- $api.dom(".list7").innerText=text.list7;
- $api.dom(".list8").innerText=text.list8;
- $api.dom(".list9").innerText=text.list9;
- $api.dom(".list10").innerText=text.list10;
- $api.dom(".list11").innerText=text.list11;
- $api.dom(".remind3").innerText=text.remind3;
- }catch (e){
- alert(languages.all.list5)
- }
- </script>
- <script src="../js/publicData.js"></script>
- <script>
- var companyLen=0;
- apiready=function () {
- var fnList= $api.dom(".fnList"),
- upUserInfo= $api.dom( "#upUserInfo"),
- unFnList= $api.dom(".un-fnList"),
- navList= $api.dom( ".navList"),
- datum= $api.dom( "#datum"),
- fnLi=$api.domAll(fnList,"a"),
- unFnLi=$api.domAll(unFnList,"li"),
- navLi=$api.domAll(navList,"li");
- var navArr=["orderPage","issuePage","myShop","myBalance","accountSettings","paidService","unMyShop"];
- var fnArr=["unMyShop","paidService","myShop"];
- isOpened();
- updateInfo();
- datum.onclick=function (e) {
- e.stopPropagation();
- if(companyLen){
- api.openWin({
- name: 'enterpriseData',
- url: 'enterpriseData.html',
- pageParam: {name: 'pageparamname'}
- });
- }else {
- api.openWin({
- name: 'informationed1',
- url: 'informationed1.html',
- reload:true,
- pageParam: {name: 'pageparamname'}
- });
- }
- }
- upUserInfo.onclick=function () {
- api.openWin({
- name: 'userData',
- url: 'userData.html',
- pageParam: {name: 'pageparamname'}
- });
- }
- for(var fnNum=0,fnLen=fnLi.length;fnNum<fnLen;fnNum++){
- !function (i) {
- fnLi[i].onclick=function () {
- if(i>=1){
- try {
- api.execScript({
- name: 'paidService',
- script: 'toServiceFrame('+(i-1)+');'
- });
- }catch (e){}
- api.openWin({
- name: fnArr[1],
- url: fnArr[1]+'.html',
- pageParam: {index: (i-1)}
- });
- api.sendEvent({
- name: 'isOpened',
- extra: {key1: 'value'}
- });
- }else {
- if($api.getStorage("serviceStatus")["shop"]=="1"){
- api.openWin({
- name: fnArr[2],
- url: fnArr[2]+'.html',
- pageParam: {index: 2}
- });
- }else {
- api.openWin({
- name: fnArr[0],
- url: fnArr[0]+'.html',
- pageParam: {index: 0}
- });
- }
- }
- }
- }(fnNum)
- }
- for(var unFnNum=0,unFnLen=unFnLi.length;unFnNum<unFnLen;unFnNum++){
- !function (i) {
- unFnLi[i].onclick=function () {
- api.toast({
- msg: '开发中',
- duration: 2000,
- location: 'bottom'
- });
- }
- }(unFnNum)
- }
- for(var navNum=0,navLen=navLi.length;navNum<navLen;navNum++){
- !function (i) {
- navLi[i].onclick=function () {
- if(i==0){
- var jsfun1 = 'toFrame(0);';
- api.execScript({
- name: 'root',
- script: jsfun1
- });
- }else if(i==1){
- var jsfun2 = 'toFrame(1);';
- api.execScript({
- name: 'root',
- script: jsfun2
- });
- }else {
- if(i==5){
- try {
- api.execScript({
- name: 'paidService',
- script: 'toServiceFrame(0);'
- });
- }catch (e){}
- api.sendEvent({
- name: 'isOpened',
- extra: {key1: 'value'}
- });
- }
- if(i==2){
- // if($api.getStorage("serviceStatus")["shop"]=="1"){
- api.openWin({
- name: navArr[2],
- url: navArr[2]+'.html',
- pageParam: {index: 2}
- });
- // }else {
- // api.openWin({
- // name: navArr[6],
- // url: navArr[6]+'.html',
- // pageParam: {index: 2}
- // });
- // }
- }else {
- api.openWin({
- name: navArr[i],
- url: navArr[i]+'.html',
- pageParam: {index: 0}
- });
- }
- }
- }
- }(navNum)
- }
- api.addEventListener({
- name:'isOpened'
- }, function(ret, err){
- isOpened()
- });
- api.addEventListener({
- name: 'updateInfo'
- }, function (ret, err) {
- updateInfo();
- });
- }
- function isOpened() {
- var shopIcon= $api.dom( ".dx-icon-shop"),
- routeIcon= $api.dom( ".dx-icon-route"),
- businessIcon= $api.dom( ".dx-icon-business"),
- panterIcon= $api.dom( ".dx-icon-panter");
- var status=$api.getStorage('serviceStatus');
- var serviceList=[{"name":"shop","ele":shopIcon},{"name":"recommend","ele":routeIcon},{"name":"assurance","ele":businessIcon},{"name":"partner","ele":panterIcon}];
- for(var i=0;i<serviceList.length;i++){
- if(status[serviceList[i]['name']]=="1"){
- serviceList[i]["ele"].style.backgroundPosition="center bottom";
- }else {
- serviceList[i]["ele"].style.backgroundPosition="0 0";
- }
- }
- }
- function updateInfo() {
- var authentication= $api.dom("#auth"),company= $api.dom( "#company"),uName= $api.dom( "#uName"),dx_boyhead= $api.dom(".dx-boyhead");
- var userInfo=$api.getStorage("user"),bl=false;
- if(userInfo['user_singel']&&userInfo['user_singel']['headimage']) {
- dx_boyhead.getElementsByTagName('img')[0].setAttribute("src",pageImg+userInfo['user_singel']['headimage']);
- }else {
- dx_boyhead.getElementsByTagName('img')[0].setAttribute("src","../images/dx-boyhead.png");
- }
- if(userInfo['user_singel']&&userInfo['user_singel']['nikename']){
- uName.innerText=userInfo['user_singel']['nikename'];
- }else {
- uName.innerText=languages.myPage.remind1;
- }
- if(userInfo['company']&&userInfo['company'].length){
- companyLen=userInfo['company'].length;
- for(var i in userInfo['company']){
- if(bl) continue;
- if(userInfo['company'][i]['isVerify']==1){
- authentication.className="false-icon";
- authentication.innerText=languages.myPage.remind2;
- company.innerText=userInfo['company'][i]['companyName'];
- bl=true;
- }else {
- authentication.className="true-icon";
- authentication.innerText=languages.myPage.remind3;
- company.innerText=userInfo['company'][i]['companyName'];
- }
- }
- }else {
- companyLen=0;
- authentication.className="true-icon";
- company.innerText=languages.myPage.remind4;
- authentication.innerText=languages.myPage.remind3;
- }
- isOpened();
- }
- </script>
- </body>
- </html>
|