chenxiong 3 rokov pred
rodič
commit
140cfaa307
2 zmenil súbory, kde vykonal 99 pridanie a 6 odobranie
  1. 30 6
      pages2/bank/detail.vue
  2. 69 0
      project.config.json

+ 30 - 6
pages2/bank/detail.vue

@@ -5,12 +5,12 @@
 				<image src="/static/login_bg.jpg" style="height: 461rpx;width: 100%;"></image>
 				<view style="padding:20rpx">
 					<view style="display: flex;margin-top: 13rpx;">
-						<view class="yearTag">2020</view>
-						<view class="titleTag">2020年二建建筑工程管理与实务(实务专题班)</view>
+						<view class="yearTag">{{goodsData.createTime | formatDate}}</view>
+						<view class="titleTag">{{goodsData.goodsName}}</view>
 					</view>
 					<view style="display: flex;justify-content: space-between;margin-top: 13rpx;">
-						<view class="noteTag"><image src="/static/icon/wk_icon1.png" class="wk_icon"></image>
-						共 <text class="blackFont">6</text> 张卷 <text class="blackFont">1200</text> 道题  </view>
+						<view class="noteTag"><image :src="$method.splitImgHost(goodsData.coverUrl, true)" class="wk_icon"></image>
+						共 <text class="blackFont">{{goodsData.updateTime}}</text> 张卷 <text class="blackFont">1200</text> 道题  </view>
 						
 					</view>
 				</view>
@@ -98,20 +98,44 @@ export default {
 			outline:[{
 				list:[1,2,3,4],
 				showList:false,
-			}]
+			}],
+			id:'',
+			goodsData:{}
 		};
 	},
+	filters: {
+	   formatDate: function (value) {
+		   
+		var date = new Date(value);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
+		var Y = date.getFullYear() + '-';
+		var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
+		var D = date.getDate() + ' ';
+		var h = date.getHours() + ':';
+		var m = date.getMinutes() + ':';
+		var s = date.getSeconds();
+		return Y+M+D+h+m+s;
+	  }
+	},
 	onUnload() {
 		
 	},
 	computed: { ...mapGetters(['userInfo']) },
 	onLoad(option) {
-
+		console.log(option)
+		this.id = option.id
+		this.getDetail();
 	},
 	onShow() {
 		
 	},
 	methods: {
+		getDetail(){
+			this.$api.goodsDetail(this.id).then(res => {
+				console.log(res)
+				this.goodsData = res.data.data;
+				 
+			})
+		},
 		buy(){
 			if(this.$method.isGoLogin()){
 				return

+ 69 - 0
project.config.json

@@ -0,0 +1,69 @@
+{
+  "description": "项目配置文件",
+  "packOptions": {
+    "ignore": []
+  },
+  "setting": {
+    "bundle": false,
+    "userConfirmedBundleSwitch": false,
+    "urlCheck": true,
+    "scopeDataCheck": false,
+    "coverView": true,
+    "es6": true,
+    "postcss": true,
+    "compileHotReLoad": false,
+    "lazyloadPlaceholderEnable": false,
+    "preloadBackgroundData": false,
+    "minified": true,
+    "autoAudits": false,
+    "newFeature": false,
+    "uglifyFileName": false,
+    "uploadWithSourceMap": true,
+    "useIsolateContext": true,
+    "nodeModules": false,
+    "enhance": true,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
+    "showShadowRootInWxmlPanel": true,
+    "packNpmManually": false,
+    "enableEngineNative": false,
+    "packNpmRelationList": [],
+    "minifyWXSS": true,
+    "showES6CompileOption": false,
+    "minifyWXML": true
+  },
+  "compileType": "miniprogram",
+  "libVersion": "2.17.0",
+  "appid": "wxfde43fb55c186822",
+  "projectname": "miniprogram-1",
+  "debugOptions": {
+    "hidedInDevtools": []
+  },
+  "scripts": {},
+  "staticServerOptions": {
+    "baseURL": "",
+    "servePath": ""
+  },
+  "isGameTourist": false,
+  "condition": {
+    "search": {
+      "list": []
+    },
+    "conversation": {
+      "list": []
+    },
+    "game": {
+      "list": []
+    },
+    "plugin": {
+      "list": []
+    },
+    "gamePlugin": {
+      "list": []
+    },
+    "miniprogram": {
+      "list": []
+    }
+  }
+}