pansl 1 år sedan
förälder
incheckning
8569977258
8 ändrade filer med 320 tillägg och 478 borttagningar
  1. 45 11
      common/config.js
  2. 1 1
      manifest.json
  3. 1 1
      pages.json
  4. 248 248
      pages/member/index.vue
  5. 14 41
      static/js/mixin/common.js
  6. 10 143
      static/js/statics.js
  7. 0 30
      static/js/store/modules/member.js
  8. 1 3
      static/js/store/store.js

+ 45 - 11
common/config.js

@@ -1,12 +1,46 @@
+let config = {}
+
+// #ifdef H5
+if (process.env.NODE_ENV !== 'production') {} else {}
+// #endif
+
+// #ifdef MP-WEIXIN
+import wxApp from "@/common/wecaht.min.app.js"
+console.log(wxApp.getWXAppId(), 'wxApp.getWXAppId()wxApp.getWXAppId()wxApp.getWXAppId()')
+if (__wxConfig.envVersion == 'develop') {
+	// 开发版本
+	config = {
+		apiUrl: "https://api.duanju.dududus.com",
+		staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
+		zystaticUrl: "",
+		TabbarIndex: 2
+	}
+} else if (__wxConfig.envVersion == 'trial') {
+	//体验版
+	config = {
+		apiUrl: "https://api.duanju.dududus.com",
+		staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
+		zystaticUrl: "",
+		TabbarIndex: 2
+	}
+} else if (__wxConfig.envVersion == 'release') {
+	//正式版
+	config = {
+		apiUrl: "https://api.duanju.dududus.com",
+		staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
+		zystaticUrl: "",
+		TabbarIndex: 2
+	}
+} else {
+	config = {
+		apiUrl: "https://api.duanju.dududus.com",
+		staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
+		zystaticUrl: "",
+		TabbarIndex: 2
+	}
+}
+// #endif
+
+
 // 配置信息
-export default {
-	apiUrl: "https://api.duanju.dududus.com",
-	webUrl: 'http://xjc.demo.hongcd.com', //uni.getStorageSync("config").weburl?uni.getStorageSync("config").weburl:'http://192.168.10.175',
-	imgUrl: 'https://xjc.demo.hongcd.com', //uni.getStorageSync("config").imgurl?uni.getStorageSync("config").imgurl:'http://192.168.10.175',
-	staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
-	zystaticUrl: "",
-	// websocket地址
-	//websocketUrl:"https://wx.***.com",
-	// 消息提示tabbar索引  websocketUrl:"https://wx.***.com",
-	TabbarIndex: 2
-}
+export default config

+ 1 - 1
manifest.json

