123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>搜索-总机具-产品中心-创业帮</title>
- <meta name="keywords" content="搜索-总机具-产品中心-创业帮">
- <meta name="description" content="搜索-总机具-产品中心-创业帮">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="搜索-总机具-产品中心-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="bgc-back h100p ovh">
- <div id="app" v-cloak>
- <div class="bgcfff abs top0" ref="wrapper1" style="width:100%;"></div>
- <div class="search-box">
- <van-search v-model="value" show-action placeholder="请输入商户编号/手机号/SN号/姓名" @search="onsearch">
- <template #action><span class="vm pl16 pr16 personaldetailsearch" @click="onsearch">搜索</span></template>
- <template #left>
- <van-icon class="personaldetailback" name="arrow-left" @click="goback"> </van-icon>
- </template>
- </van-search>
- </div>
- <van-row v-cloak>
- <van-col span="24">
- <div class="ovh-x" ref="wrapper2">
- <van-cell-group class="top_line">
- <van-cell class="personaldetailcell" :border="false" v-for="item in transactions" @click="gomerchantdetail(item.Id)" :key="item.Id" :value="transactions.KqRegTime" value-class="f12 c333">
- <template #title>
- <div class="f14 c333"><span class="vm"> {{item.MerchantName}}</span></div>
- <div class="personaldetailleft"><span class="brand mr12" v-if="item.BrandId !== ''">{{item.BrandId}}</span><span class="actType" v-if="item.ActType !== ''">{{item.ActType}}</span></div>
- </template>
- <template #default>
- <div class="df personaldetailright">
- <div class="f14 c333 mr12"> <span class="vm"> {{item.ActiveStatus}}</span>
- <div class="c999 time">{{item.MerStandardDate}}</div>
- </div>
- <van-icon name="arrow" color="#999"> </van-icon>
- </div>
- </template>
- </van-cell>
- </van-cell-group>
- </div>
- </van-col>
- </van-row>
- </div>
- <script src="./static/js/clipboard.min.js"></script>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
- PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- transactions: {
- },
- value: '',
- pageinfo:{
- PageSize:100,
- PageNum:1
- }
- };
- },
- mounted() {
- this.$nextTick(() => {
- const that = this;
- if(that.type === 'ios'){
- that.$refs.wrapper2.style.height = `${document.documentElement.clientHeight - 90}px`;
- }else{
- that.$refs.wrapper2.style.height = `${document.documentElement.clientHeight - (90 + Func.getStatusBarHeight())}px`;
- };
- that.$refs.wrapper1.style.height = `${Func.getStatusBarHeight()}px`;
- });
- },
- methods: {
- onsearch(){
- this.searchfn();
- },
- goback() {
- PublicLib.GoBack({Level:1});
- },
- async searchfn(){
- //- PublicLib.ShowLoading({Message:''});
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/merchantinfo/actmerchantsearch?t='+Math.random(6),JSON.stringify({...this.pageinfo,UserId,SearchKey:this.value}));
- if(res.status !== '1')return tips('商户明细获取失败!');
- //- PublicLib.HideLoading();
- this.transactions = res.data;
- },
- gomerchantdetail(id){
- PublicLib.putCookieInfo('merchantId', id);
- PublicLib.Goto({Url:'merchant-detail'});
- }
- }
- });
- </script>
- </body>
- </html>
|