You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
28 KiB
1 lines
28 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///G:/web/中龙小程序/zhonglmini/pages/user/user.vue?abe6","webpack:///G:/web/中龙小程序/zhonglmini/pages/user/user.vue?6148","webpack:///G:/web/中龙小程序/zhonglmini/pages/user/user.vue?4624","webpack:///G:/web/中龙小程序/zhonglmini/pages/user/user.vue?e054","uni-app:///pages/user/user.vue","webpack:///G:/web/中龙小程序/zhonglmini/pages/user/user.vue?d847","webpack:///G:/web/中龙小程序/zhonglmini/pages/user/user.vue?310a"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","moveY","pageAtTop","components","listCell","data","coverTransform","coverTransition","moving","userInfo","recordlist","showsh","personinfo","onShow","onLoad","computed","methods","baseset","action","reinfo","userinfo","getuserinfo","uid","aid","getread_recordlsit","cleanrecord","uni","cleanall","t","title","content","success","tipnomore","icon","navTo","url","tojifen","tochongzhi","tocoupon","coverTouchstart","startY","coverTouchmove","moveDistance","coverTouchend","checklogin","logout"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AACqL;AACrL,gBAAgB,0LAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrBA;AAAA;AAAA;AAAA;AAA8qB,CAAgB,+qBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;AC8ElsB;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADA;AAAA;EAAA;IAAA;EAAA;AAAA;AAGA;EAAAC;EAAAC;AAAA,eACA;EACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACA;IACA;IACA;MACA;MACA;IACA;IACA;EACA;EACAC,2BACA;EAqBAC,WAEA;EACAC;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBAAAC;gBAAA;cAAA;gBAAAC;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBAAA;gBAAA,OACA;kBAAAH;kBAAAI;kBAAAC;gBAAA;cAAA;gBAAAJ;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAK;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBAAAN;kBAAAI;gBAAA;cAAA;gBAAAH;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAM;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBAAAP;kBAAAI;gBAAA;cAAA;gBAAAH;gBACA;kBACA;gBACA;gBACAO;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;IACA;IACAC;MACA;MACAC;MACAF;QACAG;QACAC;QACAC;UACA;YACAL;cACAG;YACA;YACAD;UACA;YACA;UAAA;QAEA;MACA;IACA;IACAI;MACAN;QACAG;QAAAI;MACA;IACA;IACAC;MACA;MACA;QACA;QACA;QACA;QACAR;UACAS;QACA;MACA;QACAT;UACAS;QACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACAV;UACAS;QACA;MACA;QACAT;UACAS;QACA;MACA;IACA;IACA;IACAE;MACA;MACA;QACAX;UACAS;QACA;MACA;QACAT;UACAS;QACA;MACA;IACA;IACAG;MACA;MACA;QACAZ;UACAS;QACA;MACA;QACAT;UACAS;QACA;MACA;IACA;IACA;AACA;AACA;AACA;AACA;AACA;AACA;IACAI;MACA;QACA;MACA;MACA;MACAC;IACA;IACAC;MACAxC;MACA;MACA;QACA;QACA;MACA;MACA;MACA;QACAyC;MACA;MAEA;QACA;MACA;IACA;IACAC;MACA;QACA;MACA;MACA;MACA;MACA;IACA;IACAC;MACA;MACA;QACA;QACA;QACA;QACAlB;UACAS;QACA;MACA;IACA;IACAU;MACAnB;QACAG;QACAC;QACAC;UACA;YACAL;cACAG;YACA;YACAH;YACAA;cACAS;YACA;UACA,wBAEA;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC7SA;AAAA;AAAA;AAAA;AAAyxC,CAAgB,ktCAAG,EAAC,C;;;;;;;;;;;ACA7yC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/user.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/user.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./user.vue?vue&type=template&id=80842834&\"\nvar renderjs\nimport script from \"./user.vue?vue&type=script&lang=js&\"\nexport * from \"./user.vue?vue&type=script&lang=js&\"\nimport style0 from \"./user.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/user.vue\"\nexport default component.exports","export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=template&id=80842834&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.recordlist.length\n var g1 = _vm.recordlist.length\n var g2 = _vm.recordlist.length\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=script&lang=js&\"","<template> \r\n <view class=\"container\"> \r\n\t\t\r\n\t\t<view class=\"user-section\">\r\n\t\t\t<image class=\"bg\" src=\"/static/img/user-bg.jpg\"></image>\r\n\t\t\t<view class=\"user-info-box\">\r\n\t\t\t\t<view class=\"portrait-box\">\r\n\t\t\t\t\t<image class=\"portrait\" :src=\"userInfo.portrait || '/static/img/missing-face.png'\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"info-box\">\r\n\t\t\t\t\t<text class=\"username\">{{userInfo.name || '游客'}}</text>\r\n\t\t\t\t\t<text class=\"usercode\" @click=\"checklogin()\">编号{{userInfo.usercode || '请登录'}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"cover-container\">\r\n\t\t\t<image class=\"arc\" src=\"/static/img/arc.png\"></image>\r\n\t\t<view class=\"tj-sction\" v-if=\"showsh\">\r\n\t\t\t<view class=\"tj-item\" @click=\"tochongzhi()\">\r\n\t\t\t\t<text class=\"num\">{{personinfo.yue}}<text v-if=\"personinfo.djmoney\" class=\"djmoney\">冻结:{{personinfo.djmoney}}</text></text>\r\n\t\t\t\t<text>余额</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"tj-item\" @click=\"tocoupon()\">\r\n\t\t\t\t<text class=\"num\">{{personinfo.yhqnum}}</text>\r\n\t\t\t\t<text>优惠券</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"tj-item\" @click=\"tojifen()\">\r\n\t\t\t\t<text class=\"num\">{{personinfo.jifen}}</text>\r\n\t\t\t\t<text>积分</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t\r\n\t\t\t<view class=\"order-section\">\r\n\t\t\t\t<view class=\"order-item\" @click=\"navTo('/pages/orderlist/orderlist?state=0')\" hover-class=\"common-hover\" :hover-stay-time=\"50\">\r\n\t\t\t\t\t<text class=\"yticon icon-shouye\" style=\"color: #3883FA;\"></text>\r\n\t\t\t\t\t<text>全部订单</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\" @click=\"navTo('/pages/orderlist/orderlist?state=1')\" hover-class=\"common-hover\" :hover-stay-time=\"50\">\r\n\t\t\t\t\t<text class=\"yticon icon-daifukuan\" style=\"color: #3883FA;\"></text>\r\n\t\t\t\t\t<text>已确认</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\" @click=\"navTo('/pages/orderlist/orderlist?state=2')\" hover-class=\"common-hover\" :hover-stay-time=\"50\">\r\n\t\t\t\t\t<text class=\"yticon icon-yishouhuo\" style=\"color: #3883FA;\"></text>\r\n\t\t\t\t\t<text>待确认</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\" @click=\"navTo('/pages/orderlist/orderlist?state=3')\" hover-class=\"common-hover\" :hover-stay-time=\"50\">\r\n\t\t\t\t\t<text class=\"yticon icon-shouhoutuikuan\" style=\"color: #3883FA;\"></text>\r\n\t\t\t\t\t<text>已取消</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 浏览历史 -->\r\n\t\t\t<view class=\"history-section icon\">\r\n\t\t\t\t<view class=\"sec-header\">\r\n\t\t\t\t\t<text class=\"yticon icon-lishijilu\"></text>\r\n\t\t\t\t\t<text v-if=\"recordlist.length>0\">浏览历史</text>\r\n\t\t\t\t\t<text v-if=\"recordlist.length==0\" @click=\"tipnomore()\">浏览历史</text>\r\n\t\t\t\t\t<view class=\"clean\" @click=\"cleanall()\" v-if=\"recordlist.length>0\">清除历史</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<scroll-view scroll-x class=\"h-list\">\r\n\t\t\t\t\t<image v-for=\"(item, index) in recordlist\" :key=\"index\" @click=\"navTo('/pages/product/product?cpid='+item.cpid)\" :src=\"item.img\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t</scroll-view>\r\n\t\t\t\t<list-cell icon=\"icon-shoucang_xuanzhongzhuangtai\" iconColor=\"#54b4ef\" title=\"我的收藏\" @eventClick=\"navTo('/pages/user/keep')\"></list-cell>\r\n\t\t\t\t<view class=\"kf\">\r\n\t\t\t\t\t<view class=\"kfleft\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/kefu.png\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"kfright\">\r\n\t\t\t\t\t\t<button class=\"kfbt\" open-type=\"contact\" >联系客服</button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<list-cell icon=\"icon-shezhi1\" v-if=\"userInfo.openid\" iconColor=\"#e07472\" title=\"退出\" border=\"\" @eventClick=\"logout()\"></list-cell>\r\n\t\t\t\t<list-cell icon=\"icon-shezhi1\" v-if=\"!userInfo.openid\" iconColor=\"#e07472\" title=\"登录\" border=\"\" @eventClick=\"checklogin()\"></list-cell>\r\n\t\t\t</view>\r\n\t\t</view>\t\r\n </view> \r\n</template> \r\n<script> \r\n// 功能列表小封装\r\n\timport * as XLSX from '@/static/excel.js';\r\n\timport listCell from '@/components/mix-list-cell'; \r\n\tlet startY = 0, moveY = 0, pageAtTop = true;\r\n export default {\r\n\t\tcomponents: {\r\n\t\t\tlistCell\r\n\t\t},\r\n\t\tdata(){\r\n\t\t\treturn {\r\n\t\t\t\tcoverTransform: 'translateY(0px)',\r\n\t\t\t\tcoverTransition: '0s',\r\n\t\t\t\tmoving: false,\r\n\t\t\t\tuserInfo:[],\r\n\t\t\t\trecordlist:[],\r\n\t\t\t\tshowsh:0,\r\n\t\t\t\tpersoninfo:[]\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow(){\r\n\t\t\tthis.baseset();\r\n\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t//console.log(getuserinfo);\r\n\t\t\tif(getuserinfo!=''){\r\n\t\t\t\tthis.getread_recordlsit(getuserinfo.uid);\r\n\t\t\t\tthis.userInfo=getuserinfo;\r\n\t\t\t}\r\n\t\t\tthis.userinfo();\r\n\t\t},\r\n\t\tonLoad(){\r\n\t\t},\r\n\t\t// #ifndef MP\r\n\t\tonNavigationBarButtonTap(e) {\r\n\t\t\tconst index = e.index;\r\n\t\t\t// if (index === 0) {\r\n\t\t\t// \tthis.navTo('/pages/set/set');\r\n\t\t\t// }else if(index === 1){\r\n\t\t\t// \t// #ifdef APP-PLUS\r\n\t\t\t// \tconst pages = getCurrentPages();\r\n\t\t\t// \tconst page = pages[pages.length - 1];\r\n\t\t\t// \tconst currentWebview = page.$getAppWebview();\r\n\t\t\t// \tcurrentWebview.hideTitleNViewButtonRedDot({\r\n\t\t\t// \t\tindex\r\n\t\t\t// \t});\r\n\t\t\t// \t// #endif\r\n\t\t\t// \tuni.navigateTo({\r\n\t\t\t// \t\turl: '/pages/notice/notice'\r\n\t\t\t// \t})\r\n\t\t\t// }\r\n\t\t},\r\n\t\t// #endif\r\n computed: {\r\n\t\t\t\r\n\t\t},\r\n methods: {\r\n\t\t\tasync baseset() {\r\n\t\t\t\tlet reinfo=await this.$api.baseset({action:'baseset'});\r\n\t\t\t\tthis.showsh=reinfo.code;\r\n\t\t\t},\r\n\t\t\tasync userinfo() {\r\n\t\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t\tlet reinfo=await this.$api.userinfo({action:'userinfo',uid:getuserinfo.uid,aid:getuserinfo.aid});\r\n\t\t\t\tthis.personinfo=reinfo.data;\r\n\t\t\t},\r\n\t\t\t//获取浏览列表\r\n\t\t\tasync getread_recordlsit(uid) {\r\n\t\t\t\tlet reinfo=await this.$api.getread_recordlsit({action:'getread_recordlsit',uid:uid});\r\n\t\t\t\tthis.recordlist=reinfo.data;\r\n\t\t\t},\r\n\t\t\t//清空浏览列表\r\n\t\t\tasync cleanrecord() {\r\n\t\t\t\tlet reinfo=await this.$api.cleanrecord({action:'cleanrecord',uid:this.userInfo.uid});\r\n\t\t\t\tif(reinfo.code==1){\r\n\t\t\t\t\tthis.getread_recordlsit()\r\n\t\t\t\t}\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t//清空浏览历史\r\n\t\t\tcleanall(){\r\n\t\t\t\tlet t=this;\r\n\t\t\t\tt.checklogin();\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t title: '温馨提示',\r\n\t\t\t\t content: '是否清空浏览历史记录?',\r\n\t\t\t\t success: function (res) {\r\n\t\t\t\t if (res.confirm) {\r\n\t\t\t\t\t\t\tuni.showLoading({\r\n\t\t\t\t\t\t\t\ttitle:'正在清除...'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t t.cleanrecord()\r\n\t\t\t\t } else if (res.cancel) {\r\n\t\t\t\t //console.log('用户点击取消');\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\ttipnomore(){\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle:'暂无浏览历史',icon:'none'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tnavTo(url){\r\n\t\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t\tif(getuserinfo==''){\r\n\t\t\t\t\t// uni.navigateTo({\r\n\t\t\t\t\t// \turl:'/pages/user/checklogin'\r\n\t\t\t\t\t// })\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/user/login'\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl\r\n\t\t\t\t\t}) \r\n\t\t\t\t} \r\n\t\t\t}, \r\n\t\t\t//点击积分\r\n\t\t\ttojifen(){\r\n\t\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t\tif(getuserinfo==''){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/user/login'\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/user/jifen'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//点击余额\r\n\t\t\ttochongzhi(){\r\n\t\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t\tif(getuserinfo==''){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/user/login'\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/user/chongzhi?yue='+this.personinfo.yue\r\n\t\t\t\t\t}) \r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttocoupon(){\r\n\t\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t\tif(getuserinfo==''){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/user/login'\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/coupon/coupon'\r\n\t\t\t\t\t}) \r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * 会员卡下拉和回弹\r\n\t\t\t * 1.关闭bounce避免ios端下拉冲突\r\n\t\t\t * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉\r\n\t\t\t * transition设置0.1秒延迟,让css来过渡这段空窗期\r\n\t\t\t * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/\r\n\t\t\t */\r\n\t\t\tcoverTouchstart(e){\r\n\t\t\t\tif(pageAtTop === false){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.coverTransition = 'transform .1s linear';\r\n\t\t\t\tstartY = e.touches[0].clientY;\r\n\t\t\t},\r\n\t\t\tcoverTouchmove(e){\r\n\t\t\t\tmoveY = e.touches[0].clientY;\r\n\t\t\t\tlet moveDistance = moveY - startY;\r\n\t\t\t\tif(moveDistance < 0){\r\n\t\t\t\t\tthis.moving = false;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.moving = true;\r\n\t\t\t\tif(moveDistance >= 80 && moveDistance < 100){\r\n\t\t\t\t\tmoveDistance = 80;\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tif(moveDistance > 0 && moveDistance <= 80){\r\n\t\t\t\t\tthis.coverTransform = `translateY(${moveDistance}px)`;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcoverTouchend(){\r\n\t\t\t\tif(this.moving === false){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.moving = false;\r\n\t\t\t\tthis.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';\r\n\t\t\t\tthis.coverTransform = 'translateY(0px)';\r\n\t\t\t},\r\n\t\t\tchecklogin(){\r\n\t\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t\tif(getuserinfo==''){\r\n\t\t\t\t\t// uni.navigateTo({\r\n\t\t\t\t\t// \turl:'/pages/user/checklogin'\r\n\t\t\t\t\t// })\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/user/login'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tlogout(){\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t title: '温馨提示',\r\n\t\t\t\t content: '请问是否退出登录',\r\n\t\t\t\t success: function (res) {\r\n\t\t\t\t if (res.confirm) {\r\n\t\t\t\t uni.showToast({\r\n\t\t\t\t \ttitle:'已退出'\r\n\t\t\t\t })\r\n\t\t\t\t\t\t uni.clearStorage('userinfo');\r\n\t\t\t\t\t\t uni.reLaunch({\r\n\t\t\t\t\t\t \turl:'/pages/index/index'\r\n\t\t\t\t\t\t })\r\n\t\t\t\t } else if (res.cancel) {\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t});\r\n\t\t\t}\r\n } \r\n } \r\n</script> \r\n<style lang='scss'>\r\n\t%flex-center {\r\n\t display:flex;\r\n\t flex-direction: column;\r\n\t justify-content: center;\r\n\t align-items: center;\r\n\t}\r\n\t%section {\r\n\t display:flex;\r\n\t justify-content: space-around;\r\n\t align-content: center;\r\n\t background: #fff;\r\n\t border-radius: 10upx;\r\n\t}\r\n\r\n\t.user-section{\r\n\t\theight: 520upx;\r\n\t\tpadding: 100upx 30upx 0;\r\n\t\tposition:relative;\r\n\t\t.bg{\r\n\t\t\tposition:absolute;\r\n\t\t\tleft: 0;\r\n\t\t\ttop: 0;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tfilter: blur(1px);\r\n\t\t\topacity: .7;\r\n\t\t}\r\n\t}\r\n\t.user-info-box{\r\n\t\theight: 180upx;\r\n\t\tdisplay:flex;\r\n\t\talign-items:center;\r\n\t\tposition:relative;\r\n\t\tz-index: 1;\r\n\t\t.portrait{\r\n\t\t\twidth: 130upx;\r\n\t\t\theight: 130upx;\r\n\t\t\tborder:5upx solid #fff;\r\n\t\t\tborder-radius: 50%;\r\n\t\t}\r\n\t\t.username{\r\n\t\t\tfont-size: $font-lg + 6upx;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t\tmargin-left: 20upx;\r\n\t\t}\r\n\t\t.usercode{\r\n\t\t\tpadding: 8rpx;\r\n\t\t\tborder-radius: 15rpx;\r\n\t\t\tbackground-color: #4399FC;\r\n\t\t\tcolor: #fff;\r\n\t\t\tfont-size: 35rpx;\r\n\t\t\tposition: relative;\r\n\t\t\tleft: 20rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.vip-card-box{\r\n\t\tdisplay:flex;\r\n\t\tflex-direction: column;\r\n\t\tcolor: #f7d680;\r\n\t\theight: 240upx;\r\n\t\tbackground: linear-gradient(left, rgba(0,0,0,.7), rgba(0,0,0,.8));\r\n\t\tborder-radius: 16upx 16upx 0 0;\r\n\t\toverflow: hidden;\r\n\t\tposition: relative;\r\n\t\tpadding: 20upx 24upx;\r\n\t\t.card-bg{\r\n\t\t\tposition:absolute;\r\n\t\t\ttop: 20upx;\r\n\t\t\tright: 0;\r\n\t\t\twidth: 380upx;\r\n\t\t\theight: 260upx;\r\n\t\t}\r\n\t\t.b-btn{\r\n\t\t\tposition: absolute;\r\n\t\t\tright: 20upx;\r\n\t\t\ttop: 16upx;\r\n\t\t\twidth: 132upx;\r\n\t\t\theight: 40upx;\r\n\t\t\ttext-align: center;\r\n\t\t\tline-height: 40upx;\r\n\t\t\tfont-size: 22upx;\r\n\t\t\tcolor: #36343c;\r\n\t\t\tborder-radius: 20px;\r\n\t\t\tbackground: linear-gradient(left, #f9e6af, #ffd465);\r\n\t\t\tz-index: 1;\r\n\t\t}\r\n\t\t.tit{\r\n\t\t\tfont-size: $font-base+2upx;\r\n\t\t\tcolor: #f7d680;\r\n\t\t\tmargin-bottom: 28upx;\r\n\t\t\t.yticon{\r\n\t\t\t\tcolor: #f6e5a3;\r\n\t\t\t\tmargin-right: 16upx;\r\n\t\t\t\tfont-size: $font-base+18upx;\r\n\t\t\t}\r\n\t\t}\r\n\t\t.e-b{\r\n\t\t\tfont-size: $font-sm;\r\n\t\t\tcolor: #d8cba9;\r\n\t\t\tmargin-top: 10upx;\r\n\t\t}\r\n\t}\r\n\t.cover-container{\r\n\t\tbackground: $page-color-base;\r\n\t\tmargin-top: -150upx;\r\n\t\tpadding: 0 30upx;\r\n\t\tposition:relative;\r\n\t\tbackground: #f5f5f5;\r\n\t\tpadding-bottom: 20upx;\r\n\t\t.arc{\r\n\t\t\tposition:absolute;\r\n\t\t\tleft: 0;\r\n\t\t\ttop: -34upx;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 36upx;\r\n\t\t}\r\n\t}\r\n\t.tj-sction{\r\n\t\t@extend %section;\r\n\t\t.tj-item{\r\n\t\t\t@extend %flex-center;\r\n\t\t\tflex-direction: column;\r\n\t\t\theight: 140upx;\r\n\t\t\tfont-size: $font-sm;\r\n\t\t\tcolor: #75787d;\r\n\t\t}\r\n\t\t.num{\r\n\t\t\tfont-size: $font-lg;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t\tmargin-bottom: 8upx;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t.order-section{\r\n\t\t@extend %section;\r\n\t\tpadding: 28upx 0;\r\n\t\tmargin-top: 20upx;\r\n\t\t.order-item{\r\n\t\t\t@extend %flex-center;\r\n\t\t\twidth: 120upx;\r\n\t\t\theight: 120upx;\r\n\t\t\tborder-radius: 10upx;\r\n\t\t\tfont-size: $font-sm;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t}\r\n\t\t.yticon{\r\n\t\t\tfont-size: 48upx;\r\n\t\t\tmargin-bottom: 18upx;\r\n\t\t\tcolor: #fa436a;\r\n\t\t}\r\n\t\t.icon-shouhoutuikuan{\r\n\t\t\tfont-size:44upx;\r\n\t\t}\r\n\t}\r\n\t.history-section{\r\n\t\tpadding: 30upx 0 0;\r\n\t\tmargin-top: 20upx;\r\n\t\tbackground: #fff;\r\n\t\tborder-radius:10upx;\r\n\t\t.sec-header{\r\n\t\t\tdisplay:flex;\r\n\t\t\talign-items: center;\r\n\t\t\tfont-size: $font-base;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t\tline-height: 40upx;\r\n\t\t\tmargin-left: 30upx;\r\n\t\t\t.yticon{\r\n\t\t\t\tfont-size: 44upx;\r\n\t\t\t\tcolor: #5eba8f;\r\n\t\t\t\tmargin-right: 16upx;\r\n\t\t\t\tline-height: 40upx;\r\n\t\t\t}\r\n\t\t}\r\n\t\t.h-list{\r\n\t\t\twhite-space: nowrap;\r\n\t\t\tpadding: 30upx 30upx 0;\r\n\t\t\timage{\r\n\t\t\t\tdisplay:inline-block;\r\n\t\t\t\twidth: 160upx;\r\n\t\t\t\theight: 160upx;\r\n\t\t\t\tmargin-right: 20upx;\r\n\t\t\t\tborder-radius: 10upx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.clean{\r\n\t\tposition: absolute;\r\n\t\tright: 45upx;\r\n\t\tpadding: 3upx 8upx;\r\n\t\tbackground-color: #DD524D;\r\n\t\tcolor: #fff;\r\n\t\tborder-radius: 10upx;\r\n\t\tfont-size: $font-base;\r\n\t}\r\n\t.kf{\r\n\t\tdisplay: flex;\r\n\t\tpadding: 20upx $page-row-spacing;\r\n\t\tline-height:60upx;\r\n\t\tposition:relative;\r\n\t\talign-items:center;\r\n\t\timage{\r\n\t\t\tleft: 90upx;\r\n\t\t\twidth: 50upx;\r\n\t\t\theight: 50upx;\r\n\t\t}\r\n\t\t.kfright{\r\n\t\t\twidth: 30%;\r\n\t\t}\r\n\t\t.kfbt{\r\n\t\t\tfont-size: $font-base;\r\n\t\t\tbackground: none;\r\n\t\t\tposition: relative;\r\n\t\t\tleft: -35upx;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t}\r\n\t\t.kfbt::after {border: 0;} \r\n\t}\r\n\t/* 自定义样式,非组件 */\r\n\t.myitem{\r\n\t\tdisplay: flex;\r\n\t\talign-items:center;\r\n\t\tpadding: 20upx $page-row-spacing;\r\n\t\timage{\r\n\t\t\tleft: 90upx;\r\n\t\t\twidth: 40upx;\r\n\t\t\theight: 40upx;\r\n\t\t}\r\n\t\t.myitemright{\r\n\t\t\twidth: 80%;\r\n\t\t\tfont-size: $font-sm+2upx;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t\tmargin-left: 15upx;\r\n\t\t\tmargin-bottom: 10upx;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n</style>","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1720092621153\n var cssReload = require(\"F:/软件/HBuilder X/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
|