@@ -67,7 +67,7 @@
     },
     "quickapp" : {},
     "mp-weixin" : {
-        "appid" : "wx77a5614f34087dc2",
+        "appid" : "wx86822355ccd03a78",
         "lazyCodeLoading" : "requiredComponents", //按需注入
         "setting" : {
             "urlCheck" : false,

+ 1 - 1
pages.json

@@ -187,7 +187,7 @@
 	},
 	"tabBar": {
 		"color": "#666666",
-		"selectedColor": "#00c657",
+		"selectedColor": "#333333",
 		"borderStyle": "black",
 		"backgroundColor": "#ffffff",
 		"list": [{

+ 248 - 248
pages/member/index.vue

@@ -1,264 +1,264 @@
 <template>
-	<view class="body">
+  <view class="body">
 
-		<view class="pd24_20 flex alcenter space user-info">
-			<view class="flex alcenter">
-				<view class="member-face">
-					<image class="face" :src="statics.defaultFace"></image>
-					<!-- <image class="vip-level" :src="userinfo.group_id>1?statics.vipLevelImg[0]:''"></image> -->
-				</view>
-				<view class="ml15">
-					<view class="ft16 cl-main">{{ userinfo.type }}</view>
-					<view class="mt12 ft12 cl-notice">ID:{{ userinfo.uid || '' }}
-						<image @click="copyId(userinfo.uid || '')" style="margin-left: 10px; width: 30rpx;height: 15px;"
-							src="/static/img/wode/cpoy.png">
-					</view>
-				</view>
-			</view>
-		</view>
-		<view class="pd24_20">
+    <view class="pd24_20 flex alcenter space user-info">
+      <view class="flex alcenter">
+        <view class="member-face">
+          <image class="face" :src="statics.defaultFace"></image>
+          <!-- <image class="vip-level" :src="userinfo.group_id>1?statics.vipLevelImg[0]:''"></image> -->
+        </view>
+        <view class="ml15">
+          <view class="ft16 cl-main">{{ userinfo.type }}</view>
+          <view class="mt12 ft12 cl-notice">ID:{{ userinfo.uid || '' }}
+            <image @click="copyId(userinfo.uid || '')" style="margin-left: 10px; width: 30rpx;height: 15px;"
+              src="/static/img/wode/cpoy.png" />
+          </view>
+        </view>
+      </view>
+    </view>
+    <view class="pd24_20">
 
-			<div class="box pd16_15  creadit-box">
-				<div class="mt16 coin-box">
-					<div class="flex alcenter coin-item">
-						<label class="coin-text">{{ userinfo.charge_coin || 0 }}</label>
-						<label class="coin-text">永久看币</label>
-					</div>
-					<label class="box-line">|</label>
-					<div class="flex alcenter coin-item">
-						<label class="coin-text">{{ userinfo.reward_coin || 0 }}</label>
-						<label class="coin-text">赠送看币</label>
-					</div>
-				</div>
-				<navigator url="/pages/pay/pay">
-					<div class="mt16 box-cj"><label class="btn-cz">去充值</label></div>
-				</navigator>
+      <div class="box pd16_15  creadit-box">
+        <div class="mt16 coin-box">
+          <div class="flex alcenter coin-item">
+            <label class="coin-text">{{ userinfo.charge_coin || 0 }}</label>
+            <label class="coin-text">永久看币</label>
+          </div>
+          <label class="box-line">|</label>
+          <div class="flex alcenter coin-item">
+            <label class="coin-text">{{ userinfo.reward_coin || 0 }}</label>
+            <label class="coin-text">赠送看币</label>
+          </div>
+        </div>
+        <navigator url="/pages/pay/pay">
+          <div class="mt16 box-cj"><label class="btn-cz">去充值</label></div>
+        </navigator>
 
-			</div>
-			<!-- <home-vipcard :userinfo="userinfo" @loginAct="showLoginAct" @qrcode="showQrcode = true"></home-vipcard> -->
+      </div>
+      <!-- <home-vipcard :userinfo="userinfo" @loginAct="showLoginAct" @qrcode="showQrcode = true"></home-vipcard> -->
 
-			<view class="flex wrap space mt16">
-				<view v-for="(item, index) in getMenus" :key="index" :class="index > 1 ? 'mt16' : ''">
-					<view v-if="item.type == 'link'" :data-index="index" @click="memberLinkTo"
-						class="box pd16_15 flex alcenter" style="width: 320rpx;">
-						<image :src="item.icon" style="width: 64rpx;height: 64rpx;"></image>
-						<text class="ml15 ft14 ftw500 cl-main">{{ item.name }}</text>
-					</view>
-					<view v-else style="width: 320rpx;" @click="showPopu(item.type)">
-						<button class="box pd16_15 flex alcenter" style="padding: 32rpx 30rpx; margin: 0;">
-							<image :src="item.icon" style="width: 64rpx;height: 64rpx;"></image>
-							<text class="ml15 ft14 ftw500 cl-main">{{ item.name }}</text>
-						</button>
-					</view>
-				</view>
-			</view>
-			<com-copyright></com-copyright>
-			<uni-popup ref="popup" type="center">
-				<image :show-menu-by-longpress="true" class="qrcode-img" :src="kefu.url"></image>
-			</uni-popup>
-		</view>
-	</view>
+      <view class="flex wrap space mt16">
+        <view v-for="(item, index) in getMenus" :key="index" :class="index > 1 ? 'mt16' : ''">
+          <view v-if="item.type == 'link'" :data-index="index" @click="memberLinkTo" class="box pd16_15 flex alcenter"
+            style="width: 320rpx;">
+            <image :src="item.icon" style="width: 64rpx;height: 64rpx;"></image>
+            <text class="ml15 ft14 ftw500 cl-main">{{ item.name }}</text>
+          </view>
+          <view v-else style="width: 320rpx;" @click="showPopu(item.type)">
+            <button class="box pd16_15 flex alcenter" style="padding: 32rpx 30rpx; margin: 0;">
+              <image :src="item.icon" style="width: 64rpx;height: 64rpx;"></image>
+              <text class="ml15 ft14 ftw500 cl-main">{{ item.name }}</text>
+            </button>
+          </view>
+        </view>
+      </view>
+      <com-copyright></com-copyright>
+      <uni-popup ref="popup" type="center">
+        <image :show-menu-by-longpress="true" class="qrcode-img" :src="kefu.url"></image>
+      </uni-popup>
+    </view>
+  </view>
 </template>
 
 <script>
-	import {
-		getKefu
-	} from "@/common/apis/common.js"
-	import {
-		getUserInfo
-	} from "@/common/apis/my.js"
-	export default {
-		data() {
-			return {
-				isLogin: false,
-				showLogin: false,
-				isBirthday: true,
-				showBirthday: false,
-				showQrcode: true,
-				avatar: '',
-				userinfo: {
-					type: "微信用户",
-				},
-				kefu: {
-					url: "",
-				},
-				vipLevel: 0,
-				iskq: 0,
-				uid: 0,
-				staticUrl: this.$config.staticUrl,
-				memberMenus: [
-					// {name:'观看历史',type:'link',model:'',link:'/pages/client/tuan/zjgk',icon:this.$config.staticUrl + 'vipcard_icon_my_card@2x.png',show:1},
-					// {name:'我的追剧',type:'link',model:'',link:'/pages/client/tuan/zjjl',icon:this.$config.staticUrl + 'vipcard_icon_my_order@2x.png',show:1},
-					{
-						name: '我的追剧',
-						type: 'link',
-						model: 'tab',
-						link: '/pages/zhuiju/index',
-						icon: this.$config.zystaticUrl + '/static/img/wode/zhuij.png',
-						show: 1
-					},
-					{
-						name: '充值记录',
-						type: 'link',
-						model: '',
-						link: '/pages/member/orders',
-						icon: this.$config.zystaticUrl + '/static/img/wode/wd-cz.png',
-						show: 1
-					},
-					{
-						name: '消费记录',
-						type: 'link',
-						model: '',
-						link: '/pages/member/consume',
-						icon: this.$config.zystaticUrl + '/static/img/wode/xiaofei.png',
-						show: 1
-					},
-					{
-						name: '联系客服',
-						type: 'kefu',
-						model: '',
-						link: '/pages/client/tuan/wdxh',
-						icon: this.$config.zystaticUrl + '/static/img/wode/kefu.png',
-						show: 1
-					},
+import {
+  getKefu
+} from "@/common/apis/common.js"
+import {
+  getUserInfo
+} from "@/common/apis/my.js"
+export default {
+  data() {
+    return {
+      isLogin: false,
+      showLogin: false,
+      isBirthday: true,
+      showBirthday: false,
+      showQrcode: true,
+      avatar: '',
+      userinfo: {
+        type: "微信用户",
+      },
+      kefu: {
+        url: "",
+      },
+      vipLevel: 0,
+      iskq: 0,
+      uid: 0,
+      staticUrl: this.$config.staticUrl,
+      memberMenus: [
+        // {name:'观看历史',type:'link',model:'',link:'/pages/client/tuan/zjgk',icon:this.$config.staticUrl + 'vipcard_icon_my_card@2x.png',show:1},
+        // {name:'我的追剧',type:'link',model:'',link:'/pages/client/tuan/zjjl',icon:this.$config.staticUrl + 'vipcard_icon_my_order@2x.png',show:1},
+        {
+          name: '我的追剧',
+          type: 'link',
+          model: 'tab',
+          link: '/pages/zhuiju/index',
+          icon: this.$config.zystaticUrl + '/static/img/wode/zhuij.png',
+          show: 1
+        },
+        {
+          name: '充值记录',
+          type: 'link',
+          model: '',
+          link: '/pages/member/orders',
+          icon: this.$config.zystaticUrl + '/static/img/wode/wd-cz.png',
+          show: 1
+        },
+        {
+          name: '消费记录',
+          type: 'link',
+          model: '',
+          link: '/pages/member/consume',
+          icon: this.$config.zystaticUrl + '/static/img/wode/xiaofei.png',
+          show: 1
+        },
+        {
+          name: '联系客服',
+          type: 'kefu',
+          model: '',
+          link: '/pages/client/tuan/wdxh',
+          icon: this.$config.zystaticUrl + '/static/img/wode/kefu.png',
+          show: 1
+        },
 
-					// {name:'收货地址',type:'git link',model:'',link:'/pages/client/member/address',icon:this.$config.staticUrl + 'vipcard_icon_my_address@2x.png',show:0},
-					// {name:'官方商城',type:'link',model:'',link:'/pages/client/shop',icon:this.$config.staticUrl + 'vipcard_icon_my_integral@2x.png',show:0},
-					// {name:'联系客服',type:'link',model:'',link:'/pages/client/vipcard/adviser',icon:this.$config.staticUrl + 'vipcard_icon_my_advise@2x.png',show:1},
-					// {name:'我的团队',type:'link',model:'',link:'/pages/client/mytuandui',icon:this.$config.staticUrl + 'vipcard_icon_my_invite@2x.png',show:3},
-					// {name:'分销订单',type:'link',model:'',link:'/pages/client/vipcard/fxlog',icon:this.$config.staticUrl + 'vipcard_icon_my_integral@2x.png',show:3},
-				],
-			}
-		},
-		computed: {
-			getMenus() {
-				let arr = new Array;
-				for (var a in this.memberMenus) {
-					if (this.memberMenus[a].show == 1 || (this.iskq == 1 && this.memberMenus[a].show == 3)) {
-						arr.push(this.memberMenus[a]);
-					}
-				}
-				return arr;
-			}
-		},
-		async onLoad() {
-			let res = await getKefu();
-			this.kefu = res.data;
-		},
-		async onShow() {
-			let res = await getUserInfo();
-			this.userinfo = res.data;
-		},
-		onShareAppMessage: function(res) {
-			// #ifdef MP-WEIXIN 
-			var href = '/pages/login/login?fxpid=' + this.uid
-			console.log(res)
-			let that = this;
-			const obj = {
-				title: "发送给好友",
-				imageUrl: '',
-				path: href,
-				success: function(res) {
-					console.log(res, "转发成功")
-				},
-				fail: function(res) {
-					wx.showToast({
-						title: '发送失败',
-						icon: 'none'
-					})
-				}
-			}
-			return obj
-			// #endif
-		},
-		onShareTimeline(e) {
+        // {name:'收货地址',type:'git link',model:'',link:'/pages/client/member/address',icon:this.$config.staticUrl + 'vipcard_icon_my_address@2x.png',show:0},
+        // {name:'官方商城',type:'link',model:'',link:'/pages/client/shop',icon:this.$config.staticUrl + 'vipcard_icon_my_integral@2x.png',show:0},
+        // {name:'联系客服',type:'link',model:'',link:'/pages/client/vipcard/adviser',icon:this.$config.staticUrl + 'vipcard_icon_my_advise@2x.png',show:1},
+        // {name:'我的团队',type:'link',model:'',link:'/pages/client/mytuandui',icon:this.$config.staticUrl + 'vipcard_icon_my_invite@2x.png',show:3},
+        // {name:'分销订单',type:'link',model:'',link:'/pages/client/vipcard/fxlog',icon:this.$config.staticUrl + 'vipcard_icon_my_integral@2x.png',show:3},
+      ],
+    }
+  },
+  computed: {
+    getMenus() {
+      let arr = new Array;
+      for (var a in this.memberMenus) {
+        if (this.memberMenus[a].show == 1 || (this.iskq == 1 && this.memberMenus[a].show == 3)) {
+          arr.push(this.memberMenus[a]);
+        }
+      }
+      return arr;
+    }
+  },
+  async onLoad() {
+    let res = await getKefu();
+    this.kefu = res.data;
+  },
+  async onShow() {
+    let res = await getUserInfo();
+    this.userinfo = res.data;
+  },
+  onShareAppMessage: function (res) {
+    // #ifdef MP-WEIXIN 
+    var href = '/pages/login/login?fxpid=' + this.uid
+    console.log(res)
+    let that = this;
+    const obj = {
+      title: "发送给好友",
+      imageUrl: '',
+      path: href,
+      success: function (res) {
+        console.log(res, "转发成功")
+      },
+      fail: function (res) {
+        wx.showToast({
+          title: '发送失败',
+          icon: 'none'
+        })
+      }
+    }
+    return obj
+    // #endif
+  },
+  onShareTimeline(e) {
 
-		},
-		methods: {
-			showPopu(type = "kefu") {
-				if (type == "kefu") {
-					this.$refs.popup.open('center')
-				}
-			},
-			opset() {
-				uni.navigateTo({
-					url: '/pages/set/set'
-				})
-			},
-			opsets() {
-				uni.navigateTo({
-					url: '/pages/set/grzl/grzl'
-				})
-			},
-			memberLinkTo(e) {
-				let index = parseInt(e.currentTarget.dataset.index);
+  },
+  methods: {
+    showPopu(type = "kefu") {
+      if (type == "kefu") {
+        this.$refs.popup.open('center')
+      }
+    },
+    opset() {
+      uni.navigateTo({
+        url: '/pages/set/set'
+      })
+    },
+    opsets() {
+      uni.navigateTo({
+        url: '/pages/set/grzl/grzl'
+      })
+    },
+    memberLinkTo(e) {
+      let index = parseInt(e.currentTarget.dataset.index);
 
-				if (this.getMenus[index].link != '') {
-					if (this.getMenus[index].model == 'integral') {
-						uni.redirectTo({
-							url: this.getMenus[index].link
-						})
-					} else if (this.getMenus[index].model == 'tab') {
-						uni.switchTab({
-							url: this.getMenus[index].link
-						})
-					} else {
-						uni.navigateTo({
-							url: this.getMenus[index].link
-						})
-					}
-				}
-			},
-			birthdayAct() {
-				if (this.isBirthday) {
-					uni.navigateTo({
-						url: '/pages/client/member/birthday'
-					})
-				} else {
-					uni.navigateTo({
-						url: '/pages/client/member/info'
-					})
-				}
-			},
-			copyId(uid) {
-				console.log('uid', uid);
-				uni.setClipboardData({
-					data: uid + "",
-					success: () => {
-						uni.showToast({
-							title: '复制成功',
-							icon: "none"
-						})
-					},
-					fail: function(err) {
-						uni.showToast({
-							title: '复制失败',
-							duration: 2000,
-							icon: 'none'
-						});
-					}
-				})
-			},
-			previewImage(e) {
-				console.log('e', e);
-				uni.previewImage({
-					urls: this.kefu.url,
-					longPressActions: {
-						// itemList: ['发送给朋友', '保存图片', '收藏'],
-						success: function(data) {
-							console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
-						},
-						fail: function(err) {
-							console.log(err.errMsg);
-						}
-					}
-				});
+      if (this.getMenus[index].link != '') {
+        if (this.getMenus[index].model == 'integral') {
+          uni.redirectTo({
+            url: this.getMenus[index].link
+          })
+        } else if (this.getMenus[index].model == 'tab') {
+          uni.switchTab({
+            url: this.getMenus[index].link
+          })
+        } else {
+          uni.navigateTo({
+            url: this.getMenus[index].link
+          })
+        }
+      }
+    },
+    birthdayAct() {
+      if (this.isBirthday) {
+        uni.navigateTo({
+          url: '/pages/client/member/birthday'
+        })
+      } else {
+        uni.navigateTo({
+          url: '/pages/client/member/info'
+        })
+      }
+    },
+    copyId(uid) {
+      console.log('uid', uid);
+      uni.setClipboardData({
+        data: uid + "",
+        success: () => {
+          uni.showToast({
+            title: '复制成功',
+            icon: "none"
+          })
+        },
+        fail: function (err) {
+          uni.showToast({
+            title: '复制失败',
+            duration: 2000,
+            icon: 'none'
+          });
+        }
+      })
+    },
+    previewImage(e) {
+      console.log('e', e);
+      uni.previewImage({
+        urls: this.kefu.url,
+        longPressActions: {
+          // itemList: ['发送给朋友', '保存图片', '收藏'],
+          success: function (data) {
+            console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
+          },
+          fail: function (err) {
+            console.log(err.errMsg);
+          }
+        }
+      });
 
-			}
-		},
-	}
+    }
+  },
+}
 </script>
 
 <style>
-	@import url("style/index.css");
+@import url("style/index.css");
 </style>

+ 14 - 41
static/js/mixin/common.js

@@ -1,50 +1,23 @@
-import {statics} from '../statics.js';
-import {mapState} from 'vuex';
+import {
+	statics
+} from '../statics.js';
+import {
+	mapState
+} from 'vuex';
 export const common = {
-	data(){
+	data() {
 		return {
-			statics:statics
+			statics: statics
 		}
 	},
-	computed:{
+	computed: {
 		...mapState({
-			tempColor:state			=> state.template.tempColor,
-			tempColorRgb:state  	=> state.template.tempColorRbg,
-			memberToken:state   	=> state.member.mToken,
-			latLng:state 			=> state.location.location,
-			memberInfo:state   		=> state.member.member,
-			adviserId:state 		=> state.member.adviserId,//推广的顾问员
-			parentId:state 			=> state.member.parentId, //父推广员ID
-			mendianSelectId:state 	=> state.location.mendianSelectId, //当前的门店ID
-			memdianLists:state 		=> state.location.memdianLists 
+			tempColor: state => state.template.tempColor,
+			tempColorRgb: state => state.template.tempColorRbg,
+			latLng: state => state.location.location,
 		}),
-		checkLogin(){ //验证是否登录
-			if(this.memberToken === null) return false;
-			if(this.memberInfo == null) return false;
-			if(!this.memberInfo.member_id) return false;
-			return true;
-		},
-		getBtnStyle(){
-			let style = 'background:'+this.tempColor+';color:#ffffff;';
-			style+="box-shadow: 0px "+uni.upx2px(8)+"px "+uni.upx2px(32)+"px -"+uni.upx2px(8)+"px rgba("+this.tempColorRgb.r+", "+this.tempColorRgb.g+", "+this.tempColorRgb.b+", 0.3);";
-			return style;
-		},
-		getBtnDisStyle(){
-			let style = 'background:#F0F1F5;color:#AEB2C1;';
-			return style;
-		},
-		getTagStyle(){
-			let style = "background:rgba("+this.tempColorRgb.r+", "+this.tempColorRgb.g+", "+this.tempColorRgb.b+", 0.08);";
-			style+='color:'+this.tempColor + ';';
-			return style;
-		},
-		getBtnPlanStyle(){
-			let style = 'border: 1px solid '+this.tempColor+';';
-			style+='color:'+this.tempColor+';';
-			return style;
-		}
 	},
-	methods:{
-		
+	methods: {
+
 	},
 }

+ 10 - 143
static/js/statics.js

@@ -1,147 +1,14 @@
 import config from './config.js';
 export const statics = {
-	defaultFace:config.staticUrl + 'vipcard_img_head_default@2x.png',
-	vipbg:config.staticUrl + 'vipcard_bg_vip02@2x.png',
-	vipBgHas:config.staticUrl + 'vipcard_bg_vip01@2x.png',
-	rightIcon:config.staticUrl + 'vipcard_icon_arrowr_black@2x.png',
-	vipLevelImg:[
-		config.staticUrl + 'vipcard_icon_v1@2x.png',
-		config.staticUrl + 'vipcard_icon_v2@2x.png',
-		config.staticUrl + 'vipcard_icon_v3@2x.png',
-		config.staticUrl + 'vipcard_icon_v4@2x.png',
-		config.staticUrl + 'vipcard_icon_v5@2x.png',
-	],
-	gridLeft:config.staticUrl + 'vipcard_home_entrance_left@2x.png',
-	gridRight:config.staticUrl + 'vipcard_home_entrance_right@2x.png',
-	
-	copyright:config.staticUrl + 'vipcard_icon_copyright@2x.png?v=1',
-	
-	birthdayPic:config.staticUrl + 'vipcard_img_birthday_gifts@2x.png',
-	birthdayGift:config.staticUrl + 'vipcard_icon_cake@2x.png',
-	
-	couponHeader:config.staticUrl + 'vipcard_bg_coupon@2x.png',
-	couponVipHeader:config.staticUrl + 'vipcard_bg_coupon_title@2x.png',
-	couponNumBg:config.staticUrl+'vipcard_box_coupon@2x.png',
-	couponTitleL:config.staticUrl + 'vipcard_icon_titlel@2x.png',
-	couponTitleR:config.staticUrl + 'vipcard_icon_titler@2x.png',
-	
-	emptyImg:config.staticUrl + 'vipcard_icon_none_data@1x.png',
-	
-	vipcardDetailHeaderBg:config.staticUrl + 'vipcard_bg_vipgrade@2x.png',
-	
-	vipcardBg:[
-		config.staticUrl + 'vipcard_bg_vipgrade01@2x.png',
-		config.staticUrl + 'vipcard_bg_vipgrade02@2x.png',
-		config.staticUrl + 'vipcard_bg_vipgrade03@2x.png',
-		config.staticUrl + 'vipcard_bg_vipgrade04@2x.png',
-		config.staticUrl + 'vipcard_bg_vipgrade05@2x.png',
-	],
-	vipTq:[
-		config.staticUrl+'vipcard_icon_right01@2x.png',
-		config.staticUrl + 'vipcard_icon_right02@2x.png',
-		config.staticUrl + 'vipcard_icon_right03@2x.png',
-		config.staticUrl + 'vipcard_icon_right04@2x.png',
-	],
-	
-	integralImg01:config.staticUrl + 'vipcard_icon_condition01@2x.png',
-	moneyImg01:config.staticUrl + 'vipcard_icon_condition02@2x.png',
-	
-	cardHeader:config.staticUrl + 'vipcard_img_cika@2x.png',
-	cardMineFace:config.staticUrl + 'vipcard_img_cicard01@2x.png',
-	cardBg:[
-		config.staticUrl + 'vipcard_bg_cika01@2x.png',
-		config.staticUrl + 'vipcard_bg_cika02@2x.png',
-	],
-	
-	moneyRecharge:config.staticUrl + 'vipcard_bg_balance@2x.png',
-	
-	yuanq:config.staticUrl + 'yuanq.png',
-	xuanzhong:config.staticUrl + 'xuanzhong.png',
-	
-	couponAlert:[
-		config.staticUrl + 'vipcard_icon_success@2x.png',
-		config.staticUrl + 'vipcard_pop_icon_coupon@2x.png',
-		config.staticUrl + 'vipcard_pop_bg_coupon@2x.png',
-	],
-	
-	statusImg:[
-		config.staticUrl + 'vipcard_icon_expired@2x.png',
-		config.staticUrl + 'vipcard_icon_used@2x.png',
-		config.staticUrl + 'vipcard_icon_over@2x.png',
-		config.staticUrl + 'vipcard_icon_present_ing@2x.png',
-		config.staticUrl + 'vipcard_icon_present_yes@2x.png',
-	],
-	
-	integralLogHeader:config.staticUrl + 'vipcard_bg_integral@2x.png',
-	integralMallHeader:config.staticUrl + 'vipcard_bg_integralmal@2x.png',
-	integralRoleHeader:config.staticUrl + 'vipcard_bg_zhuanintergral@2x.png',
-	integralRoleHeader1:config.staticUrl + 'vipcard_bg_zhuanintergral@2x1.png',
-	integralMallMenus:[
-		config.staticUrl + 'vipcard_icon_integralmall01@2x.png',
-		config.staticUrl + 'vipcard_icon_integralmall02@2x.png',
-	],
-	integralMallCat:[
-		config.staticUrl + 'vipcard_icon_exchange01@2x.png',
-		config.staticUrl + 'vipcard_icon_exchange02@2x.png',
-		config.staticUrl + 'vipcard_icon_exchange03@2x.png',
-	],
-	zhuico:[
-		config.staticUrl + 'zv1.png',//视频
-		config.staticUrl + 'za1.png',//音频
-		config.staticUrl + 'zb1.png',//小说
-		config.staticUrl + 'cnxh.png',//猜你喜欢
-		config.staticUrl + 'ab1.png',//关于我们
-		config.staticUrl + 'zbbz.png',//壁纸
-		config.staticUrl + 'news1.png',//最新
-		
-	],
-	
-	zhuicotp:[
-		config.staticUrl + 'tpfl0.png',//小姐姐
-		config.staticUrl + 'tpfl1.png',//小哥哥
-		config.staticUrl + 'tpfl2.png',//头像
-		config.staticUrl + 'tpfl3.png',//全部
-	],
-	integralRoleImg:[
-		config.staticUrl + 'vipcard_icon_earn01@2x.png',
-		config.staticUrl + 'vipcard_icon_earn02@2x.png',
-		config.staticUrl + 'vipcard_icon_earn03@2x.png',
-		config.staticUrl + 'vipcard_icon_earn04@2x.png',
-		config.staticUrl + 'vipcard_icon_earn05@2x.png',
-		config.staticUrl + 'vipcard_icon_earn06@2x.png',
-	],
-	orderType:[
-		config.staticUrl + 'vipcard_icon_order_cate01@2x.png',
-		config.staticUrl + 'vipcard_icon_order_cate02@2x.png',
-		config.staticUrl + 'vipcard_icon_order_cate03@2x.png',
-	],
-	achImg:[
-		config.staticUrl + 'vipcard_store_icon_failed@2x.png',
-		config.staticUrl + 'vipcard_store_icon_success@2x.png',
-	],
-	rankImg:[
-		config.staticUrl + 'vipcard_store_icon_rank01@2x.png',
-		config.staticUrl + 'vipcard_store_icon_rank02@2x.png',
-		config.staticUrl + 'vipcard_store_icon_rank03@2x.png',
-	],
-	
-	weixinImg:config.staticUrl + 'vipcard_store_icon_wechat@2x.png',
-	telImg:config.staticUrl + 'vipcard_store_icon_call@2x.png',
-	
-	memberDetailImg:[
-		config.staticUrl + 'vipcard_store_icon_cika@2x.png',
-		config.staticUrl + 'vipcard_store_icon_coupon@2x.png',
-		config.staticUrl + 'vipcard_store_icon_income@2x.png',
-		config.staticUrl + 'vipcard_store_icon_integral@2x.png',
-		config.staticUrl + 'vipcard_store_icon_taocan@2x.png',
-		config.staticUrl + 'vipcard_store_icon_ziti@2x.png',
-		config.staticUrl + 'vipcard_store_icon_chongzhi@2x.png',
-		config.staticUrl + 'vipcard_store_icon_kaika@2x.png',
-		config.staticUrl + 'vipcard_store_icon_banka@2x.png',
-	],
-	openCardImg:config.staticUrl + 'vipcard_store_icon_banka@2x.png',
-	staffShare:[
-		config.staticUrl + 'vip_store_icon_share_taocan@2x.png',
-		config.staticUrl + 'vip_store_icon_share_coupon@2x.png',
+	defaultFace: config.staticUrl + 'vipcard_img_head_default@2x.png',
+	zhuico: [
+		config.staticUrl + 'zv1.png', //视频
+		config.staticUrl + 'za1.png', //音频
+		config.staticUrl + 'zb1.png', //小说
+		config.staticUrl + 'cnxh.png', //猜你喜欢
+		config.staticUrl + 'ab1.png', //关于我们
+		config.staticUrl + 'zbbz.png', //壁纸
+		config.staticUrl + 'news1.png', //最新
+
 	],
 }

+ 0 - 30
static/js/store/modules/member.js

@@ -1,30 +0,0 @@
-const state = {
-  member: null, //数据不缓存
-  mToken:uni.getStorageSync('member-token') ? uni.getStorageSync('member-token') : null,
-  parentId:0,	
-  adviserId:0,//员工邀请用户注册的ID
-};
-const mutations = {
-	setParentId(state,param){
-		state.parentId = param;
-	},
-	setAdviserId(state,param){
-		state.adviserId = param;
-	},
-	setMember(state,param){
-		state.member = param;
-		if(null === param){
-			uni.removeStorageSync('member-token');
-			state.mToken = null;
-		}
-	},
-	setToken(state,param){
-		state.mToken = param;
-		uni.setStorageSync('member-token',param);
-	},
-	
-};
-export default {
-  state,
-  mutations
-}

+ 1 - 3
static/js/store/store.js

@@ -1,12 +1,10 @@
 import Vue from 'vue';
-import  Vuex  from 'vuex';
+import Vuex from 'vuex';
 Vue.use(Vuex);
 
-import member from './modules/member.js';
 import location from './modules/location.js';
 import template from './modules/template.js';
 const modules = {
-	member,
 	location,
 	template
 };