Forráskód Böngészése

改为域名请求

WangYiHan 11 hónapja
szülő
commit
0e3e6b05c3

+ 1 - 1
components/Authorize.vue

@@ -6,7 +6,7 @@
 		   <view class='tip'>请授权头像等信息,以便为您提供更好的服务</view>
 		   <view class='bottom flex'>
 		      <view class='item' @click='close'>随便逛逛</view>
-			  <!-- #ifdef APP-PLUS -->
+			  <!-- #ifdef APP-PLUS || H5 -->
 			  <button class='item grant' @click="setUserInfo">去授权</button>
 			  <!-- #endif -->
 			  <!-- #ifdef MP -->

+ 1 - 1
manifest.json

@@ -70,7 +70,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wx63c280fe3248a3e7",
+        "appid" : "wx87f1be9a4a46737c",
         "setting" : {
             "urlCheck" : true,
             "minified" : true,

+ 2 - 2
pages/equ_list/add_equ.vue

@@ -38,12 +38,12 @@
 			</van-tab>
 		</van-tabs>
 		<!-- #endif -->
-		<!-- #ifdef APP-PLUS -->
+		<!-- #ifdef APP-PLUS || H5 -->
 		<!-- 	<view class="" style="margin-top: var(--status-bar-height);">
 			<uni-nav-bar title="添加设备" left-icon="left" backgroundColor="#F35546" color="#fff" @clickLeft="back"></uni-nav-bar>
 		</view> -->
 		<!-- #endif -->
-		<!-- #ifdef APP-PLUS -->
+		<!-- #ifdef APP-PLUS || H5 -->
 		<!-- 状态栏占位 -->
 		<view class="status_bar"></view>
 		<view class="" style="margin-top: var(--status-bar-height);">

+ 1 - 1
pages/equ_list/bind.vue

@@ -1,7 +1,7 @@
 <template>
 
 	<view class="page">
-		<!-- #ifdef APP-PLUS -->
+		<!-- #ifdef APP-PLUS || H5 -->
 		<!-- 状态栏占位 -->
 		<view class="status_bar"></view>
 		<view class="" style="margin-top: var(--status-bar-height);">

+ 1 - 1
pages/equ_list/choose.vue

@@ -16,7 +16,7 @@
 			<van-field class="chageName" :value="nameValue" :focus="true" placeholder="请输入"
 				@change="nameValue = $event.detail" />
 		</van-dialog>
-		<!-- #ifdef APP-PLUS -->
+		<!-- #ifdef APP-PLUS || H5 -->
 		<u-modal :show="showDialog" :title-style="{color: 'red'}" title="自定义" show-cancel-button="true" @cancel="showDialog=false" @confirm="confirm">
 			<u-input v-model="nameValue"  placeholder="请输入"/>
 		</u-modal>

+ 1 - 1
pages/equ_list/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<view >
-			<!-- #ifdef APP-PLUS -->
+			<!-- #ifdef APP-PLUS || H5 -->
 			<!-- 状态栏占位 -->
 			<view class="status_bar"></view>
 			<view class="" style="margin-top: var(--status-bar-height);">

+ 2 - 2
pages/goods_cate/goods_cate.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class='productSort'>
-		<!-- #ifdef APP-PLUS -->
+		<!-- #ifdef APP-PLUS || H5 -->
 		<!-- 状态栏占位 -->
 		<view class="status_bar"></view>
 		<!-- #endif -->
@@ -10,7 +10,7 @@
 				<!-- #ifdef MP -->
 				<text class='iconfont icon-sousuo'></text>
 				<!-- #endif -->
-				<!-- #ifdef APP-PLUS -->
+				<!-- #ifdef APP-PLUS || H5 -->
 				<u-icon name="search"></u-icon>
 				<!-- #endif -->
 				<input type='text' placeholder='点击搜索商品信息' @confirm="searchSubmitValue" confirm-type='search'

+ 1 - 1
pages/goods_list/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<view class='productList'>
-			<!-- #ifdef APP-PLUS -->
+			<!-- #ifdef APP-PLUS || H5 -->
 			<!-- 状态栏占位 -->
 			<view class="status_bar"></view>
 			<view class="" style="margin-top: var(--status-bar-height);">

+ 1 - 1
pages/user/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="new-users copy-data">
-		<!-- #ifdef APP-PLUS -->
+		<!-- #ifdef APP-PLUS || H5 -->
 		<view class="" style="margin-top: var(--status-bar-height);">
 			<uni-nav-bar title="个人中心" backgroundColor="#E93323" color="#fff"></uni-nav-bar>
 		</view>

+ 1 - 1
project.config.json

@@ -1,5 +1,5 @@
 {
-  "appid": "wx63c280fe3248a3e7",
+  "appid": "wx87f1be9a4a46737c",
   "compileType": "miniprogram",
   "libVersion": "3.4.9",
   "packOptions": {

+ 7 - 2
utils/request.js

@@ -76,11 +76,14 @@ function baseRequest(url, method, data, {
       // url: url.indexOf('app-api') < 0 ? Url + '/api/front/' + url:(isUseSleep ? sleepUrl+url: baseUrl + url), // TODO 芋艿:搞个 url 的配置
 		// url: isUseSleep ?sleepUrl+url:(url.indexOf('app-api') < 0 ? Url + '/api/front/' + url : baseUrl + url),
 		url: url.indexOf('app-api') < 0 ? Url + '/api/front/' + url
-		:'http://192.168.110.185:48060/'+url,
+		// :'http://192.168.110.185:48060/'+url,
+		:'https://5y413b7433.yicp.fun/'+url,
       method: method || 'GET',
 			header: header,
 			data: data || {},
 			success: (res) => {
+				console.log(url=url.indexOf('app-api') < 0 ? Url + '/api/front/' + url
+				:'http://192.168.110.185:48060/'+url,'成功接口')
 				console.log(res,'我接口请求成功了')
 				if (noVerify)
 					reslove(res.data, res);
@@ -93,7 +96,9 @@ function baseRequest(url, method, data, {
 					reject(res.data.msg || res.data.message || '系统错误');
 			},
 			fail: (msg) => {
-				console.log(msg,'我接口失败了')
+				console.log(url=url.indexOf('app-api') < 0 ? Url + '/api/front/' + url
+		:'http://192.168.110.185:48060/'+url,'失败接口')
+				console.log(msg,'我是失败接口')
 				reject('请求失败');
 			}
 		})

+ 0 - 1
wxcomponents/vant/dist/goods-action-icon/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 27
wxcomponents/vant/dist/goods-action-icon/index.js

@@ -1,27 +0,0 @@
-import { VantComponent } from '../common/component';
-import { button } from '../mixins/button';
-import { link } from '../mixins/link';
-VantComponent({
-    classes: ['icon-class', 'text-class', 'info-class'],
-    mixins: [link, button],
-    props: {
-        text: String,
-        dot: Boolean,
-        info: String,
-        icon: String,
-        size: String,
-        color: String,
-        classPrefix: {
-            type: String,
-            value: 'van-icon',
-        },
-        disabled: Boolean,
-        loading: Boolean,
-    },
-    methods: {
-        onClick(event) {
-            this.$emit('click', event.detail);
-            this.jumpLink();
-        },
-    },
-});

+ 0 - 7
wxcomponents/vant/dist/goods-action-icon/index.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-icon": "../icon/index",
-    "van-button": "../button/index"
-  }
-}

+ 0 - 48
wxcomponents/vant/dist/goods-action-icon/index.vue

@@ -1,48 +0,0 @@
-<template>
-<uni-shadow-root class="vant-dist-goods-action-icon-index"><van-button square :id="id" size="large" :lang="lang" :loading="loading" :disabled="disabled" :open-type="openType" :business-id="businessId" custom-class="van-goods-action-icon" :session-from="sessionFrom" :app-parameter="appParameter" :send-message-img="sendMessageImg" :send-message-path="sendMessagePath" :show-message-card="showMessageCard" :send-message-title="sendMessageTitle" @click="onClick" @error="onError" @contact="onContact" @opensetting="onOpenSetting" @getuserinfo="onGetUserInfo" @getphonenumber="onGetPhoneNumber" @launchapp="onLaunchApp">
-  <van-icon v-if="icon" :name="icon" :dot="dot" :info="info" :size="size" :color="color" :class-prefix="classPrefix" class="van-goods-action-icon__icon" custom-class="icon-class" info-class="info-class"></van-icon>
-  <view v-else>
-    <slot name="icon"></slot>
-  </view>
-  <text class="text-class">{{ text }}</text>
-</van-button></uni-shadow-root>
-</template>
-
-<script>
-import VanIcon from '../icon/index.vue'
-import VanButton from '../button/index.vue'
-global['__wxVueOptions'] = {components:{'van-icon': VanIcon,'van-button': VanButton}}
-
-global['__wxRoute'] = 'vant/dist/goods-action-icon/index'
-import { VantComponent } from '../common/component';
-import { button } from '../mixins/button';
-import { link } from '../mixins/link';
-VantComponent({
-    classes: ['icon-class', 'text-class', 'info-class'],
-    mixins: [link, button],
-    props: {
-        text: String,
-        dot: Boolean,
-        info: String,
-        icon: String,
-        size: String,
-        color: String,
-        classPrefix: {
-            type: String,
-            value: 'van-icon',
-        },
-        disabled: Boolean,
-        loading: Boolean,
-    },
-    methods: {
-        onClick(event) {
-            this.$emit('click', event.detail);
-            this.jumpLink();
-        },
-    },
-});
-export default global['__wxComponents']['vant/dist/goods-action-icon/index']
-</script>
-<style platform="mp-weixin">
-@import '../common/index.css';.van-goods-action-icon{border:none!important;color:var(--goods-action-icon-text-color,#646566)!important;display:flex!important;flex-direction:column;font-size:var(--goods-action-icon-font-size,10px)!important;height:var(--goods-action-icon-height,50px)!important;justify-content:center!important;line-height:1!important;min-width:var(--goods-action-icon-width,48px)}.van-goods-action-icon__icon{color:var(--goods-action-icon-color,#323233);display:flex;font-size:var(--goods-action-icon-size,18px);margin:0 auto 5px}
-</style>

+ 0 - 41
wxcomponents/vant/dist/goods-action-icon/index.wxml

@@ -1,41 +0,0 @@
-<van-button
-  square
-  id="{{ id }}"
-  size="large"
-  lang="{{ lang }}"
-  loading="{{ loading }}"
-  disabled="{{ disabled }}"
-  open-type="{{ openType }}"
-  business-id="{{ businessId }}"
-  custom-class="van-goods-action-icon"
-  session-from="{{ sessionFrom }}"
-  app-parameter="{{ appParameter }}"
-  send-message-img="{{ sendMessageImg }}"
-  send-message-path="{{ sendMessagePath }}"
-  show-message-card="{{ showMessageCard }}"
-  send-message-title="{{ sendMessageTitle }}"
-  bind:click="onClick"
-  binderror="onError"
-  bindcontact="onContact"
-  bindopensetting="onOpenSetting"
-  bindgetuserinfo="onGetUserInfo"
-  bindgetphonenumber="onGetPhoneNumber"
-  bindlaunchapp="onLaunchApp"
->
-  <van-icon
-    wx:if="{{ icon }}"
-    name="{{ icon }}"
-    dot="{{ dot }}"
-    info="{{ info }}"
-    size="{{ size }}"
-    color="{{ color }}"
-    class-prefix="{{ classPrefix }}"
-    class="van-goods-action-icon__icon"
-    custom-class="icon-class"
-    info-class="info-class"
-  />
-  <view wx:else>
-    <slot name="icon" />
-  </view>
-  <text class="text-class">{{ text }}</text>
-</van-button>

+ 0 - 1
wxcomponents/vant/dist/goods-action-icon/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-goods-action-icon{border:none!important;color:var(--goods-action-icon-text-color,#646566)!important;display:flex!important;flex-direction:column;font-size:var(--goods-action-icon-font-size,10px)!important;height:var(--goods-action-icon-height,50px)!important;justify-content:center!important;line-height:1!important;min-width:var(--goods-action-icon-width,48px)}.van-goods-action-icon__icon{color:var(--goods-action-icon-color,#323233);display:flex;font-size:var(--goods-action-icon-size,18px);margin:0 auto 5px}

+ 0 - 1
wxcomponents/vant/dist/grid-item/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 52
wxcomponents/vant/dist/grid-item/index.js

@@ -1,52 +0,0 @@
-import { VantComponent } from '../common/component';
-import { useParent } from '../common/relation';
-import { link } from '../mixins/link';
-VantComponent({
-    relation: useParent('grid'),
-    classes: ['content-class', 'icon-class', 'text-class'],
-    mixins: [link],
-    props: {
-        icon: String,
-        iconColor: String,
-        iconPrefix: {
-            type: String,
-            value: 'van-icon',
-        },
-        dot: Boolean,
-        info: null,
-        badge: null,
-        text: String,
-        useSlot: Boolean,
-    },
-    data: {
-        viewStyle: '',
-    },
-    mounted() {
-        this.updateStyle();
-    },
-    methods: {
-        updateStyle() {
-            if (!this.parent) {
-                return;
-            }
-            const { data, children } = this.parent;
-            const { columnNum, border, square, gutter, clickable, center, direction, reverse, iconSize, } = data;
-            this.setData({
-                center,
-                border,
-                square,
-                gutter,
-                clickable,
-                direction,
-                reverse,
-                iconSize,
-                index: children.indexOf(this),
-                columnNum,
-            });
-        },
-        onClick() {
-            this.$emit('click');
-            this.jumpLink();
-        },
-    },
-});

+ 0 - 6
wxcomponents/vant/dist/grid-item/index.json

@@ -1,6 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-icon": "../icon/index"
-  }
-}

+ 0 - 82
wxcomponents/vant/dist/grid-item/index.vue

@@ -1,82 +0,0 @@
-<template>
-<uni-shadow-root class="vant-dist-grid-item-index"><view :class="'custom-class '+(utils.bem('grid-item', { square }))" :style="computed.wrapperStyle({ square, gutter, columnNum, index })" @click="onClick">
-  <view :class="'content-class '+(utils.bem('grid-item__content', [direction, { center, square, reverse, clickable, surround: border && gutter }]))+' '+(border ? 'van-hairline--surround' : '')" :style="computed.contentStyle({ square, gutter })">
-    <block v-if="useSlot">
-      <slot></slot>
-    </block>
-    <block v-else>
-      <view class="van-grid-item__icon icon-class">
-        <van-icon v-if="icon" :name="icon" :color="iconColor" :class-prefix="iconPrefix" :dot="dot" :info="badge || info" :size="iconSize"></van-icon>
-        <slot v-else name="icon"></slot>
-      </view>
-      <view class="van-grid-item__text text-class">
-        <text v-if="text">{{ text }}</text>
-        <slot v-else name="text"></slot>
-      </view>
-    </block>
-  </view>
-</view></uni-shadow-root>
-</template>
-<wxs src="../wxs/utils.wxs" module="utils"></wxs><wxs src="./index.wxs" module="computed"></wxs>
-<script>
-import VanIcon from '../icon/index.vue'
-global['__wxVueOptions'] = {components:{'van-icon': VanIcon}}
-
-global['__wxRoute'] = 'vant/dist/grid-item/index'
-import { VantComponent } from '../common/component';
-import { useParent } from '../common/relation';
-import { link } from '../mixins/link';
-VantComponent({
-    relation: useParent('grid'),
-    classes: ['content-class', 'icon-class', 'text-class'],
-    mixins: [link],
-    props: {
-        icon: String,
-        iconColor: String,
-        iconPrefix: {
-            type: String,
-            value: 'van-icon',
-        },
-        dot: Boolean,
-        info: null,
-        badge: null,
-        text: String,
-        useSlot: Boolean,
-    },
-    data: {
-        viewStyle: '',
-    },
-    mounted() {
-        this.updateStyle();
-    },
-    methods: {
-        updateStyle() {
-            if (!this.parent) {
-                return;
-            }
-            const { data, children } = this.parent;
-            const { columnNum, border, square, gutter, clickable, center, direction, reverse, iconSize, } = data;
-            this.setData({
-                center,
-                border,
-                square,
-                gutter,
-                clickable,
-                direction,
-                reverse,
-                iconSize,
-                index: children.indexOf(this),
-                columnNum,
-            });
-        },
-        onClick() {
-            this.$emit('click');
-            this.jumpLink();
-        },
-    },
-});
-export default global['__wxComponents']['vant/dist/grid-item/index']
-</script>
-<style platform="mp-weixin">
-@import '../common/index.css';.van-grid-item{box-sizing:border-box;float:left;position:relative}.van-grid-item--square{height:0}.van-grid-item__content{background-color:var(--grid-item-content-background-color,#fff);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:var(--grid-item-content-padding,16px 8px)}.van-grid-item__content:after{border-width:0 1px 1px 0;z-index:1}.van-grid-item__content--surround:after{border-width:1px}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--square{left:0;position:absolute;right:0;top:0}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 8px}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 8px}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 8px 0 0}.van-grid-item__content--clickable:active{background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{align-items:center;display:flex;font-size:var(--grid-item-icon-size,26px);height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:var(--grid-item-text-color,#646566);font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
-</style>

+ 0 - 27
wxcomponents/vant/dist/grid-item/index.wxml

@@ -1,27 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-<wxs src="./index.wxs" module="computed" />
-
-<view
-  class="custom-class {{ utils.bem('grid-item', { square }) }}"
-  style="{{ computed.wrapperStyle({ square, gutter, columnNum, index }) }}"
-  bindtap="onClick"
->
-  <view
-    class="content-class {{ utils.bem('grid-item__content', [direction, { center, square, reverse, clickable, surround: border && gutter }]) }} {{ border ? 'van-hairline--surround' : '' }}"
-    style="{{ computed.contentStyle({ square, gutter }) }}"
-  >
-    <block wx:if="{{ useSlot }}">
-      <slot />
-    </block>
-    <block wx:else>
-      <view class="van-grid-item__icon icon-class">
-        <van-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ iconColor }}" class-prefix="{{ iconPrefix }}" dot="{{ dot }}" info="{{ badge || info }}" size="{{ iconSize }}" />
-        <slot wx:else name="icon"></slot>
-      </view>
-      <view class="van-grid-item__text text-class">
-        <text wx:if="{{ text }}">{{ text }}</text>
-        <slot wx:else name="text"></slot>
-      </view>
-    </block>
-  </view>
-</view>

+ 0 - 32
wxcomponents/vant/dist/grid-item/index.wxs

@@ -1,32 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function wrapperStyle(data) {
-  var width = 100 / data.columnNum + '%';
-
-  return style({
-    width: width,
-    'padding-top': data.square ? width : null,
-    'padding-right': addUnit(data.gutter),
-    'margin-top':
-      data.index >= data.columnNum && !data.square
-        ? addUnit(data.gutter)
-        : null,
-  });
-}
-
-function contentStyle(data) {
-  return data.square
-    ? style({
-        right: addUnit(data.gutter),
-        bottom: addUnit(data.gutter),
-        height: 'auto',
-      })
-    : '';
-}
-
-module.exports = {
-  wrapperStyle: wrapperStyle,
-  contentStyle: contentStyle,
-};

+ 0 - 1
wxcomponents/vant/dist/grid-item/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid-item{box-sizing:border-box;float:left;position:relative}.van-grid-item--square{height:0}.van-grid-item__content{background-color:var(--grid-item-content-background-color,#fff);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:var(--grid-item-content-padding,16px 8px)}.van-grid-item__content:after{border-width:0 1px 1px 0;z-index:1}.van-grid-item__content--surround:after{border-width:1px}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--square{left:0;position:absolute;right:0;top:0}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 8px}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 8px}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 8px 0 0}.van-grid-item__content--clickable:active{background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{align-items:center;display:flex;font-size:var(--grid-item-icon-size,26px);height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:var(--grid-item-text-color,#646566);font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}

+ 0 - 1
wxcomponents/vant/dist/grid/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 55
wxcomponents/vant/dist/grid/index.js

@@ -1,55 +0,0 @@
-import { VantComponent } from '../common/component';
-import { useChildren } from '../common/relation';
-VantComponent({
-    relation: useChildren('grid-item'),
-    props: {
-        square: {
-            type: Boolean,
-            observer: 'updateChildren',
-        },
-        gutter: {
-            type: null,
-            value: 0,
-            observer: 'updateChildren',
-        },
-        clickable: {
-            type: Boolean,
-            observer: 'updateChildren',
-        },
-        columnNum: {
-            type: Number,
-            value: 4,
-            observer: 'updateChildren',
-        },
-        center: {
-            type: Boolean,
-            value: true,
-            observer: 'updateChildren',
-        },
-        border: {
-            type: Boolean,
-            value: true,
-            observer: 'updateChildren',
-        },
-        direction: {
-            type: String,
-            observer: 'updateChildren',
-        },
-        iconSize: {
-            type: String,
-            observer: 'updateChildren',
-        },
-        reverse: {
-            type: Boolean,
-            value: false,
-            observer: 'updateChildren',
-        },
-    },
-    methods: {
-        updateChildren() {
-            this.children.forEach((child) => {
-                child.updateStyle();
-            });
-        },
-    },
-});

+ 0 - 3
wxcomponents/vant/dist/grid/index.json

@@ -1,3 +0,0 @@
-{
-  "component": true
-}

+ 0 - 69
wxcomponents/vant/dist/grid/index.vue

@@ -1,69 +0,0 @@
-<template>
-<uni-shadow-root class="vant-dist-grid-index"><view :class="'van-grid custom-class '+(border && !gutter ? 'van-hairline--top' : '')" :style="computed.rootStyle({ gutter })">
-  <slot></slot>
-</view></uni-shadow-root>
-</template>
-<wxs src="./index.wxs" module="computed"></wxs>
-<script>
-
-global['__wxRoute'] = 'vant/dist/grid/index'
-import { VantComponent } from '../common/component';
-import { useChildren } from '../common/relation';
-VantComponent({
-    relation: useChildren('grid-item'),
-    props: {
-        square: {
-            type: Boolean,
-            observer: 'updateChildren',
-        },
-        gutter: {
-            type: null,
-            value: 0,
-            observer: 'updateChildren',
-        },
-        clickable: {
-            type: Boolean,
-            observer: 'updateChildren',
-        },
-        columnNum: {
-            type: Number,
-            value: 4,
-            observer: 'updateChildren',
-        },
-        center: {
-            type: Boolean,
-            value: true,
-            observer: 'updateChildren',
-        },
-        border: {
-            type: Boolean,
-            value: true,
-            observer: 'updateChildren',
-        },
-        direction: {
-            type: String,
-            observer: 'updateChildren',
-        },
-        iconSize: {
-            type: String,
-            observer: 'updateChildren',
-        },
-        reverse: {
-            type: Boolean,
-            value: false,
-            observer: 'updateChildren',
-        },
-    },
-    methods: {
-        updateChildren() {
-            this.children.forEach((child) => {
-                child.updateStyle();
-            });
-        },
-    },
-});
-export default global['__wxComponents']['vant/dist/grid/index']
-</script>
-<style platform="mp-weixin">
-@import '../common/index.css';.van-grid{box-sizing:border-box;overflow:hidden;position:relative}
-</style>

+ 0 - 8
wxcomponents/vant/dist/grid/index.wxml

@@ -1,8 +0,0 @@
-<wxs src="./index.wxs" module="computed" />
-
-<view
-  class="van-grid custom-class {{ border && !gutter ? 'van-hairline--top' : '' }}"
-  style="{{ computed.rootStyle({ gutter }) }}"
->
-  <slot />
-</view>

+ 0 - 13
wxcomponents/vant/dist/grid/index.wxs

@@ -1,13 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
-  return style({
-    'padding-left': addUnit(data.gutter),
-  });
-}
-
-module.exports = {
-  rootStyle: rootStyle,
-};

+ 0 - 1
wxcomponents/vant/dist/grid/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid{box-sizing:border-box;overflow:hidden;position:relative